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 | 2706f8c | 2004-09-19 23:53:36 +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. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25 | |
| 26 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 46 | 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] | 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 223 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
| 227 | as_executable_p="test -f" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 230 | 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] | 231 | |
| 232 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 234 | |
| 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
| 243 | $as_unset CDPATH |
| 244 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 245 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 246 | |
| 247 | # Check that we are running under the correct shell. |
| 248 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 249 | |
| 250 | case X$ECHO in |
| 251 | X*--fallback-echo) |
| 252 | # Remove one level of quotation (which was required for Make). |
| 253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 254 | ;; |
| 255 | esac |
| 256 | |
| 257 | echo=${ECHO-echo} |
| 258 | if test "X$1" = X--no-reexec; then |
| 259 | # Discard the --no-reexec flag, and continue. |
| 260 | shift |
| 261 | elif test "X$1" = X--fallback-echo; then |
| 262 | # Avoid inline document here, it may be left over |
| 263 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 265 | # Yippee, $echo works! |
| 266 | : |
| 267 | else |
| 268 | # Restart under the correct shell. |
| 269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 270 | fi |
| 271 | |
| 272 | if test "X$1" = X--fallback-echo; then |
| 273 | # used as fallback echo |
| 274 | shift |
| 275 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 276 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 277 | EOF |
| 278 | exit 0 |
| 279 | fi |
| 280 | |
| 281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 282 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 284 | |
| 285 | if test -z "$ECHO"; then |
| 286 | if test "X${echo_test_string+set}" != Xset; then |
| 287 | # find a string as large as possible, as long as the shell can cope with it |
| 288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 290 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 291 | echo_test_string="`eval $cmd`" && |
| 292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 293 | then |
| 294 | break |
| 295 | fi |
| 296 | done |
| 297 | fi |
| 298 | |
| 299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 302 | : |
| 303 | else |
| 304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 305 | # backslashes. This makes it impossible to quote backslashes using |
| 306 | # echo "$something" | sed 's/\\/\\\\/g' |
| 307 | # |
| 308 | # So, first we look for a working echo in the user's PATH. |
| 309 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 311 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 317 | echo="$dir/echo" |
| 318 | break |
| 319 | fi |
| 320 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 321 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 322 | |
| 323 | if test "X$echo" = Xecho; then |
| 324 | # We didn't find a better echo, so look for alternatives. |
| 325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 328 | # This shell has a builtin print -r that does the trick. |
| 329 | echo='print -r' |
| 330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 332 | # If we have ksh, try running configure again with it. |
| 333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 334 | export ORIGINAL_CONFIG_SHELL |
| 335 | CONFIG_SHELL=/bin/ksh |
| 336 | export CONFIG_SHELL |
| 337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 338 | else |
| 339 | # Try using printf. |
| 340 | echo='printf %s\n' |
| 341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 344 | # Cool, printf works |
| 345 | : |
| 346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 347 | test "X$echo_testing_string" = 'X\t' && |
| 348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 351 | export CONFIG_SHELL |
| 352 | SHELL="$CONFIG_SHELL" |
| 353 | export SHELL |
| 354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = 'X\t' && |
| 357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 360 | else |
| 361 | # maybe with a smaller string... |
| 362 | prev=: |
| 363 | |
| 364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 366 | then |
| 367 | break |
| 368 | fi |
| 369 | prev="$cmd" |
| 370 | done |
| 371 | |
| 372 | if test "$prev" != 'sed 50q "$0"'; then |
| 373 | echo_test_string=`eval $prev` |
| 374 | export echo_test_string |
| 375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 376 | else |
| 377 | # Oops. We lost completely, so just stick with echo. |
| 378 | echo=echo |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | fi |
| 385 | |
| 386 | # Copy echo and quote the copy suitably for passing to libtool from |
| 387 | # the Makefile, instead of quoting the original, which is used later. |
| 388 | ECHO=$echo |
| 389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 391 | fi |
| 392 | |
| 393 | |
| 394 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 395 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 396 | tagnames=${tagnames+${tagnames},}CXX |
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},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 400 | # Name of the host. |
| 401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 402 | # so uname gets run too. |
| 403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 404 | |
| 405 | exec 6>&1 |
| 406 | |
| 407 | # |
| 408 | # Initializations. |
| 409 | # |
| 410 | ac_default_prefix=/usr/local |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 411 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 412 | cross_compiling=no |
| 413 | subdirs= |
| 414 | MFLAGS= |
| 415 | MAKEFLAGS= |
| 416 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 417 | |
| 418 | # Maximum number of lines to put in a shell here document. |
| 419 | # This variable seems obsolete. It should probably be removed, and |
| 420 | # only ac_max_sed_lines should be used. |
| 421 | : ${ac_max_here_lines=38} |
| 422 | |
| 423 | # Identity of this package. |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 424 | PACKAGE_NAME='LLVM' |
| 425 | PACKAGE_TARNAME='-llvm-' |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 426 | PACKAGE_VERSION='1.4' |
| 427 | PACKAGE_STRING='LLVM 1.4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 428 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 429 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 430 | ac_unique_file=""Makefile.config.in"" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 431 | ac_subdirs_all="$ac_subdirs_all projects/sample" |
| 432 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" |
| 433 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" |
| 434 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" |
| 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" |
| 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-java" |
| 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" |
| 438 | ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" |
| 439 | ac_subdirs_all="$ac_subdirs_all ${i}" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 440 | # Factoring default headers for most tests. |
| 441 | ac_includes_default="\ |
| 442 | #include <stdio.h> |
| 443 | #if HAVE_SYS_TYPES_H |
| 444 | # include <sys/types.h> |
| 445 | #endif |
| 446 | #if HAVE_SYS_STAT_H |
| 447 | # include <sys/stat.h> |
| 448 | #endif |
| 449 | #if STDC_HEADERS |
| 450 | # include <stdlib.h> |
| 451 | # include <stddef.h> |
| 452 | #else |
| 453 | # if HAVE_STDLIB_H |
| 454 | # include <stdlib.h> |
| 455 | # endif |
| 456 | #endif |
| 457 | #if HAVE_STRING_H |
| 458 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 459 | # include <memory.h> |
| 460 | # endif |
| 461 | # include <string.h> |
| 462 | #endif |
| 463 | #if HAVE_STRINGS_H |
| 464 | # include <strings.h> |
| 465 | #endif |
| 466 | #if HAVE_INTTYPES_H |
| 467 | # include <inttypes.h> |
| 468 | #else |
| 469 | # if HAVE_STDINT_H |
| 470 | # include <stdint.h> |
| 471 | # endif |
| 472 | #endif |
| 473 | #if HAVE_UNISTD_H |
| 474 | # include <unistd.h> |
| 475 | #endif" |
| 476 | |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 477 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT 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 DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT 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] | 478 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 479 | |
| 480 | # Initialize some variables set by options. |
| 481 | ac_init_help= |
| 482 | ac_init_version=false |
| 483 | # The variables have the same names as the options, with |
| 484 | # dashes changed to underlines. |
| 485 | cache_file=/dev/null |
| 486 | exec_prefix=NONE |
| 487 | no_create= |
| 488 | no_recursion= |
| 489 | prefix=NONE |
| 490 | program_prefix=NONE |
| 491 | program_suffix=NONE |
| 492 | program_transform_name=s,x,x, |
| 493 | silent= |
| 494 | site= |
| 495 | srcdir= |
| 496 | verbose= |
| 497 | x_includes=NONE |
| 498 | x_libraries=NONE |
| 499 | |
| 500 | # Installation directory options. |
| 501 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 502 | # and all the variables that are supposed to be based on exec_prefix |
| 503 | # by default will actually change. |
| 504 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 505 | bindir='${exec_prefix}/bin' |
| 506 | sbindir='${exec_prefix}/sbin' |
| 507 | libexecdir='${exec_prefix}/libexec' |
| 508 | datadir='${prefix}/share' |
| 509 | sysconfdir='${prefix}/etc' |
| 510 | sharedstatedir='${prefix}/com' |
| 511 | localstatedir='${prefix}/var' |
| 512 | libdir='${exec_prefix}/lib' |
| 513 | includedir='${prefix}/include' |
| 514 | oldincludedir='/usr/include' |
| 515 | infodir='${prefix}/info' |
| 516 | mandir='${prefix}/man' |
| 517 | |
| 518 | ac_prev= |
| 519 | for ac_option |
| 520 | do |
| 521 | # If the previous option needs an argument, assign it. |
| 522 | if test -n "$ac_prev"; then |
| 523 | eval "$ac_prev=\$ac_option" |
| 524 | ac_prev= |
| 525 | continue |
| 526 | fi |
| 527 | |
| 528 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 529 | |
| 530 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 531 | |
| 532 | case $ac_option in |
| 533 | |
| 534 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 535 | ac_prev=bindir ;; |
| 536 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 537 | bindir=$ac_optarg ;; |
| 538 | |
| 539 | -build | --build | --buil | --bui | --bu) |
| 540 | ac_prev=build_alias ;; |
| 541 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 542 | build_alias=$ac_optarg ;; |
| 543 | |
| 544 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 545 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 546 | ac_prev=cache_file ;; |
| 547 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 548 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 549 | cache_file=$ac_optarg ;; |
| 550 | |
| 551 | --config-cache | -C) |
| 552 | cache_file=config.cache ;; |
| 553 | |
| 554 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 555 | ac_prev=datadir ;; |
| 556 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 557 | | --da=*) |
| 558 | datadir=$ac_optarg ;; |
| 559 | |
| 560 | -disable-* | --disable-*) |
| 561 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 562 | # Reject names that are not valid shell variable names. |
| 563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 565 | { (exit 1); exit 1; }; } |
| 566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 567 | eval "enable_$ac_feature=no" ;; |
| 568 | |
| 569 | -enable-* | --enable-*) |
| 570 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 571 | # Reject names that are not valid shell variable names. |
| 572 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 573 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 574 | { (exit 1); exit 1; }; } |
| 575 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 576 | case $ac_option in |
| 577 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 578 | *) ac_optarg=yes ;; |
| 579 | esac |
| 580 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 581 | |
| 582 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 583 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 584 | | --exec | --exe | --ex) |
| 585 | ac_prev=exec_prefix ;; |
| 586 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 587 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 588 | | --exec=* | --exe=* | --ex=*) |
| 589 | exec_prefix=$ac_optarg ;; |
| 590 | |
| 591 | -gas | --gas | --ga | --g) |
| 592 | # Obsolete; use --with-gas. |
| 593 | with_gas=yes ;; |
| 594 | |
| 595 | -help | --help | --hel | --he | -h) |
| 596 | ac_init_help=long ;; |
| 597 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 598 | ac_init_help=recursive ;; |
| 599 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 600 | ac_init_help=short ;; |
| 601 | |
| 602 | -host | --host | --hos | --ho) |
| 603 | ac_prev=host_alias ;; |
| 604 | -host=* | --host=* | --hos=* | --ho=*) |
| 605 | host_alias=$ac_optarg ;; |
| 606 | |
| 607 | -includedir | --includedir | --includedi | --included | --include \ |
| 608 | | --includ | --inclu | --incl | --inc) |
| 609 | ac_prev=includedir ;; |
| 610 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 611 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 612 | includedir=$ac_optarg ;; |
| 613 | |
| 614 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 615 | ac_prev=infodir ;; |
| 616 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 617 | infodir=$ac_optarg ;; |
| 618 | |
| 619 | -libdir | --libdir | --libdi | --libd) |
| 620 | ac_prev=libdir ;; |
| 621 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 622 | libdir=$ac_optarg ;; |
| 623 | |
| 624 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 625 | | --libexe | --libex | --libe) |
| 626 | ac_prev=libexecdir ;; |
| 627 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 628 | | --libexe=* | --libex=* | --libe=*) |
| 629 | libexecdir=$ac_optarg ;; |
| 630 | |
| 631 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 632 | | --localstate | --localstat | --localsta | --localst \ |
| 633 | | --locals | --local | --loca | --loc | --lo) |
| 634 | ac_prev=localstatedir ;; |
| 635 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 636 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 637 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 638 | localstatedir=$ac_optarg ;; |
| 639 | |
| 640 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 641 | ac_prev=mandir ;; |
| 642 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 643 | mandir=$ac_optarg ;; |
| 644 | |
| 645 | -nfp | --nfp | --nf) |
| 646 | # Obsolete; use --without-fp. |
| 647 | with_fp=no ;; |
| 648 | |
| 649 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 650 | | --no-cr | --no-c | -n) |
| 651 | no_create=yes ;; |
| 652 | |
| 653 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 654 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 655 | no_recursion=yes ;; |
| 656 | |
| 657 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 658 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 659 | | --oldin | --oldi | --old | --ol | --o) |
| 660 | ac_prev=oldincludedir ;; |
| 661 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 662 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 663 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 664 | oldincludedir=$ac_optarg ;; |
| 665 | |
| 666 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 667 | ac_prev=prefix ;; |
| 668 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 669 | prefix=$ac_optarg ;; |
| 670 | |
| 671 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 672 | | --program-pre | --program-pr | --program-p) |
| 673 | ac_prev=program_prefix ;; |
| 674 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 675 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 676 | program_prefix=$ac_optarg ;; |
| 677 | |
| 678 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 679 | | --program-suf | --program-su | --program-s) |
| 680 | ac_prev=program_suffix ;; |
| 681 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 682 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 683 | program_suffix=$ac_optarg ;; |
| 684 | |
| 685 | -program-transform-name | --program-transform-name \ |
| 686 | | --program-transform-nam | --program-transform-na \ |
| 687 | | --program-transform-n | --program-transform- \ |
| 688 | | --program-transform | --program-transfor \ |
| 689 | | --program-transfo | --program-transf \ |
| 690 | | --program-trans | --program-tran \ |
| 691 | | --progr-tra | --program-tr | --program-t) |
| 692 | ac_prev=program_transform_name ;; |
| 693 | -program-transform-name=* | --program-transform-name=* \ |
| 694 | | --program-transform-nam=* | --program-transform-na=* \ |
| 695 | | --program-transform-n=* | --program-transform-=* \ |
| 696 | | --program-transform=* | --program-transfor=* \ |
| 697 | | --program-transfo=* | --program-transf=* \ |
| 698 | | --program-trans=* | --program-tran=* \ |
| 699 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 700 | program_transform_name=$ac_optarg ;; |
| 701 | |
| 702 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 703 | | -silent | --silent | --silen | --sile | --sil) |
| 704 | silent=yes ;; |
| 705 | |
| 706 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 707 | ac_prev=sbindir ;; |
| 708 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 709 | | --sbi=* | --sb=*) |
| 710 | sbindir=$ac_optarg ;; |
| 711 | |
| 712 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 713 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 714 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 715 | | --sha | --sh) |
| 716 | ac_prev=sharedstatedir ;; |
| 717 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 718 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 719 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 720 | | --sha=* | --sh=*) |
| 721 | sharedstatedir=$ac_optarg ;; |
| 722 | |
| 723 | -site | --site | --sit) |
| 724 | ac_prev=site ;; |
| 725 | -site=* | --site=* | --sit=*) |
| 726 | site=$ac_optarg ;; |
| 727 | |
| 728 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 729 | ac_prev=srcdir ;; |
| 730 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 731 | srcdir=$ac_optarg ;; |
| 732 | |
| 733 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 734 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 735 | ac_prev=sysconfdir ;; |
| 736 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 737 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 738 | sysconfdir=$ac_optarg ;; |
| 739 | |
| 740 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 741 | ac_prev=target_alias ;; |
| 742 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 743 | target_alias=$ac_optarg ;; |
| 744 | |
| 745 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 746 | verbose=yes ;; |
| 747 | |
| 748 | -version | --version | --versio | --versi | --vers | -V) |
| 749 | ac_init_version=: ;; |
| 750 | |
| 751 | -with-* | --with-*) |
| 752 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 753 | # Reject names that are not valid shell variable names. |
| 754 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 755 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 756 | { (exit 1); exit 1; }; } |
| 757 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 758 | case $ac_option in |
| 759 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 760 | *) ac_optarg=yes ;; |
| 761 | esac |
| 762 | eval "with_$ac_package='$ac_optarg'" ;; |
| 763 | |
| 764 | -without-* | --without-*) |
| 765 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 766 | # Reject names that are not valid shell variable names. |
| 767 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 768 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 769 | { (exit 1); exit 1; }; } |
| 770 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 771 | eval "with_$ac_package=no" ;; |
| 772 | |
| 773 | --x) |
| 774 | # Obsolete; use --with-x. |
| 775 | with_x=yes ;; |
| 776 | |
| 777 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 778 | | --x-incl | --x-inc | --x-in | --x-i) |
| 779 | ac_prev=x_includes ;; |
| 780 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 781 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 782 | x_includes=$ac_optarg ;; |
| 783 | |
| 784 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 785 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 786 | ac_prev=x_libraries ;; |
| 787 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 788 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 789 | x_libraries=$ac_optarg ;; |
| 790 | |
| 791 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 792 | Try \`$0 --help' for more information." >&2 |
| 793 | { (exit 1); exit 1; }; } |
| 794 | ;; |
| 795 | |
| 796 | *=*) |
| 797 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 798 | # Reject names that are not valid shell variable names. |
| 799 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 800 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 801 | { (exit 1); exit 1; }; } |
| 802 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 803 | eval "$ac_envvar='$ac_optarg'" |
| 804 | export $ac_envvar ;; |
| 805 | |
| 806 | *) |
| 807 | # FIXME: should be removed in autoconf 3.0. |
| 808 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 809 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 810 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 811 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 812 | ;; |
| 813 | |
| 814 | esac |
| 815 | done |
| 816 | |
| 817 | if test -n "$ac_prev"; then |
| 818 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 819 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 820 | { (exit 1); exit 1; }; } |
| 821 | fi |
| 822 | |
| 823 | # Be sure to have absolute paths. |
| 824 | for ac_var in exec_prefix prefix |
| 825 | do |
| 826 | eval ac_val=$`echo $ac_var` |
| 827 | case $ac_val in |
| 828 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 829 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 830 | { (exit 1); exit 1; }; };; |
| 831 | esac |
| 832 | done |
| 833 | |
| 834 | # Be sure to have absolute paths. |
| 835 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 836 | localstatedir libdir includedir oldincludedir infodir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 837 | do |
| 838 | eval ac_val=$`echo $ac_var` |
| 839 | case $ac_val in |
| 840 | [\\/$]* | ?:[\\/]* ) ;; |
| 841 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 842 | { (exit 1); exit 1; }; };; |
| 843 | esac |
| 844 | done |
| 845 | |
| 846 | # There might be people who depend on the old broken behavior: `$host' |
| 847 | # used to hold the argument of --host etc. |
| 848 | # FIXME: To remove some day. |
| 849 | build=$build_alias |
| 850 | host=$host_alias |
| 851 | target=$target_alias |
| 852 | |
| 853 | # FIXME: To remove some day. |
| 854 | if test "x$host_alias" != x; then |
| 855 | if test "x$build_alias" = x; then |
| 856 | cross_compiling=maybe |
| 857 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 858 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 859 | elif test "x$build_alias" != "x$host_alias"; then |
| 860 | cross_compiling=yes |
| 861 | fi |
| 862 | fi |
| 863 | |
| 864 | ac_tool_prefix= |
| 865 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 866 | |
| 867 | test "$silent" = yes && exec 6>/dev/null |
| 868 | |
| 869 | |
| 870 | # Find the source files, if location was not specified. |
| 871 | if test -z "$srcdir"; then |
| 872 | ac_srcdir_defaulted=yes |
| 873 | # Try the directory containing this script, then its parent. |
| 874 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 875 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 876 | X"$0" : 'X\(//\)[^/]' \| \ |
| 877 | X"$0" : 'X\(//\)$' \| \ |
| 878 | X"$0" : 'X\(/\)' \| \ |
| 879 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 880 | echo X"$0" | |
| 881 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 882 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 883 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 884 | /^X\(\/\).*/{ s//\1/; q; } |
| 885 | s/.*/./; q'` |
| 886 | srcdir=$ac_confdir |
| 887 | if test ! -r $srcdir/$ac_unique_file; then |
| 888 | srcdir=.. |
| 889 | fi |
| 890 | else |
| 891 | ac_srcdir_defaulted=no |
| 892 | fi |
| 893 | if test ! -r $srcdir/$ac_unique_file; then |
| 894 | if test "$ac_srcdir_defaulted" = yes; then |
| 895 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 896 | { (exit 1); exit 1; }; } |
| 897 | else |
| 898 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 899 | { (exit 1); exit 1; }; } |
| 900 | fi |
| 901 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 902 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 903 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 904 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 905 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 906 | ac_env_build_alias_set=${build_alias+set} |
| 907 | ac_env_build_alias_value=$build_alias |
| 908 | ac_cv_env_build_alias_set=${build_alias+set} |
| 909 | ac_cv_env_build_alias_value=$build_alias |
| 910 | ac_env_host_alias_set=${host_alias+set} |
| 911 | ac_env_host_alias_value=$host_alias |
| 912 | ac_cv_env_host_alias_set=${host_alias+set} |
| 913 | ac_cv_env_host_alias_value=$host_alias |
| 914 | ac_env_target_alias_set=${target_alias+set} |
| 915 | ac_env_target_alias_value=$target_alias |
| 916 | ac_cv_env_target_alias_set=${target_alias+set} |
| 917 | ac_cv_env_target_alias_value=$target_alias |
| 918 | ac_env_CXX_set=${CXX+set} |
| 919 | ac_env_CXX_value=$CXX |
| 920 | ac_cv_env_CXX_set=${CXX+set} |
| 921 | ac_cv_env_CXX_value=$CXX |
| 922 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 923 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 924 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 925 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 926 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 927 | ac_env_LDFLAGS_value=$LDFLAGS |
| 928 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 929 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 930 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 931 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 932 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 933 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 934 | ac_env_CC_set=${CC+set} |
| 935 | ac_env_CC_value=$CC |
| 936 | ac_cv_env_CC_set=${CC+set} |
| 937 | ac_cv_env_CC_value=$CC |
| 938 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 939 | ac_env_CFLAGS_value=$CFLAGS |
| 940 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 941 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 942 | ac_env_CPP_set=${CPP+set} |
| 943 | ac_env_CPP_value=$CPP |
| 944 | ac_cv_env_CPP_set=${CPP+set} |
| 945 | ac_cv_env_CPP_value=$CPP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 946 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 947 | ac_env_CXXCPP_value=$CXXCPP |
| 948 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 949 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 950 | ac_env_F77_set=${F77+set} |
| 951 | ac_env_F77_value=$F77 |
| 952 | ac_cv_env_F77_set=${F77+set} |
| 953 | ac_cv_env_F77_value=$F77 |
| 954 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 955 | ac_env_FFLAGS_value=$FFLAGS |
| 956 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 957 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 958 | |
| 959 | # |
| 960 | # Report the --help message. |
| 961 | # |
| 962 | if test "$ac_init_help" = "long"; then |
| 963 | # Omit some internal or obsolete options to make the list less imposing. |
| 964 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 965 | cat <<_ACEOF |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 966 | \`configure' configures LLVM 1.4 to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 967 | |
| 968 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 969 | |
| 970 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 971 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 972 | |
| 973 | Defaults for the options are specified in brackets. |
| 974 | |
| 975 | Configuration: |
| 976 | -h, --help display this help and exit |
| 977 | --help=short display options specific to this package |
| 978 | --help=recursive display the short help of all the included packages |
| 979 | -V, --version display version information and exit |
| 980 | -q, --quiet, --silent do not print \`checking...' messages |
| 981 | --cache-file=FILE cache test results in FILE [disabled] |
| 982 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 983 | -n, --no-create do not create output files |
| 984 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 985 | |
| 986 | _ACEOF |
| 987 | |
| 988 | cat <<_ACEOF |
| 989 | Installation directories: |
| 990 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 991 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 992 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 | |
| 995 | By default, \`make install' will install all the files in |
| 996 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 997 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 998 | for instance \`--prefix=\$HOME'. |
| 999 | |
| 1000 | For better control, use the options below. |
| 1001 | |
| 1002 | Fine tuning of the installation directories: |
| 1003 | --bindir=DIR user executables [EPREFIX/bin] |
| 1004 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1005 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1006 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1007 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1008 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1009 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1010 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1011 | --includedir=DIR C header files [PREFIX/include] |
| 1012 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1013 | --infodir=DIR info documentation [PREFIX/info] |
| 1014 | --mandir=DIR man documentation [PREFIX/man] |
| 1015 | _ACEOF |
| 1016 | |
| 1017 | cat <<\_ACEOF |
| 1018 | |
| 1019 | System types: |
| 1020 | --build=BUILD configure for building on BUILD [guessed] |
| 1021 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1022 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1023 | _ACEOF |
| 1024 | fi |
| 1025 | |
| 1026 | if test -n "$ac_init_help"; then |
| 1027 | case $ac_init_help in |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 1028 | short | recursive ) echo "Configuration of LLVM 1.4:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1029 | esac |
| 1030 | cat <<\_ACEOF |
| 1031 | |
| 1032 | Optional Features: |
| 1033 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1034 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1035 | --enable-shared[=PKGS] |
| 1036 | build shared libraries [default=yes] |
| 1037 | --enable-static[=PKGS] |
| 1038 | build static libraries [default=yes] |
| 1039 | --enable-fast-install[=PKGS] |
| 1040 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1041 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1042 | --enable-optimized Compile with optimizations enabled (default is NO) |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1043 | --enable-jit Enable Just In Time Compiling (default is YES) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1044 | |
| 1045 | Optional Packages: |
| 1046 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1047 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1048 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1049 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1050 | both] |
| 1051 | --with-tags[=TAGS] |
| 1052 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 | --with-llvmgccdir Location of LLVM GCC front-end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1054 | |
| 1055 | Some influential environment variables: |
| 1056 | CXX C++ compiler command |
| 1057 | CXXFLAGS C++ compiler flags |
| 1058 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1059 | nonstandard directory <lib dir> |
| 1060 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1061 | headers in a nonstandard directory <include dir> |
| 1062 | CC C compiler command |
| 1063 | CFLAGS C compiler flags |
| 1064 | CPP C preprocessor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1065 | CXXCPP C++ preprocessor |
| 1066 | F77 Fortran 77 compiler command |
| 1067 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1068 | |
| 1069 | Use these variables to override the choices made by `configure' or to help |
| 1070 | it to find libraries and programs with nonstandard names/locations. |
| 1071 | |
| 1072 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1073 | _ACEOF |
| 1074 | fi |
| 1075 | |
| 1076 | if test "$ac_init_help" = "recursive"; then |
| 1077 | # If there are subdirs, report their specific --help. |
| 1078 | ac_popdir=`pwd` |
| 1079 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1080 | test -d $ac_dir || continue |
| 1081 | ac_builddir=. |
| 1082 | |
| 1083 | if test "$ac_dir" != .; then |
| 1084 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1085 | # A "../" for each directory in $ac_dir_suffix. |
| 1086 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1087 | else |
| 1088 | ac_dir_suffix= ac_top_builddir= |
| 1089 | fi |
| 1090 | |
| 1091 | case $srcdir in |
| 1092 | .) # No --srcdir option. We are building in place. |
| 1093 | ac_srcdir=. |
| 1094 | if test -z "$ac_top_builddir"; then |
| 1095 | ac_top_srcdir=. |
| 1096 | else |
| 1097 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1098 | fi ;; |
| 1099 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1100 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1101 | ac_top_srcdir=$srcdir ;; |
| 1102 | *) # Relative path. |
| 1103 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1104 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1105 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1106 | |
| 1107 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1108 | # the directories may not exist. |
| 1109 | case `pwd` in |
| 1110 | .) ac_abs_builddir="$ac_dir";; |
| 1111 | *) |
| 1112 | case "$ac_dir" in |
| 1113 | .) ac_abs_builddir=`pwd`;; |
| 1114 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1115 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1116 | esac;; |
| 1117 | esac |
| 1118 | case $ac_abs_builddir in |
| 1119 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1120 | *) |
| 1121 | case ${ac_top_builddir}. in |
| 1122 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1123 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1124 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1125 | esac;; |
| 1126 | esac |
| 1127 | case $ac_abs_builddir in |
| 1128 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1129 | *) |
| 1130 | case $ac_srcdir in |
| 1131 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1132 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1133 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1134 | esac;; |
| 1135 | esac |
| 1136 | case $ac_abs_builddir in |
| 1137 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1138 | *) |
| 1139 | case $ac_top_srcdir in |
| 1140 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1141 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1142 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1143 | esac;; |
| 1144 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 | |
| 1146 | cd $ac_dir |
| 1147 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1148 | if test -f $ac_srcdir/configure.gnu; then |
| 1149 | echo |
| 1150 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1151 | elif test -f $ac_srcdir/configure; then |
| 1152 | echo |
| 1153 | $SHELL $ac_srcdir/configure --help=recursive |
| 1154 | elif test -f $ac_srcdir/configure.ac || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1155 | test -f $ac_srcdir/configure.in; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 | echo |
| 1157 | $ac_configure --help |
| 1158 | else |
| 1159 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1160 | fi |
| 1161 | cd $ac_popdir |
| 1162 | done |
| 1163 | fi |
| 1164 | |
| 1165 | test -n "$ac_init_help" && exit 0 |
| 1166 | if $ac_init_version; then |
| 1167 | cat <<\_ACEOF |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 1168 | LLVM configure 1.4 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1169 | generated by GNU Autoconf 2.59 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1170 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1171 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 | This configure script is free software; the Free Software Foundation |
| 1173 | gives unlimited permission to copy, distribute and modify it. |
| 1174 | _ACEOF |
| 1175 | exit 0 |
| 1176 | fi |
| 1177 | exec 5>config.log |
| 1178 | cat >&5 <<_ACEOF |
| 1179 | This file contains any messages produced by compilers while |
| 1180 | running configure, to aid debugging if configure makes a mistake. |
| 1181 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 1182 | It was created by LLVM $as_me 1.4, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1183 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1184 | |
| 1185 | $ $0 $@ |
| 1186 | |
| 1187 | _ACEOF |
| 1188 | { |
| 1189 | cat <<_ASUNAME |
| 1190 | ## --------- ## |
| 1191 | ## Platform. ## |
| 1192 | ## --------- ## |
| 1193 | |
| 1194 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1195 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1196 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1197 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1198 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1199 | |
| 1200 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1201 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1202 | |
| 1203 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1204 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1205 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1206 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1207 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1208 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1209 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1210 | |
| 1211 | _ASUNAME |
| 1212 | |
| 1213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1214 | for as_dir in $PATH |
| 1215 | do |
| 1216 | IFS=$as_save_IFS |
| 1217 | test -z "$as_dir" && as_dir=. |
| 1218 | echo "PATH: $as_dir" |
| 1219 | done |
| 1220 | |
| 1221 | } >&5 |
| 1222 | |
| 1223 | cat >&5 <<_ACEOF |
| 1224 | |
| 1225 | |
| 1226 | ## ----------- ## |
| 1227 | ## Core tests. ## |
| 1228 | ## ----------- ## |
| 1229 | |
| 1230 | _ACEOF |
| 1231 | |
| 1232 | |
| 1233 | # Keep a trace of the command line. |
| 1234 | # 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] | 1235 | # 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] | 1236 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1237 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1238 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1239 | ac_configure_args0= |
| 1240 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1241 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1242 | ac_must_keep_next=false |
| 1243 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1244 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1245 | for ac_arg |
| 1246 | do |
| 1247 | case $ac_arg in |
| 1248 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1249 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1250 | | -silent | --silent | --silen | --sile | --sil) |
| 1251 | continue ;; |
| 1252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1253 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1254 | esac |
| 1255 | case $ac_pass in |
| 1256 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1257 | 2) |
| 1258 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1259 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1260 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1261 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1262 | case $ac_arg in |
| 1263 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1264 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1265 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1266 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1267 | case "$ac_configure_args0 " in |
| 1268 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1269 | esac |
| 1270 | ;; |
| 1271 | -* ) ac_must_keep_next=true ;; |
| 1272 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1273 | fi |
| 1274 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1275 | # Get rid of the leading space. |
| 1276 | ac_sep=" " |
| 1277 | ;; |
| 1278 | esac |
| 1279 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1281 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1282 | $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] | 1283 | |
| 1284 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1285 | # config.log. We remove comments because anyway the quotes in there |
| 1286 | # would cause problems or look ugly. |
| 1287 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1288 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1289 | trap 'exit_status=$? |
| 1290 | # Save into config.log some information that might help in debugging. |
| 1291 | { |
| 1292 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1293 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1294 | cat <<\_ASBOX |
| 1295 | ## ---------------- ## |
| 1296 | ## Cache variables. ## |
| 1297 | ## ---------------- ## |
| 1298 | _ASBOX |
| 1299 | echo |
| 1300 | # The following way of writing the cache mishandles newlines in values, |
| 1301 | { |
| 1302 | (set) 2>&1 | |
| 1303 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1304 | *ac_space=\ *) |
| 1305 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1306 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1307 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1308 | ;; |
| 1309 | *) |
| 1310 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 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 | esac; |
| 1314 | } |
| 1315 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1316 | |
| 1317 | cat <<\_ASBOX |
| 1318 | ## ----------------- ## |
| 1319 | ## Output variables. ## |
| 1320 | ## ----------------- ## |
| 1321 | _ASBOX |
| 1322 | echo |
| 1323 | for ac_var in $ac_subst_vars |
| 1324 | do |
| 1325 | eval ac_val=$`echo $ac_var` |
| 1326 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1327 | done | sort |
| 1328 | echo |
| 1329 | |
| 1330 | if test -n "$ac_subst_files"; then |
| 1331 | cat <<\_ASBOX |
| 1332 | ## ------------- ## |
| 1333 | ## Output files. ## |
| 1334 | ## ------------- ## |
| 1335 | _ASBOX |
| 1336 | echo |
| 1337 | for ac_var in $ac_subst_files |
| 1338 | do |
| 1339 | eval ac_val=$`echo $ac_var` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1340 | echo "$ac_var='"'"'$ac_val'"'"'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1341 | done | sort |
| 1342 | echo |
| 1343 | fi |
| 1344 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1345 | if test -s confdefs.h; then |
| 1346 | cat <<\_ASBOX |
| 1347 | ## ----------- ## |
| 1348 | ## confdefs.h. ## |
| 1349 | ## ----------- ## |
| 1350 | _ASBOX |
| 1351 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1352 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1353 | echo |
| 1354 | fi |
| 1355 | test "$ac_signal" != 0 && |
| 1356 | echo "$as_me: caught signal $ac_signal" |
| 1357 | echo "$as_me: exit $exit_status" |
| 1358 | } >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1359 | rm -f core *.core && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1360 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1361 | exit $exit_status |
| 1362 | ' 0 |
| 1363 | for ac_signal in 1 2 13 15; do |
| 1364 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1365 | done |
| 1366 | ac_signal=0 |
| 1367 | |
| 1368 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1369 | rm -rf conftest* confdefs.h |
| 1370 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1371 | echo >confdefs.h |
| 1372 | |
| 1373 | # Predefined preprocessor variables. |
| 1374 | |
| 1375 | cat >>confdefs.h <<_ACEOF |
| 1376 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1377 | _ACEOF |
| 1378 | |
| 1379 | |
| 1380 | cat >>confdefs.h <<_ACEOF |
| 1381 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1382 | _ACEOF |
| 1383 | |
| 1384 | |
| 1385 | cat >>confdefs.h <<_ACEOF |
| 1386 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1387 | _ACEOF |
| 1388 | |
| 1389 | |
| 1390 | cat >>confdefs.h <<_ACEOF |
| 1391 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1392 | _ACEOF |
| 1393 | |
| 1394 | |
| 1395 | cat >>confdefs.h <<_ACEOF |
| 1396 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1397 | _ACEOF |
| 1398 | |
| 1399 | |
| 1400 | # Let the site file select an alternate cache file if it wants to. |
| 1401 | # Prefer explicitly selected file to automatically selected ones. |
| 1402 | if test -z "$CONFIG_SITE"; then |
| 1403 | if test "x$prefix" != xNONE; then |
| 1404 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1405 | else |
| 1406 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1407 | fi |
| 1408 | fi |
| 1409 | for ac_site_file in $CONFIG_SITE; do |
| 1410 | if test -r "$ac_site_file"; then |
| 1411 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1412 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1413 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1414 | . "$ac_site_file" |
| 1415 | fi |
| 1416 | done |
| 1417 | |
| 1418 | if test -r "$cache_file"; then |
| 1419 | # Some versions of bash will fail to source /dev/null (special |
| 1420 | # files actually), so we avoid doing that. |
| 1421 | if test -f "$cache_file"; then |
| 1422 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1423 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1424 | case $cache_file in |
| 1425 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1426 | *) . ./$cache_file;; |
| 1427 | esac |
| 1428 | fi |
| 1429 | else |
| 1430 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1431 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1432 | >$cache_file |
| 1433 | fi |
| 1434 | |
| 1435 | # Check that the precious variables saved in the cache have kept the same |
| 1436 | # value. |
| 1437 | ac_cache_corrupted=false |
| 1438 | for ac_var in `(set) 2>&1 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1439 | 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] | 1440 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1441 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1442 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1443 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1444 | case $ac_old_set,$ac_new_set in |
| 1445 | set,) |
| 1446 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1447 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1448 | ac_cache_corrupted=: ;; |
| 1449 | ,set) |
| 1450 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1451 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1452 | ac_cache_corrupted=: ;; |
| 1453 | ,);; |
| 1454 | *) |
| 1455 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1456 | { 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] | 1457 | 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] | 1458 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1460 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1461 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1462 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 | fi;; |
| 1464 | esac |
| 1465 | # Pass precious variables to config.status. |
| 1466 | if test "$ac_new_set" = set; then |
| 1467 | case $ac_new_val in |
| 1468 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1469 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1470 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1471 | esac |
| 1472 | case " $ac_configure_args " in |
| 1473 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1474 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1475 | esac |
| 1476 | fi |
| 1477 | done |
| 1478 | if $ac_cache_corrupted; then |
| 1479 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1480 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1481 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1482 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1483 | { (exit 1); exit 1; }; } |
| 1484 | fi |
| 1485 | |
| 1486 | ac_ext=c |
| 1487 | ac_cpp='$CPP $CPPFLAGS' |
| 1488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1518 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1519 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1520 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | if test -f $ac_dir/install-sh; then |
| 1522 | ac_aux_dir=$ac_dir |
| 1523 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1524 | break |
| 1525 | elif test -f $ac_dir/install.sh; then |
| 1526 | ac_aux_dir=$ac_dir |
| 1527 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1528 | break |
| 1529 | elif test -f $ac_dir/shtool; then |
| 1530 | ac_aux_dir=$ac_dir |
| 1531 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1532 | break |
| 1533 | fi |
| 1534 | done |
| 1535 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1536 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1537 | 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] | 1538 | { (exit 1); exit 1; }; } |
| 1539 | fi |
| 1540 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1541 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1542 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1543 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1544 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1545 | |
| 1546 | if test ${srcdir} != "." ; then |
| 1547 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1548 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1549 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1550 | { (exit 1); exit 1; }; } |
John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1551 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1552 | fi |
| 1553 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1554 | for i in `ls ${srcdir}/projects` |
| 1555 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1556 | if test -d ${srcdir}/projects/${i} ; then |
| 1557 | case ${i} in |
| 1558 | "CVS") ;; |
| 1559 | "sample") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1560 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1561 | subdirs="$subdirs projects/sample" |
| 1562 | ;; |
| 1563 | "Stacker") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1564 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1565 | subdirs="$subdirs projects/Stacker" |
| 1566 | ;; |
| 1567 | "llvm-test") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1568 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1569 | subdirs="$subdirs projects/llvm-test" |
| 1570 | ;; |
| 1571 | "llvm-reopt") |
| 1572 | |
| 1573 | subdirs="$subdirs projects/llvm-reopt" |
| 1574 | ;; |
| 1575 | "llvm-gcc") |
| 1576 | |
| 1577 | subdirs="$subdirs projects/llvm-gcc" |
| 1578 | ;; |
| 1579 | "llvm-java") |
| 1580 | |
| 1581 | subdirs="$subdirs projects/llvm-java" |
| 1582 | ;; |
| 1583 | "llvm-tv") |
| 1584 | |
| 1585 | subdirs="$subdirs projects/llvm-tv" |
| 1586 | ;; |
| 1587 | "llvm-fefw") |
| 1588 | |
| 1589 | subdirs="$subdirs projects/llvm-fefw" |
| 1590 | ;; |
| 1591 | *) |
| 1592 | |
| 1593 | subdirs="$subdirs ${i}" |
| 1594 | ;; |
| 1595 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1596 | fi |
| 1597 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1598 | |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 1599 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1600 | |
John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1601 | |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 1602 | ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator" |
John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1603 | |
| 1604 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1605 | ac_config_commands="$ac_config_commands Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1606 | |
| 1607 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1608 | ac_config_commands="$ac_config_commands Makefile.common" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1609 | |
| 1610 | |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 1611 | ac_config_commands="$ac_config_commands examples/Makefile" |
| 1612 | |
| 1613 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1614 | ac_config_commands="$ac_config_commands lib/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1615 | |
| 1616 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1617 | ac_config_commands="$ac_config_commands runtime/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1618 | |
| 1619 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1620 | ac_config_commands="$ac_config_commands test/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1621 | |
| 1622 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1623 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1624 | |
| 1625 | |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 1626 | ac_config_commands="$ac_config_commands test/QMTest/llvm.py" |
| 1627 | |
| 1628 | |
| 1629 | ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" |
John Criswell | 08acb9b | 2003-09-16 02:12:45 +0000 | [diff] [blame] | 1630 | |
| 1631 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1632 | ac_config_commands="$ac_config_commands tools/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1633 | |
| 1634 | |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 1635 | ac_config_commands="$ac_config_commands utils/Makefile" |
| 1636 | |
| 1637 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1638 | ac_config_commands="$ac_config_commands projects/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1639 | |
| 1640 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1641 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1642 | # Find a good install program. We prefer a C program (faster), |
| 1643 | # so one script is as good as another. But avoid the broken or |
| 1644 | # incompatible versions: |
| 1645 | # SysV /etc/install, /usr/sbin/install |
| 1646 | # SunOS /usr/etc/install |
| 1647 | # IRIX /sbin/install |
| 1648 | # AIX /bin/install |
| 1649 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1650 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1651 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1652 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1653 | # OS/2's system install, which has a completely different semantic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1654 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1655 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1656 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1657 | if test -z "$INSTALL"; then |
| 1658 | if test "${ac_cv_path_install+set}" = set; then |
| 1659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1660 | else |
| 1661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1662 | for as_dir in $PATH |
| 1663 | do |
| 1664 | IFS=$as_save_IFS |
| 1665 | test -z "$as_dir" && as_dir=. |
| 1666 | # Account for people who put trailing slashes in PATH elements. |
| 1667 | case $as_dir/ in |
| 1668 | ./ | .// | /cC/* | \ |
| 1669 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1670 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1671 | /usr/ucb/* ) ;; |
| 1672 | *) |
| 1673 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1674 | # Don't use installbsd from OSF since it installs stuff as root |
| 1675 | # by default. |
| 1676 | for ac_prog in ginstall scoinst install; do |
| 1677 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1678 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1679 | if test $ac_prog = install && |
| 1680 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1681 | # AIX install. It has an incompatible calling convention. |
| 1682 | : |
| 1683 | elif test $ac_prog = install && |
| 1684 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1685 | # program-specific install script used by HP pwplus--don't use. |
| 1686 | : |
| 1687 | else |
| 1688 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1689 | break 3 |
| 1690 | fi |
| 1691 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | done |
| 1693 | done |
| 1694 | ;; |
| 1695 | esac |
| 1696 | done |
| 1697 | |
| 1698 | |
| 1699 | fi |
| 1700 | if test "${ac_cv_path_install+set}" = set; then |
| 1701 | INSTALL=$ac_cv_path_install |
| 1702 | else |
| 1703 | # As a last resort, use the slow shell script. We don't cache a |
| 1704 | # path for INSTALL within a source directory, because that will |
| 1705 | # break other packages using the cache if that directory is |
| 1706 | # removed, or if the path is relative. |
| 1707 | INSTALL=$ac_install_sh |
| 1708 | fi |
| 1709 | fi |
| 1710 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1711 | echo "${ECHO_T}$INSTALL" >&6 |
| 1712 | |
| 1713 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1714 | # It thinks the first close brace ends the variable substitution. |
| 1715 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1716 | |
| 1717 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1718 | |
| 1719 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1720 | |
| 1721 | |
| 1722 | # Make sure we can run config.sub. |
| 1723 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1724 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1725 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1726 | { (exit 1); exit 1; }; } |
| 1727 | |
| 1728 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1729 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1730 | if test "${ac_cv_build+set}" = set; then |
| 1731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1732 | else |
| 1733 | ac_cv_build_alias=$build_alias |
| 1734 | test -z "$ac_cv_build_alias" && |
| 1735 | ac_cv_build_alias=`$ac_config_guess` |
| 1736 | test -z "$ac_cv_build_alias" && |
| 1737 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1738 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1739 | { (exit 1); exit 1; }; } |
| 1740 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1741 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1742 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1743 | { (exit 1); exit 1; }; } |
| 1744 | |
| 1745 | fi |
| 1746 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1747 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1748 | build=$ac_cv_build |
| 1749 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1750 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1751 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1752 | |
| 1753 | |
| 1754 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1755 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1756 | if test "${ac_cv_host+set}" = set; then |
| 1757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1758 | else |
| 1759 | ac_cv_host_alias=$host_alias |
| 1760 | test -z "$ac_cv_host_alias" && |
| 1761 | ac_cv_host_alias=$ac_cv_build_alias |
| 1762 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1763 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1764 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1765 | { (exit 1); exit 1; }; } |
| 1766 | |
| 1767 | fi |
| 1768 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1769 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1770 | host=$ac_cv_host |
| 1771 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1772 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1773 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1774 | |
| 1775 | |
| 1776 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1777 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1778 | if test "${ac_cv_target+set}" = set; then |
| 1779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1780 | else |
| 1781 | ac_cv_target_alias=$target_alias |
| 1782 | test "x$ac_cv_target_alias" = "x" && |
| 1783 | ac_cv_target_alias=$ac_cv_host_alias |
| 1784 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1785 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1786 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1787 | { (exit 1); exit 1; }; } |
| 1788 | |
| 1789 | fi |
| 1790 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1791 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1792 | target=$ac_cv_target |
| 1793 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1794 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1795 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1796 | |
| 1797 | |
| 1798 | # The aliases save the names the user supplied, while $host etc. |
| 1799 | # will get canonicalized. |
| 1800 | test -n "$target_alias" && |
| 1801 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1802 | NONENONEs,x,x, && |
| 1803 | program_prefix=${target_alias}- |
| 1804 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1805 | |
| 1806 | echo "$as_me:$LINENO: checking support for generic build operating system" >&5 |
| 1807 | echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1808 | case $build in |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1809 | *-*-aix*) |
| 1810 | OS=AIX |
| 1811 | |
| 1812 | platform_type="AIX" |
| 1813 | ;; |
| 1814 | *-*-cygwin*) |
| 1815 | OS=Cygwin |
| 1816 | |
| 1817 | platform_type="Cygwin" |
| 1818 | ;; |
| 1819 | *-*-darwin*) |
| 1820 | OS=Darwin |
| 1821 | |
| 1822 | platform_type="Darwin" |
| 1823 | ;; |
| 1824 | *-*-freebsd*) |
| 1825 | OS=Linux |
| 1826 | |
Reid Spencer | a11e4db | 2004-08-31 18:03:23 +0000 | [diff] [blame] | 1827 | platform_type="FreeBSD" |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1828 | ;; |
| 1829 | *-*-interix*) |
| 1830 | OS=SunOS |
| 1831 | |
Reid Spencer | a11e4db | 2004-08-31 18:03:23 +0000 | [diff] [blame] | 1832 | platform_type="Interix" |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1833 | ;; |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1834 | *-*-linux*) |
| 1835 | OS=Linux |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1836 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1837 | platform_type="Linux" |
| 1838 | if test -d /home/vadve/lattner/local/x86/llvm-gcc |
| 1839 | then |
| 1840 | LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1841 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1842 | fi |
| 1843 | ;; |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1844 | *-*-solaris*) |
| 1845 | OS=SunOS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1846 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1847 | platform_type="SunOS" |
| 1848 | if test -d /home/vadve/lattner/local/sparc/llvm-gcc |
| 1849 | then |
| 1850 | LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1851 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1852 | fi |
| 1853 | ;; |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1854 | *-*-win32*) |
| 1855 | OS=Win32 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1856 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1857 | platform_type="Win32" |
| 1858 | ;; |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 1859 | *-*-mingw*) |
| 1860 | OS=Win32 |
| 1861 | |
| 1862 | platform_type="Win32" |
| 1863 | ;; |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1864 | *) |
| 1865 | OS=Unknown |
| 1866 | |
| 1867 | platform_type="Unknown" |
| 1868 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1869 | esac |
| 1870 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1871 | if test "$platform_type" = "Unknown" ; then |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1872 | { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5 |
| 1873 | echo "$as_me: error: Platform is unknown, configure can't continue" >&2;} |
| 1874 | { (exit 1); exit 1; }; } |
| 1875 | fi |
| 1876 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1877 | ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type" |
| 1878 | |
| 1879 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1880 | |
| 1881 | echo "$as_me:$LINENO: checking target architecture" >&5 |
| 1882 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1883 | case $target in |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1884 | sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1885 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1886 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1887 | esac |
| 1888 | |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1889 | case $target in |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1890 | i*86-*) |
| 1891 | ARCH="x86" |
| 1892 | ARCH=x86 |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1893 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1894 | ;; |
| 1895 | sparc*-*) |
| 1896 | ARCH="Sparc" |
| 1897 | ARCH=Sparc |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1898 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1899 | ;; |
| 1900 | powerpc*-*) |
| 1901 | ARCH="PowerPC" |
| 1902 | ARCH=PowerPC |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1903 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1904 | ;; |
| 1905 | *) |
| 1906 | ARCH="Unknown" |
| 1907 | ARCH=Unknown |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1908 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1909 | ;; |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1910 | esac |
| 1911 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1912 | echo "$as_me:$LINENO: result: $ARCH" >&5 |
| 1913 | echo "${ECHO_T}$ARCH" >&6 |
| 1914 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1915 | ac_ext=cc |
| 1916 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 1917 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1918 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1919 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1920 | if test -n "$ac_tool_prefix"; then |
| 1921 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1922 | do |
| 1923 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1924 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1925 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1927 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1929 | else |
| 1930 | if test -n "$CXX"; then |
| 1931 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1932 | else |
| 1933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1934 | for as_dir in $PATH |
| 1935 | do |
| 1936 | IFS=$as_save_IFS |
| 1937 | test -z "$as_dir" && as_dir=. |
| 1938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1940 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 1941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1942 | break 2 |
| 1943 | fi |
| 1944 | done |
| 1945 | done |
| 1946 | |
| 1947 | fi |
| 1948 | fi |
| 1949 | CXX=$ac_cv_prog_CXX |
| 1950 | if test -n "$CXX"; then |
| 1951 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1952 | echo "${ECHO_T}$CXX" >&6 |
| 1953 | else |
| 1954 | echo "$as_me:$LINENO: result: no" >&5 |
| 1955 | echo "${ECHO_T}no" >&6 |
| 1956 | fi |
| 1957 | |
| 1958 | test -n "$CXX" && break |
| 1959 | done |
| 1960 | fi |
| 1961 | if test -z "$CXX"; then |
| 1962 | ac_ct_CXX=$CXX |
| 1963 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 1964 | do |
| 1965 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1966 | set dummy $ac_prog; ac_word=$2 |
| 1967 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1969 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 1970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1971 | else |
| 1972 | if test -n "$ac_ct_CXX"; then |
| 1973 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 1974 | else |
| 1975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1976 | for as_dir in $PATH |
| 1977 | do |
| 1978 | IFS=$as_save_IFS |
| 1979 | test -z "$as_dir" && as_dir=. |
| 1980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1982 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 1983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1984 | break 2 |
| 1985 | fi |
| 1986 | done |
| 1987 | done |
| 1988 | |
| 1989 | fi |
| 1990 | fi |
| 1991 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 1992 | if test -n "$ac_ct_CXX"; then |
| 1993 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 1994 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 1995 | else |
| 1996 | echo "$as_me:$LINENO: result: no" >&5 |
| 1997 | echo "${ECHO_T}no" >&6 |
| 1998 | fi |
| 1999 | |
| 2000 | test -n "$ac_ct_CXX" && break |
| 2001 | done |
| 2002 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2003 | |
| 2004 | CXX=$ac_ct_CXX |
| 2005 | fi |
| 2006 | |
| 2007 | |
| 2008 | # Provide some information about the compiler. |
| 2009 | echo "$as_me:$LINENO:" \ |
| 2010 | "checking for C++ compiler version" >&5 |
| 2011 | ac_compiler=`set X $ac_compile; echo $2` |
| 2012 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2013 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2014 | ac_status=$? |
| 2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2016 | (exit $ac_status); } |
| 2017 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2018 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2019 | ac_status=$? |
| 2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2021 | (exit $ac_status); } |
| 2022 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2023 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2024 | ac_status=$? |
| 2025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2026 | (exit $ac_status); } |
| 2027 | |
| 2028 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2029 | /* confdefs.h. */ |
| 2030 | _ACEOF |
| 2031 | cat confdefs.h >>conftest.$ac_ext |
| 2032 | cat >>conftest.$ac_ext <<_ACEOF |
| 2033 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2034 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2035 | int |
| 2036 | main () |
| 2037 | { |
| 2038 | |
| 2039 | ; |
| 2040 | return 0; |
| 2041 | } |
| 2042 | _ACEOF |
| 2043 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2044 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2045 | # Try to create an executable without -o first, disregard a.out. |
| 2046 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2047 | # of exeext. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2048 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 2049 | 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] | 2050 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2051 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2052 | (eval $ac_link_default) 2>&5 |
| 2053 | ac_status=$? |
| 2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2055 | (exit $ac_status); }; then |
| 2056 | # Find the output, starting from the most likely. This scheme is |
| 2057 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2058 | # resort. |
| 2059 | |
| 2060 | # Be careful to initialize this variable, since it used to be cached. |
| 2061 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2062 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2063 | # b.out is created by i960 compilers. |
| 2064 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2065 | do |
| 2066 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2067 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2068 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2069 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2070 | conftest.$ac_ext ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2071 | # This is the source file. |
| 2072 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2073 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2074 | # We found the default executable, but exeext='' is most |
| 2075 | # certainly right. |
| 2076 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2077 | *.* ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2078 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2079 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2080 | # but it would be cool to find out if it's true. Does anybody |
| 2081 | # maintain Libtool? --akim. |
| 2082 | export ac_cv_exeext |
| 2083 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2084 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2085 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2086 | esac |
| 2087 | done |
| 2088 | else |
| 2089 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2091 | |
| 2092 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 2093 | See \`config.log' for more details." >&5 |
| 2094 | echo "$as_me: error: C++ compiler cannot create executables |
| 2095 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2096 | { (exit 77); exit 77; }; } |
| 2097 | fi |
| 2098 | |
| 2099 | ac_exeext=$ac_cv_exeext |
| 2100 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2101 | echo "${ECHO_T}$ac_file" >&6 |
| 2102 | |
| 2103 | # Check the compiler produces executables we can run. If not, either |
| 2104 | # the compiler is broken, or we cross compile. |
| 2105 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 2106 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 2107 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2108 | # If not cross compiling, check that we can run a simple program. |
| 2109 | if test "$cross_compiling" != yes; then |
| 2110 | if { ac_try='./$ac_file' |
| 2111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2112 | (eval $ac_try) 2>&5 |
| 2113 | ac_status=$? |
| 2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2115 | (exit $ac_status); }; }; then |
| 2116 | cross_compiling=no |
| 2117 | else |
| 2118 | if test "$cross_compiling" = maybe; then |
| 2119 | cross_compiling=yes |
| 2120 | else |
| 2121 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2122 | If you meant to cross compile, use \`--host'. |
| 2123 | See \`config.log' for more details." >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2124 | echo "$as_me: error: cannot run C++ compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2125 | If you meant to cross compile, use \`--host'. |
| 2126 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2127 | { (exit 1); exit 1; }; } |
| 2128 | fi |
| 2129 | fi |
| 2130 | fi |
| 2131 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2132 | echo "${ECHO_T}yes" >&6 |
| 2133 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2134 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2135 | ac_clean_files=$ac_clean_files_save |
| 2136 | # Check the compiler produces executables we can run. If not, either |
| 2137 | # the compiler is broken, or we cross compile. |
| 2138 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2139 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2140 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2141 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2142 | |
| 2143 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2144 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2146 | (eval $ac_link) 2>&5 |
| 2147 | ac_status=$? |
| 2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2149 | (exit $ac_status); }; then |
| 2150 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2151 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2152 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2153 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2154 | for ac_file in conftest.exe conftest conftest.*; do |
| 2155 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2156 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2157 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2158 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2159 | export ac_cv_exeext |
| 2160 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2161 | * ) break;; |
| 2162 | esac |
| 2163 | done |
| 2164 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2165 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2166 | See \`config.log' for more details." >&5 |
| 2167 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2168 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2169 | { (exit 1); exit 1; }; } |
| 2170 | fi |
| 2171 | |
| 2172 | rm -f conftest$ac_cv_exeext |
| 2173 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2174 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2175 | |
| 2176 | rm -f conftest.$ac_ext |
| 2177 | EXEEXT=$ac_cv_exeext |
| 2178 | ac_exeext=$EXEEXT |
| 2179 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2180 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2181 | if test "${ac_cv_objext+set}" = set; then |
| 2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2183 | else |
| 2184 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2185 | /* confdefs.h. */ |
| 2186 | _ACEOF |
| 2187 | cat confdefs.h >>conftest.$ac_ext |
| 2188 | cat >>conftest.$ac_ext <<_ACEOF |
| 2189 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2190 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2191 | int |
| 2192 | main () |
| 2193 | { |
| 2194 | |
| 2195 | ; |
| 2196 | return 0; |
| 2197 | } |
| 2198 | _ACEOF |
| 2199 | rm -f conftest.o conftest.obj |
| 2200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2201 | (eval $ac_compile) 2>&5 |
| 2202 | ac_status=$? |
| 2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2204 | (exit $ac_status); }; then |
| 2205 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2206 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2207 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2208 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2209 | break;; |
| 2210 | esac |
| 2211 | done |
| 2212 | else |
| 2213 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2215 | |
| 2216 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2217 | See \`config.log' for more details." >&5 |
| 2218 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2219 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2220 | { (exit 1); exit 1; }; } |
| 2221 | fi |
| 2222 | |
| 2223 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2224 | fi |
| 2225 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2226 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2227 | OBJEXT=$ac_cv_objext |
| 2228 | ac_objext=$OBJEXT |
| 2229 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2230 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2231 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2233 | else |
| 2234 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2235 | /* confdefs.h. */ |
| 2236 | _ACEOF |
| 2237 | cat confdefs.h >>conftest.$ac_ext |
| 2238 | cat >>conftest.$ac_ext <<_ACEOF |
| 2239 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2240 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2241 | int |
| 2242 | main () |
| 2243 | { |
| 2244 | #ifndef __GNUC__ |
| 2245 | choke me |
| 2246 | #endif |
| 2247 | |
| 2248 | ; |
| 2249 | return 0; |
| 2250 | } |
| 2251 | _ACEOF |
| 2252 | rm -f conftest.$ac_objext |
| 2253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2254 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2255 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2257 | rm -f conftest.er1 |
| 2258 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2260 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2261 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2262 | || test ! -s conftest.err' |
| 2263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2264 | (eval $ac_try) 2>&5 |
| 2265 | ac_status=$? |
| 2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2267 | (exit $ac_status); }; } && |
| 2268 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2270 | (eval $ac_try) 2>&5 |
| 2271 | ac_status=$? |
| 2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2273 | (exit $ac_status); }; }; then |
| 2274 | ac_compiler_gnu=yes |
| 2275 | else |
| 2276 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2278 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2279 | ac_compiler_gnu=no |
| 2280 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2282 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2283 | |
| 2284 | fi |
| 2285 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2286 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2287 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2288 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2289 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2290 | CXXFLAGS="-g" |
| 2291 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2292 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2293 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2295 | else |
| 2296 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2297 | /* confdefs.h. */ |
| 2298 | _ACEOF |
| 2299 | cat confdefs.h >>conftest.$ac_ext |
| 2300 | cat >>conftest.$ac_ext <<_ACEOF |
| 2301 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2303 | int |
| 2304 | main () |
| 2305 | { |
| 2306 | |
| 2307 | ; |
| 2308 | return 0; |
| 2309 | } |
| 2310 | _ACEOF |
| 2311 | rm -f conftest.$ac_objext |
| 2312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2313 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2314 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2316 | rm -f conftest.er1 |
| 2317 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2319 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2320 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2321 | || test ! -s conftest.err' |
| 2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2323 | (eval $ac_try) 2>&5 |
| 2324 | ac_status=$? |
| 2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2326 | (exit $ac_status); }; } && |
| 2327 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2329 | (eval $ac_try) 2>&5 |
| 2330 | ac_status=$? |
| 2331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2332 | (exit $ac_status); }; }; then |
| 2333 | ac_cv_prog_cxx_g=yes |
| 2334 | else |
| 2335 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2337 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2338 | ac_cv_prog_cxx_g=no |
| 2339 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2341 | fi |
| 2342 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2343 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2344 | if test "$ac_test_CXXFLAGS" = set; then |
| 2345 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2346 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2347 | if test "$GXX" = yes; then |
| 2348 | CXXFLAGS="-g -O2" |
| 2349 | else |
| 2350 | CXXFLAGS="-g" |
| 2351 | fi |
| 2352 | else |
| 2353 | if test "$GXX" = yes; then |
| 2354 | CXXFLAGS="-O2" |
| 2355 | else |
| 2356 | CXXFLAGS= |
| 2357 | fi |
| 2358 | fi |
| 2359 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2360 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2361 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2362 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2363 | 'extern "C" void exit (int) throw ();' \ |
| 2364 | 'extern "C" void exit (int);' \ |
| 2365 | 'void exit (int);' |
| 2366 | do |
| 2367 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2368 | /* confdefs.h. */ |
| 2369 | _ACEOF |
| 2370 | cat confdefs.h >>conftest.$ac_ext |
| 2371 | cat >>conftest.$ac_ext <<_ACEOF |
| 2372 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2373 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2374 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2375 | int |
| 2376 | main () |
| 2377 | { |
| 2378 | exit (42); |
| 2379 | ; |
| 2380 | return 0; |
| 2381 | } |
| 2382 | _ACEOF |
| 2383 | rm -f conftest.$ac_objext |
| 2384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2385 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2386 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2388 | rm -f conftest.er1 |
| 2389 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2391 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2392 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2393 | || test ! -s conftest.err' |
| 2394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2395 | (eval $ac_try) 2>&5 |
| 2396 | ac_status=$? |
| 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2398 | (exit $ac_status); }; } && |
| 2399 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2401 | (eval $ac_try) 2>&5 |
| 2402 | ac_status=$? |
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2404 | (exit $ac_status); }; }; then |
| 2405 | : |
| 2406 | else |
| 2407 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2409 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2410 | continue |
| 2411 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2413 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2414 | /* confdefs.h. */ |
| 2415 | _ACEOF |
| 2416 | cat confdefs.h >>conftest.$ac_ext |
| 2417 | cat >>conftest.$ac_ext <<_ACEOF |
| 2418 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2419 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2420 | int |
| 2421 | main () |
| 2422 | { |
| 2423 | exit (42); |
| 2424 | ; |
| 2425 | return 0; |
| 2426 | } |
| 2427 | _ACEOF |
| 2428 | rm -f conftest.$ac_objext |
| 2429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2430 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2431 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2433 | rm -f conftest.er1 |
| 2434 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2437 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2438 | || test ! -s conftest.err' |
| 2439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2440 | (eval $ac_try) 2>&5 |
| 2441 | ac_status=$? |
| 2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2443 | (exit $ac_status); }; } && |
| 2444 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2446 | (eval $ac_try) 2>&5 |
| 2447 | ac_status=$? |
| 2448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2449 | (exit $ac_status); }; }; then |
| 2450 | break |
| 2451 | else |
| 2452 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2454 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2455 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2457 | done |
| 2458 | rm -f conftest* |
| 2459 | if test -n "$ac_declaration"; then |
| 2460 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2461 | echo $ac_declaration >>confdefs.h |
| 2462 | echo '#endif' >>confdefs.h |
| 2463 | fi |
| 2464 | |
| 2465 | ac_ext=c |
| 2466 | ac_cpp='$CPP $CPPFLAGS' |
| 2467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2470 | |
| 2471 | ac_ext=c |
| 2472 | ac_cpp='$CPP $CPPFLAGS' |
| 2473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2476 | if test -n "$ac_tool_prefix"; then |
| 2477 | for ac_prog in gcc |
| 2478 | do |
| 2479 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2480 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2483 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2485 | else |
| 2486 | if test -n "$CC"; then |
| 2487 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2488 | else |
| 2489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2490 | for as_dir in $PATH |
| 2491 | do |
| 2492 | IFS=$as_save_IFS |
| 2493 | test -z "$as_dir" && as_dir=. |
| 2494 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2496 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2498 | break 2 |
| 2499 | fi |
| 2500 | done |
| 2501 | done |
| 2502 | |
| 2503 | fi |
| 2504 | fi |
| 2505 | CC=$ac_cv_prog_CC |
| 2506 | if test -n "$CC"; then |
| 2507 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2508 | echo "${ECHO_T}$CC" >&6 |
| 2509 | else |
| 2510 | echo "$as_me:$LINENO: result: no" >&5 |
| 2511 | echo "${ECHO_T}no" >&6 |
| 2512 | fi |
| 2513 | |
| 2514 | test -n "$CC" && break |
| 2515 | done |
| 2516 | fi |
| 2517 | if test -z "$CC"; then |
| 2518 | ac_ct_CC=$CC |
| 2519 | for ac_prog in gcc |
| 2520 | do |
| 2521 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2522 | set dummy $ac_prog; ac_word=$2 |
| 2523 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2525 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2527 | else |
| 2528 | if test -n "$ac_ct_CC"; then |
| 2529 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2530 | else |
| 2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2532 | for as_dir in $PATH |
| 2533 | do |
| 2534 | IFS=$as_save_IFS |
| 2535 | test -z "$as_dir" && as_dir=. |
| 2536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2537 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2538 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2539 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2540 | break 2 |
| 2541 | fi |
| 2542 | done |
| 2543 | done |
| 2544 | |
| 2545 | fi |
| 2546 | fi |
| 2547 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2548 | if test -n "$ac_ct_CC"; then |
| 2549 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2550 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2551 | else |
| 2552 | echo "$as_me:$LINENO: result: no" >&5 |
| 2553 | echo "${ECHO_T}no" >&6 |
| 2554 | fi |
| 2555 | |
| 2556 | test -n "$ac_ct_CC" && break |
| 2557 | done |
| 2558 | |
| 2559 | CC=$ac_ct_CC |
| 2560 | fi |
| 2561 | |
| 2562 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2563 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2564 | See \`config.log' for more details." >&5 |
| 2565 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2566 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2567 | { (exit 1); exit 1; }; } |
| 2568 | |
| 2569 | # Provide some information about the compiler. |
| 2570 | echo "$as_me:$LINENO:" \ |
| 2571 | "checking for C compiler version" >&5 |
| 2572 | ac_compiler=`set X $ac_compile; echo $2` |
| 2573 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2574 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2575 | ac_status=$? |
| 2576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2577 | (exit $ac_status); } |
| 2578 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2579 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2580 | ac_status=$? |
| 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2582 | (exit $ac_status); } |
| 2583 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2584 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2585 | ac_status=$? |
| 2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2587 | (exit $ac_status); } |
| 2588 | |
| 2589 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2590 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2591 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2593 | else |
| 2594 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2595 | /* confdefs.h. */ |
| 2596 | _ACEOF |
| 2597 | cat confdefs.h >>conftest.$ac_ext |
| 2598 | cat >>conftest.$ac_ext <<_ACEOF |
| 2599 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2601 | int |
| 2602 | main () |
| 2603 | { |
| 2604 | #ifndef __GNUC__ |
| 2605 | choke me |
| 2606 | #endif |
| 2607 | |
| 2608 | ; |
| 2609 | return 0; |
| 2610 | } |
| 2611 | _ACEOF |
| 2612 | rm -f conftest.$ac_objext |
| 2613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2614 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2615 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2617 | rm -f conftest.er1 |
| 2618 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2620 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2621 | { ac_try='test -z "$ac_c_werror_flag" |
| 2622 | || test ! -s conftest.err' |
| 2623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2624 | (eval $ac_try) 2>&5 |
| 2625 | ac_status=$? |
| 2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2627 | (exit $ac_status); }; } && |
| 2628 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2630 | (eval $ac_try) 2>&5 |
| 2631 | ac_status=$? |
| 2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2633 | (exit $ac_status); }; }; then |
| 2634 | ac_compiler_gnu=yes |
| 2635 | else |
| 2636 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2638 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2639 | ac_compiler_gnu=no |
| 2640 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2642 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2643 | |
| 2644 | fi |
| 2645 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2646 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2647 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2648 | ac_test_CFLAGS=${CFLAGS+set} |
| 2649 | ac_save_CFLAGS=$CFLAGS |
| 2650 | CFLAGS="-g" |
| 2651 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2652 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2653 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2655 | else |
| 2656 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2657 | /* confdefs.h. */ |
| 2658 | _ACEOF |
| 2659 | cat confdefs.h >>conftest.$ac_ext |
| 2660 | cat >>conftest.$ac_ext <<_ACEOF |
| 2661 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | int |
| 2664 | main () |
| 2665 | { |
| 2666 | |
| 2667 | ; |
| 2668 | return 0; |
| 2669 | } |
| 2670 | _ACEOF |
| 2671 | rm -f conftest.$ac_objext |
| 2672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2673 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2674 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2676 | rm -f conftest.er1 |
| 2677 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2679 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2680 | { ac_try='test -z "$ac_c_werror_flag" |
| 2681 | || test ! -s conftest.err' |
| 2682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2683 | (eval $ac_try) 2>&5 |
| 2684 | ac_status=$? |
| 2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2686 | (exit $ac_status); }; } && |
| 2687 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2689 | (eval $ac_try) 2>&5 |
| 2690 | ac_status=$? |
| 2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2692 | (exit $ac_status); }; }; then |
| 2693 | ac_cv_prog_cc_g=yes |
| 2694 | else |
| 2695 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2697 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2698 | ac_cv_prog_cc_g=no |
| 2699 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2701 | fi |
| 2702 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2703 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2704 | if test "$ac_test_CFLAGS" = set; then |
| 2705 | CFLAGS=$ac_save_CFLAGS |
| 2706 | elif test $ac_cv_prog_cc_g = yes; then |
| 2707 | if test "$GCC" = yes; then |
| 2708 | CFLAGS="-g -O2" |
| 2709 | else |
| 2710 | CFLAGS="-g" |
| 2711 | fi |
| 2712 | else |
| 2713 | if test "$GCC" = yes; then |
| 2714 | CFLAGS="-O2" |
| 2715 | else |
| 2716 | CFLAGS= |
| 2717 | fi |
| 2718 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2719 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2720 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2721 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2723 | else |
| 2724 | ac_cv_prog_cc_stdc=no |
| 2725 | ac_save_CC=$CC |
| 2726 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2727 | /* confdefs.h. */ |
| 2728 | _ACEOF |
| 2729 | cat confdefs.h >>conftest.$ac_ext |
| 2730 | cat >>conftest.$ac_ext <<_ACEOF |
| 2731 | /* end confdefs.h. */ |
| 2732 | #include <stdarg.h> |
| 2733 | #include <stdio.h> |
| 2734 | #include <sys/types.h> |
| 2735 | #include <sys/stat.h> |
| 2736 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2737 | struct buf { int x; }; |
| 2738 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2739 | static char *e (p, i) |
| 2740 | char **p; |
| 2741 | int i; |
| 2742 | { |
| 2743 | return p[i]; |
| 2744 | } |
| 2745 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2746 | { |
| 2747 | char *s; |
| 2748 | va_list v; |
| 2749 | va_start (v,p); |
| 2750 | s = g (p, va_arg (v,int)); |
| 2751 | va_end (v); |
| 2752 | return s; |
| 2753 | } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2754 | |
| 2755 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2756 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2757 | These don't provoke an error unfortunately, instead are silently treated |
| 2758 | as 'x'. The following induces an error, until -std1 is added to get |
| 2759 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2760 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2761 | that's true only with -std1. */ |
| 2762 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2763 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2764 | int test (int i, double x); |
| 2765 | struct s1 {int (*f) (int a);}; |
| 2766 | struct s2 {int (*f) (double a);}; |
| 2767 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2768 | int argc; |
| 2769 | char **argv; |
| 2770 | int |
| 2771 | main () |
| 2772 | { |
| 2773 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2774 | ; |
| 2775 | return 0; |
| 2776 | } |
| 2777 | _ACEOF |
| 2778 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2779 | # breaks some systems' header files. |
| 2780 | # AIX -qlanglvl=ansi |
| 2781 | # Ultrix and OSF/1 -std1 |
| 2782 | # HP-UX 10.20 and later -Ae |
| 2783 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2784 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2785 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2786 | do |
| 2787 | CC="$ac_save_CC $ac_arg" |
| 2788 | rm -f conftest.$ac_objext |
| 2789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2790 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2791 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2793 | rm -f conftest.er1 |
| 2794 | cat conftest.err >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2797 | { ac_try='test -z "$ac_c_werror_flag" |
| 2798 | || test ! -s conftest.err' |
| 2799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2800 | (eval $ac_try) 2>&5 |
| 2801 | ac_status=$? |
| 2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2803 | (exit $ac_status); }; } && |
| 2804 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2806 | (eval $ac_try) 2>&5 |
| 2807 | ac_status=$? |
| 2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2809 | (exit $ac_status); }; }; then |
| 2810 | ac_cv_prog_cc_stdc=$ac_arg |
| 2811 | break |
| 2812 | else |
| 2813 | echo "$as_me: failed program was:" >&5 |
| 2814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2815 | |
| 2816 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2817 | rm -f conftest.err conftest.$ac_objext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2818 | done |
| 2819 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2820 | CC=$ac_save_CC |
| 2821 | |
| 2822 | fi |
| 2823 | |
| 2824 | case "x$ac_cv_prog_cc_stdc" in |
| 2825 | x|xno) |
| 2826 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2827 | echo "${ECHO_T}none needed" >&6 ;; |
| 2828 | *) |
| 2829 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2830 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2831 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2832 | esac |
| 2833 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2834 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2835 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2836 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2837 | # the declaration of exit, since it's the most demanding environment. |
| 2838 | cat >conftest.$ac_ext <<_ACEOF |
| 2839 | #ifndef __cplusplus |
| 2840 | choke me |
| 2841 | #endif |
| 2842 | _ACEOF |
| 2843 | rm -f conftest.$ac_objext |
| 2844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2845 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2846 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2848 | rm -f conftest.er1 |
| 2849 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2851 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2852 | { ac_try='test -z "$ac_c_werror_flag" |
| 2853 | || test ! -s conftest.err' |
| 2854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2855 | (eval $ac_try) 2>&5 |
| 2856 | ac_status=$? |
| 2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2858 | (exit $ac_status); }; } && |
| 2859 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2861 | (eval $ac_try) 2>&5 |
| 2862 | ac_status=$? |
| 2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2864 | (exit $ac_status); }; }; then |
| 2865 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2866 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2867 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2868 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2869 | 'extern "C" void exit (int) throw ();' \ |
| 2870 | 'extern "C" void exit (int);' \ |
| 2871 | 'void exit (int);' |
| 2872 | do |
| 2873 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2874 | /* confdefs.h. */ |
| 2875 | _ACEOF |
| 2876 | cat confdefs.h >>conftest.$ac_ext |
| 2877 | cat >>conftest.$ac_ext <<_ACEOF |
| 2878 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2879 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2880 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2881 | int |
| 2882 | main () |
| 2883 | { |
| 2884 | exit (42); |
| 2885 | ; |
| 2886 | return 0; |
| 2887 | } |
| 2888 | _ACEOF |
| 2889 | rm -f conftest.$ac_objext |
| 2890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2891 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2894 | rm -f conftest.er1 |
| 2895 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2897 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2898 | { ac_try='test -z "$ac_c_werror_flag" |
| 2899 | || test ! -s conftest.err' |
| 2900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2901 | (eval $ac_try) 2>&5 |
| 2902 | ac_status=$? |
| 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2904 | (exit $ac_status); }; } && |
| 2905 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2907 | (eval $ac_try) 2>&5 |
| 2908 | ac_status=$? |
| 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2910 | (exit $ac_status); }; }; then |
| 2911 | : |
| 2912 | else |
| 2913 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2915 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2916 | continue |
| 2917 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2919 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2920 | /* confdefs.h. */ |
| 2921 | _ACEOF |
| 2922 | cat confdefs.h >>conftest.$ac_ext |
| 2923 | cat >>conftest.$ac_ext <<_ACEOF |
| 2924 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2925 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | int |
| 2927 | main () |
| 2928 | { |
| 2929 | exit (42); |
| 2930 | ; |
| 2931 | return 0; |
| 2932 | } |
| 2933 | _ACEOF |
| 2934 | rm -f conftest.$ac_objext |
| 2935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2936 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2937 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2939 | rm -f conftest.er1 |
| 2940 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2942 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2943 | { ac_try='test -z "$ac_c_werror_flag" |
| 2944 | || test ! -s conftest.err' |
| 2945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2946 | (eval $ac_try) 2>&5 |
| 2947 | ac_status=$? |
| 2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2949 | (exit $ac_status); }; } && |
| 2950 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2952 | (eval $ac_try) 2>&5 |
| 2953 | ac_status=$? |
| 2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2955 | (exit $ac_status); }; }; then |
| 2956 | break |
| 2957 | else |
| 2958 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2960 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2961 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2963 | done |
| 2964 | rm -f conftest* |
| 2965 | if test -n "$ac_declaration"; then |
| 2966 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2967 | echo $ac_declaration >>confdefs.h |
| 2968 | echo '#endif' >>confdefs.h |
| 2969 | fi |
| 2970 | |
| 2971 | else |
| 2972 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2974 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2975 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2977 | ac_ext=c |
| 2978 | ac_cpp='$CPP $CPPFLAGS' |
| 2979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2982 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2983 | if test "$GCC" != "yes" |
| 2984 | then |
| 2985 | { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 |
| 2986 | echo "$as_me: error: gcc required but not found" >&2;} |
| 2987 | { (exit 1); exit 1; }; } |
| 2988 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2989 | ac_ext=c |
| 2990 | ac_cpp='$CPP $CPPFLAGS' |
| 2991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2994 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2995 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2996 | # On Suns, sometimes $CPP names a directory. |
| 2997 | if test -n "$CPP" && test -d "$CPP"; then |
| 2998 | CPP= |
| 2999 | fi |
| 3000 | if test -z "$CPP"; then |
| 3001 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3003 | else |
| 3004 | # Double quotes because CPP needs to be expanded |
| 3005 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3006 | do |
| 3007 | ac_preproc_ok=false |
| 3008 | for ac_c_preproc_warn_flag in '' yes |
| 3009 | do |
| 3010 | # Use a header file that comes with gcc, so configuring glibc |
| 3011 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3012 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3013 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3014 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3015 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3016 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3017 | /* confdefs.h. */ |
| 3018 | _ACEOF |
| 3019 | cat confdefs.h >>conftest.$ac_ext |
| 3020 | cat >>conftest.$ac_ext <<_ACEOF |
| 3021 | /* end confdefs.h. */ |
| 3022 | #ifdef __STDC__ |
| 3023 | # include <limits.h> |
| 3024 | #else |
| 3025 | # include <assert.h> |
| 3026 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3027 | Syntax error |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3028 | _ACEOF |
| 3029 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3030 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3031 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3032 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3033 | rm -f conftest.er1 |
| 3034 | cat conftest.err >&5 |
| 3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3036 | (exit $ac_status); } >/dev/null; then |
| 3037 | if test -s conftest.err; then |
| 3038 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3039 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3040 | else |
| 3041 | ac_cpp_err= |
| 3042 | fi |
| 3043 | else |
| 3044 | ac_cpp_err=yes |
| 3045 | fi |
| 3046 | if test -z "$ac_cpp_err"; then |
| 3047 | : |
| 3048 | else |
| 3049 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3051 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3052 | # Broken: fails on valid input. |
| 3053 | continue |
| 3054 | fi |
| 3055 | rm -f conftest.err conftest.$ac_ext |
| 3056 | |
| 3057 | # OK, works on sane cases. Now check whether non-existent headers |
| 3058 | # can be detected and how. |
| 3059 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3060 | /* confdefs.h. */ |
| 3061 | _ACEOF |
| 3062 | cat confdefs.h >>conftest.$ac_ext |
| 3063 | cat >>conftest.$ac_ext <<_ACEOF |
| 3064 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3065 | #include <ac_nonexistent.h> |
| 3066 | _ACEOF |
| 3067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3069 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3070 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3071 | rm -f conftest.er1 |
| 3072 | cat conftest.err >&5 |
| 3073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3074 | (exit $ac_status); } >/dev/null; then |
| 3075 | if test -s conftest.err; then |
| 3076 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3077 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3078 | else |
| 3079 | ac_cpp_err= |
| 3080 | fi |
| 3081 | else |
| 3082 | ac_cpp_err=yes |
| 3083 | fi |
| 3084 | if test -z "$ac_cpp_err"; then |
| 3085 | # Broken: success on invalid input. |
| 3086 | continue |
| 3087 | else |
| 3088 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3090 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3091 | # Passes both tests. |
| 3092 | ac_preproc_ok=: |
| 3093 | break |
| 3094 | fi |
| 3095 | rm -f conftest.err conftest.$ac_ext |
| 3096 | |
| 3097 | done |
| 3098 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3099 | rm -f conftest.err conftest.$ac_ext |
| 3100 | if $ac_preproc_ok; then |
| 3101 | break |
| 3102 | fi |
| 3103 | |
| 3104 | done |
| 3105 | ac_cv_prog_CPP=$CPP |
| 3106 | |
| 3107 | fi |
| 3108 | CPP=$ac_cv_prog_CPP |
| 3109 | else |
| 3110 | ac_cv_prog_CPP=$CPP |
| 3111 | fi |
| 3112 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3113 | echo "${ECHO_T}$CPP" >&6 |
| 3114 | ac_preproc_ok=false |
| 3115 | for ac_c_preproc_warn_flag in '' yes |
| 3116 | do |
| 3117 | # Use a header file that comes with gcc, so configuring glibc |
| 3118 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3119 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3120 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3121 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3122 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3123 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3124 | /* confdefs.h. */ |
| 3125 | _ACEOF |
| 3126 | cat confdefs.h >>conftest.$ac_ext |
| 3127 | cat >>conftest.$ac_ext <<_ACEOF |
| 3128 | /* end confdefs.h. */ |
| 3129 | #ifdef __STDC__ |
| 3130 | # include <limits.h> |
| 3131 | #else |
| 3132 | # include <assert.h> |
| 3133 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3134 | Syntax error |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3135 | _ACEOF |
| 3136 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3137 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3138 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3139 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3140 | rm -f conftest.er1 |
| 3141 | cat conftest.err >&5 |
| 3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3143 | (exit $ac_status); } >/dev/null; then |
| 3144 | if test -s conftest.err; then |
| 3145 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3146 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3147 | else |
| 3148 | ac_cpp_err= |
| 3149 | fi |
| 3150 | else |
| 3151 | ac_cpp_err=yes |
| 3152 | fi |
| 3153 | if test -z "$ac_cpp_err"; then |
| 3154 | : |
| 3155 | else |
| 3156 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3158 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3159 | # Broken: fails on valid input. |
| 3160 | continue |
| 3161 | fi |
| 3162 | rm -f conftest.err conftest.$ac_ext |
| 3163 | |
| 3164 | # OK, works on sane cases. Now check whether non-existent headers |
| 3165 | # can be detected and how. |
| 3166 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3167 | /* confdefs.h. */ |
| 3168 | _ACEOF |
| 3169 | cat confdefs.h >>conftest.$ac_ext |
| 3170 | cat >>conftest.$ac_ext <<_ACEOF |
| 3171 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3172 | #include <ac_nonexistent.h> |
| 3173 | _ACEOF |
| 3174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3176 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3177 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3178 | rm -f conftest.er1 |
| 3179 | cat conftest.err >&5 |
| 3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3181 | (exit $ac_status); } >/dev/null; then |
| 3182 | if test -s conftest.err; then |
| 3183 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3185 | else |
| 3186 | ac_cpp_err= |
| 3187 | fi |
| 3188 | else |
| 3189 | ac_cpp_err=yes |
| 3190 | fi |
| 3191 | if test -z "$ac_cpp_err"; then |
| 3192 | # Broken: success on invalid input. |
| 3193 | continue |
| 3194 | else |
| 3195 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3198 | # Passes both tests. |
| 3199 | ac_preproc_ok=: |
| 3200 | break |
| 3201 | fi |
| 3202 | rm -f conftest.err conftest.$ac_ext |
| 3203 | |
| 3204 | done |
| 3205 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3206 | rm -f conftest.err conftest.$ac_ext |
| 3207 | if $ac_preproc_ok; then |
| 3208 | : |
| 3209 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3210 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3211 | See \`config.log' for more details." >&5 |
| 3212 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3213 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3214 | { (exit 1); exit 1; }; } |
| 3215 | fi |
| 3216 | |
| 3217 | ac_ext=c |
| 3218 | ac_cpp='$CPP $CPPFLAGS' |
| 3219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3222 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3223 | if test "$GXX" != "yes" |
| 3224 | then |
| 3225 | { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 |
| 3226 | echo "$as_me: error: g++ required but not found" >&2;} |
| 3227 | { (exit 1); exit 1; }; } |
| 3228 | fi |
| 3229 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3230 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` |
| 3231 | if test "$gccmajor" -lt "3" |
| 3232 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 3233 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 3234 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3235 | { (exit 1); exit 1; }; } |
| 3236 | fi |
| 3237 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3238 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 3239 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 3240 | if test "${_cv_gnu_make_command+set}" = set; then |
| 3241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3242 | else |
| 3243 | _cv_gnu_make_command='' ; |
| 3244 | for a in "$MAKE" make gmake gnumake ; do |
| 3245 | if test -z "$a" ; then continue ; fi ; |
| 3246 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 3247 | _cv_gnu_make_command=$a ; |
| 3248 | break; |
| 3249 | fi |
| 3250 | done ; |
| 3251 | |
| 3252 | fi |
| 3253 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 |
| 3254 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; |
| 3255 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 3256 | ifGNUmake='' ; |
| 3257 | else |
| 3258 | ifGNUmake='#' ; |
| 3259 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 3260 | echo "${ECHO_T}\"Not found\"" >&6; |
| 3261 | fi |
| 3262 | |
| 3263 | |
| 3264 | if test -z "$_cv_gnu_make_command" |
| 3265 | then |
| 3266 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 3267 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 3268 | { (exit 1); exit 1; }; } |
| 3269 | fi |
| 3270 | |
| 3271 | |
| 3272 | echo "$as_me:$LINENO: checking " >&5 |
| 3273 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 3274 | if test "${ac_cv_has_flex+set}" = set; then |
| 3275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3276 | else |
| 3277 | for ac_prog in flex lex |
| 3278 | do |
| 3279 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3280 | set dummy $ac_prog; ac_word=$2 |
| 3281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3283 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3285 | else |
| 3286 | if test -n "$LEX"; then |
| 3287 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3288 | else |
| 3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3290 | for as_dir in $PATH |
| 3291 | do |
| 3292 | IFS=$as_save_IFS |
| 3293 | test -z "$as_dir" && as_dir=. |
| 3294 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3296 | ac_cv_prog_LEX="$ac_prog" |
| 3297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3298 | break 2 |
| 3299 | fi |
| 3300 | done |
| 3301 | done |
| 3302 | |
| 3303 | fi |
| 3304 | fi |
| 3305 | LEX=$ac_cv_prog_LEX |
| 3306 | if test -n "$LEX"; then |
| 3307 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 3308 | echo "${ECHO_T}$LEX" >&6 |
| 3309 | else |
| 3310 | echo "$as_me:$LINENO: result: no" >&5 |
| 3311 | echo "${ECHO_T}no" >&6 |
| 3312 | fi |
| 3313 | |
| 3314 | test -n "$LEX" && break |
| 3315 | done |
| 3316 | test -n "$LEX" || LEX=":" |
| 3317 | |
| 3318 | if test -z "$LEXLIB" |
| 3319 | then |
| 3320 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 3321 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3322 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3324 | else |
| 3325 | ac_check_lib_save_LIBS=$LIBS |
| 3326 | LIBS="-lfl $LIBS" |
| 3327 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3328 | /* confdefs.h. */ |
| 3329 | _ACEOF |
| 3330 | cat confdefs.h >>conftest.$ac_ext |
| 3331 | cat >>conftest.$ac_ext <<_ACEOF |
| 3332 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3333 | |
| 3334 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3335 | #ifdef __cplusplus |
| 3336 | extern "C" |
| 3337 | #endif |
| 3338 | /* We use char because int might match the return type of a gcc2 |
| 3339 | builtin and then its argument prototype would still apply. */ |
| 3340 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3341 | int |
| 3342 | main () |
| 3343 | { |
| 3344 | yywrap (); |
| 3345 | ; |
| 3346 | return 0; |
| 3347 | } |
| 3348 | _ACEOF |
| 3349 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3351 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3352 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3354 | rm -f conftest.er1 |
| 3355 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3357 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3358 | { ac_try='test -z "$ac_c_werror_flag" |
| 3359 | || test ! -s conftest.err' |
| 3360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3361 | (eval $ac_try) 2>&5 |
| 3362 | ac_status=$? |
| 3363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3364 | (exit $ac_status); }; } && |
| 3365 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3367 | (eval $ac_try) 2>&5 |
| 3368 | ac_status=$? |
| 3369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3370 | (exit $ac_status); }; }; then |
| 3371 | ac_cv_lib_fl_yywrap=yes |
| 3372 | else |
| 3373 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3375 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3376 | ac_cv_lib_fl_yywrap=no |
| 3377 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3378 | rm -f conftest.err conftest.$ac_objext \ |
| 3379 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3380 | LIBS=$ac_check_lib_save_LIBS |
| 3381 | fi |
| 3382 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 3383 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3384 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3385 | LEXLIB="-lfl" |
| 3386 | else |
| 3387 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 3388 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3389 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3391 | else |
| 3392 | ac_check_lib_save_LIBS=$LIBS |
| 3393 | LIBS="-ll $LIBS" |
| 3394 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3395 | /* confdefs.h. */ |
| 3396 | _ACEOF |
| 3397 | cat confdefs.h >>conftest.$ac_ext |
| 3398 | cat >>conftest.$ac_ext <<_ACEOF |
| 3399 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3400 | |
| 3401 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3402 | #ifdef __cplusplus |
| 3403 | extern "C" |
| 3404 | #endif |
| 3405 | /* We use char because int might match the return type of a gcc2 |
| 3406 | builtin and then its argument prototype would still apply. */ |
| 3407 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3408 | int |
| 3409 | main () |
| 3410 | { |
| 3411 | yywrap (); |
| 3412 | ; |
| 3413 | return 0; |
| 3414 | } |
| 3415 | _ACEOF |
| 3416 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3418 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3419 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3421 | rm -f conftest.er1 |
| 3422 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3424 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3425 | { ac_try='test -z "$ac_c_werror_flag" |
| 3426 | || test ! -s conftest.err' |
| 3427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3428 | (eval $ac_try) 2>&5 |
| 3429 | ac_status=$? |
| 3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3431 | (exit $ac_status); }; } && |
| 3432 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3434 | (eval $ac_try) 2>&5 |
| 3435 | ac_status=$? |
| 3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3437 | (exit $ac_status); }; }; then |
| 3438 | ac_cv_lib_l_yywrap=yes |
| 3439 | else |
| 3440 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3442 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3443 | ac_cv_lib_l_yywrap=no |
| 3444 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3445 | rm -f conftest.err conftest.$ac_objext \ |
| 3446 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3447 | LIBS=$ac_check_lib_save_LIBS |
| 3448 | fi |
| 3449 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 3450 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3451 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3452 | LEXLIB="-ll" |
| 3453 | fi |
| 3454 | |
| 3455 | fi |
| 3456 | |
| 3457 | fi |
| 3458 | |
| 3459 | if test "x$LEX" != "x:"; then |
| 3460 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 3461 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 3462 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3464 | else |
| 3465 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 3466 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 3467 | cat >conftest.l <<_ACEOF |
| 3468 | %% |
| 3469 | %% |
| 3470 | _ACEOF |
| 3471 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 3472 | (eval $LEX conftest.l) 2>&5 |
| 3473 | ac_status=$? |
| 3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3475 | (exit $ac_status); } |
| 3476 | if test -f lex.yy.c; then |
| 3477 | ac_cv_prog_lex_root=lex.yy |
| 3478 | elif test -f lexyy.c; then |
| 3479 | ac_cv_prog_lex_root=lexyy |
| 3480 | else |
| 3481 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 3482 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 3483 | { (exit 1); exit 1; }; } |
| 3484 | fi |
| 3485 | fi |
| 3486 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 3487 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 3488 | rm -f conftest.l |
| 3489 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3490 | |
| 3491 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 3492 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 3493 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3495 | else |
| 3496 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3497 | # default is implementation-dependent. Figure out which it is, since |
| 3498 | # not all implementations provide the %pointer and %array declarations. |
| 3499 | ac_cv_prog_lex_yytext_pointer=no |
| 3500 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 3501 | ac_save_LIBS=$LIBS |
| 3502 | LIBS="$LIBS $LEXLIB" |
| 3503 | cat >conftest.$ac_ext <<_ACEOF |
| 3504 | `cat $LEX_OUTPUT_ROOT.c` |
| 3505 | _ACEOF |
| 3506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3508 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3509 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3511 | rm -f conftest.er1 |
| 3512 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3514 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3515 | { ac_try='test -z "$ac_c_werror_flag" |
| 3516 | || test ! -s conftest.err' |
| 3517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3518 | (eval $ac_try) 2>&5 |
| 3519 | ac_status=$? |
| 3520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3521 | (exit $ac_status); }; } && |
| 3522 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3524 | (eval $ac_try) 2>&5 |
| 3525 | ac_status=$? |
| 3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3527 | (exit $ac_status); }; }; then |
| 3528 | ac_cv_prog_lex_yytext_pointer=yes |
| 3529 | else |
| 3530 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3532 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3533 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3534 | rm -f conftest.err conftest.$ac_objext \ |
| 3535 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3536 | LIBS=$ac_save_LIBS |
| 3537 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 3538 | |
| 3539 | fi |
| 3540 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 3541 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 3542 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3543 | |
| 3544 | cat >>confdefs.h <<\_ACEOF |
| 3545 | #define YYTEXT_POINTER 1 |
| 3546 | _ACEOF |
| 3547 | |
| 3548 | fi |
| 3549 | |
| 3550 | fi |
| 3551 | |
| 3552 | fi |
| 3553 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 3554 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 3555 | if test "$LEX" != "flex"; then |
| 3556 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 3557 | echo "$as_me: error: flex not found but required" >&2;} |
| 3558 | { (exit 1); exit 1; }; } |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 3559 | else |
| 3560 | FLEX=flex |
| 3561 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3562 | fi |
| 3563 | |
| 3564 | echo "$as_me:$LINENO: checking " >&5 |
| 3565 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 3566 | if test "${ac_cv_has_bison+set}" = set; then |
| 3567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3568 | else |
| 3569 | for ac_prog in 'bison -y' byacc |
| 3570 | do |
| 3571 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3572 | set dummy $ac_prog; ac_word=$2 |
| 3573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3575 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3577 | else |
| 3578 | if test -n "$YACC"; then |
| 3579 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3580 | else |
| 3581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3582 | for as_dir in $PATH |
| 3583 | do |
| 3584 | IFS=$as_save_IFS |
| 3585 | test -z "$as_dir" && as_dir=. |
| 3586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3588 | ac_cv_prog_YACC="$ac_prog" |
| 3589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3590 | break 2 |
| 3591 | fi |
| 3592 | done |
| 3593 | done |
| 3594 | |
| 3595 | fi |
| 3596 | fi |
| 3597 | YACC=$ac_cv_prog_YACC |
| 3598 | if test -n "$YACC"; then |
| 3599 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 3600 | echo "${ECHO_T}$YACC" >&6 |
| 3601 | else |
| 3602 | echo "$as_me:$LINENO: result: no" >&5 |
| 3603 | echo "${ECHO_T}no" >&6 |
| 3604 | fi |
| 3605 | |
| 3606 | test -n "$YACC" && break |
| 3607 | done |
| 3608 | test -n "$YACC" || YACC="yacc" |
| 3609 | |
| 3610 | |
| 3611 | fi |
| 3612 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 |
| 3613 | echo "${ECHO_T}$ac_cv_has_bison" >&6 |
| 3614 | if test "$YACC" != "bison -y"; then |
| 3615 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 3616 | echo "$as_me: error: bison not found but required" >&2;} |
| 3617 | { (exit 1); exit 1; }; } |
| 3618 | else |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 3619 | BISON=bison |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3620 | |
| 3621 | fi |
| 3622 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3623 | # Check whether --enable-shared or --disable-shared was given. |
| 3624 | if test "${enable_shared+set}" = set; then |
| 3625 | enableval="$enable_shared" |
| 3626 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3627 | case $enableval in |
| 3628 | yes) enable_shared=yes ;; |
| 3629 | no) enable_shared=no ;; |
| 3630 | *) |
| 3631 | enable_shared=no |
| 3632 | # Look at the argument we got. We use all the common list separators. |
| 3633 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3634 | for pkg in $enableval; do |
| 3635 | IFS="$lt_save_ifs" |
| 3636 | if test "X$pkg" = "X$p"; then |
| 3637 | enable_shared=yes |
| 3638 | fi |
| 3639 | done |
| 3640 | IFS="$lt_save_ifs" |
| 3641 | ;; |
| 3642 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3643 | else |
| 3644 | enable_shared=yes |
| 3645 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3646 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3647 | # Check whether --enable-static or --disable-static was given. |
| 3648 | if test "${enable_static+set}" = set; then |
| 3649 | enableval="$enable_static" |
| 3650 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3651 | case $enableval in |
| 3652 | yes) enable_static=yes ;; |
| 3653 | no) enable_static=no ;; |
| 3654 | *) |
| 3655 | enable_static=no |
| 3656 | # Look at the argument we got. We use all the common list separators. |
| 3657 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3658 | for pkg in $enableval; do |
| 3659 | IFS="$lt_save_ifs" |
| 3660 | if test "X$pkg" = "X$p"; then |
| 3661 | enable_static=yes |
| 3662 | fi |
| 3663 | done |
| 3664 | IFS="$lt_save_ifs" |
| 3665 | ;; |
| 3666 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3667 | else |
| 3668 | enable_static=yes |
| 3669 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3670 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3671 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3672 | if test "${enable_fast_install+set}" = set; then |
| 3673 | enableval="$enable_fast_install" |
| 3674 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3675 | case $enableval in |
| 3676 | yes) enable_fast_install=yes ;; |
| 3677 | no) enable_fast_install=no ;; |
| 3678 | *) |
| 3679 | enable_fast_install=no |
| 3680 | # Look at the argument we got. We use all the common list separators. |
| 3681 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3682 | for pkg in $enableval; do |
| 3683 | IFS="$lt_save_ifs" |
| 3684 | if test "X$pkg" = "X$p"; then |
| 3685 | enable_fast_install=yes |
| 3686 | fi |
| 3687 | done |
| 3688 | IFS="$lt_save_ifs" |
| 3689 | ;; |
| 3690 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3691 | else |
| 3692 | enable_fast_install=yes |
| 3693 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3694 | |
| 3695 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3696 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3697 | if test "${lt_cv_path_SED+set}" = set; then |
| 3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3699 | else |
| 3700 | # Loop through the user's path and test for sed and gsed. |
| 3701 | # Then use that list of sed's as ones to test for truncation. |
| 3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3703 | for as_dir in $PATH |
| 3704 | do |
| 3705 | IFS=$as_save_IFS |
| 3706 | test -z "$as_dir" && as_dir=. |
| 3707 | for lt_ac_prog in sed gsed; do |
| 3708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3709 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3710 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3711 | fi |
| 3712 | done |
| 3713 | done |
| 3714 | done |
| 3715 | lt_ac_max=0 |
| 3716 | lt_ac_count=0 |
| 3717 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3718 | # along with /bin/sed that truncates output. |
| 3719 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3720 | test ! -f $lt_ac_sed && break |
| 3721 | cat /dev/null > conftest.in |
| 3722 | lt_ac_count=0 |
| 3723 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3724 | # Check for GNU sed and select it if it is found. |
| 3725 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3726 | lt_cv_path_SED=$lt_ac_sed |
| 3727 | break |
| 3728 | fi |
| 3729 | while true; do |
| 3730 | cat conftest.in conftest.in >conftest.tmp |
| 3731 | mv conftest.tmp conftest.in |
| 3732 | cp conftest.in conftest.nl |
| 3733 | echo >>conftest.nl |
| 3734 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3735 | cmp -s conftest.out conftest.nl || break |
| 3736 | # 10000 chars as input seems more than enough |
| 3737 | test $lt_ac_count -gt 10 && break |
| 3738 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3739 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3740 | lt_ac_max=$lt_ac_count |
| 3741 | lt_cv_path_SED=$lt_ac_sed |
| 3742 | fi |
| 3743 | done |
| 3744 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3745 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3746 | fi |
| 3747 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3748 | SED=$lt_cv_path_SED |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3749 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3750 | echo "${ECHO_T}$SED" >&6 |
| 3751 | |
| 3752 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3753 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3754 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3756 | else |
| 3757 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3758 | then ac_cv_prog_egrep='grep -E' |
| 3759 | else ac_cv_prog_egrep='egrep' |
| 3760 | fi |
| 3761 | fi |
| 3762 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3763 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3764 | EGREP=$ac_cv_prog_egrep |
| 3765 | |
| 3766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3767 | |
| 3768 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3769 | if test "${with_gnu_ld+set}" = set; then |
| 3770 | withval="$with_gnu_ld" |
| 3771 | test "$withval" = no || with_gnu_ld=yes |
| 3772 | else |
| 3773 | with_gnu_ld=no |
| 3774 | fi; |
| 3775 | ac_prog=ld |
| 3776 | if test "$GCC" = yes; then |
| 3777 | # Check if gcc -print-prog-name=ld gives a path. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3778 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3779 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3780 | case $host in |
| 3781 | *-*-mingw*) |
| 3782 | # gcc leaves a trailing carriage return which upsets mingw |
| 3783 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3784 | *) |
| 3785 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3786 | esac |
| 3787 | case $ac_prog in |
| 3788 | # Accept absolute paths. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3789 | [\\/]* | ?:[\\/]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3790 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3791 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3792 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3793 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3794 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3795 | done |
| 3796 | test -z "$LD" && LD="$ac_prog" |
| 3797 | ;; |
| 3798 | "") |
| 3799 | # If it fails, then pretend we aren't using GCC. |
| 3800 | ac_prog=ld |
| 3801 | ;; |
| 3802 | *) |
| 3803 | # If it is relative, then search for the first ld in PATH. |
| 3804 | with_gnu_ld=unknown |
| 3805 | ;; |
| 3806 | esac |
| 3807 | elif test "$with_gnu_ld" = yes; then |
| 3808 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3809 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3810 | else |
| 3811 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3812 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3813 | fi |
| 3814 | if test "${lt_cv_path_LD+set}" = set; then |
| 3815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3816 | else |
| 3817 | if test -z "$LD"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3818 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3819 | for ac_dir in $PATH; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3820 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3821 | test -z "$ac_dir" && ac_dir=. |
| 3822 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3823 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3824 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3825 | # but apparently some GNU ld's only accept -v. |
| 3826 | # 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] | 3827 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3828 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3829 | test "$with_gnu_ld" != no && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3830 | ;; |
| 3831 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3832 | test "$with_gnu_ld" != yes && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3833 | ;; |
| 3834 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3835 | fi |
| 3836 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3837 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3838 | else |
| 3839 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3840 | fi |
| 3841 | fi |
| 3842 | |
| 3843 | LD="$lt_cv_path_LD" |
| 3844 | if test -n "$LD"; then |
| 3845 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3846 | echo "${ECHO_T}$LD" >&6 |
| 3847 | else |
| 3848 | echo "$as_me:$LINENO: result: no" >&5 |
| 3849 | echo "${ECHO_T}no" >&6 |
| 3850 | fi |
| 3851 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3852 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3853 | { (exit 1); exit 1; }; } |
| 3854 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3855 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3856 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3858 | else |
| 3859 | # 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] | 3860 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3861 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3862 | lt_cv_prog_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3863 | ;; |
| 3864 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3865 | lt_cv_prog_gnu_ld=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3866 | ;; |
| 3867 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3868 | fi |
| 3869 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3870 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3871 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3872 | |
| 3873 | |
| 3874 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3875 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3876 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3878 | else |
| 3879 | lt_cv_ld_reload_flag='-r' |
| 3880 | fi |
| 3881 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3882 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3883 | reload_flag=$lt_cv_ld_reload_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3884 | case $reload_flag in |
| 3885 | "" | " "*) ;; |
| 3886 | *) reload_flag=" $reload_flag" ;; |
| 3887 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3888 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3889 | case $host_os in |
| 3890 | darwin*) |
| 3891 | if test "$GCC" = yes; then |
| 3892 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
| 3893 | else |
| 3894 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3895 | fi |
| 3896 | ;; |
| 3897 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3898 | |
| 3899 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3900 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3901 | if test "${lt_cv_path_NM+set}" = set; then |
| 3902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3903 | else |
| 3904 | if test -n "$NM"; then |
| 3905 | # Let the user override the test. |
| 3906 | lt_cv_path_NM="$NM" |
| 3907 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3908 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3909 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3910 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3911 | test -z "$ac_dir" && ac_dir=. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3912 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3913 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3914 | # Check to see if the nm accepts a BSD-compat flag. |
| 3915 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3916 | # nm: unknown option "B" ignored |
| 3917 | # Tru64's nm complains that /dev/null is an invalid object file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3918 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3919 | */dev/null* | *'Invalid file or object type'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3920 | lt_cv_path_NM="$tmp_nm -B" |
| 3921 | break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3922 | ;; |
| 3923 | *) |
| 3924 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3925 | */dev/null*) |
| 3926 | lt_cv_path_NM="$tmp_nm -p" |
| 3927 | break |
| 3928 | ;; |
| 3929 | *) |
| 3930 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3931 | continue # so that we can try to find one that supports BSD flags |
| 3932 | ;; |
| 3933 | esac |
| 3934 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3935 | fi |
| 3936 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3937 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3938 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3939 | fi |
| 3940 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3941 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 3942 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3943 | NM="$lt_cv_path_NM" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3944 | |
| 3945 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3946 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3947 | LN_S=$as_ln_s |
| 3948 | if test "$LN_S" = "ln -s"; then |
| 3949 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3950 | echo "${ECHO_T}yes" >&6 |
| 3951 | else |
| 3952 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3953 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3954 | fi |
| 3955 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3956 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3957 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3958 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3960 | else |
| 3961 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3962 | lt_cv_file_magic_test_file= |
| 3963 | lt_cv_deplibs_check_method='unknown' |
| 3964 | # Need to set the preceding variable on all platforms that support |
| 3965 | # interlibrary dependencies. |
| 3966 | # 'none' -- dependencies not supported. |
| 3967 | # `unknown' -- same as none, but documents that we really don't know. |
| 3968 | # 'pass_all' -- all dependencies passed with no checks. |
| 3969 | # 'test_compile' -- check by making test program. |
| 3970 | # 'file_magic [[regex]]' -- check by looking for files in library path |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3971 | # which responds to the $file_magic_cmd with a given extended regex. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3972 | # If you have `file' or equivalent on your system and you're not sure |
| 3973 | # whether `pass_all' will *always* work, you probably want this one. |
| 3974 | |
| 3975 | case $host_os in |
| 3976 | aix4* | aix5*) |
| 3977 | lt_cv_deplibs_check_method=pass_all |
| 3978 | ;; |
| 3979 | |
| 3980 | beos*) |
| 3981 | lt_cv_deplibs_check_method=pass_all |
| 3982 | ;; |
| 3983 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3984 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3985 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3986 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3987 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3988 | ;; |
| 3989 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3990 | cygwin*) |
| 3991 | # func_win32_libid is a shell function defined in ltmain.sh |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3992 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3993 | lt_cv_file_magic_cmd='func_win32_libid' |
| 3994 | ;; |
| 3995 | |
| 3996 | mingw* | pw32*) |
| 3997 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 3998 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 3999 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4000 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4001 | ;; |
| 4002 | |
| 4003 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4004 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4005 | ;; |
| 4006 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4007 | freebsd* | kfreebsd*-gnu) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4008 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4009 | case $host_cpu in |
| 4010 | i*86 ) |
| 4011 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4012 | # Let's accept both of them until this is cleared up. |
| 4013 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 4014 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4015 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4016 | ;; |
| 4017 | esac |
| 4018 | else |
| 4019 | lt_cv_deplibs_check_method=pass_all |
| 4020 | fi |
| 4021 | ;; |
| 4022 | |
| 4023 | gnu*) |
| 4024 | lt_cv_deplibs_check_method=pass_all |
| 4025 | ;; |
| 4026 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4027 | hpux10.20* | hpux11*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4028 | lt_cv_file_magic_cmd=/usr/bin/file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4029 | case "$host_cpu" in |
| 4030 | ia64*) |
| 4031 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4032 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4033 | ;; |
| 4034 | hppa*64*) |
| 4035 | 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]' |
| 4036 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4037 | ;; |
| 4038 | *) |
| 4039 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4040 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4041 | ;; |
| 4042 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4043 | ;; |
| 4044 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4045 | irix5* | irix6* | nonstopux*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4046 | case $LD in |
| 4047 | *-32|*"-32 ") libmagic=32-bit;; |
| 4048 | *-n32|*"-n32 ") libmagic=N32;; |
| 4049 | *-64|*"-64 ") libmagic=64-bit;; |
| 4050 | *) libmagic=never-match;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4051 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4052 | lt_cv_deplibs_check_method=pass_all |
| 4053 | ;; |
| 4054 | |
| 4055 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4056 | linux*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4057 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4058 | ;; |
| 4059 | |
| 4060 | netbsd*) |
| 4061 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4062 | 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] | 4063 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4064 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4065 | fi |
| 4066 | ;; |
| 4067 | |
| 4068 | newos6*) |
| 4069 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4070 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4071 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4072 | ;; |
| 4073 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4074 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4075 | lt_cv_deplibs_check_method=unknown |
| 4076 | ;; |
| 4077 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4078 | openbsd*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4079 | 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] | 4080 | 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] | 4081 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4082 | 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] | 4083 | fi |
| 4084 | ;; |
| 4085 | |
| 4086 | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4087 | lt_cv_deplibs_check_method=pass_all |
| 4088 | ;; |
| 4089 | |
| 4090 | sco3.2v5*) |
| 4091 | lt_cv_deplibs_check_method=pass_all |
| 4092 | ;; |
| 4093 | |
| 4094 | solaris*) |
| 4095 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4096 | ;; |
| 4097 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4098 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4099 | case $host_vendor in |
| 4100 | motorola) |
| 4101 | 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]' |
| 4102 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4103 | ;; |
| 4104 | ncr) |
| 4105 | lt_cv_deplibs_check_method=pass_all |
| 4106 | ;; |
| 4107 | sequent) |
| 4108 | lt_cv_file_magic_cmd='/bin/file' |
| 4109 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4110 | ;; |
| 4111 | sni) |
| 4112 | lt_cv_file_magic_cmd='/bin/file' |
| 4113 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4114 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4115 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4116 | siemens) |
| 4117 | lt_cv_deplibs_check_method=pass_all |
| 4118 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4119 | esac |
| 4120 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4121 | |
| 4122 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 4123 | lt_cv_deplibs_check_method=pass_all |
| 4124 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4125 | esac |
| 4126 | |
| 4127 | fi |
| 4128 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4129 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 4130 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4131 | deplibs_check_method=$lt_cv_deplibs_check_method |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4132 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4133 | |
| 4134 | |
| 4135 | |
| 4136 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4137 | # If no C compiler was specified, use CC. |
| 4138 | LTCC=${LTCC-"$CC"} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4139 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4140 | # Allow CC to be a program name with arguments. |
| 4141 | compiler=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4142 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4143 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4144 | if test "${enable_libtool_lock+set}" = set; then |
| 4145 | enableval="$enable_libtool_lock" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4146 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4147 | fi; |
| 4148 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4149 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4150 | # Some flags need to be propagated to the compiler or linker for good |
| 4151 | # libtool support. |
| 4152 | case $host in |
| 4153 | ia64-*-hpux*) |
| 4154 | # Find out which ABI we are using. |
| 4155 | echo 'int i;' > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4157 | (eval $ac_compile) 2>&5 |
| 4158 | ac_status=$? |
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4160 | (exit $ac_status); }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4161 | case `/usr/bin/file conftest.$ac_objext` in |
| 4162 | *ELF-32*) |
| 4163 | HPUX_IA64_MODE="32" |
| 4164 | ;; |
| 4165 | *ELF-64*) |
| 4166 | HPUX_IA64_MODE="64" |
| 4167 | ;; |
| 4168 | esac |
| 4169 | fi |
| 4170 | rm -rf conftest* |
| 4171 | ;; |
| 4172 | *-*-irix6*) |
| 4173 | # Find out which ABI we are using. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4174 | echo '#line 4174 "configure"' > conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4176 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4177 | ac_status=$? |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4179 | (exit $ac_status); }; then |
| 4180 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4181 | case `/usr/bin/file conftest.$ac_objext` in |
| 4182 | *32-bit*) |
| 4183 | LD="${LD-ld} -melf32bsmip" |
| 4184 | ;; |
| 4185 | *N32*) |
| 4186 | LD="${LD-ld} -melf32bmipn32" |
| 4187 | ;; |
| 4188 | *64-bit*) |
| 4189 | LD="${LD-ld} -melf64bmip" |
| 4190 | ;; |
| 4191 | esac |
| 4192 | else |
| 4193 | case `/usr/bin/file conftest.$ac_objext` in |
| 4194 | *32-bit*) |
| 4195 | LD="${LD-ld} -32" |
| 4196 | ;; |
| 4197 | *N32*) |
| 4198 | LD="${LD-ld} -n32" |
| 4199 | ;; |
| 4200 | *64-bit*) |
| 4201 | LD="${LD-ld} -64" |
| 4202 | ;; |
| 4203 | esac |
| 4204 | fi |
| 4205 | fi |
| 4206 | rm -rf conftest* |
| 4207 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4208 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4209 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4210 | # Find out which ABI we are using. |
| 4211 | echo 'int i;' > conftest.$ac_ext |
| 4212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4213 | (eval $ac_compile) 2>&5 |
| 4214 | ac_status=$? |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); }; then |
| 4217 | case "`/usr/bin/file conftest.o`" in |
| 4218 | *32-bit*) |
| 4219 | case $host in |
| 4220 | x86_64-*linux*) |
| 4221 | LD="${LD-ld} -m elf_i386" |
| 4222 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4223 | ppc64-*linux*|powerpc64-*linux*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4224 | LD="${LD-ld} -m elf32ppclinux" |
| 4225 | ;; |
| 4226 | s390x-*linux*) |
| 4227 | LD="${LD-ld} -m elf_s390" |
| 4228 | ;; |
| 4229 | sparc64-*linux*) |
| 4230 | LD="${LD-ld} -m elf32_sparc" |
| 4231 | ;; |
| 4232 | esac |
| 4233 | ;; |
| 4234 | *64-bit*) |
| 4235 | case $host in |
| 4236 | x86_64-*linux*) |
| 4237 | LD="${LD-ld} -m elf_x86_64" |
| 4238 | ;; |
| 4239 | ppc*-*linux*|powerpc*-*linux*) |
| 4240 | LD="${LD-ld} -m elf64ppc" |
| 4241 | ;; |
| 4242 | s390*-*linux*) |
| 4243 | LD="${LD-ld} -m elf64_s390" |
| 4244 | ;; |
| 4245 | sparc*-*linux*) |
| 4246 | LD="${LD-ld} -m elf64_sparc" |
| 4247 | ;; |
| 4248 | esac |
| 4249 | ;; |
| 4250 | esac |
| 4251 | fi |
| 4252 | rm -rf conftest* |
| 4253 | ;; |
| 4254 | |
| 4255 | *-*-sco3.2v5*) |
| 4256 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4257 | SAVE_CFLAGS="$CFLAGS" |
| 4258 | CFLAGS="$CFLAGS -belf" |
| 4259 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4260 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4261 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4263 | else |
| 4264 | ac_ext=c |
| 4265 | ac_cpp='$CPP $CPPFLAGS' |
| 4266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4269 | |
| 4270 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4271 | /* confdefs.h. */ |
| 4272 | _ACEOF |
| 4273 | cat confdefs.h >>conftest.$ac_ext |
| 4274 | cat >>conftest.$ac_ext <<_ACEOF |
| 4275 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4276 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4277 | int |
| 4278 | main () |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4279 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4280 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4281 | ; |
| 4282 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4283 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4284 | _ACEOF |
| 4285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4287 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4288 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4290 | rm -f conftest.er1 |
| 4291 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4293 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4294 | { ac_try='test -z "$ac_c_werror_flag" |
| 4295 | || test ! -s conftest.err' |
| 4296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4297 | (eval $ac_try) 2>&5 |
| 4298 | ac_status=$? |
| 4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4300 | (exit $ac_status); }; } && |
| 4301 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4303 | (eval $ac_try) 2>&5 |
| 4304 | ac_status=$? |
| 4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4306 | (exit $ac_status); }; }; then |
| 4307 | lt_cv_cc_needs_belf=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4308 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4309 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4312 | lt_cv_cc_needs_belf=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4313 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4314 | rm -f conftest.err conftest.$ac_objext \ |
| 4315 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4316 | ac_ext=c |
| 4317 | ac_cpp='$CPP $CPPFLAGS' |
| 4318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4321 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4322 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4323 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4324 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4325 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4326 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4327 | CFLAGS="$SAVE_CFLAGS" |
| 4328 | fi |
| 4329 | ;; |
| 4330 | |
| 4331 | esac |
| 4332 | |
| 4333 | need_locks="$enable_libtool_lock" |
| 4334 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4335 | |
| 4336 | |
| 4337 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4338 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4339 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4341 | else |
| 4342 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4343 | /* confdefs.h. */ |
| 4344 | _ACEOF |
| 4345 | cat confdefs.h >>conftest.$ac_ext |
| 4346 | cat >>conftest.$ac_ext <<_ACEOF |
| 4347 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4348 | #include <stdlib.h> |
| 4349 | #include <stdarg.h> |
| 4350 | #include <string.h> |
| 4351 | #include <float.h> |
| 4352 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4353 | int |
| 4354 | main () |
| 4355 | { |
| 4356 | |
| 4357 | ; |
| 4358 | return 0; |
| 4359 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4360 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4361 | rm -f conftest.$ac_objext |
| 4362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4363 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4364 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4366 | rm -f conftest.er1 |
| 4367 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4369 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4370 | { ac_try='test -z "$ac_c_werror_flag" |
| 4371 | || test ! -s conftest.err' |
| 4372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4373 | (eval $ac_try) 2>&5 |
| 4374 | ac_status=$? |
| 4375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4376 | (exit $ac_status); }; } && |
| 4377 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4379 | (eval $ac_try) 2>&5 |
| 4380 | ac_status=$? |
| 4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4382 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4383 | ac_cv_header_stdc=yes |
| 4384 | else |
| 4385 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4387 | |
| 4388 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4389 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4391 | |
| 4392 | if test $ac_cv_header_stdc = yes; then |
| 4393 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4394 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4395 | /* confdefs.h. */ |
| 4396 | _ACEOF |
| 4397 | cat confdefs.h >>conftest.$ac_ext |
| 4398 | cat >>conftest.$ac_ext <<_ACEOF |
| 4399 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4400 | #include <string.h> |
| 4401 | |
| 4402 | _ACEOF |
| 4403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4404 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4405 | : |
| 4406 | else |
| 4407 | ac_cv_header_stdc=no |
| 4408 | fi |
| 4409 | rm -f conftest* |
| 4410 | |
| 4411 | fi |
| 4412 | |
| 4413 | if test $ac_cv_header_stdc = yes; then |
| 4414 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4415 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4416 | /* confdefs.h. */ |
| 4417 | _ACEOF |
| 4418 | cat confdefs.h >>conftest.$ac_ext |
| 4419 | cat >>conftest.$ac_ext <<_ACEOF |
| 4420 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4421 | #include <stdlib.h> |
| 4422 | |
| 4423 | _ACEOF |
| 4424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4425 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4426 | : |
| 4427 | else |
| 4428 | ac_cv_header_stdc=no |
| 4429 | fi |
| 4430 | rm -f conftest* |
| 4431 | |
| 4432 | fi |
| 4433 | |
| 4434 | if test $ac_cv_header_stdc = yes; then |
| 4435 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4436 | if test "$cross_compiling" = yes; then |
| 4437 | : |
| 4438 | else |
| 4439 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4440 | /* confdefs.h. */ |
| 4441 | _ACEOF |
| 4442 | cat confdefs.h >>conftest.$ac_ext |
| 4443 | cat >>conftest.$ac_ext <<_ACEOF |
| 4444 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4445 | #include <ctype.h> |
| 4446 | #if ((' ' & 0x0FF) == 0x020) |
| 4447 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4448 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4449 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4450 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4451 | (('a' <= (c) && (c) <= 'i') \ |
| 4452 | || ('j' <= (c) && (c) <= 'r') \ |
| 4453 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4454 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4455 | #endif |
| 4456 | |
| 4457 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4458 | int |
| 4459 | main () |
| 4460 | { |
| 4461 | int i; |
| 4462 | for (i = 0; i < 256; i++) |
| 4463 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4464 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4465 | exit(2); |
| 4466 | exit (0); |
| 4467 | } |
| 4468 | _ACEOF |
| 4469 | rm -f conftest$ac_exeext |
| 4470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4471 | (eval $ac_link) 2>&5 |
| 4472 | ac_status=$? |
| 4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4474 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4476 | (eval $ac_try) 2>&5 |
| 4477 | ac_status=$? |
| 4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4479 | (exit $ac_status); }; }; then |
| 4480 | : |
| 4481 | else |
| 4482 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4483 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4485 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4486 | ( exit $ac_status ) |
| 4487 | ac_cv_header_stdc=no |
| 4488 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4489 | 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] | 4490 | fi |
| 4491 | fi |
| 4492 | fi |
| 4493 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4494 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4495 | if test $ac_cv_header_stdc = yes; then |
| 4496 | |
| 4497 | cat >>confdefs.h <<\_ACEOF |
| 4498 | #define STDC_HEADERS 1 |
| 4499 | _ACEOF |
| 4500 | |
| 4501 | fi |
| 4502 | |
| 4503 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | 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] | 4514 | inttypes.h stdint.h unistd.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4515 | do |
| 4516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4517 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4521 | else |
| 4522 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4523 | /* confdefs.h. */ |
| 4524 | _ACEOF |
| 4525 | cat confdefs.h >>conftest.$ac_ext |
| 4526 | cat >>conftest.$ac_ext <<_ACEOF |
| 4527 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4528 | $ac_includes_default |
| 4529 | |
| 4530 | #include <$ac_header> |
| 4531 | _ACEOF |
| 4532 | rm -f conftest.$ac_objext |
| 4533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4534 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4535 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4537 | rm -f conftest.er1 |
| 4538 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4540 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4541 | { ac_try='test -z "$ac_c_werror_flag" |
| 4542 | || test ! -s conftest.err' |
| 4543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4544 | (eval $ac_try) 2>&5 |
| 4545 | ac_status=$? |
| 4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4547 | (exit $ac_status); }; } && |
| 4548 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4550 | (eval $ac_try) 2>&5 |
| 4551 | ac_status=$? |
| 4552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4553 | (exit $ac_status); }; }; then |
| 4554 | eval "$as_ac_Header=yes" |
| 4555 | else |
| 4556 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4558 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4559 | eval "$as_ac_Header=no" |
| 4560 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4562 | fi |
| 4563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4565 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4566 | cat >>confdefs.h <<_ACEOF |
| 4567 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4568 | _ACEOF |
| 4569 | |
| 4570 | fi |
| 4571 | |
| 4572 | done |
| 4573 | |
| 4574 | |
| 4575 | |
| 4576 | for ac_header in dlfcn.h |
| 4577 | do |
| 4578 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4580 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4584 | fi |
| 4585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4586 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4587 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4588 | # Is the header compilable? |
| 4589 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4590 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4591 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4592 | /* confdefs.h. */ |
| 4593 | _ACEOF |
| 4594 | cat confdefs.h >>conftest.$ac_ext |
| 4595 | cat >>conftest.$ac_ext <<_ACEOF |
| 4596 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4597 | $ac_includes_default |
| 4598 | #include <$ac_header> |
| 4599 | _ACEOF |
| 4600 | rm -f conftest.$ac_objext |
| 4601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4602 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4603 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4605 | rm -f conftest.er1 |
| 4606 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4608 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4609 | { ac_try='test -z "$ac_c_werror_flag" |
| 4610 | || test ! -s conftest.err' |
| 4611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4612 | (eval $ac_try) 2>&5 |
| 4613 | ac_status=$? |
| 4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4615 | (exit $ac_status); }; } && |
| 4616 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4618 | (eval $ac_try) 2>&5 |
| 4619 | ac_status=$? |
| 4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4621 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4622 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4623 | else |
| 4624 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4626 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4627 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4628 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4630 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4631 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4632 | |
| 4633 | # Is the header present? |
| 4634 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4635 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4636 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4637 | /* confdefs.h. */ |
| 4638 | _ACEOF |
| 4639 | cat confdefs.h >>conftest.$ac_ext |
| 4640 | cat >>conftest.$ac_ext <<_ACEOF |
| 4641 | /* end confdefs.h. */ |
| 4642 | #include <$ac_header> |
| 4643 | _ACEOF |
| 4644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4646 | ac_status=$? |
| 4647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4648 | rm -f conftest.er1 |
| 4649 | cat conftest.err >&5 |
| 4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4651 | (exit $ac_status); } >/dev/null; then |
| 4652 | if test -s conftest.err; then |
| 4653 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4654 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4655 | else |
| 4656 | ac_cpp_err= |
| 4657 | fi |
| 4658 | else |
| 4659 | ac_cpp_err=yes |
| 4660 | fi |
| 4661 | if test -z "$ac_cpp_err"; then |
| 4662 | ac_header_preproc=yes |
| 4663 | else |
| 4664 | echo "$as_me: failed program was:" >&5 |
| 4665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4666 | |
| 4667 | ac_header_preproc=no |
| 4668 | fi |
| 4669 | rm -f conftest.err conftest.$ac_ext |
| 4670 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4671 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4672 | |
| 4673 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4674 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4675 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4676 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4677 | 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] | 4678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4679 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4680 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4681 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4682 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4683 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4684 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4685 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4686 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4687 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4688 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4689 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4690 | 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] | 4691 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4692 | 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] | 4693 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4694 | 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] | 4695 | ( |
| 4696 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4697 | ## ----------------------------------- ## |
| 4698 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 4699 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4700 | _ASBOX |
| 4701 | ) | |
| 4702 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4703 | ;; |
| 4704 | esac |
| 4705 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4707 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4709 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4710 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4711 | fi |
| 4712 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4713 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4714 | |
| 4715 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4716 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4717 | cat >>confdefs.h <<_ACEOF |
| 4718 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4719 | _ACEOF |
| 4720 | |
| 4721 | fi |
| 4722 | |
| 4723 | done |
| 4724 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4725 | |
| 4726 | |
| 4727 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 4728 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 4729 | (test "X$CXX" != "Xg++"))) ; then |
| 4730 | ac_ext=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4731 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4732 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4733 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4734 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4735 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4736 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4737 | if test -z "$CXXCPP"; then |
| 4738 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4740 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4741 | # Double quotes because CXXCPP needs to be expanded |
| 4742 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4743 | do |
| 4744 | ac_preproc_ok=false |
| 4745 | for ac_cxx_preproc_warn_flag in '' yes |
| 4746 | do |
| 4747 | # Use a header file that comes with gcc, so configuring glibc |
| 4748 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4749 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4750 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4751 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4752 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4753 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4754 | /* confdefs.h. */ |
| 4755 | _ACEOF |
| 4756 | cat confdefs.h >>conftest.$ac_ext |
| 4757 | cat >>conftest.$ac_ext <<_ACEOF |
| 4758 | /* end confdefs.h. */ |
| 4759 | #ifdef __STDC__ |
| 4760 | # include <limits.h> |
| 4761 | #else |
| 4762 | # include <assert.h> |
| 4763 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4764 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4765 | _ACEOF |
| 4766 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4768 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4769 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4770 | rm -f conftest.er1 |
| 4771 | cat conftest.err >&5 |
| 4772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4773 | (exit $ac_status); } >/dev/null; then |
| 4774 | if test -s conftest.err; then |
| 4775 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4776 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4777 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4778 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4779 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4780 | else |
| 4781 | ac_cpp_err=yes |
| 4782 | fi |
| 4783 | if test -z "$ac_cpp_err"; then |
| 4784 | : |
| 4785 | else |
| 4786 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4788 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4789 | # Broken: fails on valid input. |
| 4790 | continue |
| 4791 | fi |
| 4792 | rm -f conftest.err conftest.$ac_ext |
| 4793 | |
| 4794 | # OK, works on sane cases. Now check whether non-existent headers |
| 4795 | # can be detected and how. |
| 4796 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4797 | /* confdefs.h. */ |
| 4798 | _ACEOF |
| 4799 | cat confdefs.h >>conftest.$ac_ext |
| 4800 | cat >>conftest.$ac_ext <<_ACEOF |
| 4801 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4802 | #include <ac_nonexistent.h> |
| 4803 | _ACEOF |
| 4804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4806 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4807 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4808 | rm -f conftest.er1 |
| 4809 | cat conftest.err >&5 |
| 4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4811 | (exit $ac_status); } >/dev/null; then |
| 4812 | if test -s conftest.err; then |
| 4813 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4814 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4815 | else |
| 4816 | ac_cpp_err= |
| 4817 | fi |
| 4818 | else |
| 4819 | ac_cpp_err=yes |
| 4820 | fi |
| 4821 | if test -z "$ac_cpp_err"; then |
| 4822 | # Broken: success on invalid input. |
| 4823 | continue |
| 4824 | else |
| 4825 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4827 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4828 | # Passes both tests. |
| 4829 | ac_preproc_ok=: |
| 4830 | break |
| 4831 | fi |
| 4832 | rm -f conftest.err conftest.$ac_ext |
| 4833 | |
| 4834 | done |
| 4835 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4836 | rm -f conftest.err conftest.$ac_ext |
| 4837 | if $ac_preproc_ok; then |
| 4838 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4839 | fi |
| 4840 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4841 | done |
| 4842 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4843 | |
| 4844 | fi |
| 4845 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4846 | else |
| 4847 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4848 | fi |
| 4849 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4850 | echo "${ECHO_T}$CXXCPP" >&6 |
| 4851 | ac_preproc_ok=false |
| 4852 | for ac_cxx_preproc_warn_flag in '' yes |
| 4853 | do |
| 4854 | # Use a header file that comes with gcc, so configuring glibc |
| 4855 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4856 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4857 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4858 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4859 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4860 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4861 | /* confdefs.h. */ |
| 4862 | _ACEOF |
| 4863 | cat confdefs.h >>conftest.$ac_ext |
| 4864 | cat >>conftest.$ac_ext <<_ACEOF |
| 4865 | /* end confdefs.h. */ |
| 4866 | #ifdef __STDC__ |
| 4867 | # include <limits.h> |
| 4868 | #else |
| 4869 | # include <assert.h> |
| 4870 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4871 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4872 | _ACEOF |
| 4873 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4874 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4875 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4876 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4877 | rm -f conftest.er1 |
| 4878 | cat conftest.err >&5 |
| 4879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4880 | (exit $ac_status); } >/dev/null; then |
| 4881 | if test -s conftest.err; then |
| 4882 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4883 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4884 | else |
| 4885 | ac_cpp_err= |
| 4886 | fi |
| 4887 | else |
| 4888 | ac_cpp_err=yes |
| 4889 | fi |
| 4890 | if test -z "$ac_cpp_err"; then |
| 4891 | : |
| 4892 | else |
| 4893 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4895 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4896 | # Broken: fails on valid input. |
| 4897 | continue |
| 4898 | fi |
| 4899 | rm -f conftest.err conftest.$ac_ext |
| 4900 | |
| 4901 | # OK, works on sane cases. Now check whether non-existent headers |
| 4902 | # can be detected and how. |
| 4903 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4904 | /* confdefs.h. */ |
| 4905 | _ACEOF |
| 4906 | cat confdefs.h >>conftest.$ac_ext |
| 4907 | cat >>conftest.$ac_ext <<_ACEOF |
| 4908 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4909 | #include <ac_nonexistent.h> |
| 4910 | _ACEOF |
| 4911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4913 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4914 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4915 | rm -f conftest.er1 |
| 4916 | cat conftest.err >&5 |
| 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4918 | (exit $ac_status); } >/dev/null; then |
| 4919 | if test -s conftest.err; then |
| 4920 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4921 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4922 | else |
| 4923 | ac_cpp_err= |
| 4924 | fi |
| 4925 | else |
| 4926 | ac_cpp_err=yes |
| 4927 | fi |
| 4928 | if test -z "$ac_cpp_err"; then |
| 4929 | # Broken: success on invalid input. |
| 4930 | continue |
| 4931 | else |
| 4932 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4934 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4935 | # Passes both tests. |
| 4936 | ac_preproc_ok=: |
| 4937 | break |
| 4938 | fi |
| 4939 | rm -f conftest.err conftest.$ac_ext |
| 4940 | |
| 4941 | done |
| 4942 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4943 | rm -f conftest.err conftest.$ac_ext |
| 4944 | if $ac_preproc_ok; then |
| 4945 | : |
| 4946 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4947 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4948 | See \`config.log' for more details." >&5 |
| 4949 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4950 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4951 | { (exit 1); exit 1; }; } |
| 4952 | fi |
| 4953 | |
| 4954 | ac_ext=cc |
| 4955 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4956 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4957 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4958 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4959 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4960 | fi |
| 4961 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4962 | |
| 4963 | ac_ext=f |
| 4964 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4965 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4966 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4967 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4968 | 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] | 4969 | do |
| 4970 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4971 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4972 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4974 | if test "${ac_cv_prog_F77+set}" = set; then |
| 4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4976 | else |
| 4977 | if test -n "$F77"; then |
| 4978 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 4979 | else |
| 4980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4981 | for as_dir in $PATH |
| 4982 | do |
| 4983 | IFS=$as_save_IFS |
| 4984 | test -z "$as_dir" && as_dir=. |
| 4985 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4987 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4989 | break 2 |
| 4990 | fi |
| 4991 | done |
| 4992 | done |
| 4993 | |
| 4994 | fi |
| 4995 | fi |
| 4996 | F77=$ac_cv_prog_F77 |
| 4997 | if test -n "$F77"; then |
| 4998 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 4999 | echo "${ECHO_T}$F77" >&6 |
| 5000 | else |
| 5001 | echo "$as_me:$LINENO: result: no" >&5 |
| 5002 | echo "${ECHO_T}no" >&6 |
| 5003 | fi |
| 5004 | |
| 5005 | test -n "$F77" && break |
| 5006 | done |
| 5007 | fi |
| 5008 | if test -z "$F77"; then |
| 5009 | ac_ct_F77=$F77 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5010 | 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] | 5011 | do |
| 5012 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5013 | set dummy $ac_prog; ac_word=$2 |
| 5014 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5016 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5018 | else |
| 5019 | if test -n "$ac_ct_F77"; then |
| 5020 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5021 | else |
| 5022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5023 | for as_dir in $PATH |
| 5024 | do |
| 5025 | IFS=$as_save_IFS |
| 5026 | test -z "$as_dir" && as_dir=. |
| 5027 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5028 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5029 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5031 | break 2 |
| 5032 | fi |
| 5033 | done |
| 5034 | done |
| 5035 | |
| 5036 | fi |
| 5037 | fi |
| 5038 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5039 | if test -n "$ac_ct_F77"; then |
| 5040 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5041 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 5042 | else |
| 5043 | echo "$as_me:$LINENO: result: no" >&5 |
| 5044 | echo "${ECHO_T}no" >&6 |
| 5045 | fi |
| 5046 | |
| 5047 | test -n "$ac_ct_F77" && break |
| 5048 | done |
| 5049 | |
| 5050 | F77=$ac_ct_F77 |
| 5051 | fi |
| 5052 | |
| 5053 | |
| 5054 | # Provide some information about the compiler. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5055 | echo "$as_me:5055:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5056 | "checking for Fortran 77 compiler version" >&5 |
| 5057 | ac_compiler=`set X $ac_compile; echo $2` |
| 5058 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5059 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5060 | ac_status=$? |
| 5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5062 | (exit $ac_status); } |
| 5063 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5064 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5065 | ac_status=$? |
| 5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5067 | (exit $ac_status); } |
| 5068 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5069 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5070 | ac_status=$? |
| 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5072 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5073 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5074 | |
| 5075 | # 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] | 5076 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5077 | ac_save_ext=$ac_ext |
| 5078 | ac_ext=F |
| 5079 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5080 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 5081 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5083 | else |
| 5084 | cat >conftest.$ac_ext <<_ACEOF |
| 5085 | program main |
| 5086 | #ifndef __GNUC__ |
| 5087 | choke me |
| 5088 | #endif |
| 5089 | |
| 5090 | end |
| 5091 | _ACEOF |
| 5092 | rm -f conftest.$ac_objext |
| 5093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5094 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5095 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5097 | rm -f conftest.er1 |
| 5098 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5100 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5101 | { ac_try='test -z "$ac_f77_werror_flag" |
| 5102 | || test ! -s conftest.err' |
| 5103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5104 | (eval $ac_try) 2>&5 |
| 5105 | ac_status=$? |
| 5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5107 | (exit $ac_status); }; } && |
| 5108 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5110 | (eval $ac_try) 2>&5 |
| 5111 | ac_status=$? |
| 5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5113 | (exit $ac_status); }; }; then |
| 5114 | ac_compiler_gnu=yes |
| 5115 | else |
| 5116 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5118 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5119 | ac_compiler_gnu=no |
| 5120 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5122 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 5123 | |
| 5124 | fi |
| 5125 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 5126 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 5127 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5128 | ac_test_FFLAGS=${FFLAGS+set} |
| 5129 | ac_save_FFLAGS=$FFLAGS |
| 5130 | FFLAGS= |
| 5131 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 5132 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 5133 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 5134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5135 | else |
| 5136 | FFLAGS=-g |
| 5137 | cat >conftest.$ac_ext <<_ACEOF |
| 5138 | program main |
| 5139 | |
| 5140 | end |
| 5141 | _ACEOF |
| 5142 | rm -f conftest.$ac_objext |
| 5143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5144 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5145 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5147 | rm -f conftest.er1 |
| 5148 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5150 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5151 | { ac_try='test -z "$ac_f77_werror_flag" |
| 5152 | || test ! -s conftest.err' |
| 5153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5154 | (eval $ac_try) 2>&5 |
| 5155 | ac_status=$? |
| 5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5157 | (exit $ac_status); }; } && |
| 5158 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5160 | (eval $ac_try) 2>&5 |
| 5161 | ac_status=$? |
| 5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5163 | (exit $ac_status); }; }; then |
| 5164 | ac_cv_prog_f77_g=yes |
| 5165 | else |
| 5166 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5169 | ac_cv_prog_f77_g=no |
| 5170 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5172 | |
| 5173 | fi |
| 5174 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 5175 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 5176 | if test "$ac_test_FFLAGS" = set; then |
| 5177 | FFLAGS=$ac_save_FFLAGS |
| 5178 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5179 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5180 | FFLAGS="-g -O2" |
| 5181 | else |
| 5182 | FFLAGS="-g" |
| 5183 | fi |
| 5184 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5185 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5186 | FFLAGS="-O2" |
| 5187 | else |
| 5188 | FFLAGS= |
| 5189 | fi |
| 5190 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5191 | |
| 5192 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5193 | ac_ext=c |
| 5194 | ac_cpp='$CPP $CPPFLAGS' |
| 5195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5198 | |
| 5199 | |
| 5200 | |
| 5201 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 5202 | |
| 5203 | # find the maximum length of command line arguments |
| 5204 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5205 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 5206 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5208 | else |
| 5209 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5210 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5211 | |
| 5212 | case $build_os in |
| 5213 | msdosdjgpp*) |
| 5214 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5215 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5216 | # during glob expansion). Even if it were fixed, the result of this |
| 5217 | # check would be larger than it should be. |
| 5218 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5219 | ;; |
| 5220 | |
| 5221 | gnu*) |
| 5222 | # Under GNU Hurd, this test is not required because there is |
| 5223 | # no limit to the length of command line arguments. |
| 5224 | # Libtool will interpret -1 as no limit whatsoever |
| 5225 | lt_cv_sys_max_cmd_len=-1; |
| 5226 | ;; |
| 5227 | |
| 5228 | cygwin* | mingw*) |
| 5229 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5230 | # about 5 minutes as the teststring grows exponentially. |
| 5231 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5232 | # you end up with a "frozen" computer, even though with patience |
| 5233 | # the test eventually succeeds (with a max line length of 256k). |
| 5234 | # Instead, let's just punt: use the minimum linelength reported by |
| 5235 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5236 | lt_cv_sys_max_cmd_len=8192; |
| 5237 | ;; |
| 5238 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5239 | amigaos*) |
| 5240 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5241 | # So we just punt and use a minimum line length of 8192. |
| 5242 | lt_cv_sys_max_cmd_len=8192; |
| 5243 | ;; |
| 5244 | |
| 5245 | netbsd* | freebsd* | openbsd* | darwin* ) |
| 5246 | # This has been around since 386BSD, at least. Likely further. |
| 5247 | if test -x /sbin/sysctl; then |
| 5248 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5249 | elif test -x /usr/sbin/sysctl; then |
| 5250 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5251 | else |
| 5252 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
| 5253 | fi |
| 5254 | # And add a safety zone |
| 5255 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5256 | ;; |
| 5257 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5258 | *) |
| 5259 | # If test is not a shell built-in, we'll probably end up computing a |
| 5260 | # maximum length that is only half of the actual maximum length, but |
| 5261 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5262 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5263 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 5264 | = "XX$teststring") >/dev/null 2>&1 && |
| 5265 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5266 | lt_cv_sys_max_cmd_len=$new_result && |
| 5267 | test $i != 17 # 1/2 MB should be enough |
| 5268 | do |
| 5269 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5270 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5271 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5272 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5273 | # Add a significant safety factor because C++ compilers can tack on massive |
| 5274 | # amounts of additional arguments before passing them to the linker. |
| 5275 | # It appears as though 1/2 is a usable value. |
| 5276 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5277 | ;; |
| 5278 | esac |
| 5279 | |
| 5280 | fi |
| 5281 | |
| 5282 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5283 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5284 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 5285 | else |
| 5286 | echo "$as_me:$LINENO: result: none" >&5 |
| 5287 | echo "${ECHO_T}none" >&6 |
| 5288 | fi |
| 5289 | |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5294 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5295 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 5296 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5298 | else |
| 5299 | |
| 5300 | # These are sane defaults that work on at least a few old systems. |
| 5301 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5302 | |
| 5303 | # Character class describing NM global symbol codes. |
| 5304 | symcode='[BCDEGRST]' |
| 5305 | |
| 5306 | # Regexp to match symbols that can be accessed directly from C. |
| 5307 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5308 | |
| 5309 | # Transform the above into a raw symbol and a C symbol. |
| 5310 | symxfrm='\1 \2\3 \3' |
| 5311 | |
| 5312 | # Transform an extracted symbol line into a proper C declaration |
| 5313 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5314 | |
| 5315 | # Transform an extracted symbol line into symbol name and symbol address |
| 5316 | 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'" |
| 5317 | |
| 5318 | # Define system-specific variables. |
| 5319 | case $host_os in |
| 5320 | aix*) |
| 5321 | symcode='[BCDT]' |
| 5322 | ;; |
| 5323 | cygwin* | mingw* | pw32*) |
| 5324 | symcode='[ABCDGISTW]' |
| 5325 | ;; |
| 5326 | hpux*) # Its linker distinguishes data from code symbols |
| 5327 | if test "$host_cpu" = ia64; then |
| 5328 | symcode='[ABCDEGRST]' |
| 5329 | fi |
| 5330 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5331 | 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'" |
| 5332 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5333 | linux*) |
| 5334 | if test "$host_cpu" = ia64; then |
| 5335 | symcode='[ABCDGIRSTW]' |
| 5336 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5337 | 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'" |
| 5338 | fi |
| 5339 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5340 | irix* | nonstopux*) |
| 5341 | symcode='[BCDEGRST]' |
| 5342 | ;; |
| 5343 | osf*) |
| 5344 | symcode='[BCDEGQRST]' |
| 5345 | ;; |
| 5346 | solaris* | sysv5*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5347 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5348 | ;; |
| 5349 | sysv4) |
| 5350 | symcode='[DFNSTU]' |
| 5351 | ;; |
| 5352 | esac |
| 5353 | |
| 5354 | # Handle CRLF in mingw tool chain |
| 5355 | opt_cr= |
| 5356 | case $build_os in |
| 5357 | mingw*) |
| 5358 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5359 | ;; |
| 5360 | esac |
| 5361 | |
| 5362 | # If we're using GNU nm, then use its standard symbol codes. |
| 5363 | case `$NM -V 2>&1` in |
| 5364 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5365 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5366 | esac |
| 5367 | |
| 5368 | # Try without a prefix undercore, then with it. |
| 5369 | for ac_symprfx in "" "_"; do |
| 5370 | |
| 5371 | # Write the raw and C identifiers. |
| 5372 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 5373 | |
| 5374 | # Check to see that the pipe works correctly. |
| 5375 | pipe_works=no |
| 5376 | |
| 5377 | rm -f conftest* |
| 5378 | cat > conftest.$ac_ext <<EOF |
| 5379 | #ifdef __cplusplus |
| 5380 | extern "C" { |
| 5381 | #endif |
| 5382 | char nm_test_var; |
| 5383 | void nm_test_func(){} |
| 5384 | #ifdef __cplusplus |
| 5385 | } |
| 5386 | #endif |
| 5387 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5388 | EOF |
| 5389 | |
| 5390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5391 | (eval $ac_compile) 2>&5 |
| 5392 | ac_status=$? |
| 5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5394 | (exit $ac_status); }; then |
| 5395 | # Now try to grab the symbols. |
| 5396 | nlist=conftest.nm |
| 5397 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5398 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5399 | ac_status=$? |
| 5400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5401 | (exit $ac_status); } && test -s "$nlist"; then |
| 5402 | # Try sorting and uniquifying the output. |
| 5403 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5404 | mv -f "$nlist"T "$nlist" |
| 5405 | else |
| 5406 | rm -f "$nlist"T |
| 5407 | fi |
| 5408 | |
| 5409 | # Make sure that we snagged all the symbols we need. |
| 5410 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5411 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5412 | cat <<EOF > conftest.$ac_ext |
| 5413 | #ifdef __cplusplus |
| 5414 | extern "C" { |
| 5415 | #endif |
| 5416 | |
| 5417 | EOF |
| 5418 | # Now generate the symbol file. |
| 5419 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5420 | |
| 5421 | cat <<EOF >> conftest.$ac_ext |
| 5422 | #if defined (__STDC__) && __STDC__ |
| 5423 | # define lt_ptr_t void * |
| 5424 | #else |
| 5425 | # define lt_ptr_t char * |
| 5426 | # define const |
| 5427 | #endif |
| 5428 | |
| 5429 | /* The mapping between symbol names and symbols. */ |
| 5430 | const struct { |
| 5431 | const char *name; |
| 5432 | lt_ptr_t address; |
| 5433 | } |
| 5434 | lt_preloaded_symbols[] = |
| 5435 | { |
| 5436 | EOF |
| 5437 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5438 | cat <<\EOF >> conftest.$ac_ext |
| 5439 | {0, (lt_ptr_t) 0} |
| 5440 | }; |
| 5441 | |
| 5442 | #ifdef __cplusplus |
| 5443 | } |
| 5444 | #endif |
| 5445 | EOF |
| 5446 | # Now try linking the two files. |
| 5447 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5448 | lt_save_LIBS="$LIBS" |
| 5449 | lt_save_CFLAGS="$CFLAGS" |
| 5450 | LIBS="conftstm.$ac_objext" |
| 5451 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5453 | (eval $ac_link) 2>&5 |
| 5454 | ac_status=$? |
| 5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5456 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5457 | pipe_works=yes |
| 5458 | fi |
| 5459 | LIBS="$lt_save_LIBS" |
| 5460 | CFLAGS="$lt_save_CFLAGS" |
| 5461 | else |
| 5462 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5463 | fi |
| 5464 | else |
| 5465 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5466 | fi |
| 5467 | else |
| 5468 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5469 | fi |
| 5470 | else |
| 5471 | echo "$progname: failed program was:" >&5 |
| 5472 | cat conftest.$ac_ext >&5 |
| 5473 | fi |
| 5474 | rm -f conftest* conftst* |
| 5475 | |
| 5476 | # Do not use the global_symbol_pipe unless it works. |
| 5477 | if test "$pipe_works" = yes; then |
| 5478 | break |
| 5479 | else |
| 5480 | lt_cv_sys_global_symbol_pipe= |
| 5481 | fi |
| 5482 | done |
| 5483 | |
| 5484 | fi |
| 5485 | |
| 5486 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5487 | lt_cv_sys_global_symbol_to_cdecl= |
| 5488 | fi |
| 5489 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5490 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5491 | echo "${ECHO_T}failed" >&6 |
| 5492 | else |
| 5493 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5494 | echo "${ECHO_T}ok" >&6 |
| 5495 | fi |
| 5496 | |
| 5497 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5498 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5499 | if test "${lt_cv_objdir+set}" = set; then |
| 5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5501 | else |
| 5502 | rm -f .libs 2>/dev/null |
| 5503 | mkdir .libs 2>/dev/null |
| 5504 | if test -d .libs; then |
| 5505 | lt_cv_objdir=.libs |
| 5506 | else |
| 5507 | # MS-DOS does not allow filenames that begin with a dot. |
| 5508 | lt_cv_objdir=_libs |
| 5509 | fi |
| 5510 | rmdir .libs 2>/dev/null |
| 5511 | fi |
| 5512 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5513 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 5514 | objdir=$lt_cv_objdir |
| 5515 | |
| 5516 | |
| 5517 | |
| 5518 | |
| 5519 | |
| 5520 | case $host_os in |
| 5521 | aix3*) |
| 5522 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5523 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5524 | # vanish in a puff of smoke. |
| 5525 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5526 | COLLECT_NAMES= |
| 5527 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5528 | fi |
| 5529 | ;; |
| 5530 | esac |
| 5531 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5532 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5533 | # metacharacters that are still active within double-quoted strings. |
| 5534 | Xsed='sed -e s/^X//' |
| 5535 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5536 | |
| 5537 | # Same as above, but do not quote variable references. |
| 5538 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5539 | |
| 5540 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5541 | # double_quote_subst'ed string. |
| 5542 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5543 | |
| 5544 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5545 | no_glob_subst='s/\*/\\\*/g' |
| 5546 | |
| 5547 | # Constants: |
| 5548 | rm="rm -f" |
| 5549 | |
| 5550 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 5551 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5552 | can_build_shared=yes |
| 5553 | |
| 5554 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5555 | # which needs '.lib'). |
| 5556 | libext=a |
| 5557 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5558 | ofile="$default_ofile" |
| 5559 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5560 | |
| 5561 | if test -n "$ac_tool_prefix"; then |
| 5562 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5563 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5566 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5568 | else |
| 5569 | if test -n "$AR"; then |
| 5570 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5571 | else |
| 5572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5573 | for as_dir in $PATH |
| 5574 | do |
| 5575 | IFS=$as_save_IFS |
| 5576 | test -z "$as_dir" && as_dir=. |
| 5577 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5578 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5579 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5580 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5581 | break 2 |
| 5582 | fi |
| 5583 | done |
| 5584 | done |
| 5585 | |
| 5586 | fi |
| 5587 | fi |
| 5588 | AR=$ac_cv_prog_AR |
| 5589 | if test -n "$AR"; then |
| 5590 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5591 | echo "${ECHO_T}$AR" >&6 |
| 5592 | else |
| 5593 | echo "$as_me:$LINENO: result: no" >&5 |
| 5594 | echo "${ECHO_T}no" >&6 |
| 5595 | fi |
| 5596 | |
| 5597 | fi |
| 5598 | if test -z "$ac_cv_prog_AR"; then |
| 5599 | ac_ct_AR=$AR |
| 5600 | # Extract the first word of "ar", so it can be a program name with args. |
| 5601 | set dummy ar; ac_word=$2 |
| 5602 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5604 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5606 | else |
| 5607 | if test -n "$ac_ct_AR"; then |
| 5608 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5609 | else |
| 5610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5611 | for as_dir in $PATH |
| 5612 | do |
| 5613 | IFS=$as_save_IFS |
| 5614 | test -z "$as_dir" && as_dir=. |
| 5615 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5616 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5617 | ac_cv_prog_ac_ct_AR="ar" |
| 5618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5619 | break 2 |
| 5620 | fi |
| 5621 | done |
| 5622 | done |
| 5623 | |
| 5624 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5625 | fi |
| 5626 | fi |
| 5627 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5628 | if test -n "$ac_ct_AR"; then |
| 5629 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5630 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5631 | else |
| 5632 | echo "$as_me:$LINENO: result: no" >&5 |
| 5633 | echo "${ECHO_T}no" >&6 |
| 5634 | fi |
| 5635 | |
| 5636 | AR=$ac_ct_AR |
| 5637 | else |
| 5638 | AR="$ac_cv_prog_AR" |
| 5639 | fi |
| 5640 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5641 | if test -n "$ac_tool_prefix"; then |
| 5642 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5643 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5646 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5648 | else |
| 5649 | if test -n "$RANLIB"; then |
| 5650 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5651 | else |
| 5652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5653 | for as_dir in $PATH |
| 5654 | do |
| 5655 | IFS=$as_save_IFS |
| 5656 | test -z "$as_dir" && as_dir=. |
| 5657 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5659 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5661 | break 2 |
| 5662 | fi |
| 5663 | done |
| 5664 | done |
| 5665 | |
| 5666 | fi |
| 5667 | fi |
| 5668 | RANLIB=$ac_cv_prog_RANLIB |
| 5669 | if test -n "$RANLIB"; then |
| 5670 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5671 | echo "${ECHO_T}$RANLIB" >&6 |
| 5672 | else |
| 5673 | echo "$as_me:$LINENO: result: no" >&5 |
| 5674 | echo "${ECHO_T}no" >&6 |
| 5675 | fi |
| 5676 | |
| 5677 | fi |
| 5678 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5679 | ac_ct_RANLIB=$RANLIB |
| 5680 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5681 | set dummy ranlib; ac_word=$2 |
| 5682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5684 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5686 | else |
| 5687 | if test -n "$ac_ct_RANLIB"; then |
| 5688 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5689 | else |
| 5690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5691 | for as_dir in $PATH |
| 5692 | do |
| 5693 | IFS=$as_save_IFS |
| 5694 | test -z "$as_dir" && as_dir=. |
| 5695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5697 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5699 | break 2 |
| 5700 | fi |
| 5701 | done |
| 5702 | done |
| 5703 | |
| 5704 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5705 | fi |
| 5706 | fi |
| 5707 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5708 | if test -n "$ac_ct_RANLIB"; then |
| 5709 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5710 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5711 | else |
| 5712 | echo "$as_me:$LINENO: result: no" >&5 |
| 5713 | echo "${ECHO_T}no" >&6 |
| 5714 | fi |
| 5715 | |
| 5716 | RANLIB=$ac_ct_RANLIB |
| 5717 | else |
| 5718 | RANLIB="$ac_cv_prog_RANLIB" |
| 5719 | fi |
| 5720 | |
| 5721 | if test -n "$ac_tool_prefix"; then |
| 5722 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5723 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5724 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5726 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5728 | else |
| 5729 | if test -n "$STRIP"; then |
| 5730 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5731 | else |
| 5732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5733 | for as_dir in $PATH |
| 5734 | do |
| 5735 | IFS=$as_save_IFS |
| 5736 | test -z "$as_dir" && as_dir=. |
| 5737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5739 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5741 | break 2 |
| 5742 | fi |
| 5743 | done |
| 5744 | done |
| 5745 | |
| 5746 | fi |
| 5747 | fi |
| 5748 | STRIP=$ac_cv_prog_STRIP |
| 5749 | if test -n "$STRIP"; then |
| 5750 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5751 | echo "${ECHO_T}$STRIP" >&6 |
| 5752 | else |
| 5753 | echo "$as_me:$LINENO: result: no" >&5 |
| 5754 | echo "${ECHO_T}no" >&6 |
| 5755 | fi |
| 5756 | |
| 5757 | fi |
| 5758 | if test -z "$ac_cv_prog_STRIP"; then |
| 5759 | ac_ct_STRIP=$STRIP |
| 5760 | # Extract the first word of "strip", so it can be a program name with args. |
| 5761 | set dummy strip; ac_word=$2 |
| 5762 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5764 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5766 | else |
| 5767 | if test -n "$ac_ct_STRIP"; then |
| 5768 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5769 | else |
| 5770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5771 | for as_dir in $PATH |
| 5772 | do |
| 5773 | IFS=$as_save_IFS |
| 5774 | test -z "$as_dir" && as_dir=. |
| 5775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5777 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5779 | break 2 |
| 5780 | fi |
| 5781 | done |
| 5782 | done |
| 5783 | |
| 5784 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5785 | fi |
| 5786 | fi |
| 5787 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5788 | if test -n "$ac_ct_STRIP"; then |
| 5789 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5790 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5791 | else |
| 5792 | echo "$as_me:$LINENO: result: no" >&5 |
| 5793 | echo "${ECHO_T}no" >&6 |
| 5794 | fi |
| 5795 | |
| 5796 | STRIP=$ac_ct_STRIP |
| 5797 | else |
| 5798 | STRIP="$ac_cv_prog_STRIP" |
| 5799 | fi |
| 5800 | |
| 5801 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5802 | old_CC="$CC" |
| 5803 | old_CFLAGS="$CFLAGS" |
| 5804 | |
| 5805 | # Set sane defaults for various variables |
| 5806 | test -z "$AR" && AR=ar |
| 5807 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5808 | test -z "$AS" && AS=as |
| 5809 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5810 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5811 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5812 | test -z "$LD" && LD=ld |
| 5813 | test -z "$LN_S" && LN_S="ln -s" |
| 5814 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5815 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5816 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5817 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5818 | test -z "$RANLIB" && RANLIB=: |
| 5819 | test -z "$STRIP" && STRIP=: |
| 5820 | test -z "$ac_objext" && ac_objext=o |
| 5821 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5822 | # Determine commands to create old-style static archives. |
| 5823 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5824 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5825 | old_postuninstall_cmds= |
| 5826 | |
| 5827 | if test -n "$RANLIB"; then |
| 5828 | case $host_os in |
| 5829 | openbsd*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5830 | old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5831 | ;; |
| 5832 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5833 | old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5834 | ;; |
| 5835 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5836 | old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5837 | fi |
| 5838 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5839 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 5840 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5841 | # Only perform the check for file, if the check method requires it |
| 5842 | case $deplibs_check_method in |
| 5843 | file_magic*) |
| 5844 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5845 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5846 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5847 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5849 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5850 | case $MAGIC_CMD in |
| 5851 | [\\/*] | ?:[\\/]*) |
| 5852 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5853 | ;; |
| 5854 | *) |
| 5855 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5856 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5857 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5858 | for ac_dir in $ac_dummy; do |
| 5859 | IFS="$lt_save_ifs" |
| 5860 | test -z "$ac_dir" && ac_dir=. |
| 5861 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5862 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5863 | if test -n "$file_magic_test_file"; then |
| 5864 | case $deplibs_check_method in |
| 5865 | "file_magic "*) |
| 5866 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5867 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5868 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5869 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5870 | : |
| 5871 | else |
| 5872 | cat <<EOF 1>&2 |
| 5873 | |
| 5874 | *** Warning: the command libtool uses to detect shared libraries, |
| 5875 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5876 | *** The result is that libtool may fail to recognize shared libraries |
| 5877 | *** as such. This will affect the creation of libtool libraries that |
| 5878 | *** depend on shared libraries, but programs linked with such libtool |
| 5879 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5880 | *** may want to report the problem to your system manager and/or to |
| 5881 | *** bug-libtool@gnu.org |
| 5882 | |
| 5883 | EOF |
| 5884 | fi ;; |
| 5885 | esac |
| 5886 | fi |
| 5887 | break |
| 5888 | fi |
| 5889 | done |
| 5890 | IFS="$lt_save_ifs" |
| 5891 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5892 | ;; |
| 5893 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5894 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5895 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5896 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5897 | if test -n "$MAGIC_CMD"; then |
| 5898 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5899 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5900 | else |
| 5901 | echo "$as_me:$LINENO: result: no" >&5 |
| 5902 | echo "${ECHO_T}no" >&6 |
| 5903 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5904 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5905 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5906 | if test -n "$ac_tool_prefix"; then |
| 5907 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5908 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 5909 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5911 | else |
| 5912 | case $MAGIC_CMD in |
| 5913 | [\\/*] | ?:[\\/]*) |
| 5914 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5915 | ;; |
| 5916 | *) |
| 5917 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5918 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5919 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5920 | for ac_dir in $ac_dummy; do |
| 5921 | IFS="$lt_save_ifs" |
| 5922 | test -z "$ac_dir" && ac_dir=. |
| 5923 | if test -f $ac_dir/file; then |
| 5924 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5925 | if test -n "$file_magic_test_file"; then |
| 5926 | case $deplibs_check_method in |
| 5927 | "file_magic "*) |
| 5928 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5929 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5930 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5931 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5932 | : |
| 5933 | else |
| 5934 | cat <<EOF 1>&2 |
| 5935 | |
| 5936 | *** Warning: the command libtool uses to detect shared libraries, |
| 5937 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5938 | *** The result is that libtool may fail to recognize shared libraries |
| 5939 | *** as such. This will affect the creation of libtool libraries that |
| 5940 | *** depend on shared libraries, but programs linked with such libtool |
| 5941 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5942 | *** may want to report the problem to your system manager and/or to |
| 5943 | *** bug-libtool@gnu.org |
| 5944 | |
| 5945 | EOF |
| 5946 | fi ;; |
| 5947 | esac |
| 5948 | fi |
| 5949 | break |
| 5950 | fi |
| 5951 | done |
| 5952 | IFS="$lt_save_ifs" |
| 5953 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5954 | ;; |
| 5955 | esac |
| 5956 | fi |
| 5957 | |
| 5958 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5959 | if test -n "$MAGIC_CMD"; then |
| 5960 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5961 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5962 | else |
| 5963 | echo "$as_me:$LINENO: result: no" >&5 |
| 5964 | echo "${ECHO_T}no" >&6 |
| 5965 | fi |
| 5966 | |
| 5967 | else |
| 5968 | MAGIC_CMD=: |
| 5969 | fi |
| 5970 | fi |
| 5971 | |
| 5972 | fi |
| 5973 | ;; |
| 5974 | esac |
| 5975 | |
| 5976 | enable_dlopen=no |
| 5977 | enable_win32_dll=no |
| 5978 | |
| 5979 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5980 | if test "${enable_libtool_lock+set}" = set; then |
| 5981 | enableval="$enable_libtool_lock" |
| 5982 | |
| 5983 | fi; |
| 5984 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5986 | |
| 5987 | # Check whether --with-pic or --without-pic was given. |
| 5988 | if test "${with_pic+set}" = set; then |
| 5989 | withval="$with_pic" |
| 5990 | pic_mode="$withval" |
| 5991 | else |
| 5992 | pic_mode=default |
| 5993 | fi; |
| 5994 | test -z "$pic_mode" && pic_mode=default |
| 5995 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5996 | # Use C for the default configuration in the libtool script |
| 5997 | tagname= |
| 5998 | lt_save_CC="$CC" |
| 5999 | ac_ext=c |
| 6000 | ac_cpp='$CPP $CPPFLAGS' |
| 6001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6004 | |
| 6005 | |
| 6006 | # Source file extension for C test sources. |
| 6007 | ac_ext=c |
| 6008 | |
| 6009 | # Object file extension for compiled C test sources. |
| 6010 | objext=o |
| 6011 | objext=$objext |
| 6012 | |
| 6013 | # Code to be used in simple compile tests |
| 6014 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 6015 | |
| 6016 | # Code to be used in simple link tests |
| 6017 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 6018 | |
| 6019 | |
| 6020 | # If no C compiler was specified, use CC. |
| 6021 | LTCC=${LTCC-"$CC"} |
| 6022 | |
| 6023 | # Allow CC to be a program name with arguments. |
| 6024 | compiler=$CC |
| 6025 | |
| 6026 | |
| 6027 | # |
| 6028 | # Check for any special shared library compilation flags. |
| 6029 | # |
| 6030 | lt_prog_cc_shlib= |
| 6031 | if test "$GCC" = no; then |
| 6032 | case $host_os in |
| 6033 | sco3.2v5*) |
| 6034 | lt_prog_cc_shlib='-belf' |
| 6035 | ;; |
| 6036 | esac |
| 6037 | fi |
| 6038 | if test -n "$lt_prog_cc_shlib"; then |
| 6039 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 6040 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 6041 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 6042 | else |
| 6043 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 6044 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 6045 | lt_cv_prog_cc_can_build_shared=no |
| 6046 | fi |
| 6047 | fi |
| 6048 | |
| 6049 | |
| 6050 | # |
| 6051 | # Check to make sure the static flag actually works. |
| 6052 | # |
| 6053 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 6054 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 6055 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6057 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6058 | lt_prog_compiler_static_works=no |
| 6059 | save_LDFLAGS="$LDFLAGS" |
| 6060 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 6061 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6062 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6063 | # The compiler can only warn and ignore the option if not recognized |
| 6064 | # So say no if there are warnings |
| 6065 | if test -s conftest.err; then |
| 6066 | # Append any errors to the config.log. |
| 6067 | cat conftest.err 1>&5 |
| 6068 | else |
| 6069 | lt_prog_compiler_static_works=yes |
| 6070 | fi |
| 6071 | fi |
| 6072 | $rm conftest* |
| 6073 | LDFLAGS="$save_LDFLAGS" |
| 6074 | |
| 6075 | fi |
| 6076 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 6077 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 6078 | |
| 6079 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 6080 | : |
| 6081 | else |
| 6082 | lt_prog_compiler_static= |
| 6083 | fi |
| 6084 | |
| 6085 | |
| 6086 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6087 | |
| 6088 | lt_prog_compiler_no_builtin_flag= |
| 6089 | |
| 6090 | if test "$GCC" = yes; then |
| 6091 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6092 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6093 | |
| 6094 | 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] | 6095 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 6096 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6098 | else |
| 6099 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6100 | ac_outfile=conftest.$ac_objext |
| 6101 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6102 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6103 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6104 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6105 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6106 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6107 | # The option is referenced via a variable to avoid confusing sed. |
| 6108 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6109 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6110 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6111 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6112 | (eval echo "\"\$as_me:6112: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6113 | (eval "$lt_compile" 2>conftest.err) |
| 6114 | ac_status=$? |
| 6115 | cat conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6116 | echo "$as_me:6116: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6117 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6118 | # The compiler can only warn and ignore the option if not recognized |
| 6119 | # So say no if there are warnings |
| 6120 | if test ! -s conftest.err; then |
| 6121 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6122 | fi |
| 6123 | fi |
| 6124 | $rm conftest* |
| 6125 | |
| 6126 | fi |
| 6127 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6128 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 6129 | |
| 6130 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6131 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6132 | else |
| 6133 | : |
| 6134 | fi |
| 6135 | |
| 6136 | fi |
| 6137 | |
| 6138 | lt_prog_compiler_wl= |
| 6139 | lt_prog_compiler_pic= |
| 6140 | lt_prog_compiler_static= |
| 6141 | |
| 6142 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6143 | 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] | 6144 | |
| 6145 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6146 | lt_prog_compiler_wl='-Wl,' |
| 6147 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6148 | |
| 6149 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6150 | aix*) |
| 6151 | # All AIX code is PIC. |
| 6152 | if test "$host_cpu" = ia64; then |
| 6153 | # AIX 5 now supports IA64 processor |
| 6154 | lt_prog_compiler_static='-Bstatic' |
| 6155 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6156 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6157 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6158 | amigaos*) |
| 6159 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6160 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6161 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6162 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6163 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6164 | |
| 6165 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6166 | # PIC is the default for these OSes. |
| 6167 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6168 | |
| 6169 | mingw* | pw32* | os2*) |
| 6170 | # This hack is so that the source file can tell whether it is being |
| 6171 | # built for inclusion in a dll (and should export symbols for example). |
| 6172 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6173 | ;; |
| 6174 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6175 | darwin* | rhapsody*) |
| 6176 | # PIC is the default on this platform |
| 6177 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6178 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6179 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6180 | |
| 6181 | msdosdjgpp*) |
| 6182 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6183 | # on systems that don't support them. |
| 6184 | lt_prog_compiler_can_build_shared=no |
| 6185 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6186 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6187 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6188 | sysv4*MP*) |
| 6189 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6190 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6191 | fi |
| 6192 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6193 | |
| 6194 | hpux*) |
| 6195 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6196 | # not for PA HP-UX. |
| 6197 | case "$host_cpu" in |
| 6198 | hppa*64*|ia64*) |
| 6199 | # +Z the default |
| 6200 | ;; |
| 6201 | *) |
| 6202 | lt_prog_compiler_pic='-fPIC' |
| 6203 | ;; |
| 6204 | esac |
| 6205 | ;; |
| 6206 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6207 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6208 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6209 | ;; |
| 6210 | esac |
| 6211 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6212 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6213 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6214 | aix*) |
| 6215 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6216 | if test "$host_cpu" = ia64; then |
| 6217 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6218 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6219 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6220 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6221 | fi |
| 6222 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6223 | darwin*) |
| 6224 | # PIC is the default on this platform |
| 6225 | # Common symbols not allowed in MH_DYLIB files |
| 6226 | case "$cc_basename" in |
| 6227 | xlc*) |
| 6228 | lt_prog_compiler_pic='-qnocommon' |
| 6229 | lt_prog_compiler_wl='-Wl,' |
| 6230 | ;; |
| 6231 | esac |
| 6232 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6233 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6234 | mingw* | pw32* | os2*) |
| 6235 | # This hack is so that the source file can tell whether it is being |
| 6236 | # built for inclusion in a dll (and should export symbols for example). |
| 6237 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6238 | ;; |
| 6239 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6240 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6241 | lt_prog_compiler_wl='-Wl,' |
| 6242 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6243 | # not for PA HP-UX. |
| 6244 | case "$host_cpu" in |
| 6245 | hppa*64*|ia64*) |
| 6246 | # +Z the default |
| 6247 | ;; |
| 6248 | *) |
| 6249 | lt_prog_compiler_pic='+Z' |
| 6250 | ;; |
| 6251 | esac |
| 6252 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6253 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6254 | ;; |
| 6255 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6256 | irix5* | irix6* | nonstopux*) |
| 6257 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6258 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6259 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6260 | ;; |
| 6261 | |
| 6262 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6263 | lt_prog_compiler_pic='-KPIC' |
| 6264 | lt_prog_compiler_static='-Bstatic' |
| 6265 | ;; |
| 6266 | |
| 6267 | linux*) |
| 6268 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6269 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6270 | lt_prog_compiler_wl='-Wl,' |
| 6271 | lt_prog_compiler_pic='-KPIC' |
| 6272 | lt_prog_compiler_static='-static' |
| 6273 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6274 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6275 | lt_prog_compiler_wl='-Wl,' |
| 6276 | # All Alpha code is PIC. |
| 6277 | lt_prog_compiler_static='-non_shared' |
| 6278 | ;; |
| 6279 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6280 | ;; |
| 6281 | |
| 6282 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6283 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6284 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6285 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6286 | ;; |
| 6287 | |
| 6288 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6289 | lt_prog_compiler_pic='-Kpic' |
| 6290 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6291 | ;; |
| 6292 | |
| 6293 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6294 | lt_prog_compiler_wl='-Wl,' |
| 6295 | lt_prog_compiler_pic='-KPIC' |
| 6296 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6297 | ;; |
| 6298 | |
| 6299 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6300 | lt_prog_compiler_wl='-Qoption ld ' |
| 6301 | lt_prog_compiler_pic='-PIC' |
| 6302 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6303 | ;; |
| 6304 | |
| 6305 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6306 | lt_prog_compiler_wl='-Wl,' |
| 6307 | lt_prog_compiler_pic='-KPIC' |
| 6308 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6309 | ;; |
| 6310 | |
| 6311 | sysv4*MP*) |
| 6312 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6313 | lt_prog_compiler_pic='-Kconform_pic' |
| 6314 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6315 | fi |
| 6316 | ;; |
| 6317 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6318 | uts4*) |
| 6319 | lt_prog_compiler_pic='-pic' |
| 6320 | lt_prog_compiler_static='-Bstatic' |
| 6321 | ;; |
| 6322 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6323 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6324 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6325 | ;; |
| 6326 | esac |
| 6327 | fi |
| 6328 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6329 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6330 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6331 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6332 | # |
| 6333 | # Check to make sure the PIC flag actually works. |
| 6334 | # |
| 6335 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6336 | |
| 6337 | 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] | 6338 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6339 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6341 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6342 | lt_prog_compiler_pic_works=no |
| 6343 | ac_outfile=conftest.$ac_objext |
| 6344 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6345 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6346 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6347 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6348 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6349 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6350 | # The option is referenced via a variable to avoid confusing sed. |
| 6351 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6352 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6353 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6354 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6355 | (eval echo "\"\$as_me:6355: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6356 | (eval "$lt_compile" 2>conftest.err) |
| 6357 | ac_status=$? |
| 6358 | cat conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6359 | echo "$as_me:6359: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6360 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6361 | # The compiler can only warn and ignore the option if not recognized |
| 6362 | # So say no if there are warnings |
| 6363 | if test ! -s conftest.err; then |
| 6364 | lt_prog_compiler_pic_works=yes |
| 6365 | fi |
| 6366 | fi |
| 6367 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6368 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6369 | fi |
| 6370 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 6371 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6372 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6373 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 6374 | case $lt_prog_compiler_pic in |
| 6375 | "" | " "*) ;; |
| 6376 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6377 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6378 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6379 | lt_prog_compiler_pic= |
| 6380 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6381 | fi |
| 6382 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6383 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6384 | case "$host_os" in |
| 6385 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6386 | *djgpp*) |
| 6387 | lt_prog_compiler_pic= |
| 6388 | ;; |
| 6389 | *) |
| 6390 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6391 | ;; |
| 6392 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6393 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6394 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6395 | 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] | 6396 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6398 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6399 | lt_cv_prog_compiler_c_o=no |
| 6400 | $rm -r conftest 2>/dev/null |
| 6401 | mkdir conftest |
| 6402 | cd conftest |
| 6403 | mkdir out |
| 6404 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6405 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6406 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6407 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6408 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6409 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6410 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6411 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6412 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6413 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6414 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6415 | (eval echo "\"\$as_me:6415: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6416 | (eval "$lt_compile" 2>out/conftest.err) |
| 6417 | ac_status=$? |
| 6418 | cat out/conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6419 | echo "$as_me:6419: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6420 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6421 | then |
| 6422 | # The compiler can only warn and ignore the option if not recognized |
| 6423 | # So say no if there are warnings |
| 6424 | if test ! -s out/conftest.err; then |
| 6425 | lt_cv_prog_compiler_c_o=yes |
| 6426 | fi |
| 6427 | fi |
| 6428 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6429 | $rm conftest* |
| 6430 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6431 | # template instantiation |
| 6432 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 6433 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6434 | cd .. |
| 6435 | rmdir conftest |
| 6436 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6437 | |
| 6438 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6439 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6440 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6442 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6443 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6444 | 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] | 6445 | # do not overwrite the value of need_locks provided by the user |
| 6446 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6447 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 6448 | hard_links=yes |
| 6449 | $rm conftest* |
| 6450 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6451 | touch conftest.a |
| 6452 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6453 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6454 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6455 | echo "${ECHO_T}$hard_links" >&6 |
| 6456 | if test "$hard_links" = no; then |
| 6457 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6458 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6459 | need_locks=warn |
| 6460 | fi |
| 6461 | else |
| 6462 | need_locks=no |
| 6463 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6464 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6465 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6466 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6467 | |
| 6468 | runpath_var= |
| 6469 | allow_undefined_flag= |
| 6470 | enable_shared_with_static_runtimes=no |
| 6471 | archive_cmds= |
| 6472 | archive_expsym_cmds= |
| 6473 | old_archive_From_new_cmds= |
| 6474 | old_archive_from_expsyms_cmds= |
| 6475 | export_dynamic_flag_spec= |
| 6476 | whole_archive_flag_spec= |
| 6477 | thread_safe_flag_spec= |
| 6478 | hardcode_libdir_flag_spec= |
| 6479 | hardcode_libdir_flag_spec_ld= |
| 6480 | hardcode_libdir_separator= |
| 6481 | hardcode_direct=no |
| 6482 | hardcode_minus_L=no |
| 6483 | hardcode_shlibpath_var=unsupported |
| 6484 | link_all_deplibs=unknown |
| 6485 | hardcode_automatic=no |
| 6486 | module_cmds= |
| 6487 | module_expsym_cmds= |
| 6488 | always_export_symbols=no |
| 6489 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6490 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6491 | # included in the symbol list |
| 6492 | include_expsyms= |
| 6493 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6494 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6495 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6496 | # as well as any symbol that contains `d'. |
| 6497 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6498 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6499 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6500 | # the symbol is explicitly referenced. Since portable code cannot |
| 6501 | # rely on this symbol name, it's probably fine to never include it in |
| 6502 | # preloaded symbol tables. |
| 6503 | extract_expsyms_cmds= |
| 6504 | |
| 6505 | case $host_os in |
| 6506 | cygwin* | mingw* | pw32*) |
| 6507 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6508 | # When not using gcc, we currently assume that we are using |
| 6509 | # Microsoft Visual C++. |
| 6510 | if test "$GCC" != yes; then |
| 6511 | with_gnu_ld=no |
| 6512 | fi |
| 6513 | ;; |
| 6514 | openbsd*) |
| 6515 | with_gnu_ld=no |
| 6516 | ;; |
| 6517 | esac |
| 6518 | |
| 6519 | ld_shlibs=yes |
| 6520 | if test "$with_gnu_ld" = yes; then |
| 6521 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6522 | wlarc='${wl}' |
| 6523 | |
| 6524 | # See if GNU ld supports shared libraries. |
| 6525 | case $host_os in |
| 6526 | aix3* | aix4* | aix5*) |
| 6527 | # On AIX/PPC, the GNU linker is very broken |
| 6528 | if test "$host_cpu" != ia64; then |
| 6529 | ld_shlibs=no |
| 6530 | cat <<EOF 1>&2 |
| 6531 | |
| 6532 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6533 | *** to be unable to reliably create shared libraries on AIX. |
| 6534 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6535 | *** really care for shared libraries, you may want to modify your PATH |
| 6536 | *** so that a non-GNU linker is found, and then restart. |
| 6537 | |
| 6538 | EOF |
| 6539 | fi |
| 6540 | ;; |
| 6541 | |
| 6542 | amigaos*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6543 | 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] | 6544 | hardcode_libdir_flag_spec='-L$libdir' |
| 6545 | hardcode_minus_L=yes |
| 6546 | |
| 6547 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6548 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6549 | # to version 4, is to share data among multiple programs linked |
| 6550 | # with the same dynamic library. Since this doesn't match the |
| 6551 | # behavior of shared libraries on other platforms, we can't use |
| 6552 | # them. |
| 6553 | ld_shlibs=no |
| 6554 | ;; |
| 6555 | |
| 6556 | beos*) |
| 6557 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6558 | allow_undefined_flag=unsupported |
| 6559 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6560 | # support --undefined. This deserves some investigation. FIXME |
| 6561 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6562 | else |
| 6563 | ld_shlibs=no |
| 6564 | fi |
| 6565 | ;; |
| 6566 | |
| 6567 | cygwin* | mingw* | pw32*) |
| 6568 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6569 | # as there is no search path for DLLs. |
| 6570 | hardcode_libdir_flag_spec='-L$libdir' |
| 6571 | allow_undefined_flag=unsupported |
| 6572 | always_export_symbols=no |
| 6573 | enable_shared_with_static_runtimes=yes |
| 6574 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6575 | |
| 6576 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6577 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6578 | # If the export-symbols file already is a .def file (1st line |
| 6579 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6580 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6581 | cp $export_symbols $output_objdir/$soname.def; |
| 6582 | else |
| 6583 | echo EXPORTS > $output_objdir/$soname.def; |
| 6584 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6585 | fi;$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] | 6586 | else |
| 6587 | ld_shlibs=no |
| 6588 | fi |
| 6589 | ;; |
| 6590 | |
| 6591 | netbsd*) |
| 6592 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6593 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6594 | wlarc= |
| 6595 | else |
| 6596 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6597 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6598 | fi |
| 6599 | ;; |
| 6600 | |
| 6601 | solaris* | sysv5*) |
| 6602 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6603 | ld_shlibs=no |
| 6604 | cat <<EOF 1>&2 |
| 6605 | |
| 6606 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6607 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6608 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6609 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6610 | *** your PATH or compiler configuration so that the native linker is |
| 6611 | *** used, and then restart. |
| 6612 | |
| 6613 | EOF |
| 6614 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6615 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6616 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6617 | else |
| 6618 | ld_shlibs=no |
| 6619 | fi |
| 6620 | ;; |
| 6621 | |
| 6622 | sunos4*) |
| 6623 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6624 | wlarc= |
| 6625 | hardcode_direct=yes |
| 6626 | hardcode_shlibpath_var=no |
| 6627 | ;; |
| 6628 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6629 | linux*) |
| 6630 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6631 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6632 | archive_cmds="$tmp_archive_cmds" |
| 6633 | supports_anon_versioning=no |
| 6634 | case `$LD -v 2>/dev/null` in |
| 6635 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6636 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6637 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6638 | *\ 2.11.*) ;; # other 2.11 versions |
| 6639 | *) supports_anon_versioning=yes ;; |
| 6640 | esac |
| 6641 | if test $supports_anon_versioning = yes; then |
| 6642 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; |
| 6643 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6644 | else |
| 6645 | archive_expsym_cmds="$tmp_archive_cmds" |
| 6646 | fi |
| 6647 | else |
| 6648 | ld_shlibs=no |
| 6649 | fi |
| 6650 | ;; |
| 6651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6652 | *) |
| 6653 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6654 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6655 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6656 | else |
| 6657 | ld_shlibs=no |
| 6658 | fi |
| 6659 | ;; |
| 6660 | esac |
| 6661 | |
| 6662 | if test "$ld_shlibs" = yes; then |
| 6663 | runpath_var=LD_RUN_PATH |
| 6664 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6665 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6666 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6667 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6668 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6669 | else |
| 6670 | whole_archive_flag_spec= |
| 6671 | fi |
| 6672 | fi |
| 6673 | else |
| 6674 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6675 | case $host_os in |
| 6676 | aix3*) |
| 6677 | allow_undefined_flag=unsupported |
| 6678 | always_export_symbols=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6679 | 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] | 6680 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6681 | # are no directories specified by -L. |
| 6682 | hardcode_minus_L=yes |
| 6683 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6684 | # Neither direct hardcoding nor static linking is supported with a |
| 6685 | # broken collect2. |
| 6686 | hardcode_direct=unsupported |
| 6687 | fi |
| 6688 | ;; |
| 6689 | |
| 6690 | aix4* | aix5*) |
| 6691 | if test "$host_cpu" = ia64; then |
| 6692 | # On IA64, the linker does run time linking by default, so we don't |
| 6693 | # have to do anything special. |
| 6694 | aix_use_runtimelinking=no |
| 6695 | exp_sym_flag='-Bexport' |
| 6696 | no_entry_flag="" |
| 6697 | else |
| 6698 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6699 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6700 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6701 | 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' |
| 6702 | else |
| 6703 | 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' |
| 6704 | fi |
| 6705 | aix_use_runtimelinking=no |
| 6706 | |
| 6707 | # Test if we are trying to use run time linking or normal |
| 6708 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6709 | # need to do runtime linking. |
| 6710 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6711 | for ld_flag in $LDFLAGS; do |
| 6712 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6713 | aix_use_runtimelinking=yes |
| 6714 | break |
| 6715 | fi |
| 6716 | done |
| 6717 | esac |
| 6718 | |
| 6719 | exp_sym_flag='-bexport' |
| 6720 | no_entry_flag='-bnoentry' |
| 6721 | fi |
| 6722 | |
| 6723 | # When large executables or shared objects are built, AIX ld can |
| 6724 | # have problems creating the table of contents. If linking a library |
| 6725 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6726 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6727 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6728 | |
| 6729 | archive_cmds='' |
| 6730 | hardcode_direct=yes |
| 6731 | hardcode_libdir_separator=':' |
| 6732 | link_all_deplibs=yes |
| 6733 | |
| 6734 | if test "$GCC" = yes; then |
| 6735 | case $host_os in aix4.012|aix4.012.*) |
| 6736 | # We only want to do this on AIX 4.2 and lower, the check |
| 6737 | # below for broken collect2 doesn't work under 4.3+ |
| 6738 | collect2name=`${CC} -print-prog-name=collect2` |
| 6739 | if test -f "$collect2name" && \ |
| 6740 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6741 | then |
| 6742 | # We have reworked collect2 |
| 6743 | hardcode_direct=yes |
| 6744 | else |
| 6745 | # We have old collect2 |
| 6746 | hardcode_direct=unsupported |
| 6747 | # It fails to find uninstalled libraries when the uninstalled |
| 6748 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6749 | # to unsupported forces relinking |
| 6750 | hardcode_minus_L=yes |
| 6751 | hardcode_libdir_flag_spec='-L$libdir' |
| 6752 | hardcode_libdir_separator= |
| 6753 | fi |
| 6754 | esac |
| 6755 | shared_flag='-shared' |
| 6756 | else |
| 6757 | # not using gcc |
| 6758 | if test "$host_cpu" = ia64; then |
| 6759 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6760 | # chokes on -Wl,-G. The following line is correct: |
| 6761 | shared_flag='-G' |
| 6762 | else |
| 6763 | if test "$aix_use_runtimelinking" = yes; then |
| 6764 | shared_flag='${wl}-G' |
| 6765 | else |
| 6766 | shared_flag='${wl}-bM:SRE' |
| 6767 | fi |
| 6768 | fi |
| 6769 | fi |
| 6770 | |
| 6771 | # It seems that -bexpall does not export symbols beginning with |
| 6772 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6773 | always_export_symbols=yes |
| 6774 | if test "$aix_use_runtimelinking" = yes; then |
| 6775 | # Warning - without using the other runtime loading flags (-brtl), |
| 6776 | # -berok will link without error, but may produce a broken library. |
| 6777 | allow_undefined_flag='-berok' |
| 6778 | # Determine the default libpath from the value encoded in an empty executable. |
| 6779 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6780 | /* confdefs.h. */ |
| 6781 | _ACEOF |
| 6782 | cat confdefs.h >>conftest.$ac_ext |
| 6783 | cat >>conftest.$ac_ext <<_ACEOF |
| 6784 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6785 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6786 | int |
| 6787 | main () |
| 6788 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6789 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6790 | ; |
| 6791 | return 0; |
| 6792 | } |
| 6793 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6794 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6796 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6797 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6799 | rm -f conftest.er1 |
| 6800 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6802 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6803 | { ac_try='test -z "$ac_c_werror_flag" |
| 6804 | || test ! -s conftest.err' |
| 6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6806 | (eval $ac_try) 2>&5 |
| 6807 | ac_status=$? |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); }; } && |
| 6810 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6812 | (eval $ac_try) 2>&5 |
| 6813 | ac_status=$? |
| 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6815 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6816 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6817 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6818 | }'` |
| 6819 | # Check for a 64-bit object if we didn't find anything. |
| 6820 | 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; } |
| 6821 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6822 | else |
| 6823 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6825 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6826 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6827 | rm -f conftest.err conftest.$ac_objext \ |
| 6828 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6829 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6830 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6831 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6832 | 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" |
| 6833 | else |
| 6834 | if test "$host_cpu" = ia64; then |
| 6835 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6836 | allow_undefined_flag="-z nodefs" |
| 6837 | 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" |
| 6838 | else |
| 6839 | # Determine the default libpath from the value encoded in an empty executable. |
| 6840 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6841 | /* confdefs.h. */ |
| 6842 | _ACEOF |
| 6843 | cat confdefs.h >>conftest.$ac_ext |
| 6844 | cat >>conftest.$ac_ext <<_ACEOF |
| 6845 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6846 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6847 | int |
| 6848 | main () |
| 6849 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6850 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6851 | ; |
| 6852 | return 0; |
| 6853 | } |
| 6854 | _ACEOF |
| 6855 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6857 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6858 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6860 | rm -f conftest.er1 |
| 6861 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6863 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6864 | { ac_try='test -z "$ac_c_werror_flag" |
| 6865 | || test ! -s conftest.err' |
| 6866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6867 | (eval $ac_try) 2>&5 |
| 6868 | ac_status=$? |
| 6869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6870 | (exit $ac_status); }; } && |
| 6871 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6873 | (eval $ac_try) 2>&5 |
| 6874 | ac_status=$? |
| 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6876 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6877 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6878 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6879 | }'` |
| 6880 | # Check for a 64-bit object if we didn't find anything. |
| 6881 | 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; } |
| 6882 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6883 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6884 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6886 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6887 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6888 | rm -f conftest.err conftest.$ac_objext \ |
| 6889 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6890 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6891 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6892 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6893 | # Warning - without using the other run time loading flags, |
| 6894 | # -berok will link without error, but may produce a broken library. |
| 6895 | no_undefined_flag=' ${wl}-bernotok' |
| 6896 | allow_undefined_flag=' ${wl}-berok' |
| 6897 | # -bexpall does not export symbols beginning with underscore (_) |
| 6898 | always_export_symbols=yes |
| 6899 | # Exported symbols can be pulled into shared objects from archives |
| 6900 | whole_archive_flag_spec=' ' |
| 6901 | archive_cmds_need_lc=yes |
| 6902 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6903 | 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] | 6904 | fi |
| 6905 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6906 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6907 | |
| 6908 | amigaos*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6909 | 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] | 6910 | hardcode_libdir_flag_spec='-L$libdir' |
| 6911 | hardcode_minus_L=yes |
| 6912 | # see comment about different semantics on the GNU ld section |
| 6913 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6914 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6915 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6916 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6917 | export_dynamic_flag_spec=-rdynamic |
| 6918 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6919 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6920 | cygwin* | mingw* | pw32*) |
| 6921 | # When not using gcc, we currently assume that we are using |
| 6922 | # Microsoft Visual C++. |
| 6923 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6924 | # no search path for DLLs. |
| 6925 | hardcode_libdir_flag_spec=' ' |
| 6926 | allow_undefined_flag=unsupported |
| 6927 | # Tell ltmain to make .lib files, not .a files. |
| 6928 | libext=lib |
| 6929 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6930 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6931 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6932 | 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] | 6933 | # The linker will automatically build a .lib file if we build a DLL. |
| 6934 | old_archive_From_new_cmds='true' |
| 6935 | # FIXME: Should let the user specify the lib program. |
| 6936 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 6937 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6938 | enable_shared_with_static_runtimes=yes |
| 6939 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6940 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6941 | darwin* | rhapsody*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6942 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6943 | rhapsody* | darwin1.[012]) |
| 6944 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 6945 | ;; |
| 6946 | *) # Darwin 1.3 on |
| 6947 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 6948 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 6949 | else |
| 6950 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 6951 | 10.[012]) |
| 6952 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 6953 | ;; |
| 6954 | 10.*) |
| 6955 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 6956 | ;; |
| 6957 | esac |
| 6958 | fi |
| 6959 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6960 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6961 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6962 | hardcode_direct=no |
| 6963 | hardcode_automatic=yes |
| 6964 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6965 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6966 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6967 | if test "$GCC" = yes ; then |
| 6968 | output_verbose_link_cmd='echo' |
| 6969 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 6970 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 6971 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 6972 | 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}' |
| 6973 | 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}' |
| 6974 | else |
| 6975 | case "$cc_basename" in |
| 6976 | xlc*) |
| 6977 | output_verbose_link_cmd='echo' |
| 6978 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 6979 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 6980 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 6981 | 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}' |
| 6982 | 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}' |
| 6983 | ;; |
| 6984 | *) |
| 6985 | ld_shlibs=no |
| 6986 | ;; |
| 6987 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6988 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6989 | ;; |
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 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6992 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6993 | hardcode_libdir_flag_spec='-L$libdir' |
| 6994 | hardcode_shlibpath_var=no |
| 6995 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6996 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6997 | freebsd1*) |
| 6998 | ld_shlibs=no |
| 6999 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7000 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7001 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7002 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7003 | # does not break anything, and helps significantly (at the cost of a little |
| 7004 | # extra space). |
| 7005 | freebsd2.2*) |
| 7006 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7007 | hardcode_libdir_flag_spec='-R$libdir' |
| 7008 | hardcode_direct=yes |
| 7009 | hardcode_shlibpath_var=no |
| 7010 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7011 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7012 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7013 | freebsd2*) |
| 7014 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7015 | hardcode_direct=yes |
| 7016 | hardcode_minus_L=yes |
| 7017 | hardcode_shlibpath_var=no |
| 7018 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7019 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7020 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7021 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7022 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7023 | hardcode_libdir_flag_spec='-R$libdir' |
| 7024 | hardcode_direct=yes |
| 7025 | hardcode_shlibpath_var=no |
| 7026 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7027 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7028 | hpux9*) |
| 7029 | if test "$GCC" = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7030 | 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] | 7031 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7032 | 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] | 7033 | fi |
| 7034 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7035 | hardcode_libdir_separator=: |
| 7036 | hardcode_direct=yes |
| 7037 | |
| 7038 | # hardcode_minus_L: Not really in the search PATH, |
| 7039 | # but as the default location of the library. |
| 7040 | hardcode_minus_L=yes |
| 7041 | export_dynamic_flag_spec='${wl}-E' |
| 7042 | ;; |
| 7043 | |
| 7044 | hpux10* | hpux11*) |
| 7045 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7046 | case "$host_cpu" in |
| 7047 | hppa*64*|ia64*) |
| 7048 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7049 | ;; |
| 7050 | *) |
| 7051 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7052 | ;; |
| 7053 | esac |
| 7054 | else |
| 7055 | case "$host_cpu" in |
| 7056 | hppa*64*|ia64*) |
| 7057 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7058 | ;; |
| 7059 | *) |
| 7060 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7061 | ;; |
| 7062 | esac |
| 7063 | fi |
| 7064 | if test "$with_gnu_ld" = no; then |
| 7065 | case "$host_cpu" in |
| 7066 | hppa*64*) |
| 7067 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7068 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 7069 | hardcode_libdir_separator=: |
| 7070 | hardcode_direct=no |
| 7071 | hardcode_shlibpath_var=no |
| 7072 | ;; |
| 7073 | ia64*) |
| 7074 | hardcode_libdir_flag_spec='-L$libdir' |
| 7075 | hardcode_direct=no |
| 7076 | hardcode_shlibpath_var=no |
| 7077 | |
| 7078 | # hardcode_minus_L: Not really in the search PATH, |
| 7079 | # but as the default location of the library. |
| 7080 | hardcode_minus_L=yes |
| 7081 | ;; |
| 7082 | *) |
| 7083 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7084 | hardcode_libdir_separator=: |
| 7085 | hardcode_direct=yes |
| 7086 | export_dynamic_flag_spec='${wl}-E' |
| 7087 | |
| 7088 | # hardcode_minus_L: Not really in the search PATH, |
| 7089 | # but as the default location of the library. |
| 7090 | hardcode_minus_L=yes |
| 7091 | ;; |
| 7092 | esac |
| 7093 | fi |
| 7094 | ;; |
| 7095 | |
| 7096 | irix5* | irix6* | nonstopux*) |
| 7097 | if test "$GCC" = yes; then |
| 7098 | 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' |
| 7099 | else |
| 7100 | 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' |
| 7101 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7102 | fi |
| 7103 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7104 | hardcode_libdir_separator=: |
| 7105 | link_all_deplibs=yes |
| 7106 | ;; |
| 7107 | |
| 7108 | netbsd*) |
| 7109 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7110 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7111 | else |
| 7112 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7113 | fi |
| 7114 | hardcode_libdir_flag_spec='-R$libdir' |
| 7115 | hardcode_direct=yes |
| 7116 | hardcode_shlibpath_var=no |
| 7117 | ;; |
| 7118 | |
| 7119 | newsos6) |
| 7120 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7121 | hardcode_direct=yes |
| 7122 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7123 | hardcode_libdir_separator=: |
| 7124 | hardcode_shlibpath_var=no |
| 7125 | ;; |
| 7126 | |
| 7127 | openbsd*) |
| 7128 | hardcode_direct=yes |
| 7129 | hardcode_shlibpath_var=no |
| 7130 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7131 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7132 | 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] | 7133 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7134 | export_dynamic_flag_spec='${wl}-E' |
| 7135 | else |
| 7136 | case $host_os in |
| 7137 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7138 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7139 | hardcode_libdir_flag_spec='-R$libdir' |
| 7140 | ;; |
| 7141 | *) |
| 7142 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7143 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7144 | ;; |
| 7145 | esac |
| 7146 | fi |
| 7147 | ;; |
| 7148 | |
| 7149 | os2*) |
| 7150 | hardcode_libdir_flag_spec='-L$libdir' |
| 7151 | hardcode_minus_L=yes |
| 7152 | allow_undefined_flag=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7153 | 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] | 7154 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 7155 | ;; |
| 7156 | |
| 7157 | osf3*) |
| 7158 | if test "$GCC" = yes; then |
| 7159 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7160 | 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' |
| 7161 | else |
| 7162 | allow_undefined_flag=' -expect_unresolved \*' |
| 7163 | 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' |
| 7164 | fi |
| 7165 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7166 | hardcode_libdir_separator=: |
| 7167 | ;; |
| 7168 | |
| 7169 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7170 | if test "$GCC" = yes; then |
| 7171 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7172 | 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' |
| 7173 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7174 | else |
| 7175 | allow_undefined_flag=' -expect_unresolved \*' |
| 7176 | 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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7177 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7178 | # Both c and cxx compiler support -rpath directly |
| 7179 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7180 | fi |
| 7181 | hardcode_libdir_separator=: |
| 7182 | ;; |
| 7183 | |
| 7184 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7185 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7186 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7187 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7188 | runpath_var=LD_RUN_PATH |
| 7189 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7190 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7191 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7192 | solaris*) |
| 7193 | no_undefined_flag=' -z text' |
| 7194 | if test "$GCC" = yes; then |
| 7195 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7196 | archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 7197 | else |
| 7198 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7199 | archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 7200 | fi |
| 7201 | hardcode_libdir_flag_spec='-R$libdir' |
| 7202 | hardcode_shlibpath_var=no |
| 7203 | case $host_os in |
| 7204 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 7205 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7206 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 7207 | esac |
| 7208 | link_all_deplibs=yes |
| 7209 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7210 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7211 | sunos4*) |
| 7212 | if test "x$host_vendor" = xsequent; then |
| 7213 | # Use $CC to link under sequent, because it throws in some extra .o |
| 7214 | # files that make .init and .fini sections work. |
| 7215 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7216 | else |
| 7217 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 7218 | fi |
| 7219 | hardcode_libdir_flag_spec='-L$libdir' |
| 7220 | hardcode_direct=yes |
| 7221 | hardcode_minus_L=yes |
| 7222 | hardcode_shlibpath_var=no |
| 7223 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7224 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7225 | sysv4) |
| 7226 | case $host_vendor in |
| 7227 | sni) |
| 7228 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7229 | hardcode_direct=yes # is this really true??? |
| 7230 | ;; |
| 7231 | siemens) |
| 7232 | ## LD is ld it makes a PLAMLIB |
| 7233 | ## CC just makes a GrossModule. |
| 7234 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7235 | reload_cmds='$CC -r -o $output$reload_objs' |
| 7236 | hardcode_direct=no |
| 7237 | ;; |
| 7238 | motorola) |
| 7239 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7240 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 7241 | ;; |
| 7242 | esac |
| 7243 | runpath_var='LD_RUN_PATH' |
| 7244 | hardcode_shlibpath_var=no |
| 7245 | ;; |
| 7246 | |
| 7247 | sysv4.3*) |
| 7248 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7249 | hardcode_shlibpath_var=no |
| 7250 | export_dynamic_flag_spec='-Bexport' |
| 7251 | ;; |
| 7252 | |
| 7253 | sysv4*MP*) |
| 7254 | if test -d /usr/nec; then |
| 7255 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7256 | hardcode_shlibpath_var=no |
| 7257 | runpath_var=LD_RUN_PATH |
| 7258 | hardcode_runpath_var=yes |
| 7259 | ld_shlibs=yes |
| 7260 | fi |
| 7261 | ;; |
| 7262 | |
| 7263 | sysv4.2uw2*) |
| 7264 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7265 | hardcode_direct=yes |
| 7266 | hardcode_minus_L=no |
| 7267 | hardcode_shlibpath_var=no |
| 7268 | hardcode_runpath_var=yes |
| 7269 | runpath_var=LD_RUN_PATH |
| 7270 | ;; |
| 7271 | |
| 7272 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 7273 | no_undefined_flag='${wl}-z ${wl}text' |
| 7274 | if test "$GCC" = yes; then |
| 7275 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7276 | else |
| 7277 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7278 | fi |
| 7279 | runpath_var='LD_RUN_PATH' |
| 7280 | hardcode_shlibpath_var=no |
| 7281 | ;; |
| 7282 | |
| 7283 | sysv5*) |
| 7284 | no_undefined_flag=' -z text' |
| 7285 | # $CC -shared without GNU ld will not create a library from C++ |
| 7286 | # object files and a static libstdc++, better avoid it by now |
| 7287 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7288 | archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 7289 | hardcode_libdir_flag_spec= |
| 7290 | hardcode_shlibpath_var=no |
| 7291 | runpath_var='LD_RUN_PATH' |
| 7292 | ;; |
| 7293 | |
| 7294 | uts4*) |
| 7295 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7296 | hardcode_libdir_flag_spec='-L$libdir' |
| 7297 | hardcode_shlibpath_var=no |
| 7298 | ;; |
| 7299 | |
| 7300 | *) |
| 7301 | ld_shlibs=no |
| 7302 | ;; |
| 7303 | esac |
| 7304 | fi |
| 7305 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7306 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7307 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 7308 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7309 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7310 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 7311 | if test "$GCC" = yes; then |
| 7312 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 7313 | fi |
| 7314 | |
| 7315 | # |
| 7316 | # Do we need to explicitly link libc? |
| 7317 | # |
| 7318 | case "x$archive_cmds_need_lc" in |
| 7319 | x|xyes) |
| 7320 | # Assume -lc should be added |
| 7321 | archive_cmds_need_lc=yes |
| 7322 | |
| 7323 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7324 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7325 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7326 | # FIXME: we may have to deal with multi-command sequences. |
| 7327 | ;; |
| 7328 | '$CC '*) |
| 7329 | # Test whether the compiler implicitly links with -lc since on some |
| 7330 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7331 | # to ld, don't add -lc before -lgcc. |
| 7332 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7333 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7334 | $rm conftest* |
| 7335 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7336 | |
| 7337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7338 | (eval $ac_compile) 2>&5 |
| 7339 | ac_status=$? |
| 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7341 | (exit $ac_status); } 2>conftest.err; then |
| 7342 | soname=conftest |
| 7343 | lib=conftest |
| 7344 | libobjs=conftest.$ac_objext |
| 7345 | deplibs= |
| 7346 | wl=$lt_prog_compiler_wl |
| 7347 | compiler_flags=-v |
| 7348 | linker_flags=-v |
| 7349 | verstring= |
| 7350 | output_objdir=. |
| 7351 | libname=conftest |
| 7352 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7353 | allow_undefined_flag= |
| 7354 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7355 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7356 | ac_status=$? |
| 7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7358 | (exit $ac_status); } |
| 7359 | then |
| 7360 | archive_cmds_need_lc=no |
| 7361 | else |
| 7362 | archive_cmds_need_lc=yes |
| 7363 | fi |
| 7364 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7365 | else |
| 7366 | cat conftest.err 1>&5 |
| 7367 | fi |
| 7368 | $rm conftest* |
| 7369 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7370 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 7371 | ;; |
| 7372 | esac |
| 7373 | fi |
| 7374 | ;; |
| 7375 | esac |
| 7376 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7377 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7378 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 7379 | library_names_spec= |
| 7380 | libname_spec='lib$name' |
| 7381 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7382 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7383 | postinstall_cmds= |
| 7384 | postuninstall_cmds= |
| 7385 | finish_cmds= |
| 7386 | finish_eval= |
| 7387 | shlibpath_var= |
| 7388 | shlibpath_overrides_runpath=unknown |
| 7389 | version_type=none |
| 7390 | dynamic_linker="$host_os ld.so" |
| 7391 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7392 | if test "$GCC" = yes; then |
| 7393 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7394 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7395 | # if the path contains ";" then we assume it to be the separator |
| 7396 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7397 | # assumed that no part of a normal pathname contains ";" but that should |
| 7398 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7399 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7400 | else |
| 7401 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7402 | fi |
| 7403 | else |
| 7404 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7405 | fi |
| 7406 | need_lib_prefix=unknown |
| 7407 | hardcode_into_libs=no |
| 7408 | |
| 7409 | # when you set need_version to no, make sure it does not cause -set_version |
| 7410 | # flags to be left without arguments |
| 7411 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7412 | |
| 7413 | case $host_os in |
| 7414 | aix3*) |
| 7415 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7416 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7417 | shlibpath_var=LIBPATH |
| 7418 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7419 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7420 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7421 | ;; |
| 7422 | |
| 7423 | aix4* | aix5*) |
| 7424 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7425 | need_lib_prefix=no |
| 7426 | need_version=no |
| 7427 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7428 | if test "$host_cpu" = ia64; then |
| 7429 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7430 | 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] | 7431 | shlibpath_var=LD_LIBRARY_PATH |
| 7432 | else |
| 7433 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7434 | # for dependence libraries. The import file would start with |
| 7435 | # the line `#! .'. This would cause the generated library to |
| 7436 | # depend on `.', always an invalid library. This was fixed in |
| 7437 | # development snapshots of GCC prior to 3.0. |
| 7438 | case $host_os in |
| 7439 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7440 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7441 | echo ' yes ' |
| 7442 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7443 | : |
| 7444 | else |
| 7445 | can_build_shared=no |
| 7446 | fi |
| 7447 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7448 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7449 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7450 | # soname into executable. Probably we can add versioning support to |
| 7451 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7452 | if test "$aix_use_runtimelinking" = yes; then |
| 7453 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7454 | # instead of lib<name>.a to let people know that these are not |
| 7455 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7456 | 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] | 7457 | else |
| 7458 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7459 | # and later when we are not doing run time linking. |
| 7460 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7461 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7462 | fi |
| 7463 | shlibpath_var=LIBPATH |
| 7464 | fi |
| 7465 | ;; |
| 7466 | |
| 7467 | amigaos*) |
| 7468 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7469 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7470 | 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] | 7471 | ;; |
| 7472 | |
| 7473 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7474 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7475 | dynamic_linker="$host_os ld.so" |
| 7476 | shlibpath_var=LIBRARY_PATH |
| 7477 | ;; |
| 7478 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7479 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7480 | version_type=linux |
| 7481 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7483 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7484 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7485 | shlibpath_var=LD_LIBRARY_PATH |
| 7486 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7487 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7488 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7489 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7490 | # libtool to hard-code these into programs |
| 7491 | ;; |
| 7492 | |
| 7493 | cygwin* | mingw* | pw32*) |
| 7494 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7495 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7496 | need_version=no |
| 7497 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7498 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7499 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7500 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7501 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7502 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7503 | postinstall_cmds='base_file=`basename \${file}`; |
| 7504 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; |
| 7505 | dldir=$destdir/`dirname \$dlpath`; |
| 7506 | test -d \$dldir || mkdir -p \$dldir; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7507 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7508 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; |
| 7509 | dlpath=$dir/\$dldll; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7510 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7511 | shlibpath_overrides_runpath=yes |
| 7512 | |
| 7513 | case $host_os in |
| 7514 | cygwin*) |
| 7515 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7516 | 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] | 7517 | 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] | 7518 | ;; |
| 7519 | mingw*) |
| 7520 | # MinGW DLLs use traditional 'lib' prefix |
| 7521 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7522 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7523 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7524 | # It is most probably a Windows format PATH printed by |
| 7525 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7526 | # path with ; separators, and with drive letters. We can handle the |
| 7527 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7528 | # especially as we might pass files found there to a mingw objdump, |
| 7529 | # which wouldn't understand a cygwinified path. Ahh. |
| 7530 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7531 | else |
| 7532 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7533 | fi |
| 7534 | ;; |
| 7535 | pw32*) |
| 7536 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7537 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 7538 | ;; |
| 7539 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7540 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7541 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7542 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7543 | 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] | 7544 | ;; |
| 7545 | esac |
| 7546 | dynamic_linker='Win32 ld.exe' |
| 7547 | # FIXME: first we should search . and the directory the executable is in |
| 7548 | shlibpath_var=PATH |
| 7549 | ;; |
| 7550 | |
| 7551 | darwin* | rhapsody*) |
| 7552 | dynamic_linker="$host_os dyld" |
| 7553 | version_type=darwin |
| 7554 | need_lib_prefix=no |
| 7555 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7556 | 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] | 7557 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7558 | shlibpath_overrides_runpath=yes |
| 7559 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7560 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7561 | # 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] | 7562 | if test "$GCC" = yes; then |
| 7563 | 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"` |
| 7564 | else |
| 7565 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7566 | fi |
| 7567 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7568 | ;; |
| 7569 | |
| 7570 | dgux*) |
| 7571 | version_type=linux |
| 7572 | need_lib_prefix=no |
| 7573 | need_version=no |
| 7574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7575 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7576 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7577 | ;; |
| 7578 | |
| 7579 | freebsd1*) |
| 7580 | dynamic_linker=no |
| 7581 | ;; |
| 7582 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7583 | kfreebsd*-gnu) |
| 7584 | version_type=linux |
| 7585 | need_lib_prefix=no |
| 7586 | need_version=no |
| 7587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7588 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7589 | shlibpath_var=LD_LIBRARY_PATH |
| 7590 | shlibpath_overrides_runpath=no |
| 7591 | hardcode_into_libs=yes |
| 7592 | dynamic_linker='GNU ld.so' |
| 7593 | ;; |
| 7594 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7595 | freebsd*) |
| 7596 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7597 | version_type=freebsd-$objformat |
| 7598 | case $version_type in |
| 7599 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7600 | 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] | 7601 | need_version=no |
| 7602 | need_lib_prefix=no |
| 7603 | ;; |
| 7604 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7605 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7606 | need_version=yes |
| 7607 | ;; |
| 7608 | esac |
| 7609 | shlibpath_var=LD_LIBRARY_PATH |
| 7610 | case $host_os in |
| 7611 | freebsd2*) |
| 7612 | shlibpath_overrides_runpath=yes |
| 7613 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7614 | freebsd3.01* | freebsdelf3.01*) |
| 7615 | shlibpath_overrides_runpath=yes |
| 7616 | hardcode_into_libs=yes |
| 7617 | ;; |
| 7618 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7619 | shlibpath_overrides_runpath=no |
| 7620 | hardcode_into_libs=yes |
| 7621 | ;; |
| 7622 | esac |
| 7623 | ;; |
| 7624 | |
| 7625 | gnu*) |
| 7626 | version_type=linux |
| 7627 | need_lib_prefix=no |
| 7628 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7630 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7631 | shlibpath_var=LD_LIBRARY_PATH |
| 7632 | hardcode_into_libs=yes |
| 7633 | ;; |
| 7634 | |
| 7635 | hpux9* | hpux10* | hpux11*) |
| 7636 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7637 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7638 | version_type=sunos |
| 7639 | need_lib_prefix=no |
| 7640 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7641 | case "$host_cpu" in |
| 7642 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7643 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7644 | hardcode_into_libs=yes |
| 7645 | dynamic_linker="$host_os dld.so" |
| 7646 | shlibpath_var=LD_LIBRARY_PATH |
| 7647 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7650 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7651 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7652 | else |
| 7653 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7654 | fi |
| 7655 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7656 | ;; |
| 7657 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7658 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7659 | hardcode_into_libs=yes |
| 7660 | dynamic_linker="$host_os dld.sl" |
| 7661 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7662 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7664 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7665 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7666 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7667 | ;; |
| 7668 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7669 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7670 | dynamic_linker="$host_os dld.sl" |
| 7671 | shlibpath_var=SHLIB_PATH |
| 7672 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7674 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7675 | ;; |
| 7676 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7677 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7678 | postinstall_cmds='chmod 555 $lib' |
| 7679 | ;; |
| 7680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7681 | irix5* | irix6* | nonstopux*) |
| 7682 | case $host_os in |
| 7683 | nonstopux*) version_type=nonstopux ;; |
| 7684 | *) |
| 7685 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7686 | version_type=linux |
| 7687 | else |
| 7688 | version_type=irix |
| 7689 | fi ;; |
| 7690 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7691 | need_lib_prefix=no |
| 7692 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7693 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7694 | 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] | 7695 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7696 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7697 | libsuff= shlibsuff= |
| 7698 | ;; |
| 7699 | *) |
| 7700 | 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] | 7701 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7702 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7703 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7704 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7705 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7706 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7707 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7708 | esac |
| 7709 | ;; |
| 7710 | esac |
| 7711 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7712 | shlibpath_overrides_runpath=no |
| 7713 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7714 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7715 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7716 | ;; |
| 7717 | |
| 7718 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7719 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7720 | dynamic_linker=no |
| 7721 | ;; |
| 7722 | |
| 7723 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7724 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7725 | version_type=linux |
| 7726 | need_lib_prefix=no |
| 7727 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7729 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7730 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7731 | shlibpath_var=LD_LIBRARY_PATH |
| 7732 | shlibpath_overrides_runpath=no |
| 7733 | # This implies no fast_install, which is unacceptable. |
| 7734 | # Some rework will be needed to allow for fast_install |
| 7735 | # before this can be enabled. |
| 7736 | hardcode_into_libs=yes |
| 7737 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7738 | # Append ld.so.conf contents to the search path |
| 7739 | if test -f /etc/ld.so.conf; then |
| 7740 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 7741 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 7742 | fi |
| 7743 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7744 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7745 | # powerpc, because MkLinux only supported shared libraries with the |
| 7746 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7747 | # most powerpc-linux boxes support dynamic linking these days and |
| 7748 | # people can always --disable-shared, the test was removed, and we |
| 7749 | # assume the GNU/Linux dynamic linker is in use. |
| 7750 | dynamic_linker='GNU/Linux ld.so' |
| 7751 | ;; |
| 7752 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7753 | knetbsd*-gnu) |
| 7754 | version_type=linux |
| 7755 | need_lib_prefix=no |
| 7756 | need_version=no |
| 7757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7758 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7759 | shlibpath_var=LD_LIBRARY_PATH |
| 7760 | shlibpath_overrides_runpath=no |
| 7761 | hardcode_into_libs=yes |
| 7762 | dynamic_linker='GNU ld.so' |
| 7763 | ;; |
| 7764 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7765 | netbsd*) |
| 7766 | version_type=sunos |
| 7767 | need_lib_prefix=no |
| 7768 | need_version=no |
| 7769 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7772 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7773 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7774 | 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] | 7775 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7776 | dynamic_linker='NetBSD ld.elf_so' |
| 7777 | fi |
| 7778 | shlibpath_var=LD_LIBRARY_PATH |
| 7779 | shlibpath_overrides_runpath=yes |
| 7780 | hardcode_into_libs=yes |
| 7781 | ;; |
| 7782 | |
| 7783 | newsos6) |
| 7784 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7786 | shlibpath_var=LD_LIBRARY_PATH |
| 7787 | shlibpath_overrides_runpath=yes |
| 7788 | ;; |
| 7789 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7790 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7791 | version_type=linux |
| 7792 | need_lib_prefix=no |
| 7793 | need_version=no |
| 7794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7795 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7796 | shlibpath_var=LD_LIBRARY_PATH |
| 7797 | shlibpath_overrides_runpath=yes |
| 7798 | ;; |
| 7799 | |
| 7800 | openbsd*) |
| 7801 | version_type=sunos |
| 7802 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7803 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7805 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7806 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7807 | 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] | 7808 | case $host_os in |
| 7809 | openbsd2.[89] | openbsd2.[89].*) |
| 7810 | shlibpath_overrides_runpath=no |
| 7811 | ;; |
| 7812 | *) |
| 7813 | shlibpath_overrides_runpath=yes |
| 7814 | ;; |
| 7815 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7816 | else |
| 7817 | shlibpath_overrides_runpath=yes |
| 7818 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7819 | ;; |
| 7820 | |
| 7821 | os2*) |
| 7822 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7823 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7824 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7825 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7826 | dynamic_linker='OS/2 ld.exe' |
| 7827 | shlibpath_var=LIBPATH |
| 7828 | ;; |
| 7829 | |
| 7830 | osf3* | osf4* | osf5*) |
| 7831 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7832 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7833 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7834 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7835 | 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] | 7836 | shlibpath_var=LD_LIBRARY_PATH |
| 7837 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7838 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7839 | ;; |
| 7840 | |
| 7841 | sco3.2v5*) |
| 7842 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7843 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7844 | 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] | 7845 | shlibpath_var=LD_LIBRARY_PATH |
| 7846 | ;; |
| 7847 | |
| 7848 | solaris*) |
| 7849 | version_type=linux |
| 7850 | need_lib_prefix=no |
| 7851 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7853 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7854 | shlibpath_var=LD_LIBRARY_PATH |
| 7855 | shlibpath_overrides_runpath=yes |
| 7856 | hardcode_into_libs=yes |
| 7857 | # ldd complains unless libraries are executable |
| 7858 | postinstall_cmds='chmod +x $lib' |
| 7859 | ;; |
| 7860 | |
| 7861 | sunos4*) |
| 7862 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7864 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7865 | shlibpath_var=LD_LIBRARY_PATH |
| 7866 | shlibpath_overrides_runpath=yes |
| 7867 | if test "$with_gnu_ld" = yes; then |
| 7868 | need_lib_prefix=no |
| 7869 | fi |
| 7870 | need_version=yes |
| 7871 | ;; |
| 7872 | |
| 7873 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7874 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7876 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7877 | shlibpath_var=LD_LIBRARY_PATH |
| 7878 | case $host_vendor in |
| 7879 | sni) |
| 7880 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7881 | need_lib_prefix=no |
| 7882 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7883 | runpath_var=LD_RUN_PATH |
| 7884 | ;; |
| 7885 | siemens) |
| 7886 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7887 | ;; |
| 7888 | motorola) |
| 7889 | need_lib_prefix=no |
| 7890 | need_version=no |
| 7891 | shlibpath_overrides_runpath=no |
| 7892 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7893 | ;; |
| 7894 | esac |
| 7895 | ;; |
| 7896 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7897 | sysv4*MP*) |
| 7898 | if test -d /usr/nec ;then |
| 7899 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7900 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7901 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7902 | shlibpath_var=LD_LIBRARY_PATH |
| 7903 | fi |
| 7904 | ;; |
| 7905 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7906 | uts4*) |
| 7907 | version_type=linux |
| 7908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7910 | shlibpath_var=LD_LIBRARY_PATH |
| 7911 | ;; |
| 7912 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7913 | *) |
| 7914 | dynamic_linker=no |
| 7915 | ;; |
| 7916 | esac |
| 7917 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 7918 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7919 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7920 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7921 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 7922 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 7923 | hardcode_action= |
| 7924 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 7925 | test -n "$runpath_var" || \ |
| 7926 | test "X$hardcode_automatic" = "Xyes" ; then |
| 7927 | |
| 7928 | # We can hardcode non-existant directories. |
| 7929 | if test "$hardcode_direct" != no && |
| 7930 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 7931 | # have to relink, otherwise we might link with an installed library |
| 7932 | # when we should be linking with a yet-to-be-installed one |
| 7933 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 7934 | test "$hardcode_minus_L" != no; then |
| 7935 | # Linking always hardcodes the temporary library directory. |
| 7936 | hardcode_action=relink |
| 7937 | else |
| 7938 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 7939 | hardcode_action=immediate |
| 7940 | fi |
| 7941 | else |
| 7942 | # We cannot hardcode anything, or else we can only hardcode existing |
| 7943 | # directories. |
| 7944 | hardcode_action=unsupported |
| 7945 | fi |
| 7946 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 7947 | echo "${ECHO_T}$hardcode_action" >&6 |
| 7948 | |
| 7949 | if test "$hardcode_action" = relink; then |
| 7950 | # Fast installation is not supported |
| 7951 | enable_fast_install=no |
| 7952 | elif test "$shlibpath_overrides_runpath" = yes || |
| 7953 | test "$enable_shared" = no; then |
| 7954 | # Fast installation is not necessary |
| 7955 | enable_fast_install=needless |
| 7956 | fi |
| 7957 | |
| 7958 | striplib= |
| 7959 | old_striplib= |
| 7960 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 7961 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 7962 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 7963 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 7964 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 7965 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7966 | echo "${ECHO_T}yes" >&6 |
| 7967 | else |
| 7968 | # FIXME - insert some real tests, host_os isn't really good enough |
| 7969 | case $host_os in |
| 7970 | darwin*) |
| 7971 | if test -n "$STRIP" ; then |
| 7972 | striplib="$STRIP -x" |
| 7973 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7974 | echo "${ECHO_T}yes" >&6 |
| 7975 | else |
| 7976 | echo "$as_me:$LINENO: result: no" >&5 |
| 7977 | echo "${ECHO_T}no" >&6 |
| 7978 | fi |
| 7979 | ;; |
| 7980 | *) |
| 7981 | echo "$as_me:$LINENO: result: no" >&5 |
| 7982 | echo "${ECHO_T}no" >&6 |
| 7983 | ;; |
| 7984 | esac |
| 7985 | fi |
| 7986 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7987 | if test "x$enable_dlopen" != xyes; then |
| 7988 | enable_dlopen=unknown |
| 7989 | enable_dlopen_self=unknown |
| 7990 | enable_dlopen_self_static=unknown |
| 7991 | else |
| 7992 | lt_cv_dlopen=no |
| 7993 | lt_cv_dlopen_libs= |
| 7994 | |
| 7995 | case $host_os in |
| 7996 | beos*) |
| 7997 | lt_cv_dlopen="load_add_on" |
| 7998 | lt_cv_dlopen_libs= |
| 7999 | lt_cv_dlopen_self=yes |
| 8000 | ;; |
| 8001 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8002 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8003 | lt_cv_dlopen="LoadLibrary" |
| 8004 | lt_cv_dlopen_libs= |
| 8005 | ;; |
| 8006 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8007 | cygwin*) |
| 8008 | lt_cv_dlopen="dlopen" |
| 8009 | lt_cv_dlopen_libs= |
| 8010 | ;; |
| 8011 | |
| 8012 | darwin*) |
| 8013 | # if libdl is installed we need to link against it |
| 8014 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8015 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8016 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8018 | else |
| 8019 | ac_check_lib_save_LIBS=$LIBS |
| 8020 | LIBS="-ldl $LIBS" |
| 8021 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8022 | /* confdefs.h. */ |
| 8023 | _ACEOF |
| 8024 | cat confdefs.h >>conftest.$ac_ext |
| 8025 | cat >>conftest.$ac_ext <<_ACEOF |
| 8026 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8027 | |
| 8028 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8029 | #ifdef __cplusplus |
| 8030 | extern "C" |
| 8031 | #endif |
| 8032 | /* We use char because int might match the return type of a gcc2 |
| 8033 | builtin and then its argument prototype would still apply. */ |
| 8034 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8035 | int |
| 8036 | main () |
| 8037 | { |
| 8038 | dlopen (); |
| 8039 | ; |
| 8040 | return 0; |
| 8041 | } |
| 8042 | _ACEOF |
| 8043 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8045 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8046 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8048 | rm -f conftest.er1 |
| 8049 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8052 | { ac_try='test -z "$ac_c_werror_flag" |
| 8053 | || test ! -s conftest.err' |
| 8054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8055 | (eval $ac_try) 2>&5 |
| 8056 | ac_status=$? |
| 8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8058 | (exit $ac_status); }; } && |
| 8059 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8061 | (eval $ac_try) 2>&5 |
| 8062 | ac_status=$? |
| 8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8064 | (exit $ac_status); }; }; then |
| 8065 | ac_cv_lib_dl_dlopen=yes |
| 8066 | else |
| 8067 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8069 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8070 | ac_cv_lib_dl_dlopen=no |
| 8071 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8072 | rm -f conftest.err conftest.$ac_objext \ |
| 8073 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8074 | LIBS=$ac_check_lib_save_LIBS |
| 8075 | fi |
| 8076 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8077 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8078 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8079 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8080 | else |
| 8081 | |
| 8082 | lt_cv_dlopen="dyld" |
| 8083 | lt_cv_dlopen_libs= |
| 8084 | lt_cv_dlopen_self=yes |
| 8085 | |
| 8086 | fi |
| 8087 | |
| 8088 | ;; |
| 8089 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8090 | *) |
| 8091 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8092 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 8093 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8095 | else |
| 8096 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8097 | /* confdefs.h. */ |
| 8098 | _ACEOF |
| 8099 | cat confdefs.h >>conftest.$ac_ext |
| 8100 | cat >>conftest.$ac_ext <<_ACEOF |
| 8101 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8102 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8103 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8104 | #define shl_load innocuous_shl_load |
| 8105 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8106 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8107 | which can conflict with char shl_load (); below. |
| 8108 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8109 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8110 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8111 | #ifdef __STDC__ |
| 8112 | # include <limits.h> |
| 8113 | #else |
| 8114 | # include <assert.h> |
| 8115 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8116 | |
| 8117 | #undef shl_load |
| 8118 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8119 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8120 | #ifdef __cplusplus |
| 8121 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8122 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8123 | #endif |
| 8124 | /* We use char because int might match the return type of a gcc2 |
| 8125 | builtin and then its argument prototype would still apply. */ |
| 8126 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8127 | /* The GNU C library defines this for functions which it implements |
| 8128 | to always fail with ENOSYS. Some functions are actually named |
| 8129 | something starting with __ and the normal name is an alias. */ |
| 8130 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 8131 | choke me |
| 8132 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8133 | char (*f) () = shl_load; |
| 8134 | #endif |
| 8135 | #ifdef __cplusplus |
| 8136 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8137 | #endif |
| 8138 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8139 | int |
| 8140 | main () |
| 8141 | { |
| 8142 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8143 | ; |
| 8144 | return 0; |
| 8145 | } |
| 8146 | _ACEOF |
| 8147 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8149 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8150 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8152 | rm -f conftest.er1 |
| 8153 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8155 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8156 | { ac_try='test -z "$ac_c_werror_flag" |
| 8157 | || test ! -s conftest.err' |
| 8158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8159 | (eval $ac_try) 2>&5 |
| 8160 | ac_status=$? |
| 8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8162 | (exit $ac_status); }; } && |
| 8163 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8165 | (eval $ac_try) 2>&5 |
| 8166 | ac_status=$? |
| 8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8168 | (exit $ac_status); }; }; then |
| 8169 | ac_cv_func_shl_load=yes |
| 8170 | else |
| 8171 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8173 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8174 | ac_cv_func_shl_load=no |
| 8175 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8176 | rm -f conftest.err conftest.$ac_objext \ |
| 8177 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8178 | fi |
| 8179 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8180 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 8181 | if test $ac_cv_func_shl_load = yes; then |
| 8182 | lt_cv_dlopen="shl_load" |
| 8183 | else |
| 8184 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8185 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8186 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8188 | else |
| 8189 | ac_check_lib_save_LIBS=$LIBS |
| 8190 | LIBS="-ldld $LIBS" |
| 8191 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8192 | /* confdefs.h. */ |
| 8193 | _ACEOF |
| 8194 | cat confdefs.h >>conftest.$ac_ext |
| 8195 | cat >>conftest.$ac_ext <<_ACEOF |
| 8196 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8197 | |
| 8198 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8199 | #ifdef __cplusplus |
| 8200 | extern "C" |
| 8201 | #endif |
| 8202 | /* We use char because int might match the return type of a gcc2 |
| 8203 | builtin and then its argument prototype would still apply. */ |
| 8204 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8205 | int |
| 8206 | main () |
| 8207 | { |
| 8208 | shl_load (); |
| 8209 | ; |
| 8210 | return 0; |
| 8211 | } |
| 8212 | _ACEOF |
| 8213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8215 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8216 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8218 | rm -f conftest.er1 |
| 8219 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8222 | { ac_try='test -z "$ac_c_werror_flag" |
| 8223 | || test ! -s conftest.err' |
| 8224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8225 | (eval $ac_try) 2>&5 |
| 8226 | ac_status=$? |
| 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8228 | (exit $ac_status); }; } && |
| 8229 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8231 | (eval $ac_try) 2>&5 |
| 8232 | ac_status=$? |
| 8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8234 | (exit $ac_status); }; }; then |
| 8235 | ac_cv_lib_dld_shl_load=yes |
| 8236 | else |
| 8237 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8239 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8240 | ac_cv_lib_dld_shl_load=no |
| 8241 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8242 | rm -f conftest.err conftest.$ac_objext \ |
| 8243 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8244 | LIBS=$ac_check_lib_save_LIBS |
| 8245 | fi |
| 8246 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8247 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 8248 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 8249 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 8250 | else |
| 8251 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8252 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 8253 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 8254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8255 | else |
| 8256 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8257 | /* confdefs.h. */ |
| 8258 | _ACEOF |
| 8259 | cat confdefs.h >>conftest.$ac_ext |
| 8260 | cat >>conftest.$ac_ext <<_ACEOF |
| 8261 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8262 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 8263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8264 | #define dlopen innocuous_dlopen |
| 8265 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8266 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8267 | which can conflict with char dlopen (); below. |
| 8268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8269 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8270 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8271 | #ifdef __STDC__ |
| 8272 | # include <limits.h> |
| 8273 | #else |
| 8274 | # include <assert.h> |
| 8275 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8276 | |
| 8277 | #undef dlopen |
| 8278 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8279 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8280 | #ifdef __cplusplus |
| 8281 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8282 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8283 | #endif |
| 8284 | /* We use char because int might match the return type of a gcc2 |
| 8285 | builtin and then its argument prototype would still apply. */ |
| 8286 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8287 | /* The GNU C library defines this for functions which it implements |
| 8288 | to always fail with ENOSYS. Some functions are actually named |
| 8289 | something starting with __ and the normal name is an alias. */ |
| 8290 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 8291 | choke me |
| 8292 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8293 | char (*f) () = dlopen; |
| 8294 | #endif |
| 8295 | #ifdef __cplusplus |
| 8296 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8297 | #endif |
| 8298 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8299 | int |
| 8300 | main () |
| 8301 | { |
| 8302 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8303 | ; |
| 8304 | return 0; |
| 8305 | } |
| 8306 | _ACEOF |
| 8307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8309 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8310 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8312 | rm -f conftest.er1 |
| 8313 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8315 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8316 | { ac_try='test -z "$ac_c_werror_flag" |
| 8317 | || test ! -s conftest.err' |
| 8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8319 | (eval $ac_try) 2>&5 |
| 8320 | ac_status=$? |
| 8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8322 | (exit $ac_status); }; } && |
| 8323 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8325 | (eval $ac_try) 2>&5 |
| 8326 | ac_status=$? |
| 8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8328 | (exit $ac_status); }; }; then |
| 8329 | ac_cv_func_dlopen=yes |
| 8330 | else |
| 8331 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8334 | ac_cv_func_dlopen=no |
| 8335 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8336 | rm -f conftest.err conftest.$ac_objext \ |
| 8337 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8338 | fi |
| 8339 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 8340 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 8341 | if test $ac_cv_func_dlopen = yes; then |
| 8342 | lt_cv_dlopen="dlopen" |
| 8343 | else |
| 8344 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8345 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8346 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8348 | else |
| 8349 | ac_check_lib_save_LIBS=$LIBS |
| 8350 | LIBS="-ldl $LIBS" |
| 8351 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8352 | /* confdefs.h. */ |
| 8353 | _ACEOF |
| 8354 | cat confdefs.h >>conftest.$ac_ext |
| 8355 | cat >>conftest.$ac_ext <<_ACEOF |
| 8356 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8357 | |
| 8358 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8359 | #ifdef __cplusplus |
| 8360 | extern "C" |
| 8361 | #endif |
| 8362 | /* We use char because int might match the return type of a gcc2 |
| 8363 | builtin and then its argument prototype would still apply. */ |
| 8364 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8365 | int |
| 8366 | main () |
| 8367 | { |
| 8368 | dlopen (); |
| 8369 | ; |
| 8370 | return 0; |
| 8371 | } |
| 8372 | _ACEOF |
| 8373 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8375 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8376 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8378 | rm -f conftest.er1 |
| 8379 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8381 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8382 | { ac_try='test -z "$ac_c_werror_flag" |
| 8383 | || test ! -s conftest.err' |
| 8384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8385 | (eval $ac_try) 2>&5 |
| 8386 | ac_status=$? |
| 8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8388 | (exit $ac_status); }; } && |
| 8389 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8391 | (eval $ac_try) 2>&5 |
| 8392 | ac_status=$? |
| 8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8394 | (exit $ac_status); }; }; then |
| 8395 | ac_cv_lib_dl_dlopen=yes |
| 8396 | else |
| 8397 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8400 | ac_cv_lib_dl_dlopen=no |
| 8401 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8402 | rm -f conftest.err conftest.$ac_objext \ |
| 8403 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8404 | LIBS=$ac_check_lib_save_LIBS |
| 8405 | fi |
| 8406 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8407 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8408 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8409 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8410 | else |
| 8411 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8412 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8413 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8415 | else |
| 8416 | ac_check_lib_save_LIBS=$LIBS |
| 8417 | LIBS="-lsvld $LIBS" |
| 8418 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8419 | /* confdefs.h. */ |
| 8420 | _ACEOF |
| 8421 | cat confdefs.h >>conftest.$ac_ext |
| 8422 | cat >>conftest.$ac_ext <<_ACEOF |
| 8423 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8424 | |
| 8425 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8426 | #ifdef __cplusplus |
| 8427 | extern "C" |
| 8428 | #endif |
| 8429 | /* We use char because int might match the return type of a gcc2 |
| 8430 | builtin and then its argument prototype would still apply. */ |
| 8431 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8432 | int |
| 8433 | main () |
| 8434 | { |
| 8435 | dlopen (); |
| 8436 | ; |
| 8437 | return 0; |
| 8438 | } |
| 8439 | _ACEOF |
| 8440 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8442 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8443 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8445 | rm -f conftest.er1 |
| 8446 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8448 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8449 | { ac_try='test -z "$ac_c_werror_flag" |
| 8450 | || test ! -s conftest.err' |
| 8451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8452 | (eval $ac_try) 2>&5 |
| 8453 | ac_status=$? |
| 8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8455 | (exit $ac_status); }; } && |
| 8456 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8458 | (eval $ac_try) 2>&5 |
| 8459 | ac_status=$? |
| 8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8461 | (exit $ac_status); }; }; then |
| 8462 | ac_cv_lib_svld_dlopen=yes |
| 8463 | else |
| 8464 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8466 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8467 | ac_cv_lib_svld_dlopen=no |
| 8468 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8469 | rm -f conftest.err conftest.$ac_objext \ |
| 8470 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8471 | LIBS=$ac_check_lib_save_LIBS |
| 8472 | fi |
| 8473 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8474 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8475 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8476 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 8477 | else |
| 8478 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8479 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 8480 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8482 | else |
| 8483 | ac_check_lib_save_LIBS=$LIBS |
| 8484 | LIBS="-ldld $LIBS" |
| 8485 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8486 | /* confdefs.h. */ |
| 8487 | _ACEOF |
| 8488 | cat confdefs.h >>conftest.$ac_ext |
| 8489 | cat >>conftest.$ac_ext <<_ACEOF |
| 8490 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8491 | |
| 8492 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8493 | #ifdef __cplusplus |
| 8494 | extern "C" |
| 8495 | #endif |
| 8496 | /* We use char because int might match the return type of a gcc2 |
| 8497 | builtin and then its argument prototype would still apply. */ |
| 8498 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8499 | int |
| 8500 | main () |
| 8501 | { |
| 8502 | dld_link (); |
| 8503 | ; |
| 8504 | return 0; |
| 8505 | } |
| 8506 | _ACEOF |
| 8507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8509 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8510 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8512 | rm -f conftest.er1 |
| 8513 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8515 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8516 | { ac_try='test -z "$ac_c_werror_flag" |
| 8517 | || test ! -s conftest.err' |
| 8518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8519 | (eval $ac_try) 2>&5 |
| 8520 | ac_status=$? |
| 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8522 | (exit $ac_status); }; } && |
| 8523 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8525 | (eval $ac_try) 2>&5 |
| 8526 | ac_status=$? |
| 8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8528 | (exit $ac_status); }; }; then |
| 8529 | ac_cv_lib_dld_dld_link=yes |
| 8530 | else |
| 8531 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8533 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8534 | ac_cv_lib_dld_dld_link=no |
| 8535 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8536 | rm -f conftest.err conftest.$ac_objext \ |
| 8537 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8538 | LIBS=$ac_check_lib_save_LIBS |
| 8539 | fi |
| 8540 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8541 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8542 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 8543 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 8544 | fi |
| 8545 | |
| 8546 | |
| 8547 | fi |
| 8548 | |
| 8549 | |
| 8550 | fi |
| 8551 | |
| 8552 | |
| 8553 | fi |
| 8554 | |
| 8555 | |
| 8556 | fi |
| 8557 | |
| 8558 | |
| 8559 | fi |
| 8560 | |
| 8561 | ;; |
| 8562 | esac |
| 8563 | |
| 8564 | if test "x$lt_cv_dlopen" != xno; then |
| 8565 | enable_dlopen=yes |
| 8566 | else |
| 8567 | enable_dlopen=no |
| 8568 | fi |
| 8569 | |
| 8570 | case $lt_cv_dlopen in |
| 8571 | dlopen) |
| 8572 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8573 | 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] | 8574 | |
| 8575 | save_LDFLAGS="$LDFLAGS" |
| 8576 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8577 | |
| 8578 | save_LIBS="$LIBS" |
| 8579 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8580 | |
| 8581 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 8582 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8583 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8585 | else |
| 8586 | if test "$cross_compiling" = yes; then : |
| 8587 | lt_cv_dlopen_self=cross |
| 8588 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8589 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8590 | lt_status=$lt_dlunknown |
| 8591 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8592 | #line 8592 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8593 | #include "confdefs.h" |
| 8594 | |
| 8595 | #if HAVE_DLFCN_H |
| 8596 | #include <dlfcn.h> |
| 8597 | #endif |
| 8598 | |
| 8599 | #include <stdio.h> |
| 8600 | |
| 8601 | #ifdef RTLD_GLOBAL |
| 8602 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8603 | #else |
| 8604 | # ifdef DL_GLOBAL |
| 8605 | # define LT_DLGLOBAL DL_GLOBAL |
| 8606 | # else |
| 8607 | # define LT_DLGLOBAL 0 |
| 8608 | # endif |
| 8609 | #endif |
| 8610 | |
| 8611 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8612 | find out it does not work in some platform. */ |
| 8613 | #ifndef LT_DLLAZY_OR_NOW |
| 8614 | # ifdef RTLD_LAZY |
| 8615 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8616 | # else |
| 8617 | # ifdef DL_LAZY |
| 8618 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8619 | # else |
| 8620 | # ifdef RTLD_NOW |
| 8621 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8622 | # else |
| 8623 | # ifdef DL_NOW |
| 8624 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8625 | # else |
| 8626 | # define LT_DLLAZY_OR_NOW 0 |
| 8627 | # endif |
| 8628 | # endif |
| 8629 | # endif |
| 8630 | # endif |
| 8631 | #endif |
| 8632 | |
| 8633 | #ifdef __cplusplus |
| 8634 | extern "C" void exit (int); |
| 8635 | #endif |
| 8636 | |
| 8637 | void fnord() { int i=42;} |
| 8638 | int main () |
| 8639 | { |
| 8640 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8641 | int status = $lt_dlunknown; |
| 8642 | |
| 8643 | if (self) |
| 8644 | { |
| 8645 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8646 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8647 | /* dlclose (self); */ |
| 8648 | } |
| 8649 | |
| 8650 | exit (status); |
| 8651 | } |
| 8652 | EOF |
| 8653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8654 | (eval $ac_link) 2>&5 |
| 8655 | ac_status=$? |
| 8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8657 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8658 | (./conftest; exit; ) 2>/dev/null |
| 8659 | lt_status=$? |
| 8660 | case x$lt_status in |
| 8661 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8662 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8663 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8664 | esac |
| 8665 | else : |
| 8666 | # compilation failed |
| 8667 | lt_cv_dlopen_self=no |
| 8668 | fi |
| 8669 | fi |
| 8670 | rm -fr conftest* |
| 8671 | |
| 8672 | |
| 8673 | fi |
| 8674 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 8675 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8676 | |
| 8677 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8678 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 8679 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8680 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8681 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8683 | else |
| 8684 | if test "$cross_compiling" = yes; then : |
| 8685 | lt_cv_dlopen_self_static=cross |
| 8686 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8687 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8688 | lt_status=$lt_dlunknown |
| 8689 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8690 | #line 8690 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8691 | #include "confdefs.h" |
| 8692 | |
| 8693 | #if HAVE_DLFCN_H |
| 8694 | #include <dlfcn.h> |
| 8695 | #endif |
| 8696 | |
| 8697 | #include <stdio.h> |
| 8698 | |
| 8699 | #ifdef RTLD_GLOBAL |
| 8700 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8701 | #else |
| 8702 | # ifdef DL_GLOBAL |
| 8703 | # define LT_DLGLOBAL DL_GLOBAL |
| 8704 | # else |
| 8705 | # define LT_DLGLOBAL 0 |
| 8706 | # endif |
| 8707 | #endif |
| 8708 | |
| 8709 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8710 | find out it does not work in some platform. */ |
| 8711 | #ifndef LT_DLLAZY_OR_NOW |
| 8712 | # ifdef RTLD_LAZY |
| 8713 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8714 | # else |
| 8715 | # ifdef DL_LAZY |
| 8716 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8717 | # else |
| 8718 | # ifdef RTLD_NOW |
| 8719 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8720 | # else |
| 8721 | # ifdef DL_NOW |
| 8722 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8723 | # else |
| 8724 | # define LT_DLLAZY_OR_NOW 0 |
| 8725 | # endif |
| 8726 | # endif |
| 8727 | # endif |
| 8728 | # endif |
| 8729 | #endif |
| 8730 | |
| 8731 | #ifdef __cplusplus |
| 8732 | extern "C" void exit (int); |
| 8733 | #endif |
| 8734 | |
| 8735 | void fnord() { int i=42;} |
| 8736 | int main () |
| 8737 | { |
| 8738 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8739 | int status = $lt_dlunknown; |
| 8740 | |
| 8741 | if (self) |
| 8742 | { |
| 8743 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8744 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8745 | /* dlclose (self); */ |
| 8746 | } |
| 8747 | |
| 8748 | exit (status); |
| 8749 | } |
| 8750 | EOF |
| 8751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8752 | (eval $ac_link) 2>&5 |
| 8753 | ac_status=$? |
| 8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8755 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8756 | (./conftest; exit; ) 2>/dev/null |
| 8757 | lt_status=$? |
| 8758 | case x$lt_status in |
| 8759 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8760 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8761 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8762 | esac |
| 8763 | else : |
| 8764 | # compilation failed |
| 8765 | lt_cv_dlopen_self_static=no |
| 8766 | fi |
| 8767 | fi |
| 8768 | rm -fr conftest* |
| 8769 | |
| 8770 | |
| 8771 | fi |
| 8772 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 8773 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8774 | fi |
| 8775 | |
| 8776 | CPPFLAGS="$save_CPPFLAGS" |
| 8777 | LDFLAGS="$save_LDFLAGS" |
| 8778 | LIBS="$save_LIBS" |
| 8779 | ;; |
| 8780 | esac |
| 8781 | |
| 8782 | case $lt_cv_dlopen_self in |
| 8783 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8784 | *) enable_dlopen_self=unknown ;; |
| 8785 | esac |
| 8786 | |
| 8787 | case $lt_cv_dlopen_self_static in |
| 8788 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8789 | *) enable_dlopen_self_static=unknown ;; |
| 8790 | esac |
| 8791 | fi |
| 8792 | |
| 8793 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8794 | # Report which librarie types wil actually be built |
| 8795 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8796 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8797 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8798 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8799 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8800 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8801 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8802 | test "$can_build_shared" = "no" && enable_shared=no |
| 8803 | |
| 8804 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8805 | # are all built from PIC. |
| 8806 | case "$host_os" in |
| 8807 | aix3*) |
| 8808 | test "$enable_shared" = yes && enable_static=no |
| 8809 | if test -n "$RANLIB"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8810 | archive_cmds="$archive_cmds;\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8811 | postinstall_cmds='$RANLIB $lib' |
| 8812 | fi |
| 8813 | ;; |
| 8814 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8815 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8816 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8817 | test "$enable_shared" = yes && enable_static=no |
| 8818 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8819 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8820 | esac |
| 8821 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 8822 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8823 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8824 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 8825 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 8826 | # Make sure either enable_shared or enable_static is yes. |
| 8827 | test "$enable_shared" = yes || enable_static=yes |
| 8828 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 8829 | echo "${ECHO_T}$enable_static" >&6 |
| 8830 | |
| 8831 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8832 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 8833 | # with your package, and you will get complaints that there are |
| 8834 | # no rules to generate ltmain.sh. |
| 8835 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8836 | # See if we are running on zsh, and set the options which allow our commands through |
| 8837 | # without removal of \ escapes. |
| 8838 | if test -n "${ZSH_VERSION+set}" ; then |
| 8839 | setopt NO_GLOB_SUBST |
| 8840 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8841 | # Now quote all the things that may contain metacharacters while being |
| 8842 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 8843 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8844 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 8845 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8846 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 8847 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 8848 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 8849 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 8850 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8851 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8852 | old_postinstall_cmds old_postuninstall_cmds \ |
| 8853 | compiler \ |
| 8854 | CC \ |
| 8855 | LD \ |
| 8856 | lt_prog_compiler_wl \ |
| 8857 | lt_prog_compiler_pic \ |
| 8858 | lt_prog_compiler_static \ |
| 8859 | lt_prog_compiler_no_builtin_flag \ |
| 8860 | export_dynamic_flag_spec \ |
| 8861 | thread_safe_flag_spec \ |
| 8862 | whole_archive_flag_spec \ |
| 8863 | enable_shared_with_static_runtimes \ |
| 8864 | old_archive_cmds \ |
| 8865 | old_archive_from_new_cmds \ |
| 8866 | predep_objects \ |
| 8867 | postdep_objects \ |
| 8868 | predeps \ |
| 8869 | postdeps \ |
| 8870 | compiler_lib_search_path \ |
| 8871 | archive_cmds \ |
| 8872 | archive_expsym_cmds \ |
| 8873 | postinstall_cmds \ |
| 8874 | postuninstall_cmds \ |
| 8875 | old_archive_from_expsyms_cmds \ |
| 8876 | allow_undefined_flag \ |
| 8877 | no_undefined_flag \ |
| 8878 | export_symbols_cmds \ |
| 8879 | hardcode_libdir_flag_spec \ |
| 8880 | hardcode_libdir_flag_spec_ld \ |
| 8881 | hardcode_libdir_separator \ |
| 8882 | hardcode_automatic \ |
| 8883 | module_cmds \ |
| 8884 | module_expsym_cmds \ |
| 8885 | lt_cv_prog_compiler_c_o \ |
| 8886 | exclude_expsyms \ |
| 8887 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8888 | |
| 8889 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8890 | old_archive_cmds | \ |
| 8891 | old_archive_from_new_cmds | \ |
| 8892 | archive_cmds | \ |
| 8893 | archive_expsym_cmds | \ |
| 8894 | module_cmds | \ |
| 8895 | module_expsym_cmds | \ |
| 8896 | old_archive_from_expsyms_cmds | \ |
| 8897 | export_symbols_cmds | \ |
| 8898 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8899 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8900 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 8901 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8902 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8903 | 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] | 8904 | ;; |
| 8905 | *) |
| 8906 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 8907 | ;; |
| 8908 | esac |
| 8909 | done |
| 8910 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8911 | case $lt_echo in |
| 8912 | *'\$0 --fallback-echo"') |
| 8913 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 8914 | ;; |
| 8915 | esac |
| 8916 | |
| 8917 | cfgfile="${ofile}T" |
| 8918 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 8919 | $rm -f "$cfgfile" |
| 8920 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 8921 | echo "$as_me: creating $ofile" >&6;} |
| 8922 | |
| 8923 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8924 | #! $SHELL |
| 8925 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8926 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8927 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 8928 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 8929 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8930 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 8931 | # Free Software Foundation, Inc. |
| 8932 | # |
| 8933 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8934 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 8935 | # |
| 8936 | # This program is free software; you can redistribute it and/or modify |
| 8937 | # it under the terms of the GNU General Public License as published by |
| 8938 | # the Free Software Foundation; either version 2 of the License, or |
| 8939 | # (at your option) any later version. |
| 8940 | # |
| 8941 | # This program is distributed in the hope that it will be useful, but |
| 8942 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 8943 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 8944 | # General Public License for more details. |
| 8945 | # |
| 8946 | # You should have received a copy of the GNU General Public License |
| 8947 | # along with this program; if not, write to the Free Software |
| 8948 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 8949 | # |
| 8950 | # As a special exception to the GNU General Public License, if you |
| 8951 | # distribute this file as part of a program that contains a |
| 8952 | # configuration script generated by Autoconf, you may include it under |
| 8953 | # the same distribution terms that you use for the rest of that program. |
| 8954 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8955 | # A sed program that does not truncate output. |
| 8956 | SED=$lt_SED |
| 8957 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8958 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8959 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8960 | |
| 8961 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 8962 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8963 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8964 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8965 | # The names of the tagged configurations supported by this script. |
| 8966 | available_tags= |
| 8967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8968 | # ### BEGIN LIBTOOL CONFIG |
| 8969 | |
| 8970 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8971 | |
| 8972 | # Shell to use when invoking shell scripts. |
| 8973 | SHELL=$lt_SHELL |
| 8974 | |
| 8975 | # Whether or not to build shared libraries. |
| 8976 | build_libtool_libs=$enable_shared |
| 8977 | |
| 8978 | # Whether or not to build static libraries. |
| 8979 | build_old_libs=$enable_static |
| 8980 | |
| 8981 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8982 | build_libtool_need_lc=$archive_cmds_need_lc |
| 8983 | |
| 8984 | # Whether or not to disallow shared libs when runtime libs are static |
| 8985 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8986 | |
| 8987 | # Whether or not to optimize for fast installation. |
| 8988 | fast_install=$enable_fast_install |
| 8989 | |
| 8990 | # The host system. |
| 8991 | host_alias=$host_alias |
| 8992 | host=$host |
| 8993 | |
| 8994 | # An echo program that does not interpret backslashes. |
| 8995 | echo=$lt_echo |
| 8996 | |
| 8997 | # The archiver. |
| 8998 | AR=$lt_AR |
| 8999 | AR_FLAGS=$lt_AR_FLAGS |
| 9000 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9001 | # A C compiler. |
| 9002 | LTCC=$lt_LTCC |
| 9003 | |
| 9004 | # A language-specific compiler. |
| 9005 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9006 | |
| 9007 | # Is the compiler the GNU C compiler? |
| 9008 | with_gcc=$GCC |
| 9009 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9010 | # An ERE matcher. |
| 9011 | EGREP=$lt_EGREP |
| 9012 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9013 | # The linker used to build libraries. |
| 9014 | LD=$lt_LD |
| 9015 | |
| 9016 | # Whether we need hard or soft links. |
| 9017 | LN_S=$lt_LN_S |
| 9018 | |
| 9019 | # A BSD-compatible nm program. |
| 9020 | NM=$lt_NM |
| 9021 | |
| 9022 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9023 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9024 | |
| 9025 | # Used to examine libraries when file_magic_cmd begins "file" |
| 9026 | MAGIC_CMD=$MAGIC_CMD |
| 9027 | |
| 9028 | # Used on cygwin: DLL creation program. |
| 9029 | DLLTOOL="$DLLTOOL" |
| 9030 | |
| 9031 | # Used on cygwin: object dumper. |
| 9032 | OBJDUMP="$OBJDUMP" |
| 9033 | |
| 9034 | # Used on cygwin: assembler. |
| 9035 | AS="$AS" |
| 9036 | |
| 9037 | # The name of the directory that contains temporary libtool files. |
| 9038 | objdir=$objdir |
| 9039 | |
| 9040 | # How to create reloadable object files. |
| 9041 | reload_flag=$lt_reload_flag |
| 9042 | reload_cmds=$lt_reload_cmds |
| 9043 | |
| 9044 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9045 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9046 | |
| 9047 | # Object file suffix (normally "o"). |
| 9048 | objext="$ac_objext" |
| 9049 | |
| 9050 | # Old archive suffix (normally "a"). |
| 9051 | libext="$libext" |
| 9052 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9053 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9054 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9055 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9056 | # Executable file suffix (normally ""). |
| 9057 | exeext="$exeext" |
| 9058 | |
| 9059 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9060 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9061 | pic_mode=$pic_mode |
| 9062 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9063 | # What is the maximum length of a command? |
| 9064 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9065 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9066 | # Does compiler simultaneously support -c and -o options? |
| 9067 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9068 | |
| 9069 | # Must we lock files when doing compilation ? |
| 9070 | need_locks=$lt_need_locks |
| 9071 | |
| 9072 | # Do we need the lib prefix for modules? |
| 9073 | need_lib_prefix=$need_lib_prefix |
| 9074 | |
| 9075 | # Do we need a version for libraries? |
| 9076 | need_version=$need_version |
| 9077 | |
| 9078 | # Whether dlopen is supported. |
| 9079 | dlopen_support=$enable_dlopen |
| 9080 | |
| 9081 | # Whether dlopen of programs is supported. |
| 9082 | dlopen_self=$enable_dlopen_self |
| 9083 | |
| 9084 | # Whether dlopen of statically linked programs is supported. |
| 9085 | dlopen_self_static=$enable_dlopen_self_static |
| 9086 | |
| 9087 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9088 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9089 | |
| 9090 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9091 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9092 | |
| 9093 | # Compiler flag to allow reflexive dlopens. |
| 9094 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 9095 | |
| 9096 | # Compiler flag to generate shared objects directly from archives. |
| 9097 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 9098 | |
| 9099 | # Compiler flag to generate thread-safe objects. |
| 9100 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 9101 | |
| 9102 | # Library versioning type. |
| 9103 | version_type=$version_type |
| 9104 | |
| 9105 | # Format of library name prefix. |
| 9106 | libname_spec=$lt_libname_spec |
| 9107 | |
| 9108 | # List of archive names. First name is the real one, the rest are links. |
| 9109 | # The last name is the one that the linker finds with -lNAME. |
| 9110 | library_names_spec=$lt_library_names_spec |
| 9111 | |
| 9112 | # The coded name of the library, if different from the real name. |
| 9113 | soname_spec=$lt_soname_spec |
| 9114 | |
| 9115 | # Commands used to build and install an old-style archive. |
| 9116 | RANLIB=$lt_RANLIB |
| 9117 | old_archive_cmds=$lt_old_archive_cmds |
| 9118 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 9119 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 9120 | |
| 9121 | # Create an old-style archive from a shared archive. |
| 9122 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 9123 | |
| 9124 | # Create a temporary old-style archive to link instead of a shared archive. |
| 9125 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 9126 | |
| 9127 | # Commands used to build and install a shared archive. |
| 9128 | archive_cmds=$lt_archive_cmds |
| 9129 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 9130 | postinstall_cmds=$lt_postinstall_cmds |
| 9131 | postuninstall_cmds=$lt_postuninstall_cmds |
| 9132 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9133 | # Commands used to build a loadable module (assumed same as above if empty) |
| 9134 | module_cmds=$lt_module_cmds |
| 9135 | module_expsym_cmds=$lt_module_expsym_cmds |
| 9136 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9137 | # Commands to strip libraries. |
| 9138 | old_striplib=$lt_old_striplib |
| 9139 | striplib=$lt_striplib |
| 9140 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9141 | # Dependencies to place before the objects being linked to create a |
| 9142 | # shared library. |
| 9143 | predep_objects=$lt_predep_objects |
| 9144 | |
| 9145 | # Dependencies to place after the objects being linked to create a |
| 9146 | # shared library. |
| 9147 | postdep_objects=$lt_postdep_objects |
| 9148 | |
| 9149 | # Dependencies to place before the objects being linked to create a |
| 9150 | # shared library. |
| 9151 | predeps=$lt_predeps |
| 9152 | |
| 9153 | # Dependencies to place after the objects being linked to create a |
| 9154 | # shared library. |
| 9155 | postdeps=$lt_postdeps |
| 9156 | |
| 9157 | # The library search path used internally by the compiler when linking |
| 9158 | # a shared library. |
| 9159 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 9160 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9161 | # Method to check whether dependent libraries are shared objects. |
| 9162 | deplibs_check_method=$lt_deplibs_check_method |
| 9163 | |
| 9164 | # Command to use when deplibs_check_method == file_magic. |
| 9165 | file_magic_cmd=$lt_file_magic_cmd |
| 9166 | |
| 9167 | # Flag that allows shared libraries with undefined symbols to be built. |
| 9168 | allow_undefined_flag=$lt_allow_undefined_flag |
| 9169 | |
| 9170 | # Flag that forces no undefined symbols. |
| 9171 | no_undefined_flag=$lt_no_undefined_flag |
| 9172 | |
| 9173 | # Commands used to finish a libtool library installation in a directory. |
| 9174 | finish_cmds=$lt_finish_cmds |
| 9175 | |
| 9176 | # Same as above, but a single script fragment to be evaled but not shown. |
| 9177 | finish_eval=$lt_finish_eval |
| 9178 | |
| 9179 | # 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] | 9180 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9181 | |
| 9182 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9183 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9184 | |
| 9185 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9186 | 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] | 9187 | |
| 9188 | # This is the shared library runtime path variable. |
| 9189 | runpath_var=$runpath_var |
| 9190 | |
| 9191 | # This is the shared library path variable. |
| 9192 | shlibpath_var=$shlibpath_var |
| 9193 | |
| 9194 | # Is shlibpath searched before the hard-coded library search path? |
| 9195 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 9196 | |
| 9197 | # How to hardcode a shared library path into an executable. |
| 9198 | hardcode_action=$hardcode_action |
| 9199 | |
| 9200 | # Whether we should hardcode library paths into libraries. |
| 9201 | hardcode_into_libs=$hardcode_into_libs |
| 9202 | |
| 9203 | # Flag to hardcode \$libdir into a binary during linking. |
| 9204 | # This must work even if \$libdir does not exist. |
| 9205 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 9206 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9207 | # If ld is used when linking, flag to hardcode \$libdir into |
| 9208 | # a binary during linking. This must work even if \$libdir does |
| 9209 | # not exist. |
| 9210 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 9211 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9212 | # Whether we need a single -rpath flag with a separated argument. |
| 9213 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 9214 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9215 | # 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] | 9216 | # resulting binary. |
| 9217 | hardcode_direct=$hardcode_direct |
| 9218 | |
| 9219 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 9220 | # resulting binary. |
| 9221 | hardcode_minus_L=$hardcode_minus_L |
| 9222 | |
| 9223 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 9224 | # the resulting binary. |
| 9225 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 9226 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9227 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 9228 | # and all subsequent libraries and executables linked against it. |
| 9229 | hardcode_automatic=$hardcode_automatic |
| 9230 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9231 | # Variables whose values should be saved in libtool wrapper scripts and |
| 9232 | # restored at relink time. |
| 9233 | variables_saved_for_relink="$variables_saved_for_relink" |
| 9234 | |
| 9235 | # Whether libtool must link a program against all its dependency libraries. |
| 9236 | link_all_deplibs=$link_all_deplibs |
| 9237 | |
| 9238 | # Compile-time system search path for libraries |
| 9239 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 9240 | |
| 9241 | # Run-time system search path for libraries |
| 9242 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9243 | |
| 9244 | # Fix the shell variable \$srcfile for the compiler. |
| 9245 | fix_srcfile_path="$fix_srcfile_path" |
| 9246 | |
| 9247 | # Set to yes if exported symbols are required. |
| 9248 | always_export_symbols=$always_export_symbols |
| 9249 | |
| 9250 | # The commands to list exported symbols. |
| 9251 | export_symbols_cmds=$lt_export_symbols_cmds |
| 9252 | |
| 9253 | # The commands to extract the exported symbol list from a shared archive. |
| 9254 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 9255 | |
| 9256 | # Symbols that should not be listed in the preloaded symbols. |
| 9257 | exclude_expsyms=$lt_exclude_expsyms |
| 9258 | |
| 9259 | # Symbols that must always be exported. |
| 9260 | include_expsyms=$lt_include_expsyms |
| 9261 | |
| 9262 | # ### END LIBTOOL CONFIG |
| 9263 | |
| 9264 | __EOF__ |
| 9265 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9266 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9267 | case $host_os in |
| 9268 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9269 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9270 | |
| 9271 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9272 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9273 | # vanish in a puff of smoke. |
| 9274 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 9275 | COLLECT_NAMES= |
| 9276 | export COLLECT_NAMES |
| 9277 | fi |
| 9278 | EOF |
| 9279 | ;; |
| 9280 | esac |
| 9281 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9282 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 9283 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 9284 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 9285 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9286 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9287 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9288 | mv -f "$cfgfile" "$ofile" || \ |
| 9289 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9290 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9291 | |
| 9292 | else |
| 9293 | # If there is no Makefile yet, we rely on a make rule to execute |
| 9294 | # `config.status --recheck' to rerun these tests and create the |
| 9295 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9296 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 9297 | if test -f "$ltmain_in"; then |
| 9298 | test -f Makefile && make "$ltmain" |
| 9299 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9300 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9301 | |
| 9302 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9303 | ac_ext=c |
| 9304 | ac_cpp='$CPP $CPPFLAGS' |
| 9305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9308 | |
| 9309 | CC="$lt_save_CC" |
| 9310 | |
| 9311 | |
| 9312 | # Check whether --with-tags or --without-tags was given. |
| 9313 | if test "${with_tags+set}" = set; then |
| 9314 | withval="$with_tags" |
| 9315 | tagnames="$withval" |
| 9316 | fi; |
| 9317 | |
| 9318 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 9319 | if test ! -f "${ofile}"; then |
| 9320 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 9321 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 9322 | fi |
| 9323 | |
| 9324 | if test -z "$LTCC"; then |
| 9325 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 9326 | if test -z "$LTCC"; then |
| 9327 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 9328 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 9329 | else |
| 9330 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 9331 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 9332 | fi |
| 9333 | fi |
| 9334 | |
| 9335 | # Extract list of available tagged configurations in $ofile. |
| 9336 | # Note that this assumes the entire list is on one line. |
| 9337 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 9338 | |
| 9339 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9340 | for tagname in $tagnames; do |
| 9341 | IFS="$lt_save_ifs" |
| 9342 | # Check whether tagname contains only valid characters |
| 9343 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 9344 | "") ;; |
| 9345 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 9346 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 9347 | { (exit 1); exit 1; }; } |
| 9348 | ;; |
| 9349 | esac |
| 9350 | |
| 9351 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 9352 | then |
| 9353 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 9354 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 9355 | { (exit 1); exit 1; }; } |
| 9356 | fi |
| 9357 | |
| 9358 | # Update the list of available tags. |
| 9359 | if test -n "$tagname"; then |
| 9360 | echo appending configuration tag \"$tagname\" to $ofile |
| 9361 | |
| 9362 | case $tagname in |
| 9363 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9364 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 9365 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 9366 | (test "X$CXX" != "Xg++"))) ; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9367 | ac_ext=cc |
| 9368 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9372 | |
| 9373 | |
| 9374 | |
| 9375 | |
| 9376 | archive_cmds_need_lc_CXX=no |
| 9377 | allow_undefined_flag_CXX= |
| 9378 | always_export_symbols_CXX=no |
| 9379 | archive_expsym_cmds_CXX= |
| 9380 | export_dynamic_flag_spec_CXX= |
| 9381 | hardcode_direct_CXX=no |
| 9382 | hardcode_libdir_flag_spec_CXX= |
| 9383 | hardcode_libdir_flag_spec_ld_CXX= |
| 9384 | hardcode_libdir_separator_CXX= |
| 9385 | hardcode_minus_L_CXX=no |
| 9386 | hardcode_automatic_CXX=no |
| 9387 | module_cmds_CXX= |
| 9388 | module_expsym_cmds_CXX= |
| 9389 | link_all_deplibs_CXX=unknown |
| 9390 | old_archive_cmds_CXX=$old_archive_cmds |
| 9391 | no_undefined_flag_CXX= |
| 9392 | whole_archive_flag_spec_CXX= |
| 9393 | enable_shared_with_static_runtimes_CXX=no |
| 9394 | |
| 9395 | # Dependencies to place before and after the object being linked: |
| 9396 | predep_objects_CXX= |
| 9397 | postdep_objects_CXX= |
| 9398 | predeps_CXX= |
| 9399 | postdeps_CXX= |
| 9400 | compiler_lib_search_path_CXX= |
| 9401 | |
| 9402 | # Source file extension for C++ test sources. |
| 9403 | ac_ext=cc |
| 9404 | |
| 9405 | # Object file extension for compiled C++ test sources. |
| 9406 | objext=o |
| 9407 | objext_CXX=$objext |
| 9408 | |
| 9409 | # Code to be used in simple compile tests |
| 9410 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 9411 | |
| 9412 | # Code to be used in simple link tests |
| 9413 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 9414 | |
| 9415 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9416 | |
| 9417 | # If no C compiler was specified, use CC. |
| 9418 | LTCC=${LTCC-"$CC"} |
| 9419 | |
| 9420 | # Allow CC to be a program name with arguments. |
| 9421 | compiler=$CC |
| 9422 | |
| 9423 | |
| 9424 | # Allow CC to be a program name with arguments. |
| 9425 | lt_save_CC=$CC |
| 9426 | lt_save_LD=$LD |
| 9427 | lt_save_GCC=$GCC |
| 9428 | GCC=$GXX |
| 9429 | lt_save_with_gnu_ld=$with_gnu_ld |
| 9430 | lt_save_path_LD=$lt_cv_path_LD |
| 9431 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9432 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9433 | else |
| 9434 | unset lt_cv_prog_gnu_ld |
| 9435 | fi |
| 9436 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9437 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9438 | else |
| 9439 | unset lt_cv_path_LD |
| 9440 | fi |
| 9441 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 9442 | CC=${CXX-"c++"} |
| 9443 | compiler=$CC |
| 9444 | compiler_CXX=$CC |
| 9445 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 9446 | |
| 9447 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 9448 | # no_builtin_flag separately |
| 9449 | if test "$GXX" = yes; then |
| 9450 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 9451 | else |
| 9452 | lt_prog_compiler_no_builtin_flag_CXX= |
| 9453 | fi |
| 9454 | |
| 9455 | if test "$GXX" = yes; then |
| 9456 | # Set up default GNU C++ configuration |
| 9457 | |
| 9458 | |
| 9459 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9460 | if test "${with_gnu_ld+set}" = set; then |
| 9461 | withval="$with_gnu_ld" |
| 9462 | test "$withval" = no || with_gnu_ld=yes |
| 9463 | else |
| 9464 | with_gnu_ld=no |
| 9465 | fi; |
| 9466 | ac_prog=ld |
| 9467 | if test "$GCC" = yes; then |
| 9468 | # Check if gcc -print-prog-name=ld gives a path. |
| 9469 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 9470 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 9471 | case $host in |
| 9472 | *-*-mingw*) |
| 9473 | # gcc leaves a trailing carriage return which upsets mingw |
| 9474 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9475 | *) |
| 9476 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9477 | esac |
| 9478 | case $ac_prog in |
| 9479 | # Accept absolute paths. |
| 9480 | [\\/]* | ?:[\\/]*) |
| 9481 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9482 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9483 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9484 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9485 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9486 | done |
| 9487 | test -z "$LD" && LD="$ac_prog" |
| 9488 | ;; |
| 9489 | "") |
| 9490 | # If it fails, then pretend we aren't using GCC. |
| 9491 | ac_prog=ld |
| 9492 | ;; |
| 9493 | *) |
| 9494 | # If it is relative, then search for the first ld in PATH. |
| 9495 | with_gnu_ld=unknown |
| 9496 | ;; |
| 9497 | esac |
| 9498 | elif test "$with_gnu_ld" = yes; then |
| 9499 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9500 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9501 | else |
| 9502 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9503 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9504 | fi |
| 9505 | if test "${lt_cv_path_LD+set}" = set; then |
| 9506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9507 | else |
| 9508 | if test -z "$LD"; then |
| 9509 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9510 | for ac_dir in $PATH; do |
| 9511 | IFS="$lt_save_ifs" |
| 9512 | test -z "$ac_dir" && ac_dir=. |
| 9513 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9514 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9515 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9516 | # but apparently some GNU ld's only accept -v. |
| 9517 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9518 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9519 | *GNU* | *'with BFD'*) |
| 9520 | test "$with_gnu_ld" != no && break |
| 9521 | ;; |
| 9522 | *) |
| 9523 | test "$with_gnu_ld" != yes && break |
| 9524 | ;; |
| 9525 | esac |
| 9526 | fi |
| 9527 | done |
| 9528 | IFS="$lt_save_ifs" |
| 9529 | else |
| 9530 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9531 | fi |
| 9532 | fi |
| 9533 | |
| 9534 | LD="$lt_cv_path_LD" |
| 9535 | if test -n "$LD"; then |
| 9536 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9537 | echo "${ECHO_T}$LD" >&6 |
| 9538 | else |
| 9539 | echo "$as_me:$LINENO: result: no" >&5 |
| 9540 | echo "${ECHO_T}no" >&6 |
| 9541 | fi |
| 9542 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9543 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9544 | { (exit 1); exit 1; }; } |
| 9545 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9546 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9547 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9549 | else |
| 9550 | # 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] | 9551 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9552 | *GNU* | *'with BFD'*) |
| 9553 | lt_cv_prog_gnu_ld=yes |
| 9554 | ;; |
| 9555 | *) |
| 9556 | lt_cv_prog_gnu_ld=no |
| 9557 | ;; |
| 9558 | esac |
| 9559 | fi |
| 9560 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9561 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9562 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9563 | |
| 9564 | |
| 9565 | |
| 9566 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9567 | # archiving commands below assume that GNU ld is being used. |
| 9568 | if test "$with_gnu_ld" = yes; then |
| 9569 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9570 | 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' |
| 9571 | |
| 9572 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9573 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9574 | |
| 9575 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9576 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9577 | # investigate it a little bit more. (MM) |
| 9578 | wlarc='${wl}' |
| 9579 | |
| 9580 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9581 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9582 | grep 'no-whole-archive' > /dev/null; then |
| 9583 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9584 | else |
| 9585 | whole_archive_flag_spec_CXX= |
| 9586 | fi |
| 9587 | else |
| 9588 | with_gnu_ld=no |
| 9589 | wlarc= |
| 9590 | |
| 9591 | # A generic and very simple default shared library creation |
| 9592 | # command for GNU C++ for the case where it uses the native |
| 9593 | # linker, instead of GNU ld. If possible, this setting should |
| 9594 | # overridden to take advantage of the native linker features on |
| 9595 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9596 | 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] | 9597 | fi |
| 9598 | |
| 9599 | # Commands to make compiler produce verbose output that lists |
| 9600 | # what "hidden" libraries, object files and flags are used when |
| 9601 | # linking a shared library. |
| 9602 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9603 | |
| 9604 | else |
| 9605 | GXX=no |
| 9606 | with_gnu_ld=no |
| 9607 | wlarc= |
| 9608 | fi |
| 9609 | |
| 9610 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9611 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9612 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9613 | ld_shlibs_CXX=yes |
| 9614 | case $host_os in |
| 9615 | aix3*) |
| 9616 | # FIXME: insert proper C++ library support |
| 9617 | ld_shlibs_CXX=no |
| 9618 | ;; |
| 9619 | aix4* | aix5*) |
| 9620 | if test "$host_cpu" = ia64; then |
| 9621 | # On IA64, the linker does run time linking by default, so we don't |
| 9622 | # have to do anything special. |
| 9623 | aix_use_runtimelinking=no |
| 9624 | exp_sym_flag='-Bexport' |
| 9625 | no_entry_flag="" |
| 9626 | else |
| 9627 | aix_use_runtimelinking=no |
| 9628 | |
| 9629 | # Test if we are trying to use run time linking or normal |
| 9630 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9631 | # need to do runtime linking. |
| 9632 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9633 | for ld_flag in $LDFLAGS; do |
| 9634 | case $ld_flag in |
| 9635 | *-brtl*) |
| 9636 | aix_use_runtimelinking=yes |
| 9637 | break |
| 9638 | ;; |
| 9639 | esac |
| 9640 | done |
| 9641 | esac |
| 9642 | |
| 9643 | exp_sym_flag='-bexport' |
| 9644 | no_entry_flag='-bnoentry' |
| 9645 | fi |
| 9646 | |
| 9647 | # When large executables or shared objects are built, AIX ld can |
| 9648 | # have problems creating the table of contents. If linking a library |
| 9649 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9650 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9651 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9652 | |
| 9653 | archive_cmds_CXX='' |
| 9654 | hardcode_direct_CXX=yes |
| 9655 | hardcode_libdir_separator_CXX=':' |
| 9656 | link_all_deplibs_CXX=yes |
| 9657 | |
| 9658 | if test "$GXX" = yes; then |
| 9659 | case $host_os in aix4.012|aix4.012.*) |
| 9660 | # We only want to do this on AIX 4.2 and lower, the check |
| 9661 | # below for broken collect2 doesn't work under 4.3+ |
| 9662 | collect2name=`${CC} -print-prog-name=collect2` |
| 9663 | if test -f "$collect2name" && \ |
| 9664 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9665 | then |
| 9666 | # We have reworked collect2 |
| 9667 | hardcode_direct_CXX=yes |
| 9668 | else |
| 9669 | # We have old collect2 |
| 9670 | hardcode_direct_CXX=unsupported |
| 9671 | # It fails to find uninstalled libraries when the uninstalled |
| 9672 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9673 | # to unsupported forces relinking |
| 9674 | hardcode_minus_L_CXX=yes |
| 9675 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9676 | hardcode_libdir_separator_CXX= |
| 9677 | fi |
| 9678 | esac |
| 9679 | shared_flag='-shared' |
| 9680 | else |
| 9681 | # not using gcc |
| 9682 | if test "$host_cpu" = ia64; then |
| 9683 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9684 | # chokes on -Wl,-G. The following line is correct: |
| 9685 | shared_flag='-G' |
| 9686 | else |
| 9687 | if test "$aix_use_runtimelinking" = yes; then |
| 9688 | shared_flag='${wl}-G' |
| 9689 | else |
| 9690 | shared_flag='${wl}-bM:SRE' |
| 9691 | fi |
| 9692 | fi |
| 9693 | fi |
| 9694 | |
| 9695 | # It seems that -bexpall does not export symbols beginning with |
| 9696 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9697 | always_export_symbols_CXX=yes |
| 9698 | if test "$aix_use_runtimelinking" = yes; then |
| 9699 | # Warning - without using the other runtime loading flags (-brtl), |
| 9700 | # -berok will link without error, but may produce a broken library. |
| 9701 | allow_undefined_flag_CXX='-berok' |
| 9702 | # Determine the default libpath from the value encoded in an empty executable. |
| 9703 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9704 | /* confdefs.h. */ |
| 9705 | _ACEOF |
| 9706 | cat confdefs.h >>conftest.$ac_ext |
| 9707 | cat >>conftest.$ac_ext <<_ACEOF |
| 9708 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9709 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9710 | int |
| 9711 | main () |
| 9712 | { |
| 9713 | |
| 9714 | ; |
| 9715 | return 0; |
| 9716 | } |
| 9717 | _ACEOF |
| 9718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9720 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9721 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9723 | rm -f conftest.er1 |
| 9724 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9726 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9727 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9728 | || test ! -s conftest.err' |
| 9729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9730 | (eval $ac_try) 2>&5 |
| 9731 | ac_status=$? |
| 9732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9733 | (exit $ac_status); }; } && |
| 9734 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9736 | (eval $ac_try) 2>&5 |
| 9737 | ac_status=$? |
| 9738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9739 | (exit $ac_status); }; }; then |
| 9740 | |
| 9741 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9742 | }'` |
| 9743 | # Check for a 64-bit object if we didn't find anything. |
| 9744 | 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; } |
| 9745 | }'`; fi |
| 9746 | else |
| 9747 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9749 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9750 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9751 | rm -f conftest.err conftest.$ac_objext \ |
| 9752 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9753 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9754 | |
| 9755 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9756 | |
| 9757 | 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" |
| 9758 | else |
| 9759 | if test "$host_cpu" = ia64; then |
| 9760 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9761 | allow_undefined_flag_CXX="-z nodefs" |
| 9762 | 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" |
| 9763 | else |
| 9764 | # Determine the default libpath from the value encoded in an empty executable. |
| 9765 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9766 | /* confdefs.h. */ |
| 9767 | _ACEOF |
| 9768 | cat confdefs.h >>conftest.$ac_ext |
| 9769 | cat >>conftest.$ac_ext <<_ACEOF |
| 9770 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9771 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9772 | int |
| 9773 | main () |
| 9774 | { |
| 9775 | |
| 9776 | ; |
| 9777 | return 0; |
| 9778 | } |
| 9779 | _ACEOF |
| 9780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9782 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9783 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9785 | rm -f conftest.er1 |
| 9786 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9788 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9789 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9790 | || test ! -s conftest.err' |
| 9791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9792 | (eval $ac_try) 2>&5 |
| 9793 | ac_status=$? |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); }; } && |
| 9796 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9798 | (eval $ac_try) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); }; }; then |
| 9802 | |
| 9803 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9804 | }'` |
| 9805 | # Check for a 64-bit object if we didn't find anything. |
| 9806 | 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; } |
| 9807 | }'`; fi |
| 9808 | else |
| 9809 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9811 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9812 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9813 | rm -f conftest.err conftest.$ac_objext \ |
| 9814 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9815 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9816 | |
| 9817 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9818 | # Warning - without using the other run time loading flags, |
| 9819 | # -berok will link without error, but may produce a broken library. |
| 9820 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9821 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 9822 | # -bexpall does not export symbols beginning with underscore (_) |
| 9823 | always_export_symbols_CXX=yes |
| 9824 | # Exported symbols can be pulled into shared objects from archives |
| 9825 | whole_archive_flag_spec_CXX=' ' |
| 9826 | archive_cmds_need_lc_CXX=yes |
| 9827 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9828 | 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] | 9829 | fi |
| 9830 | fi |
| 9831 | ;; |
| 9832 | chorus*) |
| 9833 | case $cc_basename in |
| 9834 | *) |
| 9835 | # FIXME: insert proper C++ library support |
| 9836 | ld_shlibs_CXX=no |
| 9837 | ;; |
| 9838 | esac |
| 9839 | ;; |
| 9840 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9841 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9842 | cygwin* | mingw* | pw32*) |
| 9843 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 9844 | # as there is no search path for DLLs. |
| 9845 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9846 | allow_undefined_flag_CXX=unsupported |
| 9847 | always_export_symbols_CXX=no |
| 9848 | enable_shared_with_static_runtimes_CXX=yes |
| 9849 | |
| 9850 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 9851 | 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' |
| 9852 | # If the export-symbols file already is a .def file (1st line |
| 9853 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9854 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9855 | cp $export_symbols $output_objdir/$soname.def; |
| 9856 | else |
| 9857 | echo EXPORTS > $output_objdir/$soname.def; |
| 9858 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9859 | fi;$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] | 9860 | else |
| 9861 | ld_shlibs_CXX=no |
| 9862 | fi |
| 9863 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9864 | darwin* | rhapsody*) |
| 9865 | case "$host_os" in |
| 9866 | rhapsody* | darwin1.[012]) |
| 9867 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 9868 | ;; |
| 9869 | *) # Darwin 1.3 on |
| 9870 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 9871 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 9872 | else |
| 9873 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 9874 | 10.[012]) |
| 9875 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 9876 | ;; |
| 9877 | 10.*) |
| 9878 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 9879 | ;; |
| 9880 | esac |
| 9881 | fi |
| 9882 | ;; |
| 9883 | esac |
| 9884 | archive_cmds_need_lc_CXX=no |
| 9885 | hardcode_direct_CXX=no |
| 9886 | hardcode_automatic_CXX=yes |
| 9887 | hardcode_shlibpath_var_CXX=unsupported |
| 9888 | whole_archive_flag_spec_CXX='' |
| 9889 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9890 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9891 | if test "$GXX" = yes ; then |
| 9892 | lt_int_apple_cc_single_mod=no |
| 9893 | output_verbose_link_cmd='echo' |
| 9894 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 9895 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9896 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9897 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9898 | 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] | 9899 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9900 | 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' |
| 9901 | fi |
| 9902 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9903 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9904 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9905 | 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}' |
| 9906 | else |
| 9907 | 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}' |
| 9908 | fi |
| 9909 | 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}' |
| 9910 | else |
| 9911 | case "$cc_basename" in |
| 9912 | xlc*) |
| 9913 | output_verbose_link_cmd='echo' |
| 9914 | 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' |
| 9915 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9916 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9917 | 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}' |
| 9918 | 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}' |
| 9919 | ;; |
| 9920 | *) |
| 9921 | ld_shlibs_CXX=no |
| 9922 | ;; |
| 9923 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9924 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9925 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9926 | |
| 9927 | dgux*) |
| 9928 | case $cc_basename in |
| 9929 | ec++) |
| 9930 | # FIXME: insert proper C++ library support |
| 9931 | ld_shlibs_CXX=no |
| 9932 | ;; |
| 9933 | ghcx) |
| 9934 | # Green Hills C++ Compiler |
| 9935 | # FIXME: insert proper C++ library support |
| 9936 | ld_shlibs_CXX=no |
| 9937 | ;; |
| 9938 | *) |
| 9939 | # FIXME: insert proper C++ library support |
| 9940 | ld_shlibs_CXX=no |
| 9941 | ;; |
| 9942 | esac |
| 9943 | ;; |
| 9944 | freebsd12*) |
| 9945 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 9946 | ld_shlibs_CXX=no |
| 9947 | ;; |
| 9948 | freebsd-elf*) |
| 9949 | archive_cmds_need_lc_CXX=no |
| 9950 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9951 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9952 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 9953 | # conventions |
| 9954 | ld_shlibs_CXX=yes |
| 9955 | ;; |
| 9956 | gnu*) |
| 9957 | ;; |
| 9958 | hpux9*) |
| 9959 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9960 | hardcode_libdir_separator_CXX=: |
| 9961 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9962 | hardcode_direct_CXX=yes |
| 9963 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9964 | # but as the default |
| 9965 | # location of the library. |
| 9966 | |
| 9967 | case $cc_basename in |
| 9968 | CC) |
| 9969 | # FIXME: insert proper C++ library support |
| 9970 | ld_shlibs_CXX=no |
| 9971 | ;; |
| 9972 | aCC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9973 | 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] | 9974 | # Commands to make compiler produce verbose output that lists |
| 9975 | # what "hidden" libraries, object files and flags are used when |
| 9976 | # linking a shared library. |
| 9977 | # |
| 9978 | # There doesn't appear to be a way to prevent this compiler from |
| 9979 | # explicitly linking system object files so we need to strip them |
| 9980 | # from the output so that they don't get included in the library |
| 9981 | # dependencies. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9982 | 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] | 9983 | ;; |
| 9984 | *) |
| 9985 | if test "$GXX" = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9986 | 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] | 9987 | else |
| 9988 | # FIXME: insert proper C++ library support |
| 9989 | ld_shlibs_CXX=no |
| 9990 | fi |
| 9991 | ;; |
| 9992 | esac |
| 9993 | ;; |
| 9994 | hpux10*|hpux11*) |
| 9995 | if test $with_gnu_ld = no; then |
| 9996 | case "$host_cpu" in |
| 9997 | hppa*64*) |
| 9998 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9999 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 10000 | hardcode_libdir_separator_CXX=: |
| 10001 | ;; |
| 10002 | ia64*) |
| 10003 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10004 | ;; |
| 10005 | *) |
| 10006 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10007 | hardcode_libdir_separator_CXX=: |
| 10008 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10009 | ;; |
| 10010 | esac |
| 10011 | fi |
| 10012 | case "$host_cpu" in |
| 10013 | hppa*64*) |
| 10014 | hardcode_direct_CXX=no |
| 10015 | hardcode_shlibpath_var_CXX=no |
| 10016 | ;; |
| 10017 | ia64*) |
| 10018 | hardcode_direct_CXX=no |
| 10019 | hardcode_shlibpath_var_CXX=no |
| 10020 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10021 | # but as the default |
| 10022 | # location of the library. |
| 10023 | ;; |
| 10024 | *) |
| 10025 | hardcode_direct_CXX=yes |
| 10026 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10027 | # but as the default |
| 10028 | # location of the library. |
| 10029 | ;; |
| 10030 | esac |
| 10031 | |
| 10032 | case $cc_basename in |
| 10033 | CC) |
| 10034 | # FIXME: insert proper C++ library support |
| 10035 | ld_shlibs_CXX=no |
| 10036 | ;; |
| 10037 | aCC) |
| 10038 | case "$host_cpu" in |
| 10039 | hppa*64*|ia64*) |
| 10040 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10041 | ;; |
| 10042 | *) |
| 10043 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10044 | ;; |
| 10045 | esac |
| 10046 | # Commands to make compiler produce verbose output that lists |
| 10047 | # what "hidden" libraries, object files and flags are used when |
| 10048 | # linking a shared library. |
| 10049 | # |
| 10050 | # There doesn't appear to be a way to prevent this compiler from |
| 10051 | # explicitly linking system object files so we need to strip them |
| 10052 | # from the output so that they don't get included in the library |
| 10053 | # dependencies. |
| 10054 | 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' |
| 10055 | ;; |
| 10056 | *) |
| 10057 | if test "$GXX" = yes; then |
| 10058 | if test $with_gnu_ld = no; then |
| 10059 | case "$host_cpu" in |
| 10060 | ia64*|hppa*64*) |
| 10061 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10062 | ;; |
| 10063 | *) |
| 10064 | 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' |
| 10065 | ;; |
| 10066 | esac |
| 10067 | fi |
| 10068 | else |
| 10069 | # FIXME: insert proper C++ library support |
| 10070 | ld_shlibs_CXX=no |
| 10071 | fi |
| 10072 | ;; |
| 10073 | esac |
| 10074 | ;; |
| 10075 | irix5* | irix6*) |
| 10076 | case $cc_basename in |
| 10077 | CC) |
| 10078 | # SGI C++ |
| 10079 | 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' |
| 10080 | |
| 10081 | # Archives containing C++ object files must be created using |
| 10082 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10083 | # necessary to make sure instantiated templates are included |
| 10084 | # in the archive. |
| 10085 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 10086 | ;; |
| 10087 | *) |
| 10088 | if test "$GXX" = yes; then |
| 10089 | if test "$with_gnu_ld" = no; then |
| 10090 | 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' |
| 10091 | else |
| 10092 | 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' |
| 10093 | fi |
| 10094 | fi |
| 10095 | link_all_deplibs_CXX=yes |
| 10096 | ;; |
| 10097 | esac |
| 10098 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10099 | hardcode_libdir_separator_CXX=: |
| 10100 | ;; |
| 10101 | linux*) |
| 10102 | case $cc_basename in |
| 10103 | KCC) |
| 10104 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10105 | |
| 10106 | # KCC will only create a shared library if the output file |
| 10107 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10108 | # to its proper name (with version) after linking. |
| 10109 | 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' |
| 10110 | 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' |
| 10111 | # Commands to make compiler produce verbose output that lists |
| 10112 | # what "hidden" libraries, object files and flags are used when |
| 10113 | # linking a shared library. |
| 10114 | # |
| 10115 | # There doesn't appear to be a way to prevent this compiler from |
| 10116 | # explicitly linking system object files so we need to strip them |
| 10117 | # from the output so that they don't get included in the library |
| 10118 | # dependencies. |
| 10119 | 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' |
| 10120 | |
| 10121 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 10122 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10123 | |
| 10124 | # Archives containing C++ object files must be created using |
| 10125 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10126 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10127 | ;; |
| 10128 | icpc) |
| 10129 | # Intel C++ |
| 10130 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10131 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 10132 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 10133 | # earlier do not add the objects themselves. |
| 10134 | case `$CC -V 2>&1` in |
| 10135 | *"Version 7."*) |
| 10136 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10137 | 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' |
| 10138 | ;; |
| 10139 | *) # Version 8.0 or newer |
| 10140 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10141 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10142 | ;; |
| 10143 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10144 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10145 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10146 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10147 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10148 | ;; |
| 10149 | cxx) |
| 10150 | # Compaq C++ |
| 10151 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10152 | 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' |
| 10153 | |
| 10154 | runpath_var=LD_RUN_PATH |
| 10155 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10156 | hardcode_libdir_separator_CXX=: |
| 10157 | |
| 10158 | # Commands to make compiler produce verbose output that lists |
| 10159 | # what "hidden" libraries, object files and flags are used when |
| 10160 | # linking a shared library. |
| 10161 | # |
| 10162 | # There doesn't appear to be a way to prevent this compiler from |
| 10163 | # explicitly linking system object files so we need to strip them |
| 10164 | # from the output so that they don't get included in the library |
| 10165 | # dependencies. |
| 10166 | 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' |
| 10167 | ;; |
| 10168 | esac |
| 10169 | ;; |
| 10170 | lynxos*) |
| 10171 | # FIXME: insert proper C++ library support |
| 10172 | ld_shlibs_CXX=no |
| 10173 | ;; |
| 10174 | m88k*) |
| 10175 | # FIXME: insert proper C++ library support |
| 10176 | ld_shlibs_CXX=no |
| 10177 | ;; |
| 10178 | mvs*) |
| 10179 | case $cc_basename in |
| 10180 | cxx) |
| 10181 | # FIXME: insert proper C++ library support |
| 10182 | ld_shlibs_CXX=no |
| 10183 | ;; |
| 10184 | *) |
| 10185 | # FIXME: insert proper C++ library support |
| 10186 | ld_shlibs_CXX=no |
| 10187 | ;; |
| 10188 | esac |
| 10189 | ;; |
| 10190 | netbsd*) |
| 10191 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10192 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 10193 | wlarc= |
| 10194 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10195 | hardcode_direct_CXX=yes |
| 10196 | hardcode_shlibpath_var_CXX=no |
| 10197 | fi |
| 10198 | # Workaround some broken pre-1.5 toolchains |
| 10199 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 10200 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10201 | openbsd2*) |
| 10202 | # C++ shared libraries are fairly broken |
| 10203 | ld_shlibs_CXX=no |
| 10204 | ;; |
| 10205 | openbsd*) |
| 10206 | hardcode_direct_CXX=yes |
| 10207 | hardcode_shlibpath_var_CXX=no |
| 10208 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10209 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10210 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10211 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 10212 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10213 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10214 | fi |
| 10215 | output_verbose_link_cmd='echo' |
| 10216 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10217 | osf3*) |
| 10218 | case $cc_basename in |
| 10219 | KCC) |
| 10220 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10221 | |
| 10222 | # KCC will only create a shared library if the output file |
| 10223 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10224 | # to its proper name (with version) after linking. |
| 10225 | 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' |
| 10226 | |
| 10227 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10228 | hardcode_libdir_separator_CXX=: |
| 10229 | |
| 10230 | # Archives containing C++ object files must be created using |
| 10231 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10232 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10233 | |
| 10234 | ;; |
| 10235 | RCC) |
| 10236 | # Rational C++ 2.4.1 |
| 10237 | # FIXME: insert proper C++ library support |
| 10238 | ld_shlibs_CXX=no |
| 10239 | ;; |
| 10240 | cxx) |
| 10241 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10242 | 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' |
| 10243 | |
| 10244 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10245 | hardcode_libdir_separator_CXX=: |
| 10246 | |
| 10247 | # Commands to make compiler produce verbose output that lists |
| 10248 | # what "hidden" libraries, object files and flags are used when |
| 10249 | # linking a shared library. |
| 10250 | # |
| 10251 | # There doesn't appear to be a way to prevent this compiler from |
| 10252 | # explicitly linking system object files so we need to strip them |
| 10253 | # from the output so that they don't get included in the library |
| 10254 | # dependencies. |
| 10255 | 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' |
| 10256 | ;; |
| 10257 | *) |
| 10258 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10259 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10260 | 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' |
| 10261 | |
| 10262 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10263 | hardcode_libdir_separator_CXX=: |
| 10264 | |
| 10265 | # Commands to make compiler produce verbose output that lists |
| 10266 | # what "hidden" libraries, object files and flags are used when |
| 10267 | # linking a shared library. |
| 10268 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10269 | |
| 10270 | else |
| 10271 | # FIXME: insert proper C++ library support |
| 10272 | ld_shlibs_CXX=no |
| 10273 | fi |
| 10274 | ;; |
| 10275 | esac |
| 10276 | ;; |
| 10277 | osf4* | osf5*) |
| 10278 | case $cc_basename in |
| 10279 | KCC) |
| 10280 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10281 | |
| 10282 | # KCC will only create a shared library if the output file |
| 10283 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10284 | # to its proper name (with version) after linking. |
| 10285 | 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' |
| 10286 | |
| 10287 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10288 | hardcode_libdir_separator_CXX=: |
| 10289 | |
| 10290 | # Archives containing C++ object files must be created using |
| 10291 | # the KAI C++ compiler. |
| 10292 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 10293 | ;; |
| 10294 | RCC) |
| 10295 | # Rational C++ 2.4.1 |
| 10296 | # FIXME: insert proper C++ library support |
| 10297 | ld_shlibs_CXX=no |
| 10298 | ;; |
| 10299 | cxx) |
| 10300 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 10301 | 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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10302 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10303 | |
| 10304 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10305 | hardcode_libdir_separator_CXX=: |
| 10306 | |
| 10307 | # Commands to make compiler produce verbose output that lists |
| 10308 | # what "hidden" libraries, object files and flags are used when |
| 10309 | # linking a shared library. |
| 10310 | # |
| 10311 | # There doesn't appear to be a way to prevent this compiler from |
| 10312 | # explicitly linking system object files so we need to strip them |
| 10313 | # from the output so that they don't get included in the library |
| 10314 | # dependencies. |
| 10315 | 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' |
| 10316 | ;; |
| 10317 | *) |
| 10318 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10319 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10320 | 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' |
| 10321 | |
| 10322 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10323 | hardcode_libdir_separator_CXX=: |
| 10324 | |
| 10325 | # Commands to make compiler produce verbose output that lists |
| 10326 | # what "hidden" libraries, object files and flags are used when |
| 10327 | # linking a shared library. |
| 10328 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10329 | |
| 10330 | else |
| 10331 | # FIXME: insert proper C++ library support |
| 10332 | ld_shlibs_CXX=no |
| 10333 | fi |
| 10334 | ;; |
| 10335 | esac |
| 10336 | ;; |
| 10337 | psos*) |
| 10338 | # FIXME: insert proper C++ library support |
| 10339 | ld_shlibs_CXX=no |
| 10340 | ;; |
| 10341 | sco*) |
| 10342 | archive_cmds_need_lc_CXX=no |
| 10343 | case $cc_basename in |
| 10344 | CC) |
| 10345 | # FIXME: insert proper C++ library support |
| 10346 | ld_shlibs_CXX=no |
| 10347 | ;; |
| 10348 | *) |
| 10349 | # FIXME: insert proper C++ library support |
| 10350 | ld_shlibs_CXX=no |
| 10351 | ;; |
| 10352 | esac |
| 10353 | ;; |
| 10354 | sunos4*) |
| 10355 | case $cc_basename in |
| 10356 | CC) |
| 10357 | # Sun C++ 4.x |
| 10358 | # FIXME: insert proper C++ library support |
| 10359 | ld_shlibs_CXX=no |
| 10360 | ;; |
| 10361 | lcc) |
| 10362 | # Lucid |
| 10363 | # FIXME: insert proper C++ library support |
| 10364 | ld_shlibs_CXX=no |
| 10365 | ;; |
| 10366 | *) |
| 10367 | # FIXME: insert proper C++ library support |
| 10368 | ld_shlibs_CXX=no |
| 10369 | ;; |
| 10370 | esac |
| 10371 | ;; |
| 10372 | solaris*) |
| 10373 | case $cc_basename in |
| 10374 | CC) |
| 10375 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10376 | no_undefined_flag_CXX=' -zdefs' |
| 10377 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10378 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 10379 | |
| 10380 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10381 | hardcode_shlibpath_var_CXX=no |
| 10382 | case $host_os in |
| 10383 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 10384 | *) |
| 10385 | # The C++ compiler is used as linker so we must use $wl |
| 10386 | # flag to pass the commands to the underlying system |
| 10387 | # linker. |
| 10388 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10389 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10390 | ;; |
| 10391 | esac |
| 10392 | link_all_deplibs_CXX=yes |
| 10393 | |
| 10394 | # Commands to make compiler produce verbose output that lists |
| 10395 | # what "hidden" libraries, object files and flags are used when |
| 10396 | # linking a shared library. |
| 10397 | # |
| 10398 | # There doesn't appear to be a way to prevent this compiler from |
| 10399 | # explicitly linking system object files so we need to strip them |
| 10400 | # from the output so that they don't get included in the library |
| 10401 | # dependencies. |
| 10402 | 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' |
| 10403 | |
| 10404 | # Archives containing C++ object files must be created using |
| 10405 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10406 | # necessary to make sure instantiated templates are included |
| 10407 | # in the archive. |
| 10408 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 10409 | ;; |
| 10410 | gcx) |
| 10411 | # Green Hills C++ Compiler |
| 10412 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10413 | |
| 10414 | # The C++ compiler must be used to create the archive. |
| 10415 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 10416 | ;; |
| 10417 | *) |
| 10418 | # GNU C++ compiler with Solaris linker |
| 10419 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10420 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 10421 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 10422 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10423 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -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] | 10424 | # Commands to make compiler produce verbose output that lists |
| 10425 | # what "hidden" libraries, object files and flags are used when |
| 10426 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 10427 | 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] | 10428 | else |
| 10429 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 10430 | # platform. |
| 10431 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10432 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; |
| 10433 | $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] | 10434 | |
| 10435 | # Commands to make compiler produce verbose output that lists |
| 10436 | # what "hidden" libraries, object files and flags are used when |
| 10437 | # linking a shared library. |
| 10438 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10439 | fi |
| 10440 | |
| 10441 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 10442 | fi |
| 10443 | ;; |
| 10444 | esac |
| 10445 | ;; |
| 10446 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 10447 | archive_cmds_need_lc_CXX=no |
| 10448 | ;; |
| 10449 | tandem*) |
| 10450 | case $cc_basename in |
| 10451 | NCC) |
| 10452 | # NonStop-UX NCC 3.20 |
| 10453 | # FIXME: insert proper C++ library support |
| 10454 | ld_shlibs_CXX=no |
| 10455 | ;; |
| 10456 | *) |
| 10457 | # FIXME: insert proper C++ library support |
| 10458 | ld_shlibs_CXX=no |
| 10459 | ;; |
| 10460 | esac |
| 10461 | ;; |
| 10462 | vxworks*) |
| 10463 | # FIXME: insert proper C++ library support |
| 10464 | ld_shlibs_CXX=no |
| 10465 | ;; |
| 10466 | *) |
| 10467 | # FIXME: insert proper C++ library support |
| 10468 | ld_shlibs_CXX=no |
| 10469 | ;; |
| 10470 | esac |
| 10471 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10472 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10473 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10474 | |
| 10475 | GCC_CXX="$GXX" |
| 10476 | LD_CXX="$LD" |
| 10477 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10478 | |
| 10479 | cat > conftest.$ac_ext <<EOF |
| 10480 | class Foo |
| 10481 | { |
| 10482 | public: |
| 10483 | Foo (void) { a = 0; } |
| 10484 | private: |
| 10485 | int a; |
| 10486 | }; |
| 10487 | EOF |
| 10488 | |
| 10489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10490 | (eval $ac_compile) 2>&5 |
| 10491 | ac_status=$? |
| 10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10493 | (exit $ac_status); }; then |
| 10494 | # Parse the compiler output and extract the necessary |
| 10495 | # objects, libraries and library flags. |
| 10496 | |
| 10497 | # Sentinel used to keep track of whether or not we are before |
| 10498 | # the conftest object file. |
| 10499 | pre_test_object_deps_done=no |
| 10500 | |
| 10501 | # The `*' in the case matches for architectures that use `case' in |
| 10502 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 10503 | # eval without this substitution. |
| 10504 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 10505 | |
| 10506 | for p in `eval $output_verbose_link_cmd`; do |
| 10507 | case $p in |
| 10508 | |
| 10509 | -L* | -R* | -l*) |
| 10510 | # Some compilers place space between "-{L,R}" and the path. |
| 10511 | # Remove the space. |
| 10512 | if test $p = "-L" \ |
| 10513 | || test $p = "-R"; then |
| 10514 | prev=$p |
| 10515 | continue |
| 10516 | else |
| 10517 | prev= |
| 10518 | fi |
| 10519 | |
| 10520 | if test "$pre_test_object_deps_done" = no; then |
| 10521 | case $p in |
| 10522 | -L* | -R*) |
| 10523 | # Internal compiler library paths should come after those |
| 10524 | # provided the user. The postdeps already come after the |
| 10525 | # user supplied libs so there is no need to process them. |
| 10526 | if test -z "$compiler_lib_search_path_CXX"; then |
| 10527 | compiler_lib_search_path_CXX="${prev}${p}" |
| 10528 | else |
| 10529 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 10530 | fi |
| 10531 | ;; |
| 10532 | # The "-l" case would never come before the object being |
| 10533 | # linked, so don't bother handling this case. |
| 10534 | esac |
| 10535 | else |
| 10536 | if test -z "$postdeps_CXX"; then |
| 10537 | postdeps_CXX="${prev}${p}" |
| 10538 | else |
| 10539 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 10540 | fi |
| 10541 | fi |
| 10542 | ;; |
| 10543 | |
| 10544 | *.$objext) |
| 10545 | # This assumes that the test object file only shows up |
| 10546 | # once in the compiler output. |
| 10547 | if test "$p" = "conftest.$objext"; then |
| 10548 | pre_test_object_deps_done=yes |
| 10549 | continue |
| 10550 | fi |
| 10551 | |
| 10552 | if test "$pre_test_object_deps_done" = no; then |
| 10553 | if test -z "$predep_objects_CXX"; then |
| 10554 | predep_objects_CXX="$p" |
| 10555 | else |
| 10556 | predep_objects_CXX="$predep_objects_CXX $p" |
| 10557 | fi |
| 10558 | else |
| 10559 | if test -z "$postdep_objects_CXX"; then |
| 10560 | postdep_objects_CXX="$p" |
| 10561 | else |
| 10562 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 10563 | fi |
| 10564 | fi |
| 10565 | ;; |
| 10566 | |
| 10567 | *) ;; # Ignore the rest. |
| 10568 | |
| 10569 | esac |
| 10570 | done |
| 10571 | |
| 10572 | # Clean up. |
| 10573 | rm -f a.out a.exe |
| 10574 | else |
| 10575 | echo "libtool.m4: error: problem compiling CXX test program" |
| 10576 | fi |
| 10577 | |
| 10578 | $rm -f confest.$objext |
| 10579 | |
| 10580 | case " $postdeps_CXX " in |
| 10581 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10582 | esac |
| 10583 | |
| 10584 | lt_prog_compiler_wl_CXX= |
| 10585 | lt_prog_compiler_pic_CXX= |
| 10586 | lt_prog_compiler_static_CXX= |
| 10587 | |
| 10588 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 10589 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 10590 | |
| 10591 | # C++ specific cases for pic, static, wl, etc. |
| 10592 | if test "$GXX" = yes; then |
| 10593 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10594 | lt_prog_compiler_static_CXX='-static' |
| 10595 | |
| 10596 | case $host_os in |
| 10597 | aix*) |
| 10598 | # All AIX code is PIC. |
| 10599 | if test "$host_cpu" = ia64; then |
| 10600 | # AIX 5 now supports IA64 processor |
| 10601 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10602 | fi |
| 10603 | ;; |
| 10604 | amigaos*) |
| 10605 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10606 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 10607 | # like `-m68040'. |
| 10608 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 10609 | ;; |
| 10610 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10611 | # PIC is the default for these OSes. |
| 10612 | ;; |
| 10613 | mingw* | os2* | pw32*) |
| 10614 | # This hack is so that the source file can tell whether it is being |
| 10615 | # built for inclusion in a dll (and should export symbols for example). |
| 10616 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10617 | ;; |
| 10618 | darwin* | rhapsody*) |
| 10619 | # PIC is the default on this platform |
| 10620 | # Common symbols not allowed in MH_DYLIB files |
| 10621 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10622 | ;; |
| 10623 | *djgpp*) |
| 10624 | # DJGPP does not support shared libraries at all |
| 10625 | lt_prog_compiler_pic_CXX= |
| 10626 | ;; |
| 10627 | sysv4*MP*) |
| 10628 | if test -d /usr/nec; then |
| 10629 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10630 | fi |
| 10631 | ;; |
| 10632 | hpux*) |
| 10633 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10634 | # not for PA HP-UX. |
| 10635 | case "$host_cpu" in |
| 10636 | hppa*64*|ia64*) |
| 10637 | ;; |
| 10638 | *) |
| 10639 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10640 | ;; |
| 10641 | esac |
| 10642 | ;; |
| 10643 | *) |
| 10644 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10645 | ;; |
| 10646 | esac |
| 10647 | else |
| 10648 | case $host_os in |
| 10649 | aix4* | aix5*) |
| 10650 | # All AIX code is PIC. |
| 10651 | if test "$host_cpu" = ia64; then |
| 10652 | # AIX 5 now supports IA64 processor |
| 10653 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10654 | else |
| 10655 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10656 | fi |
| 10657 | ;; |
| 10658 | chorus*) |
| 10659 | case $cc_basename in |
| 10660 | cxch68) |
| 10661 | # Green Hills C++ Compiler |
| 10662 | # _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" |
| 10663 | ;; |
| 10664 | esac |
| 10665 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10666 | darwin*) |
| 10667 | # PIC is the default on this platform |
| 10668 | # Common symbols not allowed in MH_DYLIB files |
| 10669 | case "$cc_basename" in |
| 10670 | xlc*) |
| 10671 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 10672 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10673 | ;; |
| 10674 | esac |
| 10675 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10676 | dgux*) |
| 10677 | case $cc_basename in |
| 10678 | ec++) |
| 10679 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10680 | ;; |
| 10681 | ghcx) |
| 10682 | # Green Hills C++ Compiler |
| 10683 | lt_prog_compiler_pic_CXX='-pic' |
| 10684 | ;; |
| 10685 | *) |
| 10686 | ;; |
| 10687 | esac |
| 10688 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10689 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10690 | # FreeBSD uses GNU C++ |
| 10691 | ;; |
| 10692 | hpux9* | hpux10* | hpux11*) |
| 10693 | case $cc_basename in |
| 10694 | CC) |
| 10695 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10696 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10697 | if test "$host_cpu" != ia64; then |
| 10698 | lt_prog_compiler_pic_CXX='+Z' |
| 10699 | fi |
| 10700 | ;; |
| 10701 | aCC) |
| 10702 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10703 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10704 | case "$host_cpu" in |
| 10705 | hppa*64*|ia64*) |
| 10706 | # +Z the default |
| 10707 | ;; |
| 10708 | *) |
| 10709 | lt_prog_compiler_pic_CXX='+Z' |
| 10710 | ;; |
| 10711 | esac |
| 10712 | ;; |
| 10713 | *) |
| 10714 | ;; |
| 10715 | esac |
| 10716 | ;; |
| 10717 | irix5* | irix6* | nonstopux*) |
| 10718 | case $cc_basename in |
| 10719 | CC) |
| 10720 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10721 | lt_prog_compiler_static_CXX='-non_shared' |
| 10722 | # CC pic flag -KPIC is the default. |
| 10723 | ;; |
| 10724 | *) |
| 10725 | ;; |
| 10726 | esac |
| 10727 | ;; |
| 10728 | linux*) |
| 10729 | case $cc_basename in |
| 10730 | KCC) |
| 10731 | # KAI C++ Compiler |
| 10732 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10733 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10734 | ;; |
| 10735 | icpc) |
| 10736 | # Intel C++ |
| 10737 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10738 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10739 | lt_prog_compiler_static_CXX='-static' |
| 10740 | ;; |
| 10741 | cxx) |
| 10742 | # Compaq C++ |
| 10743 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10744 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10745 | lt_prog_compiler_pic_CXX= |
| 10746 | lt_prog_compiler_static_CXX='-non_shared' |
| 10747 | ;; |
| 10748 | *) |
| 10749 | ;; |
| 10750 | esac |
| 10751 | ;; |
| 10752 | lynxos*) |
| 10753 | ;; |
| 10754 | m88k*) |
| 10755 | ;; |
| 10756 | mvs*) |
| 10757 | case $cc_basename in |
| 10758 | cxx) |
| 10759 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10760 | ;; |
| 10761 | *) |
| 10762 | ;; |
| 10763 | esac |
| 10764 | ;; |
| 10765 | netbsd*) |
| 10766 | ;; |
| 10767 | osf3* | osf4* | osf5*) |
| 10768 | case $cc_basename in |
| 10769 | KCC) |
| 10770 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10771 | ;; |
| 10772 | RCC) |
| 10773 | # Rational C++ 2.4.1 |
| 10774 | lt_prog_compiler_pic_CXX='-pic' |
| 10775 | ;; |
| 10776 | cxx) |
| 10777 | # Digital/Compaq C++ |
| 10778 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10779 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10780 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10781 | lt_prog_compiler_pic_CXX= |
| 10782 | lt_prog_compiler_static_CXX='-non_shared' |
| 10783 | ;; |
| 10784 | *) |
| 10785 | ;; |
| 10786 | esac |
| 10787 | ;; |
| 10788 | psos*) |
| 10789 | ;; |
| 10790 | sco*) |
| 10791 | case $cc_basename in |
| 10792 | CC) |
| 10793 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10794 | ;; |
| 10795 | *) |
| 10796 | ;; |
| 10797 | esac |
| 10798 | ;; |
| 10799 | solaris*) |
| 10800 | case $cc_basename in |
| 10801 | CC) |
| 10802 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10803 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10804 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10805 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10806 | ;; |
| 10807 | gcx) |
| 10808 | # Green Hills C++ Compiler |
| 10809 | lt_prog_compiler_pic_CXX='-PIC' |
| 10810 | ;; |
| 10811 | *) |
| 10812 | ;; |
| 10813 | esac |
| 10814 | ;; |
| 10815 | sunos4*) |
| 10816 | case $cc_basename in |
| 10817 | CC) |
| 10818 | # Sun C++ 4.x |
| 10819 | lt_prog_compiler_pic_CXX='-pic' |
| 10820 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10821 | ;; |
| 10822 | lcc) |
| 10823 | # Lucid |
| 10824 | lt_prog_compiler_pic_CXX='-pic' |
| 10825 | ;; |
| 10826 | *) |
| 10827 | ;; |
| 10828 | esac |
| 10829 | ;; |
| 10830 | tandem*) |
| 10831 | case $cc_basename in |
| 10832 | NCC) |
| 10833 | # NonStop-UX NCC 3.20 |
| 10834 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10835 | ;; |
| 10836 | *) |
| 10837 | ;; |
| 10838 | esac |
| 10839 | ;; |
| 10840 | unixware*) |
| 10841 | ;; |
| 10842 | vxworks*) |
| 10843 | ;; |
| 10844 | *) |
| 10845 | lt_prog_compiler_can_build_shared_CXX=no |
| 10846 | ;; |
| 10847 | esac |
| 10848 | fi |
| 10849 | |
| 10850 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 10851 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 10852 | |
| 10853 | # |
| 10854 | # Check to make sure the PIC flag actually works. |
| 10855 | # |
| 10856 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10857 | |
| 10858 | 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] | 10859 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 10860 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 10861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10862 | else |
| 10863 | lt_prog_compiler_pic_works_CXX=no |
| 10864 | ac_outfile=conftest.$ac_objext |
| 10865 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10866 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 10867 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10868 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10869 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10870 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10871 | # The option is referenced via a variable to avoid confusing sed. |
| 10872 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10873 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10874 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10875 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10876 | (eval echo "\"\$as_me:10876: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10877 | (eval "$lt_compile" 2>conftest.err) |
| 10878 | ac_status=$? |
| 10879 | cat conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10880 | echo "$as_me:10880: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10881 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10882 | # The compiler can only warn and ignore the option if not recognized |
| 10883 | # So say no if there are warnings |
| 10884 | if test ! -s conftest.err; then |
| 10885 | lt_prog_compiler_pic_works_CXX=yes |
| 10886 | fi |
| 10887 | fi |
| 10888 | $rm conftest* |
| 10889 | |
| 10890 | fi |
| 10891 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 10892 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 10893 | |
| 10894 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 10895 | case $lt_prog_compiler_pic_CXX in |
| 10896 | "" | " "*) ;; |
| 10897 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 10898 | esac |
| 10899 | else |
| 10900 | lt_prog_compiler_pic_CXX= |
| 10901 | lt_prog_compiler_can_build_shared_CXX=no |
| 10902 | fi |
| 10903 | |
| 10904 | fi |
| 10905 | case "$host_os" in |
| 10906 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 10907 | *djgpp*) |
| 10908 | lt_prog_compiler_pic_CXX= |
| 10909 | ;; |
| 10910 | *) |
| 10911 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 10912 | ;; |
| 10913 | esac |
| 10914 | |
| 10915 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10916 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 10917 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 10918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10919 | else |
| 10920 | lt_cv_prog_compiler_c_o_CXX=no |
| 10921 | $rm -r conftest 2>/dev/null |
| 10922 | mkdir conftest |
| 10923 | cd conftest |
| 10924 | mkdir out |
| 10925 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10926 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10927 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10928 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10929 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10930 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10931 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10932 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10933 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10934 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10935 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10936 | (eval echo "\"\$as_me:10936: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10937 | (eval "$lt_compile" 2>out/conftest.err) |
| 10938 | ac_status=$? |
| 10939 | cat out/conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10940 | echo "$as_me:10940: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10941 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10942 | then |
| 10943 | # The compiler can only warn and ignore the option if not recognized |
| 10944 | # So say no if there are warnings |
| 10945 | if test ! -s out/conftest.err; then |
| 10946 | lt_cv_prog_compiler_c_o_CXX=yes |
| 10947 | fi |
| 10948 | fi |
| 10949 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10950 | $rm conftest* |
| 10951 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10952 | # template instantiation |
| 10953 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 10954 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10955 | cd .. |
| 10956 | rmdir conftest |
| 10957 | $rm conftest* |
| 10958 | |
| 10959 | fi |
| 10960 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 10961 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 10962 | |
| 10963 | |
| 10964 | hard_links="nottested" |
| 10965 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 10966 | # do not overwrite the value of need_locks provided by the user |
| 10967 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 10968 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 10969 | hard_links=yes |
| 10970 | $rm conftest* |
| 10971 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10972 | touch conftest.a |
| 10973 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10974 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10975 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 10976 | echo "${ECHO_T}$hard_links" >&6 |
| 10977 | if test "$hard_links" = no; then |
| 10978 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 10979 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 10980 | need_locks=warn |
| 10981 | fi |
| 10982 | else |
| 10983 | need_locks=no |
| 10984 | fi |
| 10985 | |
| 10986 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10987 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 10988 | |
| 10989 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10990 | case $host_os in |
| 10991 | aix4* | aix5*) |
| 10992 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10993 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 10994 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 10995 | 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' |
| 10996 | else |
| 10997 | 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' |
| 10998 | fi |
| 10999 | ;; |
| 11000 | pw32*) |
| 11001 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 11002 | ;; |
| 11003 | cygwin* | mingw*) |
| 11004 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 11005 | ;; |
| 11006 | *) |
| 11007 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11008 | ;; |
| 11009 | esac |
| 11010 | |
| 11011 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11012 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 11013 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11014 | |
| 11015 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11016 | if test "$GCC" = yes; then |
| 11017 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11018 | fi |
| 11019 | |
| 11020 | # |
| 11021 | # Do we need to explicitly link libc? |
| 11022 | # |
| 11023 | case "x$archive_cmds_need_lc_CXX" in |
| 11024 | x|xyes) |
| 11025 | # Assume -lc should be added |
| 11026 | archive_cmds_need_lc_CXX=yes |
| 11027 | |
| 11028 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 11029 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11030 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11031 | # FIXME: we may have to deal with multi-command sequences. |
| 11032 | ;; |
| 11033 | '$CC '*) |
| 11034 | # Test whether the compiler implicitly links with -lc since on some |
| 11035 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 11036 | # to ld, don't add -lc before -lgcc. |
| 11037 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 11038 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 11039 | $rm conftest* |
| 11040 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11041 | |
| 11042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11043 | (eval $ac_compile) 2>&5 |
| 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); } 2>conftest.err; then |
| 11047 | soname=conftest |
| 11048 | lib=conftest |
| 11049 | libobjs=conftest.$ac_objext |
| 11050 | deplibs= |
| 11051 | wl=$lt_prog_compiler_wl_CXX |
| 11052 | compiler_flags=-v |
| 11053 | linker_flags=-v |
| 11054 | verstring= |
| 11055 | output_objdir=. |
| 11056 | libname=conftest |
| 11057 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 11058 | allow_undefined_flag_CXX= |
| 11059 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 11060 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 11061 | ac_status=$? |
| 11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11063 | (exit $ac_status); } |
| 11064 | then |
| 11065 | archive_cmds_need_lc_CXX=no |
| 11066 | else |
| 11067 | archive_cmds_need_lc_CXX=yes |
| 11068 | fi |
| 11069 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 11070 | else |
| 11071 | cat conftest.err 1>&5 |
| 11072 | fi |
| 11073 | $rm conftest* |
| 11074 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 11075 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 11076 | ;; |
| 11077 | esac |
| 11078 | fi |
| 11079 | ;; |
| 11080 | esac |
| 11081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11082 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 11083 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 11084 | library_names_spec= |
| 11085 | libname_spec='lib$name' |
| 11086 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11087 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11088 | postinstall_cmds= |
| 11089 | postuninstall_cmds= |
| 11090 | finish_cmds= |
| 11091 | finish_eval= |
| 11092 | shlibpath_var= |
| 11093 | shlibpath_overrides_runpath=unknown |
| 11094 | version_type=none |
| 11095 | dynamic_linker="$host_os ld.so" |
| 11096 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 11097 | if test "$GCC" = yes; then |
| 11098 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11099 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 11100 | # if the path contains ";" then we assume it to be the separator |
| 11101 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11102 | # assumed that no part of a normal pathname contains ";" but that should |
| 11103 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11104 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11105 | else |
| 11106 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11107 | fi |
| 11108 | else |
| 11109 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11110 | fi |
| 11111 | need_lib_prefix=unknown |
| 11112 | hardcode_into_libs=no |
| 11113 | |
| 11114 | # when you set need_version to no, make sure it does not cause -set_version |
| 11115 | # flags to be left without arguments |
| 11116 | need_version=unknown |
| 11117 | |
| 11118 | case $host_os in |
| 11119 | aix3*) |
| 11120 | version_type=linux |
| 11121 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11122 | shlibpath_var=LIBPATH |
| 11123 | |
| 11124 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 11125 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11126 | ;; |
| 11127 | |
| 11128 | aix4* | aix5*) |
| 11129 | version_type=linux |
| 11130 | need_lib_prefix=no |
| 11131 | need_version=no |
| 11132 | hardcode_into_libs=yes |
| 11133 | if test "$host_cpu" = ia64; then |
| 11134 | # AIX 5 supports IA64 |
| 11135 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11136 | shlibpath_var=LD_LIBRARY_PATH |
| 11137 | else |
| 11138 | # With GCC up to 2.95.x, collect2 would create an import file |
| 11139 | # for dependence libraries. The import file would start with |
| 11140 | # the line `#! .'. This would cause the generated library to |
| 11141 | # depend on `.', always an invalid library. This was fixed in |
| 11142 | # development snapshots of GCC prior to 3.0. |
| 11143 | case $host_os in |
| 11144 | aix4 | aix4.[01] | aix4.[01].*) |
| 11145 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11146 | echo ' yes ' |
| 11147 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 11148 | : |
| 11149 | else |
| 11150 | can_build_shared=no |
| 11151 | fi |
| 11152 | ;; |
| 11153 | esac |
| 11154 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11155 | # soname into executable. Probably we can add versioning support to |
| 11156 | # collect2, so additional links can be useful in future. |
| 11157 | if test "$aix_use_runtimelinking" = yes; then |
| 11158 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11159 | # instead of lib<name>.a to let people know that these are not |
| 11160 | # typical AIX shared libraries. |
| 11161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11162 | else |
| 11163 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 11164 | # and later when we are not doing run time linking. |
| 11165 | library_names_spec='${libname}${release}.a $libname.a' |
| 11166 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11167 | fi |
| 11168 | shlibpath_var=LIBPATH |
| 11169 | fi |
| 11170 | ;; |
| 11171 | |
| 11172 | amigaos*) |
| 11173 | library_names_spec='$libname.ixlibrary $libname.a' |
| 11174 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11175 | 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] | 11176 | ;; |
| 11177 | |
| 11178 | beos*) |
| 11179 | library_names_spec='${libname}${shared_ext}' |
| 11180 | dynamic_linker="$host_os ld.so" |
| 11181 | shlibpath_var=LIBRARY_PATH |
| 11182 | ;; |
| 11183 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11184 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11185 | version_type=linux |
| 11186 | need_version=no |
| 11187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11188 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11189 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 11190 | shlibpath_var=LD_LIBRARY_PATH |
| 11191 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 11192 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 11193 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 11194 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 11195 | # libtool to hard-code these into programs |
| 11196 | ;; |
| 11197 | |
| 11198 | cygwin* | mingw* | pw32*) |
| 11199 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11200 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11201 | need_version=no |
| 11202 | need_lib_prefix=no |
| 11203 | |
| 11204 | case $GCC,$host_os in |
| 11205 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 11206 | library_names_spec='$libname.dll.a' |
| 11207 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11208 | postinstall_cmds='base_file=`basename \${file}`; |
| 11209 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; |
| 11210 | dldir=$destdir/`dirname \$dlpath`; |
| 11211 | test -d \$dldir || mkdir -p \$dldir; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11212 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11213 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; |
| 11214 | dlpath=$dir/\$dldll; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11215 | $rm \$dlpath' |
| 11216 | shlibpath_overrides_runpath=yes |
| 11217 | |
| 11218 | case $host_os in |
| 11219 | cygwin*) |
| 11220 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 11221 | 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] | 11222 | 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] | 11223 | ;; |
| 11224 | mingw*) |
| 11225 | # MinGW DLLs use traditional 'lib' prefix |
| 11226 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11227 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11228 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 11229 | # It is most probably a Windows format PATH printed by |
| 11230 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 11231 | # path with ; separators, and with drive letters. We can handle the |
| 11232 | # drive letters (cygwin fileutils understands them), so leave them, |
| 11233 | # especially as we might pass files found there to a mingw objdump, |
| 11234 | # which wouldn't understand a cygwinified path. Ahh. |
| 11235 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11236 | else |
| 11237 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11238 | fi |
| 11239 | ;; |
| 11240 | pw32*) |
| 11241 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 11242 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 11243 | ;; |
| 11244 | esac |
| 11245 | ;; |
| 11246 | |
| 11247 | *) |
| 11248 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11249 | ;; |
| 11250 | esac |
| 11251 | dynamic_linker='Win32 ld.exe' |
| 11252 | # FIXME: first we should search . and the directory the executable is in |
| 11253 | shlibpath_var=PATH |
| 11254 | ;; |
| 11255 | |
| 11256 | darwin* | rhapsody*) |
| 11257 | dynamic_linker="$host_os dyld" |
| 11258 | version_type=darwin |
| 11259 | need_lib_prefix=no |
| 11260 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11261 | 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] | 11262 | soname_spec='${libname}${release}${major}$shared_ext' |
| 11263 | shlibpath_overrides_runpath=yes |
| 11264 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11265 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11266 | # 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] | 11267 | if test "$GCC" = yes; then |
| 11268 | 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"` |
| 11269 | else |
| 11270 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11271 | fi |
| 11272 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 11273 | ;; |
| 11274 | |
| 11275 | dgux*) |
| 11276 | version_type=linux |
| 11277 | need_lib_prefix=no |
| 11278 | need_version=no |
| 11279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 11280 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11281 | shlibpath_var=LD_LIBRARY_PATH |
| 11282 | ;; |
| 11283 | |
| 11284 | freebsd1*) |
| 11285 | dynamic_linker=no |
| 11286 | ;; |
| 11287 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11288 | kfreebsd*-gnu) |
| 11289 | version_type=linux |
| 11290 | need_lib_prefix=no |
| 11291 | need_version=no |
| 11292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11293 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11294 | shlibpath_var=LD_LIBRARY_PATH |
| 11295 | shlibpath_overrides_runpath=no |
| 11296 | hardcode_into_libs=yes |
| 11297 | dynamic_linker='GNU ld.so' |
| 11298 | ;; |
| 11299 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11300 | freebsd*) |
| 11301 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 11302 | version_type=freebsd-$objformat |
| 11303 | case $version_type in |
| 11304 | freebsd-elf*) |
| 11305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11306 | need_version=no |
| 11307 | need_lib_prefix=no |
| 11308 | ;; |
| 11309 | freebsd-*) |
| 11310 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11311 | need_version=yes |
| 11312 | ;; |
| 11313 | esac |
| 11314 | shlibpath_var=LD_LIBRARY_PATH |
| 11315 | case $host_os in |
| 11316 | freebsd2*) |
| 11317 | shlibpath_overrides_runpath=yes |
| 11318 | ;; |
| 11319 | freebsd3.01* | freebsdelf3.01*) |
| 11320 | shlibpath_overrides_runpath=yes |
| 11321 | hardcode_into_libs=yes |
| 11322 | ;; |
| 11323 | *) # from 3.2 on |
| 11324 | shlibpath_overrides_runpath=no |
| 11325 | hardcode_into_libs=yes |
| 11326 | ;; |
| 11327 | esac |
| 11328 | ;; |
| 11329 | |
| 11330 | gnu*) |
| 11331 | version_type=linux |
| 11332 | need_lib_prefix=no |
| 11333 | need_version=no |
| 11334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11335 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11336 | shlibpath_var=LD_LIBRARY_PATH |
| 11337 | hardcode_into_libs=yes |
| 11338 | ;; |
| 11339 | |
| 11340 | hpux9* | hpux10* | hpux11*) |
| 11341 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 11342 | # link against other versions. |
| 11343 | version_type=sunos |
| 11344 | need_lib_prefix=no |
| 11345 | need_version=no |
| 11346 | case "$host_cpu" in |
| 11347 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11348 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11349 | hardcode_into_libs=yes |
| 11350 | dynamic_linker="$host_os dld.so" |
| 11351 | shlibpath_var=LD_LIBRARY_PATH |
| 11352 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11354 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11355 | if test "X$HPUX_IA64_MODE" = X32; then |
| 11356 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11357 | else |
| 11358 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11359 | fi |
| 11360 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11361 | ;; |
| 11362 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11363 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11364 | hardcode_into_libs=yes |
| 11365 | dynamic_linker="$host_os dld.sl" |
| 11366 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11367 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11369 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11370 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11371 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11372 | ;; |
| 11373 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11374 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11375 | dynamic_linker="$host_os dld.sl" |
| 11376 | shlibpath_var=SHLIB_PATH |
| 11377 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11379 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11380 | ;; |
| 11381 | esac |
| 11382 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 11383 | postinstall_cmds='chmod 555 $lib' |
| 11384 | ;; |
| 11385 | |
| 11386 | irix5* | irix6* | nonstopux*) |
| 11387 | case $host_os in |
| 11388 | nonstopux*) version_type=nonstopux ;; |
| 11389 | *) |
| 11390 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11391 | version_type=linux |
| 11392 | else |
| 11393 | version_type=irix |
| 11394 | fi ;; |
| 11395 | esac |
| 11396 | need_lib_prefix=no |
| 11397 | need_version=no |
| 11398 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11400 | case $host_os in |
| 11401 | irix5* | nonstopux*) |
| 11402 | libsuff= shlibsuff= |
| 11403 | ;; |
| 11404 | *) |
| 11405 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11406 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11407 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11408 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11409 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11410 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11411 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11412 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11413 | esac |
| 11414 | ;; |
| 11415 | esac |
| 11416 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11417 | shlibpath_overrides_runpath=no |
| 11418 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11419 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11420 | hardcode_into_libs=yes |
| 11421 | ;; |
| 11422 | |
| 11423 | # No shared lib support for Linux oldld, aout, or coff. |
| 11424 | linux*oldld* | linux*aout* | linux*coff*) |
| 11425 | dynamic_linker=no |
| 11426 | ;; |
| 11427 | |
| 11428 | # This must be Linux ELF. |
| 11429 | linux*) |
| 11430 | version_type=linux |
| 11431 | need_lib_prefix=no |
| 11432 | need_version=no |
| 11433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11434 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11435 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11436 | shlibpath_var=LD_LIBRARY_PATH |
| 11437 | shlibpath_overrides_runpath=no |
| 11438 | # This implies no fast_install, which is unacceptable. |
| 11439 | # Some rework will be needed to allow for fast_install |
| 11440 | # before this can be enabled. |
| 11441 | hardcode_into_libs=yes |
| 11442 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11443 | # Append ld.so.conf contents to the search path |
| 11444 | if test -f /etc/ld.so.conf; then |
| 11445 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 11446 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11447 | fi |
| 11448 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11449 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11450 | # powerpc, because MkLinux only supported shared libraries with the |
| 11451 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11452 | # most powerpc-linux boxes support dynamic linking these days and |
| 11453 | # people can always --disable-shared, the test was removed, and we |
| 11454 | # assume the GNU/Linux dynamic linker is in use. |
| 11455 | dynamic_linker='GNU/Linux ld.so' |
| 11456 | ;; |
| 11457 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11458 | knetbsd*-gnu) |
| 11459 | version_type=linux |
| 11460 | need_lib_prefix=no |
| 11461 | need_version=no |
| 11462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11463 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11464 | shlibpath_var=LD_LIBRARY_PATH |
| 11465 | shlibpath_overrides_runpath=no |
| 11466 | hardcode_into_libs=yes |
| 11467 | dynamic_linker='GNU ld.so' |
| 11468 | ;; |
| 11469 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11470 | netbsd*) |
| 11471 | version_type=sunos |
| 11472 | need_lib_prefix=no |
| 11473 | need_version=no |
| 11474 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11476 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11477 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11478 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11479 | 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] | 11480 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11481 | dynamic_linker='NetBSD ld.elf_so' |
| 11482 | fi |
| 11483 | shlibpath_var=LD_LIBRARY_PATH |
| 11484 | shlibpath_overrides_runpath=yes |
| 11485 | hardcode_into_libs=yes |
| 11486 | ;; |
| 11487 | |
| 11488 | newsos6) |
| 11489 | version_type=linux |
| 11490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11491 | shlibpath_var=LD_LIBRARY_PATH |
| 11492 | shlibpath_overrides_runpath=yes |
| 11493 | ;; |
| 11494 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11495 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11496 | version_type=linux |
| 11497 | need_lib_prefix=no |
| 11498 | need_version=no |
| 11499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11500 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11501 | shlibpath_var=LD_LIBRARY_PATH |
| 11502 | shlibpath_overrides_runpath=yes |
| 11503 | ;; |
| 11504 | |
| 11505 | openbsd*) |
| 11506 | version_type=sunos |
| 11507 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 11508 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11510 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11511 | shlibpath_var=LD_LIBRARY_PATH |
| 11512 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11513 | case $host_os in |
| 11514 | openbsd2.[89] | openbsd2.[89].*) |
| 11515 | shlibpath_overrides_runpath=no |
| 11516 | ;; |
| 11517 | *) |
| 11518 | shlibpath_overrides_runpath=yes |
| 11519 | ;; |
| 11520 | esac |
| 11521 | else |
| 11522 | shlibpath_overrides_runpath=yes |
| 11523 | fi |
| 11524 | ;; |
| 11525 | |
| 11526 | os2*) |
| 11527 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11528 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11529 | need_lib_prefix=no |
| 11530 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11531 | dynamic_linker='OS/2 ld.exe' |
| 11532 | shlibpath_var=LIBPATH |
| 11533 | ;; |
| 11534 | |
| 11535 | osf3* | osf4* | osf5*) |
| 11536 | version_type=osf |
| 11537 | need_lib_prefix=no |
| 11538 | need_version=no |
| 11539 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11541 | shlibpath_var=LD_LIBRARY_PATH |
| 11542 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11543 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11544 | ;; |
| 11545 | |
| 11546 | sco3.2v5*) |
| 11547 | version_type=osf |
| 11548 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11549 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11550 | shlibpath_var=LD_LIBRARY_PATH |
| 11551 | ;; |
| 11552 | |
| 11553 | solaris*) |
| 11554 | version_type=linux |
| 11555 | need_lib_prefix=no |
| 11556 | need_version=no |
| 11557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11558 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11559 | shlibpath_var=LD_LIBRARY_PATH |
| 11560 | shlibpath_overrides_runpath=yes |
| 11561 | hardcode_into_libs=yes |
| 11562 | # ldd complains unless libraries are executable |
| 11563 | postinstall_cmds='chmod +x $lib' |
| 11564 | ;; |
| 11565 | |
| 11566 | sunos4*) |
| 11567 | version_type=sunos |
| 11568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11569 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11570 | shlibpath_var=LD_LIBRARY_PATH |
| 11571 | shlibpath_overrides_runpath=yes |
| 11572 | if test "$with_gnu_ld" = yes; then |
| 11573 | need_lib_prefix=no |
| 11574 | fi |
| 11575 | need_version=yes |
| 11576 | ;; |
| 11577 | |
| 11578 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11579 | version_type=linux |
| 11580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11581 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11582 | shlibpath_var=LD_LIBRARY_PATH |
| 11583 | case $host_vendor in |
| 11584 | sni) |
| 11585 | shlibpath_overrides_runpath=no |
| 11586 | need_lib_prefix=no |
| 11587 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11588 | runpath_var=LD_RUN_PATH |
| 11589 | ;; |
| 11590 | siemens) |
| 11591 | need_lib_prefix=no |
| 11592 | ;; |
| 11593 | motorola) |
| 11594 | need_lib_prefix=no |
| 11595 | need_version=no |
| 11596 | shlibpath_overrides_runpath=no |
| 11597 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11598 | ;; |
| 11599 | esac |
| 11600 | ;; |
| 11601 | |
| 11602 | sysv4*MP*) |
| 11603 | if test -d /usr/nec ;then |
| 11604 | version_type=linux |
| 11605 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11606 | soname_spec='$libname${shared_ext}.$major' |
| 11607 | shlibpath_var=LD_LIBRARY_PATH |
| 11608 | fi |
| 11609 | ;; |
| 11610 | |
| 11611 | uts4*) |
| 11612 | version_type=linux |
| 11613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11614 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11615 | shlibpath_var=LD_LIBRARY_PATH |
| 11616 | ;; |
| 11617 | |
| 11618 | *) |
| 11619 | dynamic_linker=no |
| 11620 | ;; |
| 11621 | esac |
| 11622 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11623 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11624 | test "$dynamic_linker" = no && can_build_shared=no |
| 11625 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11626 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 11627 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 11628 | hardcode_action_CXX= |
| 11629 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 11630 | test -n "$runpath_var_CXX" || \ |
| 11631 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 11632 | |
| 11633 | # We can hardcode non-existant directories. |
| 11634 | if test "$hardcode_direct_CXX" != no && |
| 11635 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11636 | # have to relink, otherwise we might link with an installed library |
| 11637 | # when we should be linking with a yet-to-be-installed one |
| 11638 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 11639 | test "$hardcode_minus_L_CXX" != no; then |
| 11640 | # Linking always hardcodes the temporary library directory. |
| 11641 | hardcode_action_CXX=relink |
| 11642 | else |
| 11643 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11644 | hardcode_action_CXX=immediate |
| 11645 | fi |
| 11646 | else |
| 11647 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11648 | # directories. |
| 11649 | hardcode_action_CXX=unsupported |
| 11650 | fi |
| 11651 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 11652 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 11653 | |
| 11654 | if test "$hardcode_action_CXX" = relink; then |
| 11655 | # Fast installation is not supported |
| 11656 | enable_fast_install=no |
| 11657 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11658 | test "$enable_shared" = no; then |
| 11659 | # Fast installation is not necessary |
| 11660 | enable_fast_install=needless |
| 11661 | fi |
| 11662 | |
| 11663 | striplib= |
| 11664 | old_striplib= |
| 11665 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 11666 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 11667 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 11668 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11669 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11670 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11671 | echo "${ECHO_T}yes" >&6 |
| 11672 | else |
| 11673 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11674 | case $host_os in |
| 11675 | darwin*) |
| 11676 | if test -n "$STRIP" ; then |
| 11677 | striplib="$STRIP -x" |
| 11678 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11679 | echo "${ECHO_T}yes" >&6 |
| 11680 | else |
| 11681 | echo "$as_me:$LINENO: result: no" >&5 |
| 11682 | echo "${ECHO_T}no" >&6 |
| 11683 | fi |
| 11684 | ;; |
| 11685 | *) |
| 11686 | echo "$as_me:$LINENO: result: no" >&5 |
| 11687 | echo "${ECHO_T}no" >&6 |
| 11688 | ;; |
| 11689 | esac |
| 11690 | fi |
| 11691 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11692 | if test "x$enable_dlopen" != xyes; then |
| 11693 | enable_dlopen=unknown |
| 11694 | enable_dlopen_self=unknown |
| 11695 | enable_dlopen_self_static=unknown |
| 11696 | else |
| 11697 | lt_cv_dlopen=no |
| 11698 | lt_cv_dlopen_libs= |
| 11699 | |
| 11700 | case $host_os in |
| 11701 | beos*) |
| 11702 | lt_cv_dlopen="load_add_on" |
| 11703 | lt_cv_dlopen_libs= |
| 11704 | lt_cv_dlopen_self=yes |
| 11705 | ;; |
| 11706 | |
| 11707 | mingw* | pw32*) |
| 11708 | lt_cv_dlopen="LoadLibrary" |
| 11709 | lt_cv_dlopen_libs= |
| 11710 | ;; |
| 11711 | |
| 11712 | cygwin*) |
| 11713 | lt_cv_dlopen="dlopen" |
| 11714 | lt_cv_dlopen_libs= |
| 11715 | ;; |
| 11716 | |
| 11717 | darwin*) |
| 11718 | # if libdl is installed we need to link against it |
| 11719 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11720 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11721 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11723 | else |
| 11724 | ac_check_lib_save_LIBS=$LIBS |
| 11725 | LIBS="-ldl $LIBS" |
| 11726 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11727 | /* confdefs.h. */ |
| 11728 | _ACEOF |
| 11729 | cat confdefs.h >>conftest.$ac_ext |
| 11730 | cat >>conftest.$ac_ext <<_ACEOF |
| 11731 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11732 | |
| 11733 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11734 | #ifdef __cplusplus |
| 11735 | extern "C" |
| 11736 | #endif |
| 11737 | /* We use char because int might match the return type of a gcc2 |
| 11738 | builtin and then its argument prototype would still apply. */ |
| 11739 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11740 | int |
| 11741 | main () |
| 11742 | { |
| 11743 | dlopen (); |
| 11744 | ; |
| 11745 | return 0; |
| 11746 | } |
| 11747 | _ACEOF |
| 11748 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11750 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11751 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11753 | rm -f conftest.er1 |
| 11754 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11756 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11757 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11758 | || test ! -s conftest.err' |
| 11759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11760 | (eval $ac_try) 2>&5 |
| 11761 | ac_status=$? |
| 11762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11763 | (exit $ac_status); }; } && |
| 11764 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11766 | (eval $ac_try) 2>&5 |
| 11767 | ac_status=$? |
| 11768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11769 | (exit $ac_status); }; }; then |
| 11770 | ac_cv_lib_dl_dlopen=yes |
| 11771 | else |
| 11772 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11774 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11775 | ac_cv_lib_dl_dlopen=no |
| 11776 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11777 | rm -f conftest.err conftest.$ac_objext \ |
| 11778 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11779 | LIBS=$ac_check_lib_save_LIBS |
| 11780 | fi |
| 11781 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11782 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11783 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11784 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11785 | else |
| 11786 | |
| 11787 | lt_cv_dlopen="dyld" |
| 11788 | lt_cv_dlopen_libs= |
| 11789 | lt_cv_dlopen_self=yes |
| 11790 | |
| 11791 | fi |
| 11792 | |
| 11793 | ;; |
| 11794 | |
| 11795 | *) |
| 11796 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11797 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11798 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11800 | else |
| 11801 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11802 | /* confdefs.h. */ |
| 11803 | _ACEOF |
| 11804 | cat confdefs.h >>conftest.$ac_ext |
| 11805 | cat >>conftest.$ac_ext <<_ACEOF |
| 11806 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11807 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 11808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11809 | #define shl_load innocuous_shl_load |
| 11810 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11811 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11812 | which can conflict with char shl_load (); below. |
| 11813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11814 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11815 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11816 | #ifdef __STDC__ |
| 11817 | # include <limits.h> |
| 11818 | #else |
| 11819 | # include <assert.h> |
| 11820 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11821 | |
| 11822 | #undef shl_load |
| 11823 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11824 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11825 | #ifdef __cplusplus |
| 11826 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11827 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11828 | #endif |
| 11829 | /* We use char because int might match the return type of a gcc2 |
| 11830 | builtin and then its argument prototype would still apply. */ |
| 11831 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11832 | /* The GNU C library defines this for functions which it implements |
| 11833 | to always fail with ENOSYS. Some functions are actually named |
| 11834 | something starting with __ and the normal name is an alias. */ |
| 11835 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11836 | choke me |
| 11837 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11838 | char (*f) () = shl_load; |
| 11839 | #endif |
| 11840 | #ifdef __cplusplus |
| 11841 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11842 | #endif |
| 11843 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11844 | int |
| 11845 | main () |
| 11846 | { |
| 11847 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11848 | ; |
| 11849 | return 0; |
| 11850 | } |
| 11851 | _ACEOF |
| 11852 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11854 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11855 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11857 | rm -f conftest.er1 |
| 11858 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11860 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11861 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11862 | || test ! -s conftest.err' |
| 11863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11864 | (eval $ac_try) 2>&5 |
| 11865 | ac_status=$? |
| 11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11867 | (exit $ac_status); }; } && |
| 11868 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11870 | (eval $ac_try) 2>&5 |
| 11871 | ac_status=$? |
| 11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11873 | (exit $ac_status); }; }; then |
| 11874 | ac_cv_func_shl_load=yes |
| 11875 | else |
| 11876 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11878 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11879 | ac_cv_func_shl_load=no |
| 11880 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11881 | rm -f conftest.err conftest.$ac_objext \ |
| 11882 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11883 | fi |
| 11884 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11885 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 11886 | if test $ac_cv_func_shl_load = yes; then |
| 11887 | lt_cv_dlopen="shl_load" |
| 11888 | else |
| 11889 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11890 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11891 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11893 | else |
| 11894 | ac_check_lib_save_LIBS=$LIBS |
| 11895 | LIBS="-ldld $LIBS" |
| 11896 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11897 | /* confdefs.h. */ |
| 11898 | _ACEOF |
| 11899 | cat confdefs.h >>conftest.$ac_ext |
| 11900 | cat >>conftest.$ac_ext <<_ACEOF |
| 11901 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11902 | |
| 11903 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11904 | #ifdef __cplusplus |
| 11905 | extern "C" |
| 11906 | #endif |
| 11907 | /* We use char because int might match the return type of a gcc2 |
| 11908 | builtin and then its argument prototype would still apply. */ |
| 11909 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11910 | int |
| 11911 | main () |
| 11912 | { |
| 11913 | shl_load (); |
| 11914 | ; |
| 11915 | return 0; |
| 11916 | } |
| 11917 | _ACEOF |
| 11918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11920 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11921 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11923 | rm -f conftest.er1 |
| 11924 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11926 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11927 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11928 | || test ! -s conftest.err' |
| 11929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11930 | (eval $ac_try) 2>&5 |
| 11931 | ac_status=$? |
| 11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11933 | (exit $ac_status); }; } && |
| 11934 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11936 | (eval $ac_try) 2>&5 |
| 11937 | ac_status=$? |
| 11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11939 | (exit $ac_status); }; }; then |
| 11940 | ac_cv_lib_dld_shl_load=yes |
| 11941 | else |
| 11942 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11945 | ac_cv_lib_dld_shl_load=no |
| 11946 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11947 | rm -f conftest.err conftest.$ac_objext \ |
| 11948 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11949 | LIBS=$ac_check_lib_save_LIBS |
| 11950 | fi |
| 11951 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11952 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11953 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11954 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 11955 | else |
| 11956 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11957 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 11958 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11960 | else |
| 11961 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11962 | /* confdefs.h. */ |
| 11963 | _ACEOF |
| 11964 | cat confdefs.h >>conftest.$ac_ext |
| 11965 | cat >>conftest.$ac_ext <<_ACEOF |
| 11966 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11967 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 11968 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11969 | #define dlopen innocuous_dlopen |
| 11970 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11971 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11972 | which can conflict with char dlopen (); below. |
| 11973 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11974 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11975 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11976 | #ifdef __STDC__ |
| 11977 | # include <limits.h> |
| 11978 | #else |
| 11979 | # include <assert.h> |
| 11980 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11981 | |
| 11982 | #undef dlopen |
| 11983 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11984 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11985 | #ifdef __cplusplus |
| 11986 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11987 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11988 | #endif |
| 11989 | /* We use char because int might match the return type of a gcc2 |
| 11990 | builtin and then its argument prototype would still apply. */ |
| 11991 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11992 | /* The GNU C library defines this for functions which it implements |
| 11993 | to always fail with ENOSYS. Some functions are actually named |
| 11994 | something starting with __ and the normal name is an alias. */ |
| 11995 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 11996 | choke me |
| 11997 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11998 | char (*f) () = dlopen; |
| 11999 | #endif |
| 12000 | #ifdef __cplusplus |
| 12001 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12002 | #endif |
| 12003 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12004 | int |
| 12005 | main () |
| 12006 | { |
| 12007 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12008 | ; |
| 12009 | return 0; |
| 12010 | } |
| 12011 | _ACEOF |
| 12012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12014 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12015 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12017 | rm -f conftest.er1 |
| 12018 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12020 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12021 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12022 | || test ! -s conftest.err' |
| 12023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12024 | (eval $ac_try) 2>&5 |
| 12025 | ac_status=$? |
| 12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12027 | (exit $ac_status); }; } && |
| 12028 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12030 | (eval $ac_try) 2>&5 |
| 12031 | ac_status=$? |
| 12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12033 | (exit $ac_status); }; }; then |
| 12034 | ac_cv_func_dlopen=yes |
| 12035 | else |
| 12036 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12038 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12039 | ac_cv_func_dlopen=no |
| 12040 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12041 | rm -f conftest.err conftest.$ac_objext \ |
| 12042 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12043 | fi |
| 12044 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 12045 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 12046 | if test $ac_cv_func_dlopen = yes; then |
| 12047 | lt_cv_dlopen="dlopen" |
| 12048 | else |
| 12049 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12050 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 12051 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12053 | else |
| 12054 | ac_check_lib_save_LIBS=$LIBS |
| 12055 | LIBS="-ldl $LIBS" |
| 12056 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12057 | /* confdefs.h. */ |
| 12058 | _ACEOF |
| 12059 | cat confdefs.h >>conftest.$ac_ext |
| 12060 | cat >>conftest.$ac_ext <<_ACEOF |
| 12061 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12062 | |
| 12063 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12064 | #ifdef __cplusplus |
| 12065 | extern "C" |
| 12066 | #endif |
| 12067 | /* We use char because int might match the return type of a gcc2 |
| 12068 | builtin and then its argument prototype would still apply. */ |
| 12069 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12070 | int |
| 12071 | main () |
| 12072 | { |
| 12073 | dlopen (); |
| 12074 | ; |
| 12075 | return 0; |
| 12076 | } |
| 12077 | _ACEOF |
| 12078 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12080 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12081 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12083 | rm -f conftest.er1 |
| 12084 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12086 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12087 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12088 | || test ! -s conftest.err' |
| 12089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12090 | (eval $ac_try) 2>&5 |
| 12091 | ac_status=$? |
| 12092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12093 | (exit $ac_status); }; } && |
| 12094 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12096 | (eval $ac_try) 2>&5 |
| 12097 | ac_status=$? |
| 12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12099 | (exit $ac_status); }; }; then |
| 12100 | ac_cv_lib_dl_dlopen=yes |
| 12101 | else |
| 12102 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12104 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12105 | ac_cv_lib_dl_dlopen=no |
| 12106 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12107 | rm -f conftest.err conftest.$ac_objext \ |
| 12108 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12109 | LIBS=$ac_check_lib_save_LIBS |
| 12110 | fi |
| 12111 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12112 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 12113 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12114 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12115 | else |
| 12116 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 12117 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 12118 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 12119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12120 | else |
| 12121 | ac_check_lib_save_LIBS=$LIBS |
| 12122 | LIBS="-lsvld $LIBS" |
| 12123 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12124 | /* confdefs.h. */ |
| 12125 | _ACEOF |
| 12126 | cat confdefs.h >>conftest.$ac_ext |
| 12127 | cat >>conftest.$ac_ext <<_ACEOF |
| 12128 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12129 | |
| 12130 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12131 | #ifdef __cplusplus |
| 12132 | extern "C" |
| 12133 | #endif |
| 12134 | /* We use char because int might match the return type of a gcc2 |
| 12135 | builtin and then its argument prototype would still apply. */ |
| 12136 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12137 | int |
| 12138 | main () |
| 12139 | { |
| 12140 | dlopen (); |
| 12141 | ; |
| 12142 | return 0; |
| 12143 | } |
| 12144 | _ACEOF |
| 12145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12147 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12148 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12150 | rm -f conftest.er1 |
| 12151 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12153 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12154 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12155 | || test ! -s conftest.err' |
| 12156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12157 | (eval $ac_try) 2>&5 |
| 12158 | ac_status=$? |
| 12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12160 | (exit $ac_status); }; } && |
| 12161 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12163 | (eval $ac_try) 2>&5 |
| 12164 | ac_status=$? |
| 12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12166 | (exit $ac_status); }; }; then |
| 12167 | ac_cv_lib_svld_dlopen=yes |
| 12168 | else |
| 12169 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12171 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12172 | ac_cv_lib_svld_dlopen=no |
| 12173 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12174 | rm -f conftest.err conftest.$ac_objext \ |
| 12175 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12176 | LIBS=$ac_check_lib_save_LIBS |
| 12177 | fi |
| 12178 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 12179 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 12180 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 12181 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 12182 | else |
| 12183 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 12184 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 12185 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 12186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12187 | else |
| 12188 | ac_check_lib_save_LIBS=$LIBS |
| 12189 | LIBS="-ldld $LIBS" |
| 12190 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12191 | /* confdefs.h. */ |
| 12192 | _ACEOF |
| 12193 | cat confdefs.h >>conftest.$ac_ext |
| 12194 | cat >>conftest.$ac_ext <<_ACEOF |
| 12195 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12196 | |
| 12197 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12198 | #ifdef __cplusplus |
| 12199 | extern "C" |
| 12200 | #endif |
| 12201 | /* We use char because int might match the return type of a gcc2 |
| 12202 | builtin and then its argument prototype would still apply. */ |
| 12203 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12204 | int |
| 12205 | main () |
| 12206 | { |
| 12207 | dld_link (); |
| 12208 | ; |
| 12209 | return 0; |
| 12210 | } |
| 12211 | _ACEOF |
| 12212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12214 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12215 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12217 | rm -f conftest.er1 |
| 12218 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12220 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12221 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12222 | || test ! -s conftest.err' |
| 12223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12224 | (eval $ac_try) 2>&5 |
| 12225 | ac_status=$? |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); }; } && |
| 12228 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12230 | (eval $ac_try) 2>&5 |
| 12231 | ac_status=$? |
| 12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12233 | (exit $ac_status); }; }; then |
| 12234 | ac_cv_lib_dld_dld_link=yes |
| 12235 | else |
| 12236 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12238 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12239 | ac_cv_lib_dld_dld_link=no |
| 12240 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12241 | rm -f conftest.err conftest.$ac_objext \ |
| 12242 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12243 | LIBS=$ac_check_lib_save_LIBS |
| 12244 | fi |
| 12245 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 12246 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 12247 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 12248 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 12249 | fi |
| 12250 | |
| 12251 | |
| 12252 | fi |
| 12253 | |
| 12254 | |
| 12255 | fi |
| 12256 | |
| 12257 | |
| 12258 | fi |
| 12259 | |
| 12260 | |
| 12261 | fi |
| 12262 | |
| 12263 | |
| 12264 | fi |
| 12265 | |
| 12266 | ;; |
| 12267 | esac |
| 12268 | |
| 12269 | if test "x$lt_cv_dlopen" != xno; then |
| 12270 | enable_dlopen=yes |
| 12271 | else |
| 12272 | enable_dlopen=no |
| 12273 | fi |
| 12274 | |
| 12275 | case $lt_cv_dlopen in |
| 12276 | dlopen) |
| 12277 | save_CPPFLAGS="$CPPFLAGS" |
| 12278 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12279 | |
| 12280 | save_LDFLAGS="$LDFLAGS" |
| 12281 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 12282 | |
| 12283 | save_LIBS="$LIBS" |
| 12284 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 12285 | |
| 12286 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 12287 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 12288 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 12289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12290 | else |
| 12291 | if test "$cross_compiling" = yes; then : |
| 12292 | lt_cv_dlopen_self=cross |
| 12293 | else |
| 12294 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12295 | lt_status=$lt_dlunknown |
| 12296 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12297 | #line 12297 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12298 | #include "confdefs.h" |
| 12299 | |
| 12300 | #if HAVE_DLFCN_H |
| 12301 | #include <dlfcn.h> |
| 12302 | #endif |
| 12303 | |
| 12304 | #include <stdio.h> |
| 12305 | |
| 12306 | #ifdef RTLD_GLOBAL |
| 12307 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12308 | #else |
| 12309 | # ifdef DL_GLOBAL |
| 12310 | # define LT_DLGLOBAL DL_GLOBAL |
| 12311 | # else |
| 12312 | # define LT_DLGLOBAL 0 |
| 12313 | # endif |
| 12314 | #endif |
| 12315 | |
| 12316 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12317 | find out it does not work in some platform. */ |
| 12318 | #ifndef LT_DLLAZY_OR_NOW |
| 12319 | # ifdef RTLD_LAZY |
| 12320 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12321 | # else |
| 12322 | # ifdef DL_LAZY |
| 12323 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12324 | # else |
| 12325 | # ifdef RTLD_NOW |
| 12326 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12327 | # else |
| 12328 | # ifdef DL_NOW |
| 12329 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12330 | # else |
| 12331 | # define LT_DLLAZY_OR_NOW 0 |
| 12332 | # endif |
| 12333 | # endif |
| 12334 | # endif |
| 12335 | # endif |
| 12336 | #endif |
| 12337 | |
| 12338 | #ifdef __cplusplus |
| 12339 | extern "C" void exit (int); |
| 12340 | #endif |
| 12341 | |
| 12342 | void fnord() { int i=42;} |
| 12343 | int main () |
| 12344 | { |
| 12345 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12346 | int status = $lt_dlunknown; |
| 12347 | |
| 12348 | if (self) |
| 12349 | { |
| 12350 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12351 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12352 | /* dlclose (self); */ |
| 12353 | } |
| 12354 | |
| 12355 | exit (status); |
| 12356 | } |
| 12357 | EOF |
| 12358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12359 | (eval $ac_link) 2>&5 |
| 12360 | ac_status=$? |
| 12361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12362 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12363 | (./conftest; exit; ) 2>/dev/null |
| 12364 | lt_status=$? |
| 12365 | case x$lt_status in |
| 12366 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 12367 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 12368 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 12369 | esac |
| 12370 | else : |
| 12371 | # compilation failed |
| 12372 | lt_cv_dlopen_self=no |
| 12373 | fi |
| 12374 | fi |
| 12375 | rm -fr conftest* |
| 12376 | |
| 12377 | |
| 12378 | fi |
| 12379 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 12380 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 12381 | |
| 12382 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 12383 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 12384 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 12385 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 12386 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 12387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12388 | else |
| 12389 | if test "$cross_compiling" = yes; then : |
| 12390 | lt_cv_dlopen_self_static=cross |
| 12391 | else |
| 12392 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12393 | lt_status=$lt_dlunknown |
| 12394 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12395 | #line 12395 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12396 | #include "confdefs.h" |
| 12397 | |
| 12398 | #if HAVE_DLFCN_H |
| 12399 | #include <dlfcn.h> |
| 12400 | #endif |
| 12401 | |
| 12402 | #include <stdio.h> |
| 12403 | |
| 12404 | #ifdef RTLD_GLOBAL |
| 12405 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12406 | #else |
| 12407 | # ifdef DL_GLOBAL |
| 12408 | # define LT_DLGLOBAL DL_GLOBAL |
| 12409 | # else |
| 12410 | # define LT_DLGLOBAL 0 |
| 12411 | # endif |
| 12412 | #endif |
| 12413 | |
| 12414 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12415 | find out it does not work in some platform. */ |
| 12416 | #ifndef LT_DLLAZY_OR_NOW |
| 12417 | # ifdef RTLD_LAZY |
| 12418 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12419 | # else |
| 12420 | # ifdef DL_LAZY |
| 12421 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12422 | # else |
| 12423 | # ifdef RTLD_NOW |
| 12424 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12425 | # else |
| 12426 | # ifdef DL_NOW |
| 12427 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12428 | # else |
| 12429 | # define LT_DLLAZY_OR_NOW 0 |
| 12430 | # endif |
| 12431 | # endif |
| 12432 | # endif |
| 12433 | # endif |
| 12434 | #endif |
| 12435 | |
| 12436 | #ifdef __cplusplus |
| 12437 | extern "C" void exit (int); |
| 12438 | #endif |
| 12439 | |
| 12440 | void fnord() { int i=42;} |
| 12441 | int main () |
| 12442 | { |
| 12443 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12444 | int status = $lt_dlunknown; |
| 12445 | |
| 12446 | if (self) |
| 12447 | { |
| 12448 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12449 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12450 | /* dlclose (self); */ |
| 12451 | } |
| 12452 | |
| 12453 | exit (status); |
| 12454 | } |
| 12455 | EOF |
| 12456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12457 | (eval $ac_link) 2>&5 |
| 12458 | ac_status=$? |
| 12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12460 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12461 | (./conftest; exit; ) 2>/dev/null |
| 12462 | lt_status=$? |
| 12463 | case x$lt_status in |
| 12464 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12465 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12466 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 12467 | esac |
| 12468 | else : |
| 12469 | # compilation failed |
| 12470 | lt_cv_dlopen_self_static=no |
| 12471 | fi |
| 12472 | fi |
| 12473 | rm -fr conftest* |
| 12474 | |
| 12475 | |
| 12476 | fi |
| 12477 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 12478 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 12479 | fi |
| 12480 | |
| 12481 | CPPFLAGS="$save_CPPFLAGS" |
| 12482 | LDFLAGS="$save_LDFLAGS" |
| 12483 | LIBS="$save_LIBS" |
| 12484 | ;; |
| 12485 | esac |
| 12486 | |
| 12487 | case $lt_cv_dlopen_self in |
| 12488 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12489 | *) enable_dlopen_self=unknown ;; |
| 12490 | esac |
| 12491 | |
| 12492 | case $lt_cv_dlopen_self_static in |
| 12493 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12494 | *) enable_dlopen_self_static=unknown ;; |
| 12495 | esac |
| 12496 | fi |
| 12497 | |
| 12498 | |
| 12499 | # The else clause should only fire when bootstrapping the |
| 12500 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 12501 | # with your package, and you will get complaints that there are |
| 12502 | # no rules to generate ltmain.sh. |
| 12503 | if test -f "$ltmain"; then |
| 12504 | # See if we are running on zsh, and set the options which allow our commands through |
| 12505 | # without removal of \ escapes. |
| 12506 | if test -n "${ZSH_VERSION+set}" ; then |
| 12507 | setopt NO_GLOB_SUBST |
| 12508 | fi |
| 12509 | # Now quote all the things that may contain metacharacters while being |
| 12510 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 12511 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12512 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 12513 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12514 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 12515 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 12516 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 12517 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 12518 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12519 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 12520 | old_postinstall_cmds old_postuninstall_cmds \ |
| 12521 | compiler_CXX \ |
| 12522 | CC_CXX \ |
| 12523 | LD_CXX \ |
| 12524 | lt_prog_compiler_wl_CXX \ |
| 12525 | lt_prog_compiler_pic_CXX \ |
| 12526 | lt_prog_compiler_static_CXX \ |
| 12527 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 12528 | export_dynamic_flag_spec_CXX \ |
| 12529 | thread_safe_flag_spec_CXX \ |
| 12530 | whole_archive_flag_spec_CXX \ |
| 12531 | enable_shared_with_static_runtimes_CXX \ |
| 12532 | old_archive_cmds_CXX \ |
| 12533 | old_archive_from_new_cmds_CXX \ |
| 12534 | predep_objects_CXX \ |
| 12535 | postdep_objects_CXX \ |
| 12536 | predeps_CXX \ |
| 12537 | postdeps_CXX \ |
| 12538 | compiler_lib_search_path_CXX \ |
| 12539 | archive_cmds_CXX \ |
| 12540 | archive_expsym_cmds_CXX \ |
| 12541 | postinstall_cmds_CXX \ |
| 12542 | postuninstall_cmds_CXX \ |
| 12543 | old_archive_from_expsyms_cmds_CXX \ |
| 12544 | allow_undefined_flag_CXX \ |
| 12545 | no_undefined_flag_CXX \ |
| 12546 | export_symbols_cmds_CXX \ |
| 12547 | hardcode_libdir_flag_spec_CXX \ |
| 12548 | hardcode_libdir_flag_spec_ld_CXX \ |
| 12549 | hardcode_libdir_separator_CXX \ |
| 12550 | hardcode_automatic_CXX \ |
| 12551 | module_cmds_CXX \ |
| 12552 | module_expsym_cmds_CXX \ |
| 12553 | lt_cv_prog_compiler_c_o_CXX \ |
| 12554 | exclude_expsyms_CXX \ |
| 12555 | include_expsyms_CXX; do |
| 12556 | |
| 12557 | case $var in |
| 12558 | old_archive_cmds_CXX | \ |
| 12559 | old_archive_from_new_cmds_CXX | \ |
| 12560 | archive_cmds_CXX | \ |
| 12561 | archive_expsym_cmds_CXX | \ |
| 12562 | module_cmds_CXX | \ |
| 12563 | module_expsym_cmds_CXX | \ |
| 12564 | old_archive_from_expsyms_cmds_CXX | \ |
| 12565 | export_symbols_cmds_CXX | \ |
| 12566 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 12567 | postinstall_cmds | postuninstall_cmds | \ |
| 12568 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12569 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12570 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12571 | 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] | 12572 | ;; |
| 12573 | *) |
| 12574 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12575 | ;; |
| 12576 | esac |
| 12577 | done |
| 12578 | |
| 12579 | case $lt_echo in |
| 12580 | *'\$0 --fallback-echo"') |
| 12581 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12582 | ;; |
| 12583 | esac |
| 12584 | |
| 12585 | cfgfile="$ofile" |
| 12586 | |
| 12587 | cat <<__EOF__ >> "$cfgfile" |
| 12588 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12589 | |
| 12590 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12591 | |
| 12592 | # Shell to use when invoking shell scripts. |
| 12593 | SHELL=$lt_SHELL |
| 12594 | |
| 12595 | # Whether or not to build shared libraries. |
| 12596 | build_libtool_libs=$enable_shared |
| 12597 | |
| 12598 | # Whether or not to build static libraries. |
| 12599 | build_old_libs=$enable_static |
| 12600 | |
| 12601 | # Whether or not to add -lc for building shared libraries. |
| 12602 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12603 | |
| 12604 | # Whether or not to disallow shared libs when runtime libs are static |
| 12605 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12606 | |
| 12607 | # Whether or not to optimize for fast installation. |
| 12608 | fast_install=$enable_fast_install |
| 12609 | |
| 12610 | # The host system. |
| 12611 | host_alias=$host_alias |
| 12612 | host=$host |
| 12613 | |
| 12614 | # An echo program that does not interpret backslashes. |
| 12615 | echo=$lt_echo |
| 12616 | |
| 12617 | # The archiver. |
| 12618 | AR=$lt_AR |
| 12619 | AR_FLAGS=$lt_AR_FLAGS |
| 12620 | |
| 12621 | # A C compiler. |
| 12622 | LTCC=$lt_LTCC |
| 12623 | |
| 12624 | # A language-specific compiler. |
| 12625 | CC=$lt_compiler_CXX |
| 12626 | |
| 12627 | # Is the compiler the GNU C compiler? |
| 12628 | with_gcc=$GCC_CXX |
| 12629 | |
| 12630 | # An ERE matcher. |
| 12631 | EGREP=$lt_EGREP |
| 12632 | |
| 12633 | # The linker used to build libraries. |
| 12634 | LD=$lt_LD_CXX |
| 12635 | |
| 12636 | # Whether we need hard or soft links. |
| 12637 | LN_S=$lt_LN_S |
| 12638 | |
| 12639 | # A BSD-compatible nm program. |
| 12640 | NM=$lt_NM |
| 12641 | |
| 12642 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12643 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12644 | |
| 12645 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12646 | MAGIC_CMD=$MAGIC_CMD |
| 12647 | |
| 12648 | # Used on cygwin: DLL creation program. |
| 12649 | DLLTOOL="$DLLTOOL" |
| 12650 | |
| 12651 | # Used on cygwin: object dumper. |
| 12652 | OBJDUMP="$OBJDUMP" |
| 12653 | |
| 12654 | # Used on cygwin: assembler. |
| 12655 | AS="$AS" |
| 12656 | |
| 12657 | # The name of the directory that contains temporary libtool files. |
| 12658 | objdir=$objdir |
| 12659 | |
| 12660 | # How to create reloadable object files. |
| 12661 | reload_flag=$lt_reload_flag |
| 12662 | reload_cmds=$lt_reload_cmds |
| 12663 | |
| 12664 | # How to pass a linker flag through the compiler. |
| 12665 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12666 | |
| 12667 | # Object file suffix (normally "o"). |
| 12668 | objext="$ac_objext" |
| 12669 | |
| 12670 | # Old archive suffix (normally "a"). |
| 12671 | libext="$libext" |
| 12672 | |
| 12673 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12674 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12675 | |
| 12676 | # Executable file suffix (normally ""). |
| 12677 | exeext="$exeext" |
| 12678 | |
| 12679 | # Additional compiler flags for building library objects. |
| 12680 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12681 | pic_mode=$pic_mode |
| 12682 | |
| 12683 | # What is the maximum length of a command? |
| 12684 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12685 | |
| 12686 | # Does compiler simultaneously support -c and -o options? |
| 12687 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12688 | |
| 12689 | # Must we lock files when doing compilation ? |
| 12690 | need_locks=$lt_need_locks |
| 12691 | |
| 12692 | # Do we need the lib prefix for modules? |
| 12693 | need_lib_prefix=$need_lib_prefix |
| 12694 | |
| 12695 | # Do we need a version for libraries? |
| 12696 | need_version=$need_version |
| 12697 | |
| 12698 | # Whether dlopen is supported. |
| 12699 | dlopen_support=$enable_dlopen |
| 12700 | |
| 12701 | # Whether dlopen of programs is supported. |
| 12702 | dlopen_self=$enable_dlopen_self |
| 12703 | |
| 12704 | # Whether dlopen of statically linked programs is supported. |
| 12705 | dlopen_self_static=$enable_dlopen_self_static |
| 12706 | |
| 12707 | # Compiler flag to prevent dynamic linking. |
| 12708 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12709 | |
| 12710 | # Compiler flag to turn off builtin functions. |
| 12711 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12712 | |
| 12713 | # Compiler flag to allow reflexive dlopens. |
| 12714 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12715 | |
| 12716 | # Compiler flag to generate shared objects directly from archives. |
| 12717 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12718 | |
| 12719 | # Compiler flag to generate thread-safe objects. |
| 12720 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12721 | |
| 12722 | # Library versioning type. |
| 12723 | version_type=$version_type |
| 12724 | |
| 12725 | # Format of library name prefix. |
| 12726 | libname_spec=$lt_libname_spec |
| 12727 | |
| 12728 | # List of archive names. First name is the real one, the rest are links. |
| 12729 | # The last name is the one that the linker finds with -lNAME. |
| 12730 | library_names_spec=$lt_library_names_spec |
| 12731 | |
| 12732 | # The coded name of the library, if different from the real name. |
| 12733 | soname_spec=$lt_soname_spec |
| 12734 | |
| 12735 | # Commands used to build and install an old-style archive. |
| 12736 | RANLIB=$lt_RANLIB |
| 12737 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12738 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12739 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12740 | |
| 12741 | # Create an old-style archive from a shared archive. |
| 12742 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12743 | |
| 12744 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12745 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12746 | |
| 12747 | # Commands used to build and install a shared archive. |
| 12748 | archive_cmds=$lt_archive_cmds_CXX |
| 12749 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12750 | postinstall_cmds=$lt_postinstall_cmds |
| 12751 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12752 | |
| 12753 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12754 | module_cmds=$lt_module_cmds_CXX |
| 12755 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12756 | |
| 12757 | # Commands to strip libraries. |
| 12758 | old_striplib=$lt_old_striplib |
| 12759 | striplib=$lt_striplib |
| 12760 | |
| 12761 | # Dependencies to place before the objects being linked to create a |
| 12762 | # shared library. |
| 12763 | predep_objects=$lt_predep_objects_CXX |
| 12764 | |
| 12765 | # Dependencies to place after the objects being linked to create a |
| 12766 | # shared library. |
| 12767 | postdep_objects=$lt_postdep_objects_CXX |
| 12768 | |
| 12769 | # Dependencies to place before the objects being linked to create a |
| 12770 | # shared library. |
| 12771 | predeps=$lt_predeps_CXX |
| 12772 | |
| 12773 | # Dependencies to place after the objects being linked to create a |
| 12774 | # shared library. |
| 12775 | postdeps=$lt_postdeps_CXX |
| 12776 | |
| 12777 | # The library search path used internally by the compiler when linking |
| 12778 | # a shared library. |
| 12779 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12780 | |
| 12781 | # Method to check whether dependent libraries are shared objects. |
| 12782 | deplibs_check_method=$lt_deplibs_check_method |
| 12783 | |
| 12784 | # Command to use when deplibs_check_method == file_magic. |
| 12785 | file_magic_cmd=$lt_file_magic_cmd |
| 12786 | |
| 12787 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12788 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12789 | |
| 12790 | # Flag that forces no undefined symbols. |
| 12791 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12792 | |
| 12793 | # Commands used to finish a libtool library installation in a directory. |
| 12794 | finish_cmds=$lt_finish_cmds |
| 12795 | |
| 12796 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12797 | finish_eval=$lt_finish_eval |
| 12798 | |
| 12799 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12800 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12801 | |
| 12802 | # Transform the output of nm in a proper C declaration |
| 12803 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12804 | |
| 12805 | # Transform the output of nm in a C name address pair |
| 12806 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12807 | |
| 12808 | # This is the shared library runtime path variable. |
| 12809 | runpath_var=$runpath_var |
| 12810 | |
| 12811 | # This is the shared library path variable. |
| 12812 | shlibpath_var=$shlibpath_var |
| 12813 | |
| 12814 | # Is shlibpath searched before the hard-coded library search path? |
| 12815 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12816 | |
| 12817 | # How to hardcode a shared library path into an executable. |
| 12818 | hardcode_action=$hardcode_action_CXX |
| 12819 | |
| 12820 | # Whether we should hardcode library paths into libraries. |
| 12821 | hardcode_into_libs=$hardcode_into_libs |
| 12822 | |
| 12823 | # Flag to hardcode \$libdir into a binary during linking. |
| 12824 | # This must work even if \$libdir does not exist. |
| 12825 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12826 | |
| 12827 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12828 | # a binary during linking. This must work even if \$libdir does |
| 12829 | # not exist. |
| 12830 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12831 | |
| 12832 | # Whether we need a single -rpath flag with a separated argument. |
| 12833 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12834 | |
| 12835 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12836 | # resulting binary. |
| 12837 | hardcode_direct=$hardcode_direct_CXX |
| 12838 | |
| 12839 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12840 | # resulting binary. |
| 12841 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12842 | |
| 12843 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12844 | # the resulting binary. |
| 12845 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12846 | |
| 12847 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12848 | # and all subsequent libraries and executables linked against it. |
| 12849 | hardcode_automatic=$hardcode_automatic_CXX |
| 12850 | |
| 12851 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12852 | # restored at relink time. |
| 12853 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12854 | |
| 12855 | # Whether libtool must link a program against all its dependency libraries. |
| 12856 | link_all_deplibs=$link_all_deplibs_CXX |
| 12857 | |
| 12858 | # Compile-time system search path for libraries |
| 12859 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12860 | |
| 12861 | # Run-time system search path for libraries |
| 12862 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12863 | |
| 12864 | # Fix the shell variable \$srcfile for the compiler. |
| 12865 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 12866 | |
| 12867 | # Set to yes if exported symbols are required. |
| 12868 | always_export_symbols=$always_export_symbols_CXX |
| 12869 | |
| 12870 | # The commands to list exported symbols. |
| 12871 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 12872 | |
| 12873 | # The commands to extract the exported symbol list from a shared archive. |
| 12874 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12875 | |
| 12876 | # Symbols that should not be listed in the preloaded symbols. |
| 12877 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 12878 | |
| 12879 | # Symbols that must always be exported. |
| 12880 | include_expsyms=$lt_include_expsyms_CXX |
| 12881 | |
| 12882 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12883 | |
| 12884 | __EOF__ |
| 12885 | |
| 12886 | |
| 12887 | else |
| 12888 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12889 | # `config.status --recheck' to rerun these tests and create the |
| 12890 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12891 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 12892 | if test -f "$ltmain_in"; then |
| 12893 | test -f Makefile && make "$ltmain" |
| 12894 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12895 | fi |
| 12896 | |
| 12897 | |
| 12898 | ac_ext=c |
| 12899 | ac_cpp='$CPP $CPPFLAGS' |
| 12900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12903 | |
| 12904 | CC=$lt_save_CC |
| 12905 | LDCXX=$LD |
| 12906 | LD=$lt_save_LD |
| 12907 | GCC=$lt_save_GCC |
| 12908 | with_gnu_ldcxx=$with_gnu_ld |
| 12909 | with_gnu_ld=$lt_save_with_gnu_ld |
| 12910 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 12911 | lt_cv_path_LD=$lt_save_path_LD |
| 12912 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 12913 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 12914 | |
| 12915 | else |
| 12916 | tagname="" |
| 12917 | fi |
| 12918 | ;; |
| 12919 | |
| 12920 | F77) |
| 12921 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 12922 | |
| 12923 | ac_ext=f |
| 12924 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12925 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12926 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12927 | |
| 12928 | |
| 12929 | archive_cmds_need_lc_F77=no |
| 12930 | allow_undefined_flag_F77= |
| 12931 | always_export_symbols_F77=no |
| 12932 | archive_expsym_cmds_F77= |
| 12933 | export_dynamic_flag_spec_F77= |
| 12934 | hardcode_direct_F77=no |
| 12935 | hardcode_libdir_flag_spec_F77= |
| 12936 | hardcode_libdir_flag_spec_ld_F77= |
| 12937 | hardcode_libdir_separator_F77= |
| 12938 | hardcode_minus_L_F77=no |
| 12939 | hardcode_automatic_F77=no |
| 12940 | module_cmds_F77= |
| 12941 | module_expsym_cmds_F77= |
| 12942 | link_all_deplibs_F77=unknown |
| 12943 | old_archive_cmds_F77=$old_archive_cmds |
| 12944 | no_undefined_flag_F77= |
| 12945 | whole_archive_flag_spec_F77= |
| 12946 | enable_shared_with_static_runtimes_F77=no |
| 12947 | |
| 12948 | # Source file extension for f77 test sources. |
| 12949 | ac_ext=f |
| 12950 | |
| 12951 | # Object file extension for compiled f77 test sources. |
| 12952 | objext=o |
| 12953 | objext_F77=$objext |
| 12954 | |
| 12955 | # Code to be used in simple compile tests |
| 12956 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 12957 | |
| 12958 | # Code to be used in simple link tests |
| 12959 | lt_simple_link_test_code=" program t\n end\n" |
| 12960 | |
| 12961 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12962 | |
| 12963 | # If no C compiler was specified, use CC. |
| 12964 | LTCC=${LTCC-"$CC"} |
| 12965 | |
| 12966 | # Allow CC to be a program name with arguments. |
| 12967 | compiler=$CC |
| 12968 | |
| 12969 | |
| 12970 | # Allow CC to be a program name with arguments. |
| 12971 | lt_save_CC="$CC" |
| 12972 | CC=${F77-"f77"} |
| 12973 | compiler=$CC |
| 12974 | compiler_F77=$CC |
| 12975 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 12976 | |
| 12977 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 12978 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 12979 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 12980 | echo "${ECHO_T}$can_build_shared" >&6 |
| 12981 | |
| 12982 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 12983 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 12984 | test "$can_build_shared" = "no" && enable_shared=no |
| 12985 | |
| 12986 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12987 | # are all built from PIC. |
| 12988 | case "$host_os" in |
| 12989 | aix3*) |
| 12990 | test "$enable_shared" = yes && enable_static=no |
| 12991 | if test -n "$RANLIB"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12992 | archive_cmds="$archive_cmds;\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12993 | postinstall_cmds='$RANLIB $lib' |
| 12994 | fi |
| 12995 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12996 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12997 | test "$enable_shared" = yes && enable_static=no |
| 12998 | ;; |
| 12999 | esac |
| 13000 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 13001 | echo "${ECHO_T}$enable_shared" >&6 |
| 13002 | |
| 13003 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 13004 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 13005 | # Make sure either enable_shared or enable_static is yes. |
| 13006 | test "$enable_shared" = yes || enable_static=yes |
| 13007 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 13008 | echo "${ECHO_T}$enable_static" >&6 |
| 13009 | |
| 13010 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13011 | |
| 13012 | GCC_F77="$G77" |
| 13013 | LD_F77="$LD" |
| 13014 | |
| 13015 | lt_prog_compiler_wl_F77= |
| 13016 | lt_prog_compiler_pic_F77= |
| 13017 | lt_prog_compiler_static_F77= |
| 13018 | |
| 13019 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13020 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 13021 | |
| 13022 | if test "$GCC" = yes; then |
| 13023 | lt_prog_compiler_wl_F77='-Wl,' |
| 13024 | lt_prog_compiler_static_F77='-static' |
| 13025 | |
| 13026 | case $host_os in |
| 13027 | aix*) |
| 13028 | # All AIX code is PIC. |
| 13029 | if test "$host_cpu" = ia64; then |
| 13030 | # AIX 5 now supports IA64 processor |
| 13031 | lt_prog_compiler_static_F77='-Bstatic' |
| 13032 | fi |
| 13033 | ;; |
| 13034 | |
| 13035 | amigaos*) |
| 13036 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13037 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13038 | # like `-m68040'. |
| 13039 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 13040 | ;; |
| 13041 | |
| 13042 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13043 | # PIC is the default for these OSes. |
| 13044 | ;; |
| 13045 | |
| 13046 | mingw* | pw32* | os2*) |
| 13047 | # This hack is so that the source file can tell whether it is being |
| 13048 | # built for inclusion in a dll (and should export symbols for example). |
| 13049 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13050 | ;; |
| 13051 | |
| 13052 | darwin* | rhapsody*) |
| 13053 | # PIC is the default on this platform |
| 13054 | # Common symbols not allowed in MH_DYLIB files |
| 13055 | lt_prog_compiler_pic_F77='-fno-common' |
| 13056 | ;; |
| 13057 | |
| 13058 | msdosdjgpp*) |
| 13059 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13060 | # on systems that don't support them. |
| 13061 | lt_prog_compiler_can_build_shared_F77=no |
| 13062 | enable_shared=no |
| 13063 | ;; |
| 13064 | |
| 13065 | sysv4*MP*) |
| 13066 | if test -d /usr/nec; then |
| 13067 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 13068 | fi |
| 13069 | ;; |
| 13070 | |
| 13071 | hpux*) |
| 13072 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13073 | # not for PA HP-UX. |
| 13074 | case "$host_cpu" in |
| 13075 | hppa*64*|ia64*) |
| 13076 | # +Z the default |
| 13077 | ;; |
| 13078 | *) |
| 13079 | lt_prog_compiler_pic_F77='-fPIC' |
| 13080 | ;; |
| 13081 | esac |
| 13082 | ;; |
| 13083 | |
| 13084 | *) |
| 13085 | lt_prog_compiler_pic_F77='-fPIC' |
| 13086 | ;; |
| 13087 | esac |
| 13088 | else |
| 13089 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13090 | case $host_os in |
| 13091 | aix*) |
| 13092 | lt_prog_compiler_wl_F77='-Wl,' |
| 13093 | if test "$host_cpu" = ia64; then |
| 13094 | # AIX 5 now supports IA64 processor |
| 13095 | lt_prog_compiler_static_F77='-Bstatic' |
| 13096 | else |
| 13097 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 13098 | fi |
| 13099 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13100 | darwin*) |
| 13101 | # PIC is the default on this platform |
| 13102 | # Common symbols not allowed in MH_DYLIB files |
| 13103 | case "$cc_basename" in |
| 13104 | xlc*) |
| 13105 | lt_prog_compiler_pic_F77='-qnocommon' |
| 13106 | lt_prog_compiler_wl_F77='-Wl,' |
| 13107 | ;; |
| 13108 | esac |
| 13109 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13110 | |
| 13111 | mingw* | pw32* | os2*) |
| 13112 | # This hack is so that the source file can tell whether it is being |
| 13113 | # built for inclusion in a dll (and should export symbols for example). |
| 13114 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13115 | ;; |
| 13116 | |
| 13117 | hpux9* | hpux10* | hpux11*) |
| 13118 | lt_prog_compiler_wl_F77='-Wl,' |
| 13119 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13120 | # not for PA HP-UX. |
| 13121 | case "$host_cpu" in |
| 13122 | hppa*64*|ia64*) |
| 13123 | # +Z the default |
| 13124 | ;; |
| 13125 | *) |
| 13126 | lt_prog_compiler_pic_F77='+Z' |
| 13127 | ;; |
| 13128 | esac |
| 13129 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13130 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 13131 | ;; |
| 13132 | |
| 13133 | irix5* | irix6* | nonstopux*) |
| 13134 | lt_prog_compiler_wl_F77='-Wl,' |
| 13135 | # PIC (with -KPIC) is the default. |
| 13136 | lt_prog_compiler_static_F77='-non_shared' |
| 13137 | ;; |
| 13138 | |
| 13139 | newsos6) |
| 13140 | lt_prog_compiler_pic_F77='-KPIC' |
| 13141 | lt_prog_compiler_static_F77='-Bstatic' |
| 13142 | ;; |
| 13143 | |
| 13144 | linux*) |
| 13145 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13146 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13147 | lt_prog_compiler_wl_F77='-Wl,' |
| 13148 | lt_prog_compiler_pic_F77='-KPIC' |
| 13149 | lt_prog_compiler_static_F77='-static' |
| 13150 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13151 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13152 | lt_prog_compiler_wl_F77='-Wl,' |
| 13153 | # All Alpha code is PIC. |
| 13154 | lt_prog_compiler_static_F77='-non_shared' |
| 13155 | ;; |
| 13156 | esac |
| 13157 | ;; |
| 13158 | |
| 13159 | osf3* | osf4* | osf5*) |
| 13160 | lt_prog_compiler_wl_F77='-Wl,' |
| 13161 | # All OSF/1 code is PIC. |
| 13162 | lt_prog_compiler_static_F77='-non_shared' |
| 13163 | ;; |
| 13164 | |
| 13165 | sco3.2v5*) |
| 13166 | lt_prog_compiler_pic_F77='-Kpic' |
| 13167 | lt_prog_compiler_static_F77='-dn' |
| 13168 | ;; |
| 13169 | |
| 13170 | solaris*) |
| 13171 | lt_prog_compiler_wl_F77='-Wl,' |
| 13172 | lt_prog_compiler_pic_F77='-KPIC' |
| 13173 | lt_prog_compiler_static_F77='-Bstatic' |
| 13174 | ;; |
| 13175 | |
| 13176 | sunos4*) |
| 13177 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 13178 | lt_prog_compiler_pic_F77='-PIC' |
| 13179 | lt_prog_compiler_static_F77='-Bstatic' |
| 13180 | ;; |
| 13181 | |
| 13182 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13183 | lt_prog_compiler_wl_F77='-Wl,' |
| 13184 | lt_prog_compiler_pic_F77='-KPIC' |
| 13185 | lt_prog_compiler_static_F77='-Bstatic' |
| 13186 | ;; |
| 13187 | |
| 13188 | sysv4*MP*) |
| 13189 | if test -d /usr/nec ;then |
| 13190 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 13191 | lt_prog_compiler_static_F77='-Bstatic' |
| 13192 | fi |
| 13193 | ;; |
| 13194 | |
| 13195 | uts4*) |
| 13196 | lt_prog_compiler_pic_F77='-pic' |
| 13197 | lt_prog_compiler_static_F77='-Bstatic' |
| 13198 | ;; |
| 13199 | |
| 13200 | *) |
| 13201 | lt_prog_compiler_can_build_shared_F77=no |
| 13202 | ;; |
| 13203 | esac |
| 13204 | fi |
| 13205 | |
| 13206 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 13207 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 13208 | |
| 13209 | # |
| 13210 | # Check to make sure the PIC flag actually works. |
| 13211 | # |
| 13212 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13213 | |
| 13214 | 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] | 13215 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 13216 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 13217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13218 | else |
| 13219 | lt_prog_compiler_pic_works_F77=no |
| 13220 | ac_outfile=conftest.$ac_objext |
| 13221 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13222 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 13223 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13224 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13225 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13226 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13227 | # The option is referenced via a variable to avoid confusing sed. |
| 13228 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13229 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13230 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13231 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13232 | (eval echo "\"\$as_me:13232: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13233 | (eval "$lt_compile" 2>conftest.err) |
| 13234 | ac_status=$? |
| 13235 | cat conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13236 | echo "$as_me:13236: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13237 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13238 | # The compiler can only warn and ignore the option if not recognized |
| 13239 | # So say no if there are warnings |
| 13240 | if test ! -s conftest.err; then |
| 13241 | lt_prog_compiler_pic_works_F77=yes |
| 13242 | fi |
| 13243 | fi |
| 13244 | $rm conftest* |
| 13245 | |
| 13246 | fi |
| 13247 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 13248 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 13249 | |
| 13250 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 13251 | case $lt_prog_compiler_pic_F77 in |
| 13252 | "" | " "*) ;; |
| 13253 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 13254 | esac |
| 13255 | else |
| 13256 | lt_prog_compiler_pic_F77= |
| 13257 | lt_prog_compiler_can_build_shared_F77=no |
| 13258 | fi |
| 13259 | |
| 13260 | fi |
| 13261 | case "$host_os" in |
| 13262 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13263 | *djgpp*) |
| 13264 | lt_prog_compiler_pic_F77= |
| 13265 | ;; |
| 13266 | *) |
| 13267 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 13268 | ;; |
| 13269 | esac |
| 13270 | |
| 13271 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13272 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 13273 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 13274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13275 | else |
| 13276 | lt_cv_prog_compiler_c_o_F77=no |
| 13277 | $rm -r conftest 2>/dev/null |
| 13278 | mkdir conftest |
| 13279 | cd conftest |
| 13280 | mkdir out |
| 13281 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13282 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13283 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13284 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13285 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13286 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13287 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13288 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13289 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13290 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13291 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13292 | (eval echo "\"\$as_me:13292: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13293 | (eval "$lt_compile" 2>out/conftest.err) |
| 13294 | ac_status=$? |
| 13295 | cat out/conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13296 | echo "$as_me:13296: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13297 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13298 | then |
| 13299 | # The compiler can only warn and ignore the option if not recognized |
| 13300 | # So say no if there are warnings |
| 13301 | if test ! -s out/conftest.err; then |
| 13302 | lt_cv_prog_compiler_c_o_F77=yes |
| 13303 | fi |
| 13304 | fi |
| 13305 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13306 | $rm conftest* |
| 13307 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13308 | # template instantiation |
| 13309 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 13310 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13311 | cd .. |
| 13312 | rmdir conftest |
| 13313 | $rm conftest* |
| 13314 | |
| 13315 | fi |
| 13316 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 13317 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 13318 | |
| 13319 | |
| 13320 | hard_links="nottested" |
| 13321 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 13322 | # do not overwrite the value of need_locks provided by the user |
| 13323 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13324 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 13325 | hard_links=yes |
| 13326 | $rm conftest* |
| 13327 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13328 | touch conftest.a |
| 13329 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13330 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13331 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 13332 | echo "${ECHO_T}$hard_links" >&6 |
| 13333 | if test "$hard_links" = no; then |
| 13334 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13335 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13336 | need_locks=warn |
| 13337 | fi |
| 13338 | else |
| 13339 | need_locks=no |
| 13340 | fi |
| 13341 | |
| 13342 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13343 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 13344 | |
| 13345 | runpath_var= |
| 13346 | allow_undefined_flag_F77= |
| 13347 | enable_shared_with_static_runtimes_F77=no |
| 13348 | archive_cmds_F77= |
| 13349 | archive_expsym_cmds_F77= |
| 13350 | old_archive_From_new_cmds_F77= |
| 13351 | old_archive_from_expsyms_cmds_F77= |
| 13352 | export_dynamic_flag_spec_F77= |
| 13353 | whole_archive_flag_spec_F77= |
| 13354 | thread_safe_flag_spec_F77= |
| 13355 | hardcode_libdir_flag_spec_F77= |
| 13356 | hardcode_libdir_flag_spec_ld_F77= |
| 13357 | hardcode_libdir_separator_F77= |
| 13358 | hardcode_direct_F77=no |
| 13359 | hardcode_minus_L_F77=no |
| 13360 | hardcode_shlibpath_var_F77=unsupported |
| 13361 | link_all_deplibs_F77=unknown |
| 13362 | hardcode_automatic_F77=no |
| 13363 | module_cmds_F77= |
| 13364 | module_expsym_cmds_F77= |
| 13365 | always_export_symbols_F77=no |
| 13366 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13367 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13368 | # included in the symbol list |
| 13369 | include_expsyms_F77= |
| 13370 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13371 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13372 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13373 | # as well as any symbol that contains `d'. |
| 13374 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 13375 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13376 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13377 | # the symbol is explicitly referenced. Since portable code cannot |
| 13378 | # rely on this symbol name, it's probably fine to never include it in |
| 13379 | # preloaded symbol tables. |
| 13380 | extract_expsyms_cmds= |
| 13381 | |
| 13382 | case $host_os in |
| 13383 | cygwin* | mingw* | pw32*) |
| 13384 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13385 | # When not using gcc, we currently assume that we are using |
| 13386 | # Microsoft Visual C++. |
| 13387 | if test "$GCC" != yes; then |
| 13388 | with_gnu_ld=no |
| 13389 | fi |
| 13390 | ;; |
| 13391 | openbsd*) |
| 13392 | with_gnu_ld=no |
| 13393 | ;; |
| 13394 | esac |
| 13395 | |
| 13396 | ld_shlibs_F77=yes |
| 13397 | if test "$with_gnu_ld" = yes; then |
| 13398 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13399 | wlarc='${wl}' |
| 13400 | |
| 13401 | # See if GNU ld supports shared libraries. |
| 13402 | case $host_os in |
| 13403 | aix3* | aix4* | aix5*) |
| 13404 | # On AIX/PPC, the GNU linker is very broken |
| 13405 | if test "$host_cpu" != ia64; then |
| 13406 | ld_shlibs_F77=no |
| 13407 | cat <<EOF 1>&2 |
| 13408 | |
| 13409 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 13410 | *** to be unable to reliably create shared libraries on AIX. |
| 13411 | *** Therefore, libtool is disabling shared libraries support. If you |
| 13412 | *** really care for shared libraries, you may want to modify your PATH |
| 13413 | *** so that a non-GNU linker is found, and then restart. |
| 13414 | |
| 13415 | EOF |
| 13416 | fi |
| 13417 | ;; |
| 13418 | |
| 13419 | amigaos*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13420 | 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] | 13421 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13422 | hardcode_minus_L_F77=yes |
| 13423 | |
| 13424 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 13425 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 13426 | # to version 4, is to share data among multiple programs linked |
| 13427 | # with the same dynamic library. Since this doesn't match the |
| 13428 | # behavior of shared libraries on other platforms, we can't use |
| 13429 | # them. |
| 13430 | ld_shlibs_F77=no |
| 13431 | ;; |
| 13432 | |
| 13433 | beos*) |
| 13434 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13435 | allow_undefined_flag_F77=unsupported |
| 13436 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13437 | # support --undefined. This deserves some investigation. FIXME |
| 13438 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13439 | else |
| 13440 | ld_shlibs_F77=no |
| 13441 | fi |
| 13442 | ;; |
| 13443 | |
| 13444 | cygwin* | mingw* | pw32*) |
| 13445 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 13446 | # as there is no search path for DLLs. |
| 13447 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13448 | allow_undefined_flag_F77=unsupported |
| 13449 | always_export_symbols_F77=no |
| 13450 | enable_shared_with_static_runtimes_F77=yes |
| 13451 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 13452 | |
| 13453 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 13454 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 13455 | # If the export-symbols file already is a .def file (1st line |
| 13456 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13457 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13458 | cp $export_symbols $output_objdir/$soname.def; |
| 13459 | else |
| 13460 | echo EXPORTS > $output_objdir/$soname.def; |
| 13461 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13462 | fi;$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] | 13463 | else |
| 13464 | ld_shlibs=no |
| 13465 | fi |
| 13466 | ;; |
| 13467 | |
| 13468 | netbsd*) |
| 13469 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13470 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 13471 | wlarc= |
| 13472 | else |
| 13473 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13474 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13475 | fi |
| 13476 | ;; |
| 13477 | |
| 13478 | solaris* | sysv5*) |
| 13479 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 13480 | ld_shlibs_F77=no |
| 13481 | cat <<EOF 1>&2 |
| 13482 | |
| 13483 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 13484 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 13485 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13486 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 13487 | *** your PATH or compiler configuration so that the native linker is |
| 13488 | *** used, and then restart. |
| 13489 | |
| 13490 | EOF |
| 13491 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13492 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13493 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13494 | else |
| 13495 | ld_shlibs_F77=no |
| 13496 | fi |
| 13497 | ;; |
| 13498 | |
| 13499 | sunos4*) |
| 13500 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13501 | wlarc= |
| 13502 | hardcode_direct_F77=yes |
| 13503 | hardcode_shlibpath_var_F77=no |
| 13504 | ;; |
| 13505 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13506 | linux*) |
| 13507 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13508 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13509 | archive_cmds_F77="$tmp_archive_cmds" |
| 13510 | supports_anon_versioning=no |
| 13511 | case `$LD -v 2>/dev/null` in |
| 13512 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13513 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13514 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13515 | *\ 2.11.*) ;; # other 2.11 versions |
| 13516 | *) supports_anon_versioning=yes ;; |
| 13517 | esac |
| 13518 | if test $supports_anon_versioning = yes; then |
| 13519 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; |
| 13520 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13521 | else |
| 13522 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 13523 | fi |
| 13524 | else |
| 13525 | ld_shlibs_F77=no |
| 13526 | fi |
| 13527 | ;; |
| 13528 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13529 | *) |
| 13530 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13531 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13532 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13533 | else |
| 13534 | ld_shlibs_F77=no |
| 13535 | fi |
| 13536 | ;; |
| 13537 | esac |
| 13538 | |
| 13539 | if test "$ld_shlibs_F77" = yes; then |
| 13540 | runpath_var=LD_RUN_PATH |
| 13541 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 13542 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 13543 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13544 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 13545 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13546 | else |
| 13547 | whole_archive_flag_spec_F77= |
| 13548 | fi |
| 13549 | fi |
| 13550 | else |
| 13551 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 13552 | case $host_os in |
| 13553 | aix3*) |
| 13554 | allow_undefined_flag_F77=unsupported |
| 13555 | always_export_symbols_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13556 | 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] | 13557 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 13558 | # are no directories specified by -L. |
| 13559 | hardcode_minus_L_F77=yes |
| 13560 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 13561 | # Neither direct hardcoding nor static linking is supported with a |
| 13562 | # broken collect2. |
| 13563 | hardcode_direct_F77=unsupported |
| 13564 | fi |
| 13565 | ;; |
| 13566 | |
| 13567 | aix4* | aix5*) |
| 13568 | if test "$host_cpu" = ia64; then |
| 13569 | # On IA64, the linker does run time linking by default, so we don't |
| 13570 | # have to do anything special. |
| 13571 | aix_use_runtimelinking=no |
| 13572 | exp_sym_flag='-Bexport' |
| 13573 | no_entry_flag="" |
| 13574 | else |
| 13575 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13576 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13577 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13578 | 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' |
| 13579 | else |
| 13580 | 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' |
| 13581 | fi |
| 13582 | aix_use_runtimelinking=no |
| 13583 | |
| 13584 | # Test if we are trying to use run time linking or normal |
| 13585 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13586 | # need to do runtime linking. |
| 13587 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 13588 | for ld_flag in $LDFLAGS; do |
| 13589 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13590 | aix_use_runtimelinking=yes |
| 13591 | break |
| 13592 | fi |
| 13593 | done |
| 13594 | esac |
| 13595 | |
| 13596 | exp_sym_flag='-bexport' |
| 13597 | no_entry_flag='-bnoentry' |
| 13598 | fi |
| 13599 | |
| 13600 | # When large executables or shared objects are built, AIX ld can |
| 13601 | # have problems creating the table of contents. If linking a library |
| 13602 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13603 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13604 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13605 | |
| 13606 | archive_cmds_F77='' |
| 13607 | hardcode_direct_F77=yes |
| 13608 | hardcode_libdir_separator_F77=':' |
| 13609 | link_all_deplibs_F77=yes |
| 13610 | |
| 13611 | if test "$GCC" = yes; then |
| 13612 | case $host_os in aix4.012|aix4.012.*) |
| 13613 | # We only want to do this on AIX 4.2 and lower, the check |
| 13614 | # below for broken collect2 doesn't work under 4.3+ |
| 13615 | collect2name=`${CC} -print-prog-name=collect2` |
| 13616 | if test -f "$collect2name" && \ |
| 13617 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13618 | then |
| 13619 | # We have reworked collect2 |
| 13620 | hardcode_direct_F77=yes |
| 13621 | else |
| 13622 | # We have old collect2 |
| 13623 | hardcode_direct_F77=unsupported |
| 13624 | # It fails to find uninstalled libraries when the uninstalled |
| 13625 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13626 | # to unsupported forces relinking |
| 13627 | hardcode_minus_L_F77=yes |
| 13628 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13629 | hardcode_libdir_separator_F77= |
| 13630 | fi |
| 13631 | esac |
| 13632 | shared_flag='-shared' |
| 13633 | else |
| 13634 | # not using gcc |
| 13635 | if test "$host_cpu" = ia64; then |
| 13636 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13637 | # chokes on -Wl,-G. The following line is correct: |
| 13638 | shared_flag='-G' |
| 13639 | else |
| 13640 | if test "$aix_use_runtimelinking" = yes; then |
| 13641 | shared_flag='${wl}-G' |
| 13642 | else |
| 13643 | shared_flag='${wl}-bM:SRE' |
| 13644 | fi |
| 13645 | fi |
| 13646 | fi |
| 13647 | |
| 13648 | # It seems that -bexpall does not export symbols beginning with |
| 13649 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13650 | always_export_symbols_F77=yes |
| 13651 | if test "$aix_use_runtimelinking" = yes; then |
| 13652 | # Warning - without using the other runtime loading flags (-brtl), |
| 13653 | # -berok will link without error, but may produce a broken library. |
| 13654 | allow_undefined_flag_F77='-berok' |
| 13655 | # Determine the default libpath from the value encoded in an empty executable. |
| 13656 | cat >conftest.$ac_ext <<_ACEOF |
| 13657 | program main |
| 13658 | |
| 13659 | end |
| 13660 | _ACEOF |
| 13661 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13663 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13664 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13666 | rm -f conftest.er1 |
| 13667 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13669 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13670 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13671 | || test ! -s conftest.err' |
| 13672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13673 | (eval $ac_try) 2>&5 |
| 13674 | ac_status=$? |
| 13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13676 | (exit $ac_status); }; } && |
| 13677 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13679 | (eval $ac_try) 2>&5 |
| 13680 | ac_status=$? |
| 13681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13682 | (exit $ac_status); }; }; then |
| 13683 | |
| 13684 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13685 | }'` |
| 13686 | # Check for a 64-bit object if we didn't find anything. |
| 13687 | 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; } |
| 13688 | }'`; fi |
| 13689 | else |
| 13690 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13692 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13693 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13694 | rm -f conftest.err conftest.$ac_objext \ |
| 13695 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13696 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13697 | |
| 13698 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13699 | 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" |
| 13700 | else |
| 13701 | if test "$host_cpu" = ia64; then |
| 13702 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13703 | allow_undefined_flag_F77="-z nodefs" |
| 13704 | 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" |
| 13705 | else |
| 13706 | # Determine the default libpath from the value encoded in an empty executable. |
| 13707 | cat >conftest.$ac_ext <<_ACEOF |
| 13708 | program main |
| 13709 | |
| 13710 | end |
| 13711 | _ACEOF |
| 13712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13714 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13715 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13717 | rm -f conftest.er1 |
| 13718 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13720 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13721 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13722 | || test ! -s conftest.err' |
| 13723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13724 | (eval $ac_try) 2>&5 |
| 13725 | ac_status=$? |
| 13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13727 | (exit $ac_status); }; } && |
| 13728 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13730 | (eval $ac_try) 2>&5 |
| 13731 | ac_status=$? |
| 13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13733 | (exit $ac_status); }; }; then |
| 13734 | |
| 13735 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13736 | }'` |
| 13737 | # Check for a 64-bit object if we didn't find anything. |
| 13738 | 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; } |
| 13739 | }'`; fi |
| 13740 | else |
| 13741 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13743 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13744 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13745 | rm -f conftest.err conftest.$ac_objext \ |
| 13746 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13747 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13748 | |
| 13749 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13750 | # Warning - without using the other run time loading flags, |
| 13751 | # -berok will link without error, but may produce a broken library. |
| 13752 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13753 | allow_undefined_flag_F77=' ${wl}-berok' |
| 13754 | # -bexpall does not export symbols beginning with underscore (_) |
| 13755 | always_export_symbols_F77=yes |
| 13756 | # Exported symbols can be pulled into shared objects from archives |
| 13757 | whole_archive_flag_spec_F77=' ' |
| 13758 | archive_cmds_need_lc_F77=yes |
| 13759 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13760 | 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] | 13761 | fi |
| 13762 | fi |
| 13763 | ;; |
| 13764 | |
| 13765 | amigaos*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13766 | 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] | 13767 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13768 | hardcode_minus_L_F77=yes |
| 13769 | # see comment about different semantics on the GNU ld section |
| 13770 | ld_shlibs_F77=no |
| 13771 | ;; |
| 13772 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13773 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13774 | export_dynamic_flag_spec_F77=-rdynamic |
| 13775 | ;; |
| 13776 | |
| 13777 | cygwin* | mingw* | pw32*) |
| 13778 | # When not using gcc, we currently assume that we are using |
| 13779 | # Microsoft Visual C++. |
| 13780 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13781 | # no search path for DLLs. |
| 13782 | hardcode_libdir_flag_spec_F77=' ' |
| 13783 | allow_undefined_flag_F77=unsupported |
| 13784 | # Tell ltmain to make .lib files, not .a files. |
| 13785 | libext=lib |
| 13786 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13787 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13788 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13789 | 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] | 13790 | # The linker will automatically build a .lib file if we build a DLL. |
| 13791 | old_archive_From_new_cmds_F77='true' |
| 13792 | # FIXME: Should let the user specify the lib program. |
| 13793 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13794 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13795 | enable_shared_with_static_runtimes_F77=yes |
| 13796 | ;; |
| 13797 | |
| 13798 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13799 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13800 | rhapsody* | darwin1.[012]) |
| 13801 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 13802 | ;; |
| 13803 | *) # Darwin 1.3 on |
| 13804 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 13805 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 13806 | else |
| 13807 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 13808 | 10.[012]) |
| 13809 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 13810 | ;; |
| 13811 | 10.*) |
| 13812 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 13813 | ;; |
| 13814 | esac |
| 13815 | fi |
| 13816 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13817 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13818 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13819 | hardcode_direct_F77=no |
| 13820 | hardcode_automatic_F77=yes |
| 13821 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13822 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13823 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13824 | if test "$GCC" = yes ; then |
| 13825 | output_verbose_link_cmd='echo' |
| 13826 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13827 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13828 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13829 | 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}' |
| 13830 | 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}' |
| 13831 | else |
| 13832 | case "$cc_basename" in |
| 13833 | xlc*) |
| 13834 | output_verbose_link_cmd='echo' |
| 13835 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 13836 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13837 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13838 | 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}' |
| 13839 | 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}' |
| 13840 | ;; |
| 13841 | *) |
| 13842 | ld_shlibs_F77=no |
| 13843 | ;; |
| 13844 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13845 | fi |
| 13846 | ;; |
| 13847 | |
| 13848 | dgux*) |
| 13849 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13850 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13851 | hardcode_shlibpath_var_F77=no |
| 13852 | ;; |
| 13853 | |
| 13854 | freebsd1*) |
| 13855 | ld_shlibs_F77=no |
| 13856 | ;; |
| 13857 | |
| 13858 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13859 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13860 | # does not break anything, and helps significantly (at the cost of a little |
| 13861 | # extra space). |
| 13862 | freebsd2.2*) |
| 13863 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13864 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13865 | hardcode_direct_F77=yes |
| 13866 | hardcode_shlibpath_var_F77=no |
| 13867 | ;; |
| 13868 | |
| 13869 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13870 | freebsd2*) |
| 13871 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13872 | hardcode_direct_F77=yes |
| 13873 | hardcode_minus_L_F77=yes |
| 13874 | hardcode_shlibpath_var_F77=no |
| 13875 | ;; |
| 13876 | |
| 13877 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13878 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13879 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13880 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13881 | hardcode_direct_F77=yes |
| 13882 | hardcode_shlibpath_var_F77=no |
| 13883 | ;; |
| 13884 | |
| 13885 | hpux9*) |
| 13886 | if test "$GCC" = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13887 | 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] | 13888 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13889 | 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] | 13890 | fi |
| 13891 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13892 | hardcode_libdir_separator_F77=: |
| 13893 | hardcode_direct_F77=yes |
| 13894 | |
| 13895 | # hardcode_minus_L: Not really in the search PATH, |
| 13896 | # but as the default location of the library. |
| 13897 | hardcode_minus_L_F77=yes |
| 13898 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13899 | ;; |
| 13900 | |
| 13901 | hpux10* | hpux11*) |
| 13902 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13903 | case "$host_cpu" in |
| 13904 | hppa*64*|ia64*) |
| 13905 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13906 | ;; |
| 13907 | *) |
| 13908 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13909 | ;; |
| 13910 | esac |
| 13911 | else |
| 13912 | case "$host_cpu" in |
| 13913 | hppa*64*|ia64*) |
| 13914 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13915 | ;; |
| 13916 | *) |
| 13917 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13918 | ;; |
| 13919 | esac |
| 13920 | fi |
| 13921 | if test "$with_gnu_ld" = no; then |
| 13922 | case "$host_cpu" in |
| 13923 | hppa*64*) |
| 13924 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13925 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 13926 | hardcode_libdir_separator_F77=: |
| 13927 | hardcode_direct_F77=no |
| 13928 | hardcode_shlibpath_var_F77=no |
| 13929 | ;; |
| 13930 | ia64*) |
| 13931 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13932 | hardcode_direct_F77=no |
| 13933 | hardcode_shlibpath_var_F77=no |
| 13934 | |
| 13935 | # hardcode_minus_L: Not really in the search PATH, |
| 13936 | # but as the default location of the library. |
| 13937 | hardcode_minus_L_F77=yes |
| 13938 | ;; |
| 13939 | *) |
| 13940 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13941 | hardcode_libdir_separator_F77=: |
| 13942 | hardcode_direct_F77=yes |
| 13943 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13944 | |
| 13945 | # hardcode_minus_L: Not really in the search PATH, |
| 13946 | # but as the default location of the library. |
| 13947 | hardcode_minus_L_F77=yes |
| 13948 | ;; |
| 13949 | esac |
| 13950 | fi |
| 13951 | ;; |
| 13952 | |
| 13953 | irix5* | irix6* | nonstopux*) |
| 13954 | if test "$GCC" = yes; then |
| 13955 | 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' |
| 13956 | else |
| 13957 | 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' |
| 13958 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 13959 | fi |
| 13960 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13961 | hardcode_libdir_separator_F77=: |
| 13962 | link_all_deplibs_F77=yes |
| 13963 | ;; |
| 13964 | |
| 13965 | netbsd*) |
| 13966 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13967 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13968 | else |
| 13969 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13970 | fi |
| 13971 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13972 | hardcode_direct_F77=yes |
| 13973 | hardcode_shlibpath_var_F77=no |
| 13974 | ;; |
| 13975 | |
| 13976 | newsos6) |
| 13977 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13978 | hardcode_direct_F77=yes |
| 13979 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13980 | hardcode_libdir_separator_F77=: |
| 13981 | hardcode_shlibpath_var_F77=no |
| 13982 | ;; |
| 13983 | |
| 13984 | openbsd*) |
| 13985 | hardcode_direct_F77=yes |
| 13986 | hardcode_shlibpath_var_F77=no |
| 13987 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13988 | 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] | 13989 | 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] | 13990 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13991 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13992 | else |
| 13993 | case $host_os in |
| 13994 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13995 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13996 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13997 | ;; |
| 13998 | *) |
| 13999 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14000 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14001 | ;; |
| 14002 | esac |
| 14003 | fi |
| 14004 | ;; |
| 14005 | |
| 14006 | os2*) |
| 14007 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14008 | hardcode_minus_L_F77=yes |
| 14009 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14010 | 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] | 14011 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14012 | ;; |
| 14013 | |
| 14014 | osf3*) |
| 14015 | if test "$GCC" = yes; then |
| 14016 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14017 | 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' |
| 14018 | else |
| 14019 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14020 | 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' |
| 14021 | fi |
| 14022 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14023 | hardcode_libdir_separator_F77=: |
| 14024 | ;; |
| 14025 | |
| 14026 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14027 | if test "$GCC" = yes; then |
| 14028 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14029 | 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' |
| 14030 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14031 | else |
| 14032 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14033 | 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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14034 | 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; $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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14035 | # Both c and cxx compiler support -rpath directly |
| 14036 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 14037 | fi |
| 14038 | hardcode_libdir_separator_F77=: |
| 14039 | ;; |
| 14040 | |
| 14041 | sco3.2v5*) |
| 14042 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14043 | hardcode_shlibpath_var_F77=no |
| 14044 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 14045 | runpath_var=LD_RUN_PATH |
| 14046 | hardcode_runpath_var=yes |
| 14047 | ;; |
| 14048 | |
| 14049 | solaris*) |
| 14050 | no_undefined_flag_F77=' -z text' |
| 14051 | if test "$GCC" = yes; then |
| 14052 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14053 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 14054 | else |
| 14055 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14056 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 14057 | fi |
| 14058 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14059 | hardcode_shlibpath_var_F77=no |
| 14060 | case $host_os in |
| 14061 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14062 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14063 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 14064 | esac |
| 14065 | link_all_deplibs_F77=yes |
| 14066 | ;; |
| 14067 | |
| 14068 | sunos4*) |
| 14069 | if test "x$host_vendor" = xsequent; then |
| 14070 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14071 | # files that make .init and .fini sections work. |
| 14072 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14073 | else |
| 14074 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14075 | fi |
| 14076 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14077 | hardcode_direct_F77=yes |
| 14078 | hardcode_minus_L_F77=yes |
| 14079 | hardcode_shlibpath_var_F77=no |
| 14080 | ;; |
| 14081 | |
| 14082 | sysv4) |
| 14083 | case $host_vendor in |
| 14084 | sni) |
| 14085 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14086 | hardcode_direct_F77=yes # is this really true??? |
| 14087 | ;; |
| 14088 | siemens) |
| 14089 | ## LD is ld it makes a PLAMLIB |
| 14090 | ## CC just makes a GrossModule. |
| 14091 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14092 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 14093 | hardcode_direct_F77=no |
| 14094 | ;; |
| 14095 | motorola) |
| 14096 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14097 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 14098 | ;; |
| 14099 | esac |
| 14100 | runpath_var='LD_RUN_PATH' |
| 14101 | hardcode_shlibpath_var_F77=no |
| 14102 | ;; |
| 14103 | |
| 14104 | sysv4.3*) |
| 14105 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14106 | hardcode_shlibpath_var_F77=no |
| 14107 | export_dynamic_flag_spec_F77='-Bexport' |
| 14108 | ;; |
| 14109 | |
| 14110 | sysv4*MP*) |
| 14111 | if test -d /usr/nec; then |
| 14112 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14113 | hardcode_shlibpath_var_F77=no |
| 14114 | runpath_var=LD_RUN_PATH |
| 14115 | hardcode_runpath_var=yes |
| 14116 | ld_shlibs_F77=yes |
| 14117 | fi |
| 14118 | ;; |
| 14119 | |
| 14120 | sysv4.2uw2*) |
| 14121 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14122 | hardcode_direct_F77=yes |
| 14123 | hardcode_minus_L_F77=no |
| 14124 | hardcode_shlibpath_var_F77=no |
| 14125 | hardcode_runpath_var=yes |
| 14126 | runpath_var=LD_RUN_PATH |
| 14127 | ;; |
| 14128 | |
| 14129 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 14130 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 14131 | if test "$GCC" = yes; then |
| 14132 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14133 | else |
| 14134 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14135 | fi |
| 14136 | runpath_var='LD_RUN_PATH' |
| 14137 | hardcode_shlibpath_var_F77=no |
| 14138 | ;; |
| 14139 | |
| 14140 | sysv5*) |
| 14141 | no_undefined_flag_F77=' -z text' |
| 14142 | # $CC -shared without GNU ld will not create a library from C++ |
| 14143 | # object files and a static libstdc++, better avoid it by now |
| 14144 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14145 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 14146 | hardcode_libdir_flag_spec_F77= |
| 14147 | hardcode_shlibpath_var_F77=no |
| 14148 | runpath_var='LD_RUN_PATH' |
| 14149 | ;; |
| 14150 | |
| 14151 | uts4*) |
| 14152 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14153 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14154 | hardcode_shlibpath_var_F77=no |
| 14155 | ;; |
| 14156 | |
| 14157 | *) |
| 14158 | ld_shlibs_F77=no |
| 14159 | ;; |
| 14160 | esac |
| 14161 | fi |
| 14162 | |
| 14163 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 14164 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 14165 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 14166 | |
| 14167 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14168 | if test "$GCC" = yes; then |
| 14169 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14170 | fi |
| 14171 | |
| 14172 | # |
| 14173 | # Do we need to explicitly link libc? |
| 14174 | # |
| 14175 | case "x$archive_cmds_need_lc_F77" in |
| 14176 | x|xyes) |
| 14177 | # Assume -lc should be added |
| 14178 | archive_cmds_need_lc_F77=yes |
| 14179 | |
| 14180 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14181 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14182 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14183 | # FIXME: we may have to deal with multi-command sequences. |
| 14184 | ;; |
| 14185 | '$CC '*) |
| 14186 | # Test whether the compiler implicitly links with -lc since on some |
| 14187 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14188 | # to ld, don't add -lc before -lgcc. |
| 14189 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 14190 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 14191 | $rm conftest* |
| 14192 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14193 | |
| 14194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14195 | (eval $ac_compile) 2>&5 |
| 14196 | ac_status=$? |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); } 2>conftest.err; then |
| 14199 | soname=conftest |
| 14200 | lib=conftest |
| 14201 | libobjs=conftest.$ac_objext |
| 14202 | deplibs= |
| 14203 | wl=$lt_prog_compiler_wl_F77 |
| 14204 | compiler_flags=-v |
| 14205 | linker_flags=-v |
| 14206 | verstring= |
| 14207 | output_objdir=. |
| 14208 | libname=conftest |
| 14209 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 14210 | allow_undefined_flag_F77= |
| 14211 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 14212 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14213 | ac_status=$? |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14215 | (exit $ac_status); } |
| 14216 | then |
| 14217 | archive_cmds_need_lc_F77=no |
| 14218 | else |
| 14219 | archive_cmds_need_lc_F77=yes |
| 14220 | fi |
| 14221 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 14222 | else |
| 14223 | cat conftest.err 1>&5 |
| 14224 | fi |
| 14225 | $rm conftest* |
| 14226 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 14227 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 14228 | ;; |
| 14229 | esac |
| 14230 | fi |
| 14231 | ;; |
| 14232 | esac |
| 14233 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14234 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 14235 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 14236 | library_names_spec= |
| 14237 | libname_spec='lib$name' |
| 14238 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14239 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14240 | postinstall_cmds= |
| 14241 | postuninstall_cmds= |
| 14242 | finish_cmds= |
| 14243 | finish_eval= |
| 14244 | shlibpath_var= |
| 14245 | shlibpath_overrides_runpath=unknown |
| 14246 | version_type=none |
| 14247 | dynamic_linker="$host_os ld.so" |
| 14248 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14249 | if test "$GCC" = yes; then |
| 14250 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14251 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 14252 | # if the path contains ";" then we assume it to be the separator |
| 14253 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14254 | # assumed that no part of a normal pathname contains ";" but that should |
| 14255 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14256 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14257 | else |
| 14258 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14259 | fi |
| 14260 | else |
| 14261 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14262 | fi |
| 14263 | need_lib_prefix=unknown |
| 14264 | hardcode_into_libs=no |
| 14265 | |
| 14266 | # when you set need_version to no, make sure it does not cause -set_version |
| 14267 | # flags to be left without arguments |
| 14268 | need_version=unknown |
| 14269 | |
| 14270 | case $host_os in |
| 14271 | aix3*) |
| 14272 | version_type=linux |
| 14273 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14274 | shlibpath_var=LIBPATH |
| 14275 | |
| 14276 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14277 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14278 | ;; |
| 14279 | |
| 14280 | aix4* | aix5*) |
| 14281 | version_type=linux |
| 14282 | need_lib_prefix=no |
| 14283 | need_version=no |
| 14284 | hardcode_into_libs=yes |
| 14285 | if test "$host_cpu" = ia64; then |
| 14286 | # AIX 5 supports IA64 |
| 14287 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14288 | shlibpath_var=LD_LIBRARY_PATH |
| 14289 | else |
| 14290 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14291 | # for dependence libraries. The import file would start with |
| 14292 | # the line `#! .'. This would cause the generated library to |
| 14293 | # depend on `.', always an invalid library. This was fixed in |
| 14294 | # development snapshots of GCC prior to 3.0. |
| 14295 | case $host_os in |
| 14296 | aix4 | aix4.[01] | aix4.[01].*) |
| 14297 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14298 | echo ' yes ' |
| 14299 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 14300 | : |
| 14301 | else |
| 14302 | can_build_shared=no |
| 14303 | fi |
| 14304 | ;; |
| 14305 | esac |
| 14306 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14307 | # soname into executable. Probably we can add versioning support to |
| 14308 | # collect2, so additional links can be useful in future. |
| 14309 | if test "$aix_use_runtimelinking" = yes; then |
| 14310 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14311 | # instead of lib<name>.a to let people know that these are not |
| 14312 | # typical AIX shared libraries. |
| 14313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14314 | else |
| 14315 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14316 | # and later when we are not doing run time linking. |
| 14317 | library_names_spec='${libname}${release}.a $libname.a' |
| 14318 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14319 | fi |
| 14320 | shlibpath_var=LIBPATH |
| 14321 | fi |
| 14322 | ;; |
| 14323 | |
| 14324 | amigaos*) |
| 14325 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14326 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14327 | 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] | 14328 | ;; |
| 14329 | |
| 14330 | beos*) |
| 14331 | library_names_spec='${libname}${shared_ext}' |
| 14332 | dynamic_linker="$host_os ld.so" |
| 14333 | shlibpath_var=LIBRARY_PATH |
| 14334 | ;; |
| 14335 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14336 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14337 | version_type=linux |
| 14338 | need_version=no |
| 14339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14340 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14341 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14342 | shlibpath_var=LD_LIBRARY_PATH |
| 14343 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14344 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14345 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14346 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14347 | # libtool to hard-code these into programs |
| 14348 | ;; |
| 14349 | |
| 14350 | cygwin* | mingw* | pw32*) |
| 14351 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14352 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14353 | need_version=no |
| 14354 | need_lib_prefix=no |
| 14355 | |
| 14356 | case $GCC,$host_os in |
| 14357 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 14358 | library_names_spec='$libname.dll.a' |
| 14359 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14360 | postinstall_cmds='base_file=`basename \${file}`; |
| 14361 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; |
| 14362 | dldir=$destdir/`dirname \$dlpath`; |
| 14363 | test -d \$dldir || mkdir -p \$dldir; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14364 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14365 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; |
| 14366 | dlpath=$dir/\$dldll; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14367 | $rm \$dlpath' |
| 14368 | shlibpath_overrides_runpath=yes |
| 14369 | |
| 14370 | case $host_os in |
| 14371 | cygwin*) |
| 14372 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14373 | 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] | 14374 | 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] | 14375 | ;; |
| 14376 | mingw*) |
| 14377 | # MinGW DLLs use traditional 'lib' prefix |
| 14378 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14379 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14380 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 14381 | # It is most probably a Windows format PATH printed by |
| 14382 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 14383 | # path with ; separators, and with drive letters. We can handle the |
| 14384 | # drive letters (cygwin fileutils understands them), so leave them, |
| 14385 | # especially as we might pass files found there to a mingw objdump, |
| 14386 | # which wouldn't understand a cygwinified path. Ahh. |
| 14387 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14388 | else |
| 14389 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14390 | fi |
| 14391 | ;; |
| 14392 | pw32*) |
| 14393 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14394 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 14395 | ;; |
| 14396 | esac |
| 14397 | ;; |
| 14398 | |
| 14399 | *) |
| 14400 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14401 | ;; |
| 14402 | esac |
| 14403 | dynamic_linker='Win32 ld.exe' |
| 14404 | # FIXME: first we should search . and the directory the executable is in |
| 14405 | shlibpath_var=PATH |
| 14406 | ;; |
| 14407 | |
| 14408 | darwin* | rhapsody*) |
| 14409 | dynamic_linker="$host_os dyld" |
| 14410 | version_type=darwin |
| 14411 | need_lib_prefix=no |
| 14412 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14413 | 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] | 14414 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14415 | shlibpath_overrides_runpath=yes |
| 14416 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14417 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14418 | # 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] | 14419 | if test "$GCC" = yes; then |
| 14420 | 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"` |
| 14421 | else |
| 14422 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14423 | fi |
| 14424 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14425 | ;; |
| 14426 | |
| 14427 | dgux*) |
| 14428 | version_type=linux |
| 14429 | need_lib_prefix=no |
| 14430 | need_version=no |
| 14431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14432 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14433 | shlibpath_var=LD_LIBRARY_PATH |
| 14434 | ;; |
| 14435 | |
| 14436 | freebsd1*) |
| 14437 | dynamic_linker=no |
| 14438 | ;; |
| 14439 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14440 | kfreebsd*-gnu) |
| 14441 | version_type=linux |
| 14442 | need_lib_prefix=no |
| 14443 | need_version=no |
| 14444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14445 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14446 | shlibpath_var=LD_LIBRARY_PATH |
| 14447 | shlibpath_overrides_runpath=no |
| 14448 | hardcode_into_libs=yes |
| 14449 | dynamic_linker='GNU ld.so' |
| 14450 | ;; |
| 14451 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14452 | freebsd*) |
| 14453 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 14454 | version_type=freebsd-$objformat |
| 14455 | case $version_type in |
| 14456 | freebsd-elf*) |
| 14457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14458 | need_version=no |
| 14459 | need_lib_prefix=no |
| 14460 | ;; |
| 14461 | freebsd-*) |
| 14462 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14463 | need_version=yes |
| 14464 | ;; |
| 14465 | esac |
| 14466 | shlibpath_var=LD_LIBRARY_PATH |
| 14467 | case $host_os in |
| 14468 | freebsd2*) |
| 14469 | shlibpath_overrides_runpath=yes |
| 14470 | ;; |
| 14471 | freebsd3.01* | freebsdelf3.01*) |
| 14472 | shlibpath_overrides_runpath=yes |
| 14473 | hardcode_into_libs=yes |
| 14474 | ;; |
| 14475 | *) # from 3.2 on |
| 14476 | shlibpath_overrides_runpath=no |
| 14477 | hardcode_into_libs=yes |
| 14478 | ;; |
| 14479 | esac |
| 14480 | ;; |
| 14481 | |
| 14482 | gnu*) |
| 14483 | version_type=linux |
| 14484 | need_lib_prefix=no |
| 14485 | need_version=no |
| 14486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14488 | shlibpath_var=LD_LIBRARY_PATH |
| 14489 | hardcode_into_libs=yes |
| 14490 | ;; |
| 14491 | |
| 14492 | hpux9* | hpux10* | hpux11*) |
| 14493 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14494 | # link against other versions. |
| 14495 | version_type=sunos |
| 14496 | need_lib_prefix=no |
| 14497 | need_version=no |
| 14498 | case "$host_cpu" in |
| 14499 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14500 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14501 | hardcode_into_libs=yes |
| 14502 | dynamic_linker="$host_os dld.so" |
| 14503 | shlibpath_var=LD_LIBRARY_PATH |
| 14504 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14506 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14507 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14508 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14509 | else |
| 14510 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14511 | fi |
| 14512 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14513 | ;; |
| 14514 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14515 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14516 | hardcode_into_libs=yes |
| 14517 | dynamic_linker="$host_os dld.sl" |
| 14518 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14519 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14521 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14522 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14523 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14524 | ;; |
| 14525 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14526 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14527 | dynamic_linker="$host_os dld.sl" |
| 14528 | shlibpath_var=SHLIB_PATH |
| 14529 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14531 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14532 | ;; |
| 14533 | esac |
| 14534 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14535 | postinstall_cmds='chmod 555 $lib' |
| 14536 | ;; |
| 14537 | |
| 14538 | irix5* | irix6* | nonstopux*) |
| 14539 | case $host_os in |
| 14540 | nonstopux*) version_type=nonstopux ;; |
| 14541 | *) |
| 14542 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14543 | version_type=linux |
| 14544 | else |
| 14545 | version_type=irix |
| 14546 | fi ;; |
| 14547 | esac |
| 14548 | need_lib_prefix=no |
| 14549 | need_version=no |
| 14550 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14552 | case $host_os in |
| 14553 | irix5* | nonstopux*) |
| 14554 | libsuff= shlibsuff= |
| 14555 | ;; |
| 14556 | *) |
| 14557 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14558 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14559 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14560 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14561 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14562 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14563 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14564 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14565 | esac |
| 14566 | ;; |
| 14567 | esac |
| 14568 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14569 | shlibpath_overrides_runpath=no |
| 14570 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14571 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14572 | hardcode_into_libs=yes |
| 14573 | ;; |
| 14574 | |
| 14575 | # No shared lib support for Linux oldld, aout, or coff. |
| 14576 | linux*oldld* | linux*aout* | linux*coff*) |
| 14577 | dynamic_linker=no |
| 14578 | ;; |
| 14579 | |
| 14580 | # This must be Linux ELF. |
| 14581 | linux*) |
| 14582 | version_type=linux |
| 14583 | need_lib_prefix=no |
| 14584 | need_version=no |
| 14585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14586 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14587 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14588 | shlibpath_var=LD_LIBRARY_PATH |
| 14589 | shlibpath_overrides_runpath=no |
| 14590 | # This implies no fast_install, which is unacceptable. |
| 14591 | # Some rework will be needed to allow for fast_install |
| 14592 | # before this can be enabled. |
| 14593 | hardcode_into_libs=yes |
| 14594 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14595 | # Append ld.so.conf contents to the search path |
| 14596 | if test -f /etc/ld.so.conf; then |
| 14597 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 14598 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14599 | fi |
| 14600 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14601 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14602 | # powerpc, because MkLinux only supported shared libraries with the |
| 14603 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14604 | # most powerpc-linux boxes support dynamic linking these days and |
| 14605 | # people can always --disable-shared, the test was removed, and we |
| 14606 | # assume the GNU/Linux dynamic linker is in use. |
| 14607 | dynamic_linker='GNU/Linux ld.so' |
| 14608 | ;; |
| 14609 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14610 | knetbsd*-gnu) |
| 14611 | version_type=linux |
| 14612 | need_lib_prefix=no |
| 14613 | need_version=no |
| 14614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14615 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14616 | shlibpath_var=LD_LIBRARY_PATH |
| 14617 | shlibpath_overrides_runpath=no |
| 14618 | hardcode_into_libs=yes |
| 14619 | dynamic_linker='GNU ld.so' |
| 14620 | ;; |
| 14621 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14622 | netbsd*) |
| 14623 | version_type=sunos |
| 14624 | need_lib_prefix=no |
| 14625 | need_version=no |
| 14626 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14628 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14629 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14630 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14631 | 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] | 14632 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14633 | dynamic_linker='NetBSD ld.elf_so' |
| 14634 | fi |
| 14635 | shlibpath_var=LD_LIBRARY_PATH |
| 14636 | shlibpath_overrides_runpath=yes |
| 14637 | hardcode_into_libs=yes |
| 14638 | ;; |
| 14639 | |
| 14640 | newsos6) |
| 14641 | version_type=linux |
| 14642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14643 | shlibpath_var=LD_LIBRARY_PATH |
| 14644 | shlibpath_overrides_runpath=yes |
| 14645 | ;; |
| 14646 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14647 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14648 | version_type=linux |
| 14649 | need_lib_prefix=no |
| 14650 | need_version=no |
| 14651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14652 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14653 | shlibpath_var=LD_LIBRARY_PATH |
| 14654 | shlibpath_overrides_runpath=yes |
| 14655 | ;; |
| 14656 | |
| 14657 | openbsd*) |
| 14658 | version_type=sunos |
| 14659 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 14660 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14662 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14663 | shlibpath_var=LD_LIBRARY_PATH |
| 14664 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14665 | case $host_os in |
| 14666 | openbsd2.[89] | openbsd2.[89].*) |
| 14667 | shlibpath_overrides_runpath=no |
| 14668 | ;; |
| 14669 | *) |
| 14670 | shlibpath_overrides_runpath=yes |
| 14671 | ;; |
| 14672 | esac |
| 14673 | else |
| 14674 | shlibpath_overrides_runpath=yes |
| 14675 | fi |
| 14676 | ;; |
| 14677 | |
| 14678 | os2*) |
| 14679 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14680 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14681 | need_lib_prefix=no |
| 14682 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14683 | dynamic_linker='OS/2 ld.exe' |
| 14684 | shlibpath_var=LIBPATH |
| 14685 | ;; |
| 14686 | |
| 14687 | osf3* | osf4* | osf5*) |
| 14688 | version_type=osf |
| 14689 | need_lib_prefix=no |
| 14690 | need_version=no |
| 14691 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14693 | shlibpath_var=LD_LIBRARY_PATH |
| 14694 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14695 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14696 | ;; |
| 14697 | |
| 14698 | sco3.2v5*) |
| 14699 | version_type=osf |
| 14700 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14702 | shlibpath_var=LD_LIBRARY_PATH |
| 14703 | ;; |
| 14704 | |
| 14705 | solaris*) |
| 14706 | version_type=linux |
| 14707 | need_lib_prefix=no |
| 14708 | need_version=no |
| 14709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14710 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14711 | shlibpath_var=LD_LIBRARY_PATH |
| 14712 | shlibpath_overrides_runpath=yes |
| 14713 | hardcode_into_libs=yes |
| 14714 | # ldd complains unless libraries are executable |
| 14715 | postinstall_cmds='chmod +x $lib' |
| 14716 | ;; |
| 14717 | |
| 14718 | sunos4*) |
| 14719 | version_type=sunos |
| 14720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14721 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14722 | shlibpath_var=LD_LIBRARY_PATH |
| 14723 | shlibpath_overrides_runpath=yes |
| 14724 | if test "$with_gnu_ld" = yes; then |
| 14725 | need_lib_prefix=no |
| 14726 | fi |
| 14727 | need_version=yes |
| 14728 | ;; |
| 14729 | |
| 14730 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14731 | version_type=linux |
| 14732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14733 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14734 | shlibpath_var=LD_LIBRARY_PATH |
| 14735 | case $host_vendor in |
| 14736 | sni) |
| 14737 | shlibpath_overrides_runpath=no |
| 14738 | need_lib_prefix=no |
| 14739 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14740 | runpath_var=LD_RUN_PATH |
| 14741 | ;; |
| 14742 | siemens) |
| 14743 | need_lib_prefix=no |
| 14744 | ;; |
| 14745 | motorola) |
| 14746 | need_lib_prefix=no |
| 14747 | need_version=no |
| 14748 | shlibpath_overrides_runpath=no |
| 14749 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14750 | ;; |
| 14751 | esac |
| 14752 | ;; |
| 14753 | |
| 14754 | sysv4*MP*) |
| 14755 | if test -d /usr/nec ;then |
| 14756 | version_type=linux |
| 14757 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14758 | soname_spec='$libname${shared_ext}.$major' |
| 14759 | shlibpath_var=LD_LIBRARY_PATH |
| 14760 | fi |
| 14761 | ;; |
| 14762 | |
| 14763 | uts4*) |
| 14764 | version_type=linux |
| 14765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14766 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14767 | shlibpath_var=LD_LIBRARY_PATH |
| 14768 | ;; |
| 14769 | |
| 14770 | *) |
| 14771 | dynamic_linker=no |
| 14772 | ;; |
| 14773 | esac |
| 14774 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14775 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14776 | test "$dynamic_linker" = no && can_build_shared=no |
| 14777 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14778 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14779 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14780 | hardcode_action_F77= |
| 14781 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 14782 | test -n "$runpath_var_F77" || \ |
| 14783 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 14784 | |
| 14785 | # We can hardcode non-existant directories. |
| 14786 | if test "$hardcode_direct_F77" != no && |
| 14787 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14788 | # have to relink, otherwise we might link with an installed library |
| 14789 | # when we should be linking with a yet-to-be-installed one |
| 14790 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 14791 | test "$hardcode_minus_L_F77" != no; then |
| 14792 | # Linking always hardcodes the temporary library directory. |
| 14793 | hardcode_action_F77=relink |
| 14794 | else |
| 14795 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14796 | hardcode_action_F77=immediate |
| 14797 | fi |
| 14798 | else |
| 14799 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14800 | # directories. |
| 14801 | hardcode_action_F77=unsupported |
| 14802 | fi |
| 14803 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 14804 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 14805 | |
| 14806 | if test "$hardcode_action_F77" = relink; then |
| 14807 | # Fast installation is not supported |
| 14808 | enable_fast_install=no |
| 14809 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14810 | test "$enable_shared" = no; then |
| 14811 | # Fast installation is not necessary |
| 14812 | enable_fast_install=needless |
| 14813 | fi |
| 14814 | |
| 14815 | striplib= |
| 14816 | old_striplib= |
| 14817 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 14818 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 14819 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 14820 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14821 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14822 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14823 | echo "${ECHO_T}yes" >&6 |
| 14824 | else |
| 14825 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14826 | case $host_os in |
| 14827 | darwin*) |
| 14828 | if test -n "$STRIP" ; then |
| 14829 | striplib="$STRIP -x" |
| 14830 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14831 | echo "${ECHO_T}yes" >&6 |
| 14832 | else |
| 14833 | echo "$as_me:$LINENO: result: no" >&5 |
| 14834 | echo "${ECHO_T}no" >&6 |
| 14835 | fi |
| 14836 | ;; |
| 14837 | *) |
| 14838 | echo "$as_me:$LINENO: result: no" >&5 |
| 14839 | echo "${ECHO_T}no" >&6 |
| 14840 | ;; |
| 14841 | esac |
| 14842 | fi |
| 14843 | |
| 14844 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14845 | |
| 14846 | # The else clause should only fire when bootstrapping the |
| 14847 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14848 | # with your package, and you will get complaints that there are |
| 14849 | # no rules to generate ltmain.sh. |
| 14850 | if test -f "$ltmain"; then |
| 14851 | # See if we are running on zsh, and set the options which allow our commands through |
| 14852 | # without removal of \ escapes. |
| 14853 | if test -n "${ZSH_VERSION+set}" ; then |
| 14854 | setopt NO_GLOB_SUBST |
| 14855 | fi |
| 14856 | # Now quote all the things that may contain metacharacters while being |
| 14857 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14858 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14859 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 14860 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14861 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14862 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14863 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14864 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14865 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14866 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14867 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14868 | compiler_F77 \ |
| 14869 | CC_F77 \ |
| 14870 | LD_F77 \ |
| 14871 | lt_prog_compiler_wl_F77 \ |
| 14872 | lt_prog_compiler_pic_F77 \ |
| 14873 | lt_prog_compiler_static_F77 \ |
| 14874 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 14875 | export_dynamic_flag_spec_F77 \ |
| 14876 | thread_safe_flag_spec_F77 \ |
| 14877 | whole_archive_flag_spec_F77 \ |
| 14878 | enable_shared_with_static_runtimes_F77 \ |
| 14879 | old_archive_cmds_F77 \ |
| 14880 | old_archive_from_new_cmds_F77 \ |
| 14881 | predep_objects_F77 \ |
| 14882 | postdep_objects_F77 \ |
| 14883 | predeps_F77 \ |
| 14884 | postdeps_F77 \ |
| 14885 | compiler_lib_search_path_F77 \ |
| 14886 | archive_cmds_F77 \ |
| 14887 | archive_expsym_cmds_F77 \ |
| 14888 | postinstall_cmds_F77 \ |
| 14889 | postuninstall_cmds_F77 \ |
| 14890 | old_archive_from_expsyms_cmds_F77 \ |
| 14891 | allow_undefined_flag_F77 \ |
| 14892 | no_undefined_flag_F77 \ |
| 14893 | export_symbols_cmds_F77 \ |
| 14894 | hardcode_libdir_flag_spec_F77 \ |
| 14895 | hardcode_libdir_flag_spec_ld_F77 \ |
| 14896 | hardcode_libdir_separator_F77 \ |
| 14897 | hardcode_automatic_F77 \ |
| 14898 | module_cmds_F77 \ |
| 14899 | module_expsym_cmds_F77 \ |
| 14900 | lt_cv_prog_compiler_c_o_F77 \ |
| 14901 | exclude_expsyms_F77 \ |
| 14902 | include_expsyms_F77; do |
| 14903 | |
| 14904 | case $var in |
| 14905 | old_archive_cmds_F77 | \ |
| 14906 | old_archive_from_new_cmds_F77 | \ |
| 14907 | archive_cmds_F77 | \ |
| 14908 | archive_expsym_cmds_F77 | \ |
| 14909 | module_cmds_F77 | \ |
| 14910 | module_expsym_cmds_F77 | \ |
| 14911 | old_archive_from_expsyms_cmds_F77 | \ |
| 14912 | export_symbols_cmds_F77 | \ |
| 14913 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14914 | postinstall_cmds | postuninstall_cmds | \ |
| 14915 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14916 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14917 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14918 | 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] | 14919 | ;; |
| 14920 | *) |
| 14921 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14922 | ;; |
| 14923 | esac |
| 14924 | done |
| 14925 | |
| 14926 | case $lt_echo in |
| 14927 | *'\$0 --fallback-echo"') |
| 14928 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14929 | ;; |
| 14930 | esac |
| 14931 | |
| 14932 | cfgfile="$ofile" |
| 14933 | |
| 14934 | cat <<__EOF__ >> "$cfgfile" |
| 14935 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14936 | |
| 14937 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14938 | |
| 14939 | # Shell to use when invoking shell scripts. |
| 14940 | SHELL=$lt_SHELL |
| 14941 | |
| 14942 | # Whether or not to build shared libraries. |
| 14943 | build_libtool_libs=$enable_shared |
| 14944 | |
| 14945 | # Whether or not to build static libraries. |
| 14946 | build_old_libs=$enable_static |
| 14947 | |
| 14948 | # Whether or not to add -lc for building shared libraries. |
| 14949 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 14950 | |
| 14951 | # Whether or not to disallow shared libs when runtime libs are static |
| 14952 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 14953 | |
| 14954 | # Whether or not to optimize for fast installation. |
| 14955 | fast_install=$enable_fast_install |
| 14956 | |
| 14957 | # The host system. |
| 14958 | host_alias=$host_alias |
| 14959 | host=$host |
| 14960 | |
| 14961 | # An echo program that does not interpret backslashes. |
| 14962 | echo=$lt_echo |
| 14963 | |
| 14964 | # The archiver. |
| 14965 | AR=$lt_AR |
| 14966 | AR_FLAGS=$lt_AR_FLAGS |
| 14967 | |
| 14968 | # A C compiler. |
| 14969 | LTCC=$lt_LTCC |
| 14970 | |
| 14971 | # A language-specific compiler. |
| 14972 | CC=$lt_compiler_F77 |
| 14973 | |
| 14974 | # Is the compiler the GNU C compiler? |
| 14975 | with_gcc=$GCC_F77 |
| 14976 | |
| 14977 | # An ERE matcher. |
| 14978 | EGREP=$lt_EGREP |
| 14979 | |
| 14980 | # The linker used to build libraries. |
| 14981 | LD=$lt_LD_F77 |
| 14982 | |
| 14983 | # Whether we need hard or soft links. |
| 14984 | LN_S=$lt_LN_S |
| 14985 | |
| 14986 | # A BSD-compatible nm program. |
| 14987 | NM=$lt_NM |
| 14988 | |
| 14989 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14990 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14991 | |
| 14992 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14993 | MAGIC_CMD=$MAGIC_CMD |
| 14994 | |
| 14995 | # Used on cygwin: DLL creation program. |
| 14996 | DLLTOOL="$DLLTOOL" |
| 14997 | |
| 14998 | # Used on cygwin: object dumper. |
| 14999 | OBJDUMP="$OBJDUMP" |
| 15000 | |
| 15001 | # Used on cygwin: assembler. |
| 15002 | AS="$AS" |
| 15003 | |
| 15004 | # The name of the directory that contains temporary libtool files. |
| 15005 | objdir=$objdir |
| 15006 | |
| 15007 | # How to create reloadable object files. |
| 15008 | reload_flag=$lt_reload_flag |
| 15009 | reload_cmds=$lt_reload_cmds |
| 15010 | |
| 15011 | # How to pass a linker flag through the compiler. |
| 15012 | wl=$lt_lt_prog_compiler_wl_F77 |
| 15013 | |
| 15014 | # Object file suffix (normally "o"). |
| 15015 | objext="$ac_objext" |
| 15016 | |
| 15017 | # Old archive suffix (normally "a"). |
| 15018 | libext="$libext" |
| 15019 | |
| 15020 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15021 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15022 | |
| 15023 | # Executable file suffix (normally ""). |
| 15024 | exeext="$exeext" |
| 15025 | |
| 15026 | # Additional compiler flags for building library objects. |
| 15027 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 15028 | pic_mode=$pic_mode |
| 15029 | |
| 15030 | # What is the maximum length of a command? |
| 15031 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 15032 | |
| 15033 | # Does compiler simultaneously support -c and -o options? |
| 15034 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 15035 | |
| 15036 | # Must we lock files when doing compilation ? |
| 15037 | need_locks=$lt_need_locks |
| 15038 | |
| 15039 | # Do we need the lib prefix for modules? |
| 15040 | need_lib_prefix=$need_lib_prefix |
| 15041 | |
| 15042 | # Do we need a version for libraries? |
| 15043 | need_version=$need_version |
| 15044 | |
| 15045 | # Whether dlopen is supported. |
| 15046 | dlopen_support=$enable_dlopen |
| 15047 | |
| 15048 | # Whether dlopen of programs is supported. |
| 15049 | dlopen_self=$enable_dlopen_self |
| 15050 | |
| 15051 | # Whether dlopen of statically linked programs is supported. |
| 15052 | dlopen_self_static=$enable_dlopen_self_static |
| 15053 | |
| 15054 | # Compiler flag to prevent dynamic linking. |
| 15055 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 15056 | |
| 15057 | # Compiler flag to turn off builtin functions. |
| 15058 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 15059 | |
| 15060 | # Compiler flag to allow reflexive dlopens. |
| 15061 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 15062 | |
| 15063 | # Compiler flag to generate shared objects directly from archives. |
| 15064 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 15065 | |
| 15066 | # Compiler flag to generate thread-safe objects. |
| 15067 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 15068 | |
| 15069 | # Library versioning type. |
| 15070 | version_type=$version_type |
| 15071 | |
| 15072 | # Format of library name prefix. |
| 15073 | libname_spec=$lt_libname_spec |
| 15074 | |
| 15075 | # List of archive names. First name is the real one, the rest are links. |
| 15076 | # The last name is the one that the linker finds with -lNAME. |
| 15077 | library_names_spec=$lt_library_names_spec |
| 15078 | |
| 15079 | # The coded name of the library, if different from the real name. |
| 15080 | soname_spec=$lt_soname_spec |
| 15081 | |
| 15082 | # Commands used to build and install an old-style archive. |
| 15083 | RANLIB=$lt_RANLIB |
| 15084 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 15085 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15086 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15087 | |
| 15088 | # Create an old-style archive from a shared archive. |
| 15089 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 15090 | |
| 15091 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15092 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 15093 | |
| 15094 | # Commands used to build and install a shared archive. |
| 15095 | archive_cmds=$lt_archive_cmds_F77 |
| 15096 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 15097 | postinstall_cmds=$lt_postinstall_cmds |
| 15098 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15099 | |
| 15100 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15101 | module_cmds=$lt_module_cmds_F77 |
| 15102 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 15103 | |
| 15104 | # Commands to strip libraries. |
| 15105 | old_striplib=$lt_old_striplib |
| 15106 | striplib=$lt_striplib |
| 15107 | |
| 15108 | # Dependencies to place before the objects being linked to create a |
| 15109 | # shared library. |
| 15110 | predep_objects=$lt_predep_objects_F77 |
| 15111 | |
| 15112 | # Dependencies to place after the objects being linked to create a |
| 15113 | # shared library. |
| 15114 | postdep_objects=$lt_postdep_objects_F77 |
| 15115 | |
| 15116 | # Dependencies to place before the objects being linked to create a |
| 15117 | # shared library. |
| 15118 | predeps=$lt_predeps_F77 |
| 15119 | |
| 15120 | # Dependencies to place after the objects being linked to create a |
| 15121 | # shared library. |
| 15122 | postdeps=$lt_postdeps_F77 |
| 15123 | |
| 15124 | # The library search path used internally by the compiler when linking |
| 15125 | # a shared library. |
| 15126 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 15127 | |
| 15128 | # Method to check whether dependent libraries are shared objects. |
| 15129 | deplibs_check_method=$lt_deplibs_check_method |
| 15130 | |
| 15131 | # Command to use when deplibs_check_method == file_magic. |
| 15132 | file_magic_cmd=$lt_file_magic_cmd |
| 15133 | |
| 15134 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15135 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 15136 | |
| 15137 | # Flag that forces no undefined symbols. |
| 15138 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 15139 | |
| 15140 | # Commands used to finish a libtool library installation in a directory. |
| 15141 | finish_cmds=$lt_finish_cmds |
| 15142 | |
| 15143 | # Same as above, but a single script fragment to be evaled but not shown. |
| 15144 | finish_eval=$lt_finish_eval |
| 15145 | |
| 15146 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15147 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15148 | |
| 15149 | # Transform the output of nm in a proper C declaration |
| 15150 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15151 | |
| 15152 | # Transform the output of nm in a C name address pair |
| 15153 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15154 | |
| 15155 | # This is the shared library runtime path variable. |
| 15156 | runpath_var=$runpath_var |
| 15157 | |
| 15158 | # This is the shared library path variable. |
| 15159 | shlibpath_var=$shlibpath_var |
| 15160 | |
| 15161 | # Is shlibpath searched before the hard-coded library search path? |
| 15162 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15163 | |
| 15164 | # How to hardcode a shared library path into an executable. |
| 15165 | hardcode_action=$hardcode_action_F77 |
| 15166 | |
| 15167 | # Whether we should hardcode library paths into libraries. |
| 15168 | hardcode_into_libs=$hardcode_into_libs |
| 15169 | |
| 15170 | # Flag to hardcode \$libdir into a binary during linking. |
| 15171 | # This must work even if \$libdir does not exist. |
| 15172 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 15173 | |
| 15174 | # If ld is used when linking, flag to hardcode \$libdir into |
| 15175 | # a binary during linking. This must work even if \$libdir does |
| 15176 | # not exist. |
| 15177 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 15178 | |
| 15179 | # Whether we need a single -rpath flag with a separated argument. |
| 15180 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 15181 | |
| 15182 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 15183 | # resulting binary. |
| 15184 | hardcode_direct=$hardcode_direct_F77 |
| 15185 | |
| 15186 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 15187 | # resulting binary. |
| 15188 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 15189 | |
| 15190 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 15191 | # the resulting binary. |
| 15192 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 15193 | |
| 15194 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 15195 | # and all subsequent libraries and executables linked against it. |
| 15196 | hardcode_automatic=$hardcode_automatic_F77 |
| 15197 | |
| 15198 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15199 | # restored at relink time. |
| 15200 | variables_saved_for_relink="$variables_saved_for_relink" |
| 15201 | |
| 15202 | # Whether libtool must link a program against all its dependency libraries. |
| 15203 | link_all_deplibs=$link_all_deplibs_F77 |
| 15204 | |
| 15205 | # Compile-time system search path for libraries |
| 15206 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15207 | |
| 15208 | # Run-time system search path for libraries |
| 15209 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15210 | |
| 15211 | # Fix the shell variable \$srcfile for the compiler. |
| 15212 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 15213 | |
| 15214 | # Set to yes if exported symbols are required. |
| 15215 | always_export_symbols=$always_export_symbols_F77 |
| 15216 | |
| 15217 | # The commands to list exported symbols. |
| 15218 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 15219 | |
| 15220 | # The commands to extract the exported symbol list from a shared archive. |
| 15221 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15222 | |
| 15223 | # Symbols that should not be listed in the preloaded symbols. |
| 15224 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 15225 | |
| 15226 | # Symbols that must always be exported. |
| 15227 | include_expsyms=$lt_include_expsyms_F77 |
| 15228 | |
| 15229 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 15230 | |
| 15231 | __EOF__ |
| 15232 | |
| 15233 | |
| 15234 | else |
| 15235 | # If there is no Makefile yet, we rely on a make rule to execute |
| 15236 | # `config.status --recheck' to rerun these tests and create the |
| 15237 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15238 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 15239 | if test -f "$ltmain_in"; then |
| 15240 | test -f Makefile && make "$ltmain" |
| 15241 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15242 | fi |
| 15243 | |
| 15244 | |
| 15245 | ac_ext=c |
| 15246 | ac_cpp='$CPP $CPPFLAGS' |
| 15247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15250 | |
| 15251 | CC="$lt_save_CC" |
| 15252 | |
| 15253 | else |
| 15254 | tagname="" |
| 15255 | fi |
| 15256 | ;; |
| 15257 | |
| 15258 | GCJ) |
| 15259 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15260 | ac_ext=c |
| 15261 | ac_cpp='$CPP $CPPFLAGS' |
| 15262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15265 | |
| 15266 | |
| 15267 | # Source file extension for Java test sources. |
| 15268 | ac_ext=java |
| 15269 | |
| 15270 | # Object file extension for compiled Java test sources. |
| 15271 | objext=o |
| 15272 | objext_GCJ=$objext |
| 15273 | |
| 15274 | # Code to be used in simple compile tests |
| 15275 | lt_simple_compile_test_code="class foo {}\n" |
| 15276 | |
| 15277 | # Code to be used in simple link tests |
| 15278 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 15279 | |
| 15280 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15281 | |
| 15282 | # If no C compiler was specified, use CC. |
| 15283 | LTCC=${LTCC-"$CC"} |
| 15284 | |
| 15285 | # Allow CC to be a program name with arguments. |
| 15286 | compiler=$CC |
| 15287 | |
| 15288 | |
| 15289 | # Allow CC to be a program name with arguments. |
| 15290 | lt_save_CC="$CC" |
| 15291 | CC=${GCJ-"gcj"} |
| 15292 | compiler=$CC |
| 15293 | compiler_GCJ=$CC |
| 15294 | |
| 15295 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 15296 | archive_cmds_need_lc_GCJ=no |
| 15297 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15298 | |
| 15299 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 15300 | |
| 15301 | if test "$GCC" = yes; then |
| 15302 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 15303 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15304 | |
| 15305 | 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] | 15306 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 15307 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 15308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15309 | else |
| 15310 | lt_cv_prog_compiler_rtti_exceptions=no |
| 15311 | ac_outfile=conftest.$ac_objext |
| 15312 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15313 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 15314 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15315 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15316 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15317 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15318 | # The option is referenced via a variable to avoid confusing sed. |
| 15319 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15320 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15321 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15322 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15323 | (eval echo "\"\$as_me:15323: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15324 | (eval "$lt_compile" 2>conftest.err) |
| 15325 | ac_status=$? |
| 15326 | cat conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15327 | echo "$as_me:15327: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15328 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15329 | # The compiler can only warn and ignore the option if not recognized |
| 15330 | # So say no if there are warnings |
| 15331 | if test ! -s conftest.err; then |
| 15332 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 15333 | fi |
| 15334 | fi |
| 15335 | $rm conftest* |
| 15336 | |
| 15337 | fi |
| 15338 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 15339 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 15340 | |
| 15341 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 15342 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 15343 | else |
| 15344 | : |
| 15345 | fi |
| 15346 | |
| 15347 | fi |
| 15348 | |
| 15349 | lt_prog_compiler_wl_GCJ= |
| 15350 | lt_prog_compiler_pic_GCJ= |
| 15351 | lt_prog_compiler_static_GCJ= |
| 15352 | |
| 15353 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 15354 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 15355 | |
| 15356 | if test "$GCC" = yes; then |
| 15357 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15358 | lt_prog_compiler_static_GCJ='-static' |
| 15359 | |
| 15360 | case $host_os in |
| 15361 | aix*) |
| 15362 | # All AIX code is PIC. |
| 15363 | if test "$host_cpu" = ia64; then |
| 15364 | # AIX 5 now supports IA64 processor |
| 15365 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15366 | fi |
| 15367 | ;; |
| 15368 | |
| 15369 | amigaos*) |
| 15370 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15371 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 15372 | # like `-m68040'. |
| 15373 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 15374 | ;; |
| 15375 | |
| 15376 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15377 | # PIC is the default for these OSes. |
| 15378 | ;; |
| 15379 | |
| 15380 | mingw* | pw32* | os2*) |
| 15381 | # This hack is so that the source file can tell whether it is being |
| 15382 | # built for inclusion in a dll (and should export symbols for example). |
| 15383 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15384 | ;; |
| 15385 | |
| 15386 | darwin* | rhapsody*) |
| 15387 | # PIC is the default on this platform |
| 15388 | # Common symbols not allowed in MH_DYLIB files |
| 15389 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 15390 | ;; |
| 15391 | |
| 15392 | msdosdjgpp*) |
| 15393 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 15394 | # on systems that don't support them. |
| 15395 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15396 | enable_shared=no |
| 15397 | ;; |
| 15398 | |
| 15399 | sysv4*MP*) |
| 15400 | if test -d /usr/nec; then |
| 15401 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 15402 | fi |
| 15403 | ;; |
| 15404 | |
| 15405 | hpux*) |
| 15406 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15407 | # not for PA HP-UX. |
| 15408 | case "$host_cpu" in |
| 15409 | hppa*64*|ia64*) |
| 15410 | # +Z the default |
| 15411 | ;; |
| 15412 | *) |
| 15413 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15414 | ;; |
| 15415 | esac |
| 15416 | ;; |
| 15417 | |
| 15418 | *) |
| 15419 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15420 | ;; |
| 15421 | esac |
| 15422 | else |
| 15423 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 15424 | case $host_os in |
| 15425 | aix*) |
| 15426 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15427 | if test "$host_cpu" = ia64; then |
| 15428 | # AIX 5 now supports IA64 processor |
| 15429 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15430 | else |
| 15431 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 15432 | fi |
| 15433 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15434 | darwin*) |
| 15435 | # PIC is the default on this platform |
| 15436 | # Common symbols not allowed in MH_DYLIB files |
| 15437 | case "$cc_basename" in |
| 15438 | xlc*) |
| 15439 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 15440 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15441 | ;; |
| 15442 | esac |
| 15443 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15444 | |
| 15445 | mingw* | pw32* | os2*) |
| 15446 | # This hack is so that the source file can tell whether it is being |
| 15447 | # built for inclusion in a dll (and should export symbols for example). |
| 15448 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15449 | ;; |
| 15450 | |
| 15451 | hpux9* | hpux10* | hpux11*) |
| 15452 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15453 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15454 | # not for PA HP-UX. |
| 15455 | case "$host_cpu" in |
| 15456 | hppa*64*|ia64*) |
| 15457 | # +Z the default |
| 15458 | ;; |
| 15459 | *) |
| 15460 | lt_prog_compiler_pic_GCJ='+Z' |
| 15461 | ;; |
| 15462 | esac |
| 15463 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 15464 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 15465 | ;; |
| 15466 | |
| 15467 | irix5* | irix6* | nonstopux*) |
| 15468 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15469 | # PIC (with -KPIC) is the default. |
| 15470 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15471 | ;; |
| 15472 | |
| 15473 | newsos6) |
| 15474 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15475 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15476 | ;; |
| 15477 | |
| 15478 | linux*) |
| 15479 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15480 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15481 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15482 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15483 | lt_prog_compiler_static_GCJ='-static' |
| 15484 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15485 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15486 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15487 | # All Alpha code is PIC. |
| 15488 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15489 | ;; |
| 15490 | esac |
| 15491 | ;; |
| 15492 | |
| 15493 | osf3* | osf4* | osf5*) |
| 15494 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15495 | # All OSF/1 code is PIC. |
| 15496 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15497 | ;; |
| 15498 | |
| 15499 | sco3.2v5*) |
| 15500 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 15501 | lt_prog_compiler_static_GCJ='-dn' |
| 15502 | ;; |
| 15503 | |
| 15504 | solaris*) |
| 15505 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15506 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15507 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15508 | ;; |
| 15509 | |
| 15510 | sunos4*) |
| 15511 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 15512 | lt_prog_compiler_pic_GCJ='-PIC' |
| 15513 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15514 | ;; |
| 15515 | |
| 15516 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 15517 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15518 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15519 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15520 | ;; |
| 15521 | |
| 15522 | sysv4*MP*) |
| 15523 | if test -d /usr/nec ;then |
| 15524 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 15525 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15526 | fi |
| 15527 | ;; |
| 15528 | |
| 15529 | uts4*) |
| 15530 | lt_prog_compiler_pic_GCJ='-pic' |
| 15531 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15532 | ;; |
| 15533 | |
| 15534 | *) |
| 15535 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15536 | ;; |
| 15537 | esac |
| 15538 | fi |
| 15539 | |
| 15540 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 15541 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 15542 | |
| 15543 | # |
| 15544 | # Check to make sure the PIC flag actually works. |
| 15545 | # |
| 15546 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15547 | |
| 15548 | 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] | 15549 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 15550 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 15551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15552 | else |
| 15553 | lt_prog_compiler_pic_works_GCJ=no |
| 15554 | ac_outfile=conftest.$ac_objext |
| 15555 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15556 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 15557 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15558 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15559 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15560 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15561 | # The option is referenced via a variable to avoid confusing sed. |
| 15562 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15563 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15564 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15565 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15566 | (eval echo "\"\$as_me:15566: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15567 | (eval "$lt_compile" 2>conftest.err) |
| 15568 | ac_status=$? |
| 15569 | cat conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15570 | echo "$as_me:15570: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15571 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15572 | # The compiler can only warn and ignore the option if not recognized |
| 15573 | # So say no if there are warnings |
| 15574 | if test ! -s conftest.err; then |
| 15575 | lt_prog_compiler_pic_works_GCJ=yes |
| 15576 | fi |
| 15577 | fi |
| 15578 | $rm conftest* |
| 15579 | |
| 15580 | fi |
| 15581 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 15582 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 15583 | |
| 15584 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 15585 | case $lt_prog_compiler_pic_GCJ in |
| 15586 | "" | " "*) ;; |
| 15587 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 15588 | esac |
| 15589 | else |
| 15590 | lt_prog_compiler_pic_GCJ= |
| 15591 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15592 | fi |
| 15593 | |
| 15594 | fi |
| 15595 | case "$host_os" in |
| 15596 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15597 | *djgpp*) |
| 15598 | lt_prog_compiler_pic_GCJ= |
| 15599 | ;; |
| 15600 | *) |
| 15601 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 15602 | ;; |
| 15603 | esac |
| 15604 | |
| 15605 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15606 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 15607 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 15608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15609 | else |
| 15610 | lt_cv_prog_compiler_c_o_GCJ=no |
| 15611 | $rm -r conftest 2>/dev/null |
| 15612 | mkdir conftest |
| 15613 | cd conftest |
| 15614 | mkdir out |
| 15615 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15616 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15617 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15618 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15619 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15620 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15621 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15622 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15623 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15624 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15625 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15626 | (eval echo "\"\$as_me:15626: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15627 | (eval "$lt_compile" 2>out/conftest.err) |
| 15628 | ac_status=$? |
| 15629 | cat out/conftest.err >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15630 | echo "$as_me:15630: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15631 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15632 | then |
| 15633 | # The compiler can only warn and ignore the option if not recognized |
| 15634 | # So say no if there are warnings |
| 15635 | if test ! -s out/conftest.err; then |
| 15636 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 15637 | fi |
| 15638 | fi |
| 15639 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15640 | $rm conftest* |
| 15641 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15642 | # template instantiation |
| 15643 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15644 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15645 | cd .. |
| 15646 | rmdir conftest |
| 15647 | $rm conftest* |
| 15648 | |
| 15649 | fi |
| 15650 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 15651 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 15652 | |
| 15653 | |
| 15654 | hard_links="nottested" |
| 15655 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 15656 | # do not overwrite the value of need_locks provided by the user |
| 15657 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15658 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15659 | hard_links=yes |
| 15660 | $rm conftest* |
| 15661 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15662 | touch conftest.a |
| 15663 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15664 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15665 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15666 | echo "${ECHO_T}$hard_links" >&6 |
| 15667 | if test "$hard_links" = no; then |
| 15668 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15669 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15670 | need_locks=warn |
| 15671 | fi |
| 15672 | else |
| 15673 | need_locks=no |
| 15674 | fi |
| 15675 | |
| 15676 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15677 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15678 | |
| 15679 | runpath_var= |
| 15680 | allow_undefined_flag_GCJ= |
| 15681 | enable_shared_with_static_runtimes_GCJ=no |
| 15682 | archive_cmds_GCJ= |
| 15683 | archive_expsym_cmds_GCJ= |
| 15684 | old_archive_From_new_cmds_GCJ= |
| 15685 | old_archive_from_expsyms_cmds_GCJ= |
| 15686 | export_dynamic_flag_spec_GCJ= |
| 15687 | whole_archive_flag_spec_GCJ= |
| 15688 | thread_safe_flag_spec_GCJ= |
| 15689 | hardcode_libdir_flag_spec_GCJ= |
| 15690 | hardcode_libdir_flag_spec_ld_GCJ= |
| 15691 | hardcode_libdir_separator_GCJ= |
| 15692 | hardcode_direct_GCJ=no |
| 15693 | hardcode_minus_L_GCJ=no |
| 15694 | hardcode_shlibpath_var_GCJ=unsupported |
| 15695 | link_all_deplibs_GCJ=unknown |
| 15696 | hardcode_automatic_GCJ=no |
| 15697 | module_cmds_GCJ= |
| 15698 | module_expsym_cmds_GCJ= |
| 15699 | always_export_symbols_GCJ=no |
| 15700 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15701 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15702 | # included in the symbol list |
| 15703 | include_expsyms_GCJ= |
| 15704 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15705 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15706 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15707 | # as well as any symbol that contains `d'. |
| 15708 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 15709 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15710 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15711 | # the symbol is explicitly referenced. Since portable code cannot |
| 15712 | # rely on this symbol name, it's probably fine to never include it in |
| 15713 | # preloaded symbol tables. |
| 15714 | extract_expsyms_cmds= |
| 15715 | |
| 15716 | case $host_os in |
| 15717 | cygwin* | mingw* | pw32*) |
| 15718 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15719 | # When not using gcc, we currently assume that we are using |
| 15720 | # Microsoft Visual C++. |
| 15721 | if test "$GCC" != yes; then |
| 15722 | with_gnu_ld=no |
| 15723 | fi |
| 15724 | ;; |
| 15725 | openbsd*) |
| 15726 | with_gnu_ld=no |
| 15727 | ;; |
| 15728 | esac |
| 15729 | |
| 15730 | ld_shlibs_GCJ=yes |
| 15731 | if test "$with_gnu_ld" = yes; then |
| 15732 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15733 | wlarc='${wl}' |
| 15734 | |
| 15735 | # See if GNU ld supports shared libraries. |
| 15736 | case $host_os in |
| 15737 | aix3* | aix4* | aix5*) |
| 15738 | # On AIX/PPC, the GNU linker is very broken |
| 15739 | if test "$host_cpu" != ia64; then |
| 15740 | ld_shlibs_GCJ=no |
| 15741 | cat <<EOF 1>&2 |
| 15742 | |
| 15743 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15744 | *** to be unable to reliably create shared libraries on AIX. |
| 15745 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15746 | *** really care for shared libraries, you may want to modify your PATH |
| 15747 | *** so that a non-GNU linker is found, and then restart. |
| 15748 | |
| 15749 | EOF |
| 15750 | fi |
| 15751 | ;; |
| 15752 | |
| 15753 | amigaos*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15754 | 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] | 15755 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15756 | hardcode_minus_L_GCJ=yes |
| 15757 | |
| 15758 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15759 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15760 | # to version 4, is to share data among multiple programs linked |
| 15761 | # with the same dynamic library. Since this doesn't match the |
| 15762 | # behavior of shared libraries on other platforms, we can't use |
| 15763 | # them. |
| 15764 | ld_shlibs_GCJ=no |
| 15765 | ;; |
| 15766 | |
| 15767 | beos*) |
| 15768 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15769 | allow_undefined_flag_GCJ=unsupported |
| 15770 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15771 | # support --undefined. This deserves some investigation. FIXME |
| 15772 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15773 | else |
| 15774 | ld_shlibs_GCJ=no |
| 15775 | fi |
| 15776 | ;; |
| 15777 | |
| 15778 | cygwin* | mingw* | pw32*) |
| 15779 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 15780 | # as there is no search path for DLLs. |
| 15781 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15782 | allow_undefined_flag_GCJ=unsupported |
| 15783 | always_export_symbols_GCJ=no |
| 15784 | enable_shared_with_static_runtimes_GCJ=yes |
| 15785 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15786 | |
| 15787 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15788 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15789 | # If the export-symbols file already is a .def file (1st line |
| 15790 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15791 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15792 | cp $export_symbols $output_objdir/$soname.def; |
| 15793 | else |
| 15794 | echo EXPORTS > $output_objdir/$soname.def; |
| 15795 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15796 | fi;$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] | 15797 | else |
| 15798 | ld_shlibs=no |
| 15799 | fi |
| 15800 | ;; |
| 15801 | |
| 15802 | netbsd*) |
| 15803 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15804 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15805 | wlarc= |
| 15806 | else |
| 15807 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15808 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15809 | fi |
| 15810 | ;; |
| 15811 | |
| 15812 | solaris* | sysv5*) |
| 15813 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15814 | ld_shlibs_GCJ=no |
| 15815 | cat <<EOF 1>&2 |
| 15816 | |
| 15817 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15818 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15819 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15820 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15821 | *** your PATH or compiler configuration so that the native linker is |
| 15822 | *** used, and then restart. |
| 15823 | |
| 15824 | EOF |
| 15825 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15826 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15827 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15828 | else |
| 15829 | ld_shlibs_GCJ=no |
| 15830 | fi |
| 15831 | ;; |
| 15832 | |
| 15833 | sunos4*) |
| 15834 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15835 | wlarc= |
| 15836 | hardcode_direct_GCJ=yes |
| 15837 | hardcode_shlibpath_var_GCJ=no |
| 15838 | ;; |
| 15839 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15840 | linux*) |
| 15841 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15842 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15843 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 15844 | supports_anon_versioning=no |
| 15845 | case `$LD -v 2>/dev/null` in |
| 15846 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15847 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15848 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15849 | *\ 2.11.*) ;; # other 2.11 versions |
| 15850 | *) supports_anon_versioning=yes ;; |
| 15851 | esac |
| 15852 | if test $supports_anon_versioning = yes; then |
| 15853 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; |
| 15854 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15855 | else |
| 15856 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 15857 | fi |
| 15858 | else |
| 15859 | ld_shlibs_GCJ=no |
| 15860 | fi |
| 15861 | ;; |
| 15862 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15863 | *) |
| 15864 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15865 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15866 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15867 | else |
| 15868 | ld_shlibs_GCJ=no |
| 15869 | fi |
| 15870 | ;; |
| 15871 | esac |
| 15872 | |
| 15873 | if test "$ld_shlibs_GCJ" = yes; then |
| 15874 | runpath_var=LD_RUN_PATH |
| 15875 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 15876 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 15877 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15878 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15879 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15880 | else |
| 15881 | whole_archive_flag_spec_GCJ= |
| 15882 | fi |
| 15883 | fi |
| 15884 | else |
| 15885 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15886 | case $host_os in |
| 15887 | aix3*) |
| 15888 | allow_undefined_flag_GCJ=unsupported |
| 15889 | always_export_symbols_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15890 | 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] | 15891 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15892 | # are no directories specified by -L. |
| 15893 | hardcode_minus_L_GCJ=yes |
| 15894 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 15895 | # Neither direct hardcoding nor static linking is supported with a |
| 15896 | # broken collect2. |
| 15897 | hardcode_direct_GCJ=unsupported |
| 15898 | fi |
| 15899 | ;; |
| 15900 | |
| 15901 | aix4* | aix5*) |
| 15902 | if test "$host_cpu" = ia64; then |
| 15903 | # On IA64, the linker does run time linking by default, so we don't |
| 15904 | # have to do anything special. |
| 15905 | aix_use_runtimelinking=no |
| 15906 | exp_sym_flag='-Bexport' |
| 15907 | no_entry_flag="" |
| 15908 | else |
| 15909 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15910 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15911 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15912 | 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' |
| 15913 | else |
| 15914 | 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' |
| 15915 | fi |
| 15916 | aix_use_runtimelinking=no |
| 15917 | |
| 15918 | # Test if we are trying to use run time linking or normal |
| 15919 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15920 | # need to do runtime linking. |
| 15921 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15922 | for ld_flag in $LDFLAGS; do |
| 15923 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15924 | aix_use_runtimelinking=yes |
| 15925 | break |
| 15926 | fi |
| 15927 | done |
| 15928 | esac |
| 15929 | |
| 15930 | exp_sym_flag='-bexport' |
| 15931 | no_entry_flag='-bnoentry' |
| 15932 | fi |
| 15933 | |
| 15934 | # When large executables or shared objects are built, AIX ld can |
| 15935 | # have problems creating the table of contents. If linking a library |
| 15936 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15937 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15938 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15939 | |
| 15940 | archive_cmds_GCJ='' |
| 15941 | hardcode_direct_GCJ=yes |
| 15942 | hardcode_libdir_separator_GCJ=':' |
| 15943 | link_all_deplibs_GCJ=yes |
| 15944 | |
| 15945 | if test "$GCC" = yes; then |
| 15946 | case $host_os in aix4.012|aix4.012.*) |
| 15947 | # We only want to do this on AIX 4.2 and lower, the check |
| 15948 | # below for broken collect2 doesn't work under 4.3+ |
| 15949 | collect2name=`${CC} -print-prog-name=collect2` |
| 15950 | if test -f "$collect2name" && \ |
| 15951 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15952 | then |
| 15953 | # We have reworked collect2 |
| 15954 | hardcode_direct_GCJ=yes |
| 15955 | else |
| 15956 | # We have old collect2 |
| 15957 | hardcode_direct_GCJ=unsupported |
| 15958 | # It fails to find uninstalled libraries when the uninstalled |
| 15959 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15960 | # to unsupported forces relinking |
| 15961 | hardcode_minus_L_GCJ=yes |
| 15962 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15963 | hardcode_libdir_separator_GCJ= |
| 15964 | fi |
| 15965 | esac |
| 15966 | shared_flag='-shared' |
| 15967 | else |
| 15968 | # not using gcc |
| 15969 | if test "$host_cpu" = ia64; then |
| 15970 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15971 | # chokes on -Wl,-G. The following line is correct: |
| 15972 | shared_flag='-G' |
| 15973 | else |
| 15974 | if test "$aix_use_runtimelinking" = yes; then |
| 15975 | shared_flag='${wl}-G' |
| 15976 | else |
| 15977 | shared_flag='${wl}-bM:SRE' |
| 15978 | fi |
| 15979 | fi |
| 15980 | fi |
| 15981 | |
| 15982 | # It seems that -bexpall does not export symbols beginning with |
| 15983 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15984 | always_export_symbols_GCJ=yes |
| 15985 | if test "$aix_use_runtimelinking" = yes; then |
| 15986 | # Warning - without using the other runtime loading flags (-brtl), |
| 15987 | # -berok will link without error, but may produce a broken library. |
| 15988 | allow_undefined_flag_GCJ='-berok' |
| 15989 | # Determine the default libpath from the value encoded in an empty executable. |
| 15990 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15991 | /* confdefs.h. */ |
| 15992 | _ACEOF |
| 15993 | cat confdefs.h >>conftest.$ac_ext |
| 15994 | cat >>conftest.$ac_ext <<_ACEOF |
| 15995 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15996 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15997 | int |
| 15998 | main () |
| 15999 | { |
| 16000 | |
| 16001 | ; |
| 16002 | return 0; |
| 16003 | } |
| 16004 | _ACEOF |
| 16005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16007 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16008 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16010 | rm -f conftest.er1 |
| 16011 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16013 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16014 | { ac_try='test -z "$ac_c_werror_flag" |
| 16015 | || test ! -s conftest.err' |
| 16016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16017 | (eval $ac_try) 2>&5 |
| 16018 | ac_status=$? |
| 16019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16020 | (exit $ac_status); }; } && |
| 16021 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16023 | (eval $ac_try) 2>&5 |
| 16024 | ac_status=$? |
| 16025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16026 | (exit $ac_status); }; }; then |
| 16027 | |
| 16028 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16029 | }'` |
| 16030 | # Check for a 64-bit object if we didn't find anything. |
| 16031 | 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; } |
| 16032 | }'`; fi |
| 16033 | else |
| 16034 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16036 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16037 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16038 | rm -f conftest.err conftest.$ac_objext \ |
| 16039 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16040 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16041 | |
| 16042 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16043 | 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" |
| 16044 | else |
| 16045 | if test "$host_cpu" = ia64; then |
| 16046 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 16047 | allow_undefined_flag_GCJ="-z nodefs" |
| 16048 | 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" |
| 16049 | else |
| 16050 | # Determine the default libpath from the value encoded in an empty executable. |
| 16051 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16052 | /* confdefs.h. */ |
| 16053 | _ACEOF |
| 16054 | cat confdefs.h >>conftest.$ac_ext |
| 16055 | cat >>conftest.$ac_ext <<_ACEOF |
| 16056 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16057 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16058 | int |
| 16059 | main () |
| 16060 | { |
| 16061 | |
| 16062 | ; |
| 16063 | return 0; |
| 16064 | } |
| 16065 | _ACEOF |
| 16066 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16068 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16069 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16071 | rm -f conftest.er1 |
| 16072 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16074 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16075 | { ac_try='test -z "$ac_c_werror_flag" |
| 16076 | || test ! -s conftest.err' |
| 16077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16078 | (eval $ac_try) 2>&5 |
| 16079 | ac_status=$? |
| 16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16081 | (exit $ac_status); }; } && |
| 16082 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16084 | (eval $ac_try) 2>&5 |
| 16085 | ac_status=$? |
| 16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16087 | (exit $ac_status); }; }; then |
| 16088 | |
| 16089 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16090 | }'` |
| 16091 | # Check for a 64-bit object if we didn't find anything. |
| 16092 | 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; } |
| 16093 | }'`; fi |
| 16094 | else |
| 16095 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16097 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16098 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16099 | rm -f conftest.err conftest.$ac_objext \ |
| 16100 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16101 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16102 | |
| 16103 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16104 | # Warning - without using the other run time loading flags, |
| 16105 | # -berok will link without error, but may produce a broken library. |
| 16106 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 16107 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 16108 | # -bexpall does not export symbols beginning with underscore (_) |
| 16109 | always_export_symbols_GCJ=yes |
| 16110 | # Exported symbols can be pulled into shared objects from archives |
| 16111 | whole_archive_flag_spec_GCJ=' ' |
| 16112 | archive_cmds_need_lc_GCJ=yes |
| 16113 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16114 | 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] | 16115 | fi |
| 16116 | fi |
| 16117 | ;; |
| 16118 | |
| 16119 | amigaos*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16120 | 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] | 16121 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16122 | hardcode_minus_L_GCJ=yes |
| 16123 | # see comment about different semantics on the GNU ld section |
| 16124 | ld_shlibs_GCJ=no |
| 16125 | ;; |
| 16126 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16127 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16128 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 16129 | ;; |
| 16130 | |
| 16131 | cygwin* | mingw* | pw32*) |
| 16132 | # When not using gcc, we currently assume that we are using |
| 16133 | # Microsoft Visual C++. |
| 16134 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 16135 | # no search path for DLLs. |
| 16136 | hardcode_libdir_flag_spec_GCJ=' ' |
| 16137 | allow_undefined_flag_GCJ=unsupported |
| 16138 | # Tell ltmain to make .lib files, not .a files. |
| 16139 | libext=lib |
| 16140 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16141 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16142 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16143 | 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] | 16144 | # The linker will automatically build a .lib file if we build a DLL. |
| 16145 | old_archive_From_new_cmds_GCJ='true' |
| 16146 | # FIXME: Should let the user specify the lib program. |
| 16147 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 16148 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 16149 | enable_shared_with_static_runtimes_GCJ=yes |
| 16150 | ;; |
| 16151 | |
| 16152 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16153 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16154 | rhapsody* | darwin1.[012]) |
| 16155 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 16156 | ;; |
| 16157 | *) # Darwin 1.3 on |
| 16158 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 16159 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16160 | else |
| 16161 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 16162 | 10.[012]) |
| 16163 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16164 | ;; |
| 16165 | 10.*) |
| 16166 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 16167 | ;; |
| 16168 | esac |
| 16169 | fi |
| 16170 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16171 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16172 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16173 | hardcode_direct_GCJ=no |
| 16174 | hardcode_automatic_GCJ=yes |
| 16175 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16176 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16177 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16178 | if test "$GCC" = yes ; then |
| 16179 | output_verbose_link_cmd='echo' |
| 16180 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 16181 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16182 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 16183 | 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}' |
| 16184 | 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}' |
| 16185 | else |
| 16186 | case "$cc_basename" in |
| 16187 | xlc*) |
| 16188 | output_verbose_link_cmd='echo' |
| 16189 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 16190 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16191 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 16192 | 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}' |
| 16193 | 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}' |
| 16194 | ;; |
| 16195 | *) |
| 16196 | ld_shlibs_GCJ=no |
| 16197 | ;; |
| 16198 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16199 | fi |
| 16200 | ;; |
| 16201 | |
| 16202 | dgux*) |
| 16203 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16204 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16205 | hardcode_shlibpath_var_GCJ=no |
| 16206 | ;; |
| 16207 | |
| 16208 | freebsd1*) |
| 16209 | ld_shlibs_GCJ=no |
| 16210 | ;; |
| 16211 | |
| 16212 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 16213 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 16214 | # does not break anything, and helps significantly (at the cost of a little |
| 16215 | # extra space). |
| 16216 | freebsd2.2*) |
| 16217 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 16218 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16219 | hardcode_direct_GCJ=yes |
| 16220 | hardcode_shlibpath_var_GCJ=no |
| 16221 | ;; |
| 16222 | |
| 16223 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 16224 | freebsd2*) |
| 16225 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16226 | hardcode_direct_GCJ=yes |
| 16227 | hardcode_minus_L_GCJ=yes |
| 16228 | hardcode_shlibpath_var_GCJ=no |
| 16229 | ;; |
| 16230 | |
| 16231 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16232 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16233 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 16234 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16235 | hardcode_direct_GCJ=yes |
| 16236 | hardcode_shlibpath_var_GCJ=no |
| 16237 | ;; |
| 16238 | |
| 16239 | hpux9*) |
| 16240 | if test "$GCC" = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16241 | 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] | 16242 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16243 | 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] | 16244 | fi |
| 16245 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16246 | hardcode_libdir_separator_GCJ=: |
| 16247 | hardcode_direct_GCJ=yes |
| 16248 | |
| 16249 | # hardcode_minus_L: Not really in the search PATH, |
| 16250 | # but as the default location of the library. |
| 16251 | hardcode_minus_L_GCJ=yes |
| 16252 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16253 | ;; |
| 16254 | |
| 16255 | hpux10* | hpux11*) |
| 16256 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 16257 | case "$host_cpu" in |
| 16258 | hppa*64*|ia64*) |
| 16259 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16260 | ;; |
| 16261 | *) |
| 16262 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16263 | ;; |
| 16264 | esac |
| 16265 | else |
| 16266 | case "$host_cpu" in |
| 16267 | hppa*64*|ia64*) |
| 16268 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16269 | ;; |
| 16270 | *) |
| 16271 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 16272 | ;; |
| 16273 | esac |
| 16274 | fi |
| 16275 | if test "$with_gnu_ld" = no; then |
| 16276 | case "$host_cpu" in |
| 16277 | hppa*64*) |
| 16278 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16279 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 16280 | hardcode_libdir_separator_GCJ=: |
| 16281 | hardcode_direct_GCJ=no |
| 16282 | hardcode_shlibpath_var_GCJ=no |
| 16283 | ;; |
| 16284 | ia64*) |
| 16285 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16286 | hardcode_direct_GCJ=no |
| 16287 | hardcode_shlibpath_var_GCJ=no |
| 16288 | |
| 16289 | # hardcode_minus_L: Not really in the search PATH, |
| 16290 | # but as the default location of the library. |
| 16291 | hardcode_minus_L_GCJ=yes |
| 16292 | ;; |
| 16293 | *) |
| 16294 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16295 | hardcode_libdir_separator_GCJ=: |
| 16296 | hardcode_direct_GCJ=yes |
| 16297 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16298 | |
| 16299 | # hardcode_minus_L: Not really in the search PATH, |
| 16300 | # but as the default location of the library. |
| 16301 | hardcode_minus_L_GCJ=yes |
| 16302 | ;; |
| 16303 | esac |
| 16304 | fi |
| 16305 | ;; |
| 16306 | |
| 16307 | irix5* | irix6* | nonstopux*) |
| 16308 | if test "$GCC" = yes; then |
| 16309 | 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' |
| 16310 | else |
| 16311 | 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' |
| 16312 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 16313 | fi |
| 16314 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16315 | hardcode_libdir_separator_GCJ=: |
| 16316 | link_all_deplibs_GCJ=yes |
| 16317 | ;; |
| 16318 | |
| 16319 | netbsd*) |
| 16320 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16321 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16322 | else |
| 16323 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16324 | fi |
| 16325 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16326 | hardcode_direct_GCJ=yes |
| 16327 | hardcode_shlibpath_var_GCJ=no |
| 16328 | ;; |
| 16329 | |
| 16330 | newsos6) |
| 16331 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16332 | hardcode_direct_GCJ=yes |
| 16333 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16334 | hardcode_libdir_separator_GCJ=: |
| 16335 | hardcode_shlibpath_var_GCJ=no |
| 16336 | ;; |
| 16337 | |
| 16338 | openbsd*) |
| 16339 | hardcode_direct_GCJ=yes |
| 16340 | hardcode_shlibpath_var_GCJ=no |
| 16341 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16342 | 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] | 16343 | 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] | 16344 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16345 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16346 | else |
| 16347 | case $host_os in |
| 16348 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16349 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16350 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16351 | ;; |
| 16352 | *) |
| 16353 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16354 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16355 | ;; |
| 16356 | esac |
| 16357 | fi |
| 16358 | ;; |
| 16359 | |
| 16360 | os2*) |
| 16361 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16362 | hardcode_minus_L_GCJ=yes |
| 16363 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16364 | 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] | 16365 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16366 | ;; |
| 16367 | |
| 16368 | osf3*) |
| 16369 | if test "$GCC" = yes; then |
| 16370 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16371 | 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' |
| 16372 | else |
| 16373 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16374 | 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' |
| 16375 | fi |
| 16376 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16377 | hardcode_libdir_separator_GCJ=: |
| 16378 | ;; |
| 16379 | |
| 16380 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16381 | if test "$GCC" = yes; then |
| 16382 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16383 | 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' |
| 16384 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16385 | else |
| 16386 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16387 | 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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16388 | 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; $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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16389 | # Both c and cxx compiler support -rpath directly |
| 16390 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 16391 | fi |
| 16392 | hardcode_libdir_separator_GCJ=: |
| 16393 | ;; |
| 16394 | |
| 16395 | sco3.2v5*) |
| 16396 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16397 | hardcode_shlibpath_var_GCJ=no |
| 16398 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 16399 | runpath_var=LD_RUN_PATH |
| 16400 | hardcode_runpath_var=yes |
| 16401 | ;; |
| 16402 | |
| 16403 | solaris*) |
| 16404 | no_undefined_flag_GCJ=' -z text' |
| 16405 | if test "$GCC" = yes; then |
| 16406 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16407 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 16408 | else |
| 16409 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16410 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 16411 | fi |
| 16412 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16413 | hardcode_shlibpath_var_GCJ=no |
| 16414 | case $host_os in |
| 16415 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16416 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16417 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 16418 | esac |
| 16419 | link_all_deplibs_GCJ=yes |
| 16420 | ;; |
| 16421 | |
| 16422 | sunos4*) |
| 16423 | if test "x$host_vendor" = xsequent; then |
| 16424 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16425 | # files that make .init and .fini sections work. |
| 16426 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16427 | else |
| 16428 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16429 | fi |
| 16430 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16431 | hardcode_direct_GCJ=yes |
| 16432 | hardcode_minus_L_GCJ=yes |
| 16433 | hardcode_shlibpath_var_GCJ=no |
| 16434 | ;; |
| 16435 | |
| 16436 | sysv4) |
| 16437 | case $host_vendor in |
| 16438 | sni) |
| 16439 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16440 | hardcode_direct_GCJ=yes # is this really true??? |
| 16441 | ;; |
| 16442 | siemens) |
| 16443 | ## LD is ld it makes a PLAMLIB |
| 16444 | ## CC just makes a GrossModule. |
| 16445 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16446 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 16447 | hardcode_direct_GCJ=no |
| 16448 | ;; |
| 16449 | motorola) |
| 16450 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16451 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 16452 | ;; |
| 16453 | esac |
| 16454 | runpath_var='LD_RUN_PATH' |
| 16455 | hardcode_shlibpath_var_GCJ=no |
| 16456 | ;; |
| 16457 | |
| 16458 | sysv4.3*) |
| 16459 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16460 | hardcode_shlibpath_var_GCJ=no |
| 16461 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 16462 | ;; |
| 16463 | |
| 16464 | sysv4*MP*) |
| 16465 | if test -d /usr/nec; then |
| 16466 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16467 | hardcode_shlibpath_var_GCJ=no |
| 16468 | runpath_var=LD_RUN_PATH |
| 16469 | hardcode_runpath_var=yes |
| 16470 | ld_shlibs_GCJ=yes |
| 16471 | fi |
| 16472 | ;; |
| 16473 | |
| 16474 | sysv4.2uw2*) |
| 16475 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16476 | hardcode_direct_GCJ=yes |
| 16477 | hardcode_minus_L_GCJ=no |
| 16478 | hardcode_shlibpath_var_GCJ=no |
| 16479 | hardcode_runpath_var=yes |
| 16480 | runpath_var=LD_RUN_PATH |
| 16481 | ;; |
| 16482 | |
| 16483 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16484 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 16485 | if test "$GCC" = yes; then |
| 16486 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16487 | else |
| 16488 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16489 | fi |
| 16490 | runpath_var='LD_RUN_PATH' |
| 16491 | hardcode_shlibpath_var_GCJ=no |
| 16492 | ;; |
| 16493 | |
| 16494 | sysv5*) |
| 16495 | no_undefined_flag_GCJ=' -z text' |
| 16496 | # $CC -shared without GNU ld will not create a library from C++ |
| 16497 | # object files and a static libstdc++, better avoid it by now |
| 16498 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16499 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 16500 | hardcode_libdir_flag_spec_GCJ= |
| 16501 | hardcode_shlibpath_var_GCJ=no |
| 16502 | runpath_var='LD_RUN_PATH' |
| 16503 | ;; |
| 16504 | |
| 16505 | uts4*) |
| 16506 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16507 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16508 | hardcode_shlibpath_var_GCJ=no |
| 16509 | ;; |
| 16510 | |
| 16511 | *) |
| 16512 | ld_shlibs_GCJ=no |
| 16513 | ;; |
| 16514 | esac |
| 16515 | fi |
| 16516 | |
| 16517 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 16518 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 16519 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 16520 | |
| 16521 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16522 | if test "$GCC" = yes; then |
| 16523 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16524 | fi |
| 16525 | |
| 16526 | # |
| 16527 | # Do we need to explicitly link libc? |
| 16528 | # |
| 16529 | case "x$archive_cmds_need_lc_GCJ" in |
| 16530 | x|xyes) |
| 16531 | # Assume -lc should be added |
| 16532 | archive_cmds_need_lc_GCJ=yes |
| 16533 | |
| 16534 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16535 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16536 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16537 | # FIXME: we may have to deal with multi-command sequences. |
| 16538 | ;; |
| 16539 | '$CC '*) |
| 16540 | # Test whether the compiler implicitly links with -lc since on some |
| 16541 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16542 | # to ld, don't add -lc before -lgcc. |
| 16543 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16544 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16545 | $rm conftest* |
| 16546 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16547 | |
| 16548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16549 | (eval $ac_compile) 2>&5 |
| 16550 | ac_status=$? |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); } 2>conftest.err; then |
| 16553 | soname=conftest |
| 16554 | lib=conftest |
| 16555 | libobjs=conftest.$ac_objext |
| 16556 | deplibs= |
| 16557 | wl=$lt_prog_compiler_wl_GCJ |
| 16558 | compiler_flags=-v |
| 16559 | linker_flags=-v |
| 16560 | verstring= |
| 16561 | output_objdir=. |
| 16562 | libname=conftest |
| 16563 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 16564 | allow_undefined_flag_GCJ= |
| 16565 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16566 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16567 | ac_status=$? |
| 16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16569 | (exit $ac_status); } |
| 16570 | then |
| 16571 | archive_cmds_need_lc_GCJ=no |
| 16572 | else |
| 16573 | archive_cmds_need_lc_GCJ=yes |
| 16574 | fi |
| 16575 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 16576 | else |
| 16577 | cat conftest.err 1>&5 |
| 16578 | fi |
| 16579 | $rm conftest* |
| 16580 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 16581 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 16582 | ;; |
| 16583 | esac |
| 16584 | fi |
| 16585 | ;; |
| 16586 | esac |
| 16587 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16588 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16589 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16590 | library_names_spec= |
| 16591 | libname_spec='lib$name' |
| 16592 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16593 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16594 | postinstall_cmds= |
| 16595 | postuninstall_cmds= |
| 16596 | finish_cmds= |
| 16597 | finish_eval= |
| 16598 | shlibpath_var= |
| 16599 | shlibpath_overrides_runpath=unknown |
| 16600 | version_type=none |
| 16601 | dynamic_linker="$host_os ld.so" |
| 16602 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16603 | if test "$GCC" = yes; then |
| 16604 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16605 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16606 | # if the path contains ";" then we assume it to be the separator |
| 16607 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16608 | # assumed that no part of a normal pathname contains ";" but that should |
| 16609 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16610 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16611 | else |
| 16612 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16613 | fi |
| 16614 | else |
| 16615 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16616 | fi |
| 16617 | need_lib_prefix=unknown |
| 16618 | hardcode_into_libs=no |
| 16619 | |
| 16620 | # when you set need_version to no, make sure it does not cause -set_version |
| 16621 | # flags to be left without arguments |
| 16622 | need_version=unknown |
| 16623 | |
| 16624 | case $host_os in |
| 16625 | aix3*) |
| 16626 | version_type=linux |
| 16627 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16628 | shlibpath_var=LIBPATH |
| 16629 | |
| 16630 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16631 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16632 | ;; |
| 16633 | |
| 16634 | aix4* | aix5*) |
| 16635 | version_type=linux |
| 16636 | need_lib_prefix=no |
| 16637 | need_version=no |
| 16638 | hardcode_into_libs=yes |
| 16639 | if test "$host_cpu" = ia64; then |
| 16640 | # AIX 5 supports IA64 |
| 16641 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16642 | shlibpath_var=LD_LIBRARY_PATH |
| 16643 | else |
| 16644 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16645 | # for dependence libraries. The import file would start with |
| 16646 | # the line `#! .'. This would cause the generated library to |
| 16647 | # depend on `.', always an invalid library. This was fixed in |
| 16648 | # development snapshots of GCC prior to 3.0. |
| 16649 | case $host_os in |
| 16650 | aix4 | aix4.[01] | aix4.[01].*) |
| 16651 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16652 | echo ' yes ' |
| 16653 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16654 | : |
| 16655 | else |
| 16656 | can_build_shared=no |
| 16657 | fi |
| 16658 | ;; |
| 16659 | esac |
| 16660 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16661 | # soname into executable. Probably we can add versioning support to |
| 16662 | # collect2, so additional links can be useful in future. |
| 16663 | if test "$aix_use_runtimelinking" = yes; then |
| 16664 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16665 | # instead of lib<name>.a to let people know that these are not |
| 16666 | # typical AIX shared libraries. |
| 16667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16668 | else |
| 16669 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16670 | # and later when we are not doing run time linking. |
| 16671 | library_names_spec='${libname}${release}.a $libname.a' |
| 16672 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16673 | fi |
| 16674 | shlibpath_var=LIBPATH |
| 16675 | fi |
| 16676 | ;; |
| 16677 | |
| 16678 | amigaos*) |
| 16679 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16680 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16681 | 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] | 16682 | ;; |
| 16683 | |
| 16684 | beos*) |
| 16685 | library_names_spec='${libname}${shared_ext}' |
| 16686 | dynamic_linker="$host_os ld.so" |
| 16687 | shlibpath_var=LIBRARY_PATH |
| 16688 | ;; |
| 16689 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16690 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16691 | version_type=linux |
| 16692 | need_version=no |
| 16693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16694 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16695 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16696 | shlibpath_var=LD_LIBRARY_PATH |
| 16697 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16698 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16699 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16700 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16701 | # libtool to hard-code these into programs |
| 16702 | ;; |
| 16703 | |
| 16704 | cygwin* | mingw* | pw32*) |
| 16705 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16706 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16707 | need_version=no |
| 16708 | need_lib_prefix=no |
| 16709 | |
| 16710 | case $GCC,$host_os in |
| 16711 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16712 | library_names_spec='$libname.dll.a' |
| 16713 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16714 | postinstall_cmds='base_file=`basename \${file}`; |
| 16715 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; |
| 16716 | dldir=$destdir/`dirname \$dlpath`; |
| 16717 | test -d \$dldir || mkdir -p \$dldir; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16718 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16719 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; |
| 16720 | dlpath=$dir/\$dldll; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16721 | $rm \$dlpath' |
| 16722 | shlibpath_overrides_runpath=yes |
| 16723 | |
| 16724 | case $host_os in |
| 16725 | cygwin*) |
| 16726 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16727 | 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] | 16728 | 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] | 16729 | ;; |
| 16730 | mingw*) |
| 16731 | # MinGW DLLs use traditional 'lib' prefix |
| 16732 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16733 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16734 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16735 | # It is most probably a Windows format PATH printed by |
| 16736 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16737 | # path with ; separators, and with drive letters. We can handle the |
| 16738 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16739 | # especially as we might pass files found there to a mingw objdump, |
| 16740 | # which wouldn't understand a cygwinified path. Ahh. |
| 16741 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16742 | else |
| 16743 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16744 | fi |
| 16745 | ;; |
| 16746 | pw32*) |
| 16747 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16748 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16749 | ;; |
| 16750 | esac |
| 16751 | ;; |
| 16752 | |
| 16753 | *) |
| 16754 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16755 | ;; |
| 16756 | esac |
| 16757 | dynamic_linker='Win32 ld.exe' |
| 16758 | # FIXME: first we should search . and the directory the executable is in |
| 16759 | shlibpath_var=PATH |
| 16760 | ;; |
| 16761 | |
| 16762 | darwin* | rhapsody*) |
| 16763 | dynamic_linker="$host_os dyld" |
| 16764 | version_type=darwin |
| 16765 | need_lib_prefix=no |
| 16766 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16767 | 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] | 16768 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16769 | shlibpath_overrides_runpath=yes |
| 16770 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16771 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16772 | # 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] | 16773 | if test "$GCC" = yes; then |
| 16774 | 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"` |
| 16775 | else |
| 16776 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16777 | fi |
| 16778 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16779 | ;; |
| 16780 | |
| 16781 | dgux*) |
| 16782 | version_type=linux |
| 16783 | need_lib_prefix=no |
| 16784 | need_version=no |
| 16785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16786 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16787 | shlibpath_var=LD_LIBRARY_PATH |
| 16788 | ;; |
| 16789 | |
| 16790 | freebsd1*) |
| 16791 | dynamic_linker=no |
| 16792 | ;; |
| 16793 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16794 | kfreebsd*-gnu) |
| 16795 | version_type=linux |
| 16796 | need_lib_prefix=no |
| 16797 | need_version=no |
| 16798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16799 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16800 | shlibpath_var=LD_LIBRARY_PATH |
| 16801 | shlibpath_overrides_runpath=no |
| 16802 | hardcode_into_libs=yes |
| 16803 | dynamic_linker='GNU ld.so' |
| 16804 | ;; |
| 16805 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16806 | freebsd*) |
| 16807 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16808 | version_type=freebsd-$objformat |
| 16809 | case $version_type in |
| 16810 | freebsd-elf*) |
| 16811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16812 | need_version=no |
| 16813 | need_lib_prefix=no |
| 16814 | ;; |
| 16815 | freebsd-*) |
| 16816 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16817 | need_version=yes |
| 16818 | ;; |
| 16819 | esac |
| 16820 | shlibpath_var=LD_LIBRARY_PATH |
| 16821 | case $host_os in |
| 16822 | freebsd2*) |
| 16823 | shlibpath_overrides_runpath=yes |
| 16824 | ;; |
| 16825 | freebsd3.01* | freebsdelf3.01*) |
| 16826 | shlibpath_overrides_runpath=yes |
| 16827 | hardcode_into_libs=yes |
| 16828 | ;; |
| 16829 | *) # from 3.2 on |
| 16830 | shlibpath_overrides_runpath=no |
| 16831 | hardcode_into_libs=yes |
| 16832 | ;; |
| 16833 | esac |
| 16834 | ;; |
| 16835 | |
| 16836 | gnu*) |
| 16837 | version_type=linux |
| 16838 | need_lib_prefix=no |
| 16839 | need_version=no |
| 16840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16841 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16842 | shlibpath_var=LD_LIBRARY_PATH |
| 16843 | hardcode_into_libs=yes |
| 16844 | ;; |
| 16845 | |
| 16846 | hpux9* | hpux10* | hpux11*) |
| 16847 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16848 | # link against other versions. |
| 16849 | version_type=sunos |
| 16850 | need_lib_prefix=no |
| 16851 | need_version=no |
| 16852 | case "$host_cpu" in |
| 16853 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16854 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16855 | hardcode_into_libs=yes |
| 16856 | dynamic_linker="$host_os dld.so" |
| 16857 | shlibpath_var=LD_LIBRARY_PATH |
| 16858 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16860 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16861 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16862 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16863 | else |
| 16864 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16865 | fi |
| 16866 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16867 | ;; |
| 16868 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16869 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16870 | hardcode_into_libs=yes |
| 16871 | dynamic_linker="$host_os dld.sl" |
| 16872 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16873 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16875 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16876 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16877 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16878 | ;; |
| 16879 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16880 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16881 | dynamic_linker="$host_os dld.sl" |
| 16882 | shlibpath_var=SHLIB_PATH |
| 16883 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16885 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16886 | ;; |
| 16887 | esac |
| 16888 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16889 | postinstall_cmds='chmod 555 $lib' |
| 16890 | ;; |
| 16891 | |
| 16892 | irix5* | irix6* | nonstopux*) |
| 16893 | case $host_os in |
| 16894 | nonstopux*) version_type=nonstopux ;; |
| 16895 | *) |
| 16896 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16897 | version_type=linux |
| 16898 | else |
| 16899 | version_type=irix |
| 16900 | fi ;; |
| 16901 | esac |
| 16902 | need_lib_prefix=no |
| 16903 | need_version=no |
| 16904 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16906 | case $host_os in |
| 16907 | irix5* | nonstopux*) |
| 16908 | libsuff= shlibsuff= |
| 16909 | ;; |
| 16910 | *) |
| 16911 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16912 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16913 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16914 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16915 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16916 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16917 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16918 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16919 | esac |
| 16920 | ;; |
| 16921 | esac |
| 16922 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16923 | shlibpath_overrides_runpath=no |
| 16924 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16925 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16926 | hardcode_into_libs=yes |
| 16927 | ;; |
| 16928 | |
| 16929 | # No shared lib support for Linux oldld, aout, or coff. |
| 16930 | linux*oldld* | linux*aout* | linux*coff*) |
| 16931 | dynamic_linker=no |
| 16932 | ;; |
| 16933 | |
| 16934 | # This must be Linux ELF. |
| 16935 | linux*) |
| 16936 | version_type=linux |
| 16937 | need_lib_prefix=no |
| 16938 | need_version=no |
| 16939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16940 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16941 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16942 | shlibpath_var=LD_LIBRARY_PATH |
| 16943 | shlibpath_overrides_runpath=no |
| 16944 | # This implies no fast_install, which is unacceptable. |
| 16945 | # Some rework will be needed to allow for fast_install |
| 16946 | # before this can be enabled. |
| 16947 | hardcode_into_libs=yes |
| 16948 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16949 | # Append ld.so.conf contents to the search path |
| 16950 | if test -f /etc/ld.so.conf; then |
| 16951 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 16952 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16953 | fi |
| 16954 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16955 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16956 | # powerpc, because MkLinux only supported shared libraries with the |
| 16957 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16958 | # most powerpc-linux boxes support dynamic linking these days and |
| 16959 | # people can always --disable-shared, the test was removed, and we |
| 16960 | # assume the GNU/Linux dynamic linker is in use. |
| 16961 | dynamic_linker='GNU/Linux ld.so' |
| 16962 | ;; |
| 16963 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16964 | knetbsd*-gnu) |
| 16965 | version_type=linux |
| 16966 | need_lib_prefix=no |
| 16967 | need_version=no |
| 16968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16969 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16970 | shlibpath_var=LD_LIBRARY_PATH |
| 16971 | shlibpath_overrides_runpath=no |
| 16972 | hardcode_into_libs=yes |
| 16973 | dynamic_linker='GNU ld.so' |
| 16974 | ;; |
| 16975 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16976 | netbsd*) |
| 16977 | version_type=sunos |
| 16978 | need_lib_prefix=no |
| 16979 | need_version=no |
| 16980 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16982 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16983 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16984 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16985 | 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] | 16986 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16987 | dynamic_linker='NetBSD ld.elf_so' |
| 16988 | fi |
| 16989 | shlibpath_var=LD_LIBRARY_PATH |
| 16990 | shlibpath_overrides_runpath=yes |
| 16991 | hardcode_into_libs=yes |
| 16992 | ;; |
| 16993 | |
| 16994 | newsos6) |
| 16995 | version_type=linux |
| 16996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16997 | shlibpath_var=LD_LIBRARY_PATH |
| 16998 | shlibpath_overrides_runpath=yes |
| 16999 | ;; |
| 17000 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17001 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17002 | version_type=linux |
| 17003 | need_lib_prefix=no |
| 17004 | need_version=no |
| 17005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17006 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17007 | shlibpath_var=LD_LIBRARY_PATH |
| 17008 | shlibpath_overrides_runpath=yes |
| 17009 | ;; |
| 17010 | |
| 17011 | openbsd*) |
| 17012 | version_type=sunos |
| 17013 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17014 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17016 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17017 | shlibpath_var=LD_LIBRARY_PATH |
| 17018 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17019 | case $host_os in |
| 17020 | openbsd2.[89] | openbsd2.[89].*) |
| 17021 | shlibpath_overrides_runpath=no |
| 17022 | ;; |
| 17023 | *) |
| 17024 | shlibpath_overrides_runpath=yes |
| 17025 | ;; |
| 17026 | esac |
| 17027 | else |
| 17028 | shlibpath_overrides_runpath=yes |
| 17029 | fi |
| 17030 | ;; |
| 17031 | |
| 17032 | os2*) |
| 17033 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17034 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17035 | need_lib_prefix=no |
| 17036 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17037 | dynamic_linker='OS/2 ld.exe' |
| 17038 | shlibpath_var=LIBPATH |
| 17039 | ;; |
| 17040 | |
| 17041 | osf3* | osf4* | osf5*) |
| 17042 | version_type=osf |
| 17043 | need_lib_prefix=no |
| 17044 | need_version=no |
| 17045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17047 | shlibpath_var=LD_LIBRARY_PATH |
| 17048 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17049 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17050 | ;; |
| 17051 | |
| 17052 | sco3.2v5*) |
| 17053 | version_type=osf |
| 17054 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17056 | shlibpath_var=LD_LIBRARY_PATH |
| 17057 | ;; |
| 17058 | |
| 17059 | solaris*) |
| 17060 | version_type=linux |
| 17061 | need_lib_prefix=no |
| 17062 | need_version=no |
| 17063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17064 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17065 | shlibpath_var=LD_LIBRARY_PATH |
| 17066 | shlibpath_overrides_runpath=yes |
| 17067 | hardcode_into_libs=yes |
| 17068 | # ldd complains unless libraries are executable |
| 17069 | postinstall_cmds='chmod +x $lib' |
| 17070 | ;; |
| 17071 | |
| 17072 | sunos4*) |
| 17073 | version_type=sunos |
| 17074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17075 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17076 | shlibpath_var=LD_LIBRARY_PATH |
| 17077 | shlibpath_overrides_runpath=yes |
| 17078 | if test "$with_gnu_ld" = yes; then |
| 17079 | need_lib_prefix=no |
| 17080 | fi |
| 17081 | need_version=yes |
| 17082 | ;; |
| 17083 | |
| 17084 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17085 | version_type=linux |
| 17086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17087 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17088 | shlibpath_var=LD_LIBRARY_PATH |
| 17089 | case $host_vendor in |
| 17090 | sni) |
| 17091 | shlibpath_overrides_runpath=no |
| 17092 | need_lib_prefix=no |
| 17093 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17094 | runpath_var=LD_RUN_PATH |
| 17095 | ;; |
| 17096 | siemens) |
| 17097 | need_lib_prefix=no |
| 17098 | ;; |
| 17099 | motorola) |
| 17100 | need_lib_prefix=no |
| 17101 | need_version=no |
| 17102 | shlibpath_overrides_runpath=no |
| 17103 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17104 | ;; |
| 17105 | esac |
| 17106 | ;; |
| 17107 | |
| 17108 | sysv4*MP*) |
| 17109 | if test -d /usr/nec ;then |
| 17110 | version_type=linux |
| 17111 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17112 | soname_spec='$libname${shared_ext}.$major' |
| 17113 | shlibpath_var=LD_LIBRARY_PATH |
| 17114 | fi |
| 17115 | ;; |
| 17116 | |
| 17117 | uts4*) |
| 17118 | version_type=linux |
| 17119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17120 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17121 | shlibpath_var=LD_LIBRARY_PATH |
| 17122 | ;; |
| 17123 | |
| 17124 | *) |
| 17125 | dynamic_linker=no |
| 17126 | ;; |
| 17127 | esac |
| 17128 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17129 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17130 | test "$dynamic_linker" = no && can_build_shared=no |
| 17131 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17132 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17133 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17134 | hardcode_action_GCJ= |
| 17135 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 17136 | test -n "$runpath_var_GCJ" || \ |
| 17137 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 17138 | |
| 17139 | # We can hardcode non-existant directories. |
| 17140 | if test "$hardcode_direct_GCJ" != no && |
| 17141 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17142 | # have to relink, otherwise we might link with an installed library |
| 17143 | # when we should be linking with a yet-to-be-installed one |
| 17144 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 17145 | test "$hardcode_minus_L_GCJ" != no; then |
| 17146 | # Linking always hardcodes the temporary library directory. |
| 17147 | hardcode_action_GCJ=relink |
| 17148 | else |
| 17149 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17150 | hardcode_action_GCJ=immediate |
| 17151 | fi |
| 17152 | else |
| 17153 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17154 | # directories. |
| 17155 | hardcode_action_GCJ=unsupported |
| 17156 | fi |
| 17157 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 17158 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 17159 | |
| 17160 | if test "$hardcode_action_GCJ" = relink; then |
| 17161 | # Fast installation is not supported |
| 17162 | enable_fast_install=no |
| 17163 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17164 | test "$enable_shared" = no; then |
| 17165 | # Fast installation is not necessary |
| 17166 | enable_fast_install=needless |
| 17167 | fi |
| 17168 | |
| 17169 | striplib= |
| 17170 | old_striplib= |
| 17171 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17172 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 17173 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17174 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17175 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17176 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17177 | echo "${ECHO_T}yes" >&6 |
| 17178 | else |
| 17179 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17180 | case $host_os in |
| 17181 | darwin*) |
| 17182 | if test -n "$STRIP" ; then |
| 17183 | striplib="$STRIP -x" |
| 17184 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17185 | echo "${ECHO_T}yes" >&6 |
| 17186 | else |
| 17187 | echo "$as_me:$LINENO: result: no" >&5 |
| 17188 | echo "${ECHO_T}no" >&6 |
| 17189 | fi |
| 17190 | ;; |
| 17191 | *) |
| 17192 | echo "$as_me:$LINENO: result: no" >&5 |
| 17193 | echo "${ECHO_T}no" >&6 |
| 17194 | ;; |
| 17195 | esac |
| 17196 | fi |
| 17197 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17198 | if test "x$enable_dlopen" != xyes; then |
| 17199 | enable_dlopen=unknown |
| 17200 | enable_dlopen_self=unknown |
| 17201 | enable_dlopen_self_static=unknown |
| 17202 | else |
| 17203 | lt_cv_dlopen=no |
| 17204 | lt_cv_dlopen_libs= |
| 17205 | |
| 17206 | case $host_os in |
| 17207 | beos*) |
| 17208 | lt_cv_dlopen="load_add_on" |
| 17209 | lt_cv_dlopen_libs= |
| 17210 | lt_cv_dlopen_self=yes |
| 17211 | ;; |
| 17212 | |
| 17213 | mingw* | pw32*) |
| 17214 | lt_cv_dlopen="LoadLibrary" |
| 17215 | lt_cv_dlopen_libs= |
| 17216 | ;; |
| 17217 | |
| 17218 | cygwin*) |
| 17219 | lt_cv_dlopen="dlopen" |
| 17220 | lt_cv_dlopen_libs= |
| 17221 | ;; |
| 17222 | |
| 17223 | darwin*) |
| 17224 | # if libdl is installed we need to link against it |
| 17225 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17226 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17227 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17229 | else |
| 17230 | ac_check_lib_save_LIBS=$LIBS |
| 17231 | LIBS="-ldl $LIBS" |
| 17232 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17233 | /* confdefs.h. */ |
| 17234 | _ACEOF |
| 17235 | cat confdefs.h >>conftest.$ac_ext |
| 17236 | cat >>conftest.$ac_ext <<_ACEOF |
| 17237 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17238 | |
| 17239 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17240 | #ifdef __cplusplus |
| 17241 | extern "C" |
| 17242 | #endif |
| 17243 | /* We use char because int might match the return type of a gcc2 |
| 17244 | builtin and then its argument prototype would still apply. */ |
| 17245 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17246 | int |
| 17247 | main () |
| 17248 | { |
| 17249 | dlopen (); |
| 17250 | ; |
| 17251 | return 0; |
| 17252 | } |
| 17253 | _ACEOF |
| 17254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17256 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17257 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17259 | rm -f conftest.er1 |
| 17260 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17262 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17263 | { ac_try='test -z "$ac_c_werror_flag" |
| 17264 | || test ! -s conftest.err' |
| 17265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17266 | (eval $ac_try) 2>&5 |
| 17267 | ac_status=$? |
| 17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17269 | (exit $ac_status); }; } && |
| 17270 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17272 | (eval $ac_try) 2>&5 |
| 17273 | ac_status=$? |
| 17274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17275 | (exit $ac_status); }; }; then |
| 17276 | ac_cv_lib_dl_dlopen=yes |
| 17277 | else |
| 17278 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17280 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17281 | ac_cv_lib_dl_dlopen=no |
| 17282 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17283 | rm -f conftest.err conftest.$ac_objext \ |
| 17284 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17285 | LIBS=$ac_check_lib_save_LIBS |
| 17286 | fi |
| 17287 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17288 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17289 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17290 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17291 | else |
| 17292 | |
| 17293 | lt_cv_dlopen="dyld" |
| 17294 | lt_cv_dlopen_libs= |
| 17295 | lt_cv_dlopen_self=yes |
| 17296 | |
| 17297 | fi |
| 17298 | |
| 17299 | ;; |
| 17300 | |
| 17301 | *) |
| 17302 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17303 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 17304 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17306 | else |
| 17307 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17308 | /* confdefs.h. */ |
| 17309 | _ACEOF |
| 17310 | cat confdefs.h >>conftest.$ac_ext |
| 17311 | cat >>conftest.$ac_ext <<_ACEOF |
| 17312 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17313 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17315 | #define shl_load innocuous_shl_load |
| 17316 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17317 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17318 | which can conflict with char shl_load (); below. |
| 17319 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17320 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17321 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17322 | #ifdef __STDC__ |
| 17323 | # include <limits.h> |
| 17324 | #else |
| 17325 | # include <assert.h> |
| 17326 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17327 | |
| 17328 | #undef shl_load |
| 17329 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17330 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17331 | #ifdef __cplusplus |
| 17332 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17333 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17334 | #endif |
| 17335 | /* We use char because int might match the return type of a gcc2 |
| 17336 | builtin and then its argument prototype would still apply. */ |
| 17337 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17338 | /* The GNU C library defines this for functions which it implements |
| 17339 | to always fail with ENOSYS. Some functions are actually named |
| 17340 | something starting with __ and the normal name is an alias. */ |
| 17341 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 17342 | choke me |
| 17343 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17344 | char (*f) () = shl_load; |
| 17345 | #endif |
| 17346 | #ifdef __cplusplus |
| 17347 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17348 | #endif |
| 17349 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17350 | int |
| 17351 | main () |
| 17352 | { |
| 17353 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17354 | ; |
| 17355 | return 0; |
| 17356 | } |
| 17357 | _ACEOF |
| 17358 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17360 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17361 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17363 | rm -f conftest.er1 |
| 17364 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17366 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17367 | { ac_try='test -z "$ac_c_werror_flag" |
| 17368 | || test ! -s conftest.err' |
| 17369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17370 | (eval $ac_try) 2>&5 |
| 17371 | ac_status=$? |
| 17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17373 | (exit $ac_status); }; } && |
| 17374 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17376 | (eval $ac_try) 2>&5 |
| 17377 | ac_status=$? |
| 17378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17379 | (exit $ac_status); }; }; then |
| 17380 | ac_cv_func_shl_load=yes |
| 17381 | else |
| 17382 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17384 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17385 | ac_cv_func_shl_load=no |
| 17386 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17387 | rm -f conftest.err conftest.$ac_objext \ |
| 17388 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17389 | fi |
| 17390 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17391 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 17392 | if test $ac_cv_func_shl_load = yes; then |
| 17393 | lt_cv_dlopen="shl_load" |
| 17394 | else |
| 17395 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17396 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 17397 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17399 | else |
| 17400 | ac_check_lib_save_LIBS=$LIBS |
| 17401 | LIBS="-ldld $LIBS" |
| 17402 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17403 | /* confdefs.h. */ |
| 17404 | _ACEOF |
| 17405 | cat confdefs.h >>conftest.$ac_ext |
| 17406 | cat >>conftest.$ac_ext <<_ACEOF |
| 17407 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17408 | |
| 17409 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17410 | #ifdef __cplusplus |
| 17411 | extern "C" |
| 17412 | #endif |
| 17413 | /* We use char because int might match the return type of a gcc2 |
| 17414 | builtin and then its argument prototype would still apply. */ |
| 17415 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17416 | int |
| 17417 | main () |
| 17418 | { |
| 17419 | shl_load (); |
| 17420 | ; |
| 17421 | return 0; |
| 17422 | } |
| 17423 | _ACEOF |
| 17424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17426 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17427 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17429 | rm -f conftest.er1 |
| 17430 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17432 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17433 | { ac_try='test -z "$ac_c_werror_flag" |
| 17434 | || test ! -s conftest.err' |
| 17435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17436 | (eval $ac_try) 2>&5 |
| 17437 | ac_status=$? |
| 17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17439 | (exit $ac_status); }; } && |
| 17440 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17442 | (eval $ac_try) 2>&5 |
| 17443 | ac_status=$? |
| 17444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17445 | (exit $ac_status); }; }; then |
| 17446 | ac_cv_lib_dld_shl_load=yes |
| 17447 | else |
| 17448 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17450 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17451 | ac_cv_lib_dld_shl_load=no |
| 17452 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17453 | rm -f conftest.err conftest.$ac_objext \ |
| 17454 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17455 | LIBS=$ac_check_lib_save_LIBS |
| 17456 | fi |
| 17457 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17458 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 17459 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17460 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17461 | else |
| 17462 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17463 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 17464 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17466 | else |
| 17467 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17468 | /* confdefs.h. */ |
| 17469 | _ACEOF |
| 17470 | cat confdefs.h >>conftest.$ac_ext |
| 17471 | cat >>conftest.$ac_ext <<_ACEOF |
| 17472 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17473 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17474 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17475 | #define dlopen innocuous_dlopen |
| 17476 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17477 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17478 | which can conflict with char dlopen (); below. |
| 17479 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17480 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17481 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17482 | #ifdef __STDC__ |
| 17483 | # include <limits.h> |
| 17484 | #else |
| 17485 | # include <assert.h> |
| 17486 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17487 | |
| 17488 | #undef dlopen |
| 17489 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17490 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17491 | #ifdef __cplusplus |
| 17492 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17493 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17494 | #endif |
| 17495 | /* We use char because int might match the return type of a gcc2 |
| 17496 | builtin and then its argument prototype would still apply. */ |
| 17497 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17498 | /* The GNU C library defines this for functions which it implements |
| 17499 | to always fail with ENOSYS. Some functions are actually named |
| 17500 | something starting with __ and the normal name is an alias. */ |
| 17501 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 17502 | choke me |
| 17503 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17504 | char (*f) () = dlopen; |
| 17505 | #endif |
| 17506 | #ifdef __cplusplus |
| 17507 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17508 | #endif |
| 17509 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17510 | int |
| 17511 | main () |
| 17512 | { |
| 17513 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17514 | ; |
| 17515 | return 0; |
| 17516 | } |
| 17517 | _ACEOF |
| 17518 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17520 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17521 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17523 | rm -f conftest.er1 |
| 17524 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17526 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17527 | { ac_try='test -z "$ac_c_werror_flag" |
| 17528 | || test ! -s conftest.err' |
| 17529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17530 | (eval $ac_try) 2>&5 |
| 17531 | ac_status=$? |
| 17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17533 | (exit $ac_status); }; } && |
| 17534 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17536 | (eval $ac_try) 2>&5 |
| 17537 | ac_status=$? |
| 17538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17539 | (exit $ac_status); }; }; then |
| 17540 | ac_cv_func_dlopen=yes |
| 17541 | else |
| 17542 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17544 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17545 | ac_cv_func_dlopen=no |
| 17546 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17547 | rm -f conftest.err conftest.$ac_objext \ |
| 17548 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17549 | fi |
| 17550 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17551 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 17552 | if test $ac_cv_func_dlopen = yes; then |
| 17553 | lt_cv_dlopen="dlopen" |
| 17554 | else |
| 17555 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17556 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17557 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17559 | else |
| 17560 | ac_check_lib_save_LIBS=$LIBS |
| 17561 | LIBS="-ldl $LIBS" |
| 17562 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17563 | /* confdefs.h. */ |
| 17564 | _ACEOF |
| 17565 | cat confdefs.h >>conftest.$ac_ext |
| 17566 | cat >>conftest.$ac_ext <<_ACEOF |
| 17567 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17568 | |
| 17569 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17570 | #ifdef __cplusplus |
| 17571 | extern "C" |
| 17572 | #endif |
| 17573 | /* We use char because int might match the return type of a gcc2 |
| 17574 | builtin and then its argument prototype would still apply. */ |
| 17575 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17576 | int |
| 17577 | main () |
| 17578 | { |
| 17579 | dlopen (); |
| 17580 | ; |
| 17581 | return 0; |
| 17582 | } |
| 17583 | _ACEOF |
| 17584 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17586 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17587 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17589 | rm -f conftest.er1 |
| 17590 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17592 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17593 | { ac_try='test -z "$ac_c_werror_flag" |
| 17594 | || test ! -s conftest.err' |
| 17595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17596 | (eval $ac_try) 2>&5 |
| 17597 | ac_status=$? |
| 17598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17599 | (exit $ac_status); }; } && |
| 17600 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17602 | (eval $ac_try) 2>&5 |
| 17603 | ac_status=$? |
| 17604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17605 | (exit $ac_status); }; }; then |
| 17606 | ac_cv_lib_dl_dlopen=yes |
| 17607 | else |
| 17608 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17610 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17611 | ac_cv_lib_dl_dlopen=no |
| 17612 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17613 | rm -f conftest.err conftest.$ac_objext \ |
| 17614 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17615 | LIBS=$ac_check_lib_save_LIBS |
| 17616 | fi |
| 17617 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17618 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17619 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17620 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17621 | else |
| 17622 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17623 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17624 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17626 | else |
| 17627 | ac_check_lib_save_LIBS=$LIBS |
| 17628 | LIBS="-lsvld $LIBS" |
| 17629 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17630 | /* confdefs.h. */ |
| 17631 | _ACEOF |
| 17632 | cat confdefs.h >>conftest.$ac_ext |
| 17633 | cat >>conftest.$ac_ext <<_ACEOF |
| 17634 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17635 | |
| 17636 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17637 | #ifdef __cplusplus |
| 17638 | extern "C" |
| 17639 | #endif |
| 17640 | /* We use char because int might match the return type of a gcc2 |
| 17641 | builtin and then its argument prototype would still apply. */ |
| 17642 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17643 | int |
| 17644 | main () |
| 17645 | { |
| 17646 | dlopen (); |
| 17647 | ; |
| 17648 | return 0; |
| 17649 | } |
| 17650 | _ACEOF |
| 17651 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17653 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17654 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17656 | rm -f conftest.er1 |
| 17657 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17659 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17660 | { ac_try='test -z "$ac_c_werror_flag" |
| 17661 | || test ! -s conftest.err' |
| 17662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17663 | (eval $ac_try) 2>&5 |
| 17664 | ac_status=$? |
| 17665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17666 | (exit $ac_status); }; } && |
| 17667 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17669 | (eval $ac_try) 2>&5 |
| 17670 | ac_status=$? |
| 17671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17672 | (exit $ac_status); }; }; then |
| 17673 | ac_cv_lib_svld_dlopen=yes |
| 17674 | else |
| 17675 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17677 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17678 | ac_cv_lib_svld_dlopen=no |
| 17679 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17680 | rm -f conftest.err conftest.$ac_objext \ |
| 17681 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17682 | LIBS=$ac_check_lib_save_LIBS |
| 17683 | fi |
| 17684 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17685 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17686 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17687 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17688 | else |
| 17689 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17690 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17691 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17693 | else |
| 17694 | ac_check_lib_save_LIBS=$LIBS |
| 17695 | LIBS="-ldld $LIBS" |
| 17696 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17697 | /* confdefs.h. */ |
| 17698 | _ACEOF |
| 17699 | cat confdefs.h >>conftest.$ac_ext |
| 17700 | cat >>conftest.$ac_ext <<_ACEOF |
| 17701 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17702 | |
| 17703 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17704 | #ifdef __cplusplus |
| 17705 | extern "C" |
| 17706 | #endif |
| 17707 | /* We use char because int might match the return type of a gcc2 |
| 17708 | builtin and then its argument prototype would still apply. */ |
| 17709 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17710 | int |
| 17711 | main () |
| 17712 | { |
| 17713 | dld_link (); |
| 17714 | ; |
| 17715 | return 0; |
| 17716 | } |
| 17717 | _ACEOF |
| 17718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17720 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17721 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17723 | rm -f conftest.er1 |
| 17724 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17726 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17727 | { ac_try='test -z "$ac_c_werror_flag" |
| 17728 | || test ! -s conftest.err' |
| 17729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17730 | (eval $ac_try) 2>&5 |
| 17731 | ac_status=$? |
| 17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17733 | (exit $ac_status); }; } && |
| 17734 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17736 | (eval $ac_try) 2>&5 |
| 17737 | ac_status=$? |
| 17738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17739 | (exit $ac_status); }; }; then |
| 17740 | ac_cv_lib_dld_dld_link=yes |
| 17741 | else |
| 17742 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17744 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17745 | ac_cv_lib_dld_dld_link=no |
| 17746 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17747 | rm -f conftest.err conftest.$ac_objext \ |
| 17748 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17749 | LIBS=$ac_check_lib_save_LIBS |
| 17750 | fi |
| 17751 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17752 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17753 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17754 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17755 | fi |
| 17756 | |
| 17757 | |
| 17758 | fi |
| 17759 | |
| 17760 | |
| 17761 | fi |
| 17762 | |
| 17763 | |
| 17764 | fi |
| 17765 | |
| 17766 | |
| 17767 | fi |
| 17768 | |
| 17769 | |
| 17770 | fi |
| 17771 | |
| 17772 | ;; |
| 17773 | esac |
| 17774 | |
| 17775 | if test "x$lt_cv_dlopen" != xno; then |
| 17776 | enable_dlopen=yes |
| 17777 | else |
| 17778 | enable_dlopen=no |
| 17779 | fi |
| 17780 | |
| 17781 | case $lt_cv_dlopen in |
| 17782 | dlopen) |
| 17783 | save_CPPFLAGS="$CPPFLAGS" |
| 17784 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17785 | |
| 17786 | save_LDFLAGS="$LDFLAGS" |
| 17787 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17788 | |
| 17789 | save_LIBS="$LIBS" |
| 17790 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17791 | |
| 17792 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17793 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17794 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17796 | else |
| 17797 | if test "$cross_compiling" = yes; then : |
| 17798 | lt_cv_dlopen_self=cross |
| 17799 | else |
| 17800 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17801 | lt_status=$lt_dlunknown |
| 17802 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17803 | #line 17803 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17804 | #include "confdefs.h" |
| 17805 | |
| 17806 | #if HAVE_DLFCN_H |
| 17807 | #include <dlfcn.h> |
| 17808 | #endif |
| 17809 | |
| 17810 | #include <stdio.h> |
| 17811 | |
| 17812 | #ifdef RTLD_GLOBAL |
| 17813 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17814 | #else |
| 17815 | # ifdef DL_GLOBAL |
| 17816 | # define LT_DLGLOBAL DL_GLOBAL |
| 17817 | # else |
| 17818 | # define LT_DLGLOBAL 0 |
| 17819 | # endif |
| 17820 | #endif |
| 17821 | |
| 17822 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17823 | find out it does not work in some platform. */ |
| 17824 | #ifndef LT_DLLAZY_OR_NOW |
| 17825 | # ifdef RTLD_LAZY |
| 17826 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17827 | # else |
| 17828 | # ifdef DL_LAZY |
| 17829 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17830 | # else |
| 17831 | # ifdef RTLD_NOW |
| 17832 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17833 | # else |
| 17834 | # ifdef DL_NOW |
| 17835 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17836 | # else |
| 17837 | # define LT_DLLAZY_OR_NOW 0 |
| 17838 | # endif |
| 17839 | # endif |
| 17840 | # endif |
| 17841 | # endif |
| 17842 | #endif |
| 17843 | |
| 17844 | #ifdef __cplusplus |
| 17845 | extern "C" void exit (int); |
| 17846 | #endif |
| 17847 | |
| 17848 | void fnord() { int i=42;} |
| 17849 | int main () |
| 17850 | { |
| 17851 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17852 | int status = $lt_dlunknown; |
| 17853 | |
| 17854 | if (self) |
| 17855 | { |
| 17856 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17857 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17858 | /* dlclose (self); */ |
| 17859 | } |
| 17860 | |
| 17861 | exit (status); |
| 17862 | } |
| 17863 | EOF |
| 17864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17865 | (eval $ac_link) 2>&5 |
| 17866 | ac_status=$? |
| 17867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17868 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17869 | (./conftest; exit; ) 2>/dev/null |
| 17870 | lt_status=$? |
| 17871 | case x$lt_status in |
| 17872 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17873 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 17874 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 17875 | esac |
| 17876 | else : |
| 17877 | # compilation failed |
| 17878 | lt_cv_dlopen_self=no |
| 17879 | fi |
| 17880 | fi |
| 17881 | rm -fr conftest* |
| 17882 | |
| 17883 | |
| 17884 | fi |
| 17885 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17886 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 17887 | |
| 17888 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 17889 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 17890 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17891 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 17892 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17894 | else |
| 17895 | if test "$cross_compiling" = yes; then : |
| 17896 | lt_cv_dlopen_self_static=cross |
| 17897 | else |
| 17898 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17899 | lt_status=$lt_dlunknown |
| 17900 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17901 | #line 17901 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17902 | #include "confdefs.h" |
| 17903 | |
| 17904 | #if HAVE_DLFCN_H |
| 17905 | #include <dlfcn.h> |
| 17906 | #endif |
| 17907 | |
| 17908 | #include <stdio.h> |
| 17909 | |
| 17910 | #ifdef RTLD_GLOBAL |
| 17911 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17912 | #else |
| 17913 | # ifdef DL_GLOBAL |
| 17914 | # define LT_DLGLOBAL DL_GLOBAL |
| 17915 | # else |
| 17916 | # define LT_DLGLOBAL 0 |
| 17917 | # endif |
| 17918 | #endif |
| 17919 | |
| 17920 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17921 | find out it does not work in some platform. */ |
| 17922 | #ifndef LT_DLLAZY_OR_NOW |
| 17923 | # ifdef RTLD_LAZY |
| 17924 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17925 | # else |
| 17926 | # ifdef DL_LAZY |
| 17927 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17928 | # else |
| 17929 | # ifdef RTLD_NOW |
| 17930 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17931 | # else |
| 17932 | # ifdef DL_NOW |
| 17933 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17934 | # else |
| 17935 | # define LT_DLLAZY_OR_NOW 0 |
| 17936 | # endif |
| 17937 | # endif |
| 17938 | # endif |
| 17939 | # endif |
| 17940 | #endif |
| 17941 | |
| 17942 | #ifdef __cplusplus |
| 17943 | extern "C" void exit (int); |
| 17944 | #endif |
| 17945 | |
| 17946 | void fnord() { int i=42;} |
| 17947 | int main () |
| 17948 | { |
| 17949 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17950 | int status = $lt_dlunknown; |
| 17951 | |
| 17952 | if (self) |
| 17953 | { |
| 17954 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17955 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17956 | /* dlclose (self); */ |
| 17957 | } |
| 17958 | |
| 17959 | exit (status); |
| 17960 | } |
| 17961 | EOF |
| 17962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17963 | (eval $ac_link) 2>&5 |
| 17964 | ac_status=$? |
| 17965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17966 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17967 | (./conftest; exit; ) 2>/dev/null |
| 17968 | lt_status=$? |
| 17969 | case x$lt_status in |
| 17970 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17971 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17972 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 17973 | esac |
| 17974 | else : |
| 17975 | # compilation failed |
| 17976 | lt_cv_dlopen_self_static=no |
| 17977 | fi |
| 17978 | fi |
| 17979 | rm -fr conftest* |
| 17980 | |
| 17981 | |
| 17982 | fi |
| 17983 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17984 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 17985 | fi |
| 17986 | |
| 17987 | CPPFLAGS="$save_CPPFLAGS" |
| 17988 | LDFLAGS="$save_LDFLAGS" |
| 17989 | LIBS="$save_LIBS" |
| 17990 | ;; |
| 17991 | esac |
| 17992 | |
| 17993 | case $lt_cv_dlopen_self in |
| 17994 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17995 | *) enable_dlopen_self=unknown ;; |
| 17996 | esac |
| 17997 | |
| 17998 | case $lt_cv_dlopen_self_static in |
| 17999 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18000 | *) enable_dlopen_self_static=unknown ;; |
| 18001 | esac |
| 18002 | fi |
| 18003 | |
| 18004 | |
| 18005 | # The else clause should only fire when bootstrapping the |
| 18006 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18007 | # with your package, and you will get complaints that there are |
| 18008 | # no rules to generate ltmain.sh. |
| 18009 | if test -f "$ltmain"; then |
| 18010 | # See if we are running on zsh, and set the options which allow our commands through |
| 18011 | # without removal of \ escapes. |
| 18012 | if test -n "${ZSH_VERSION+set}" ; then |
| 18013 | setopt NO_GLOB_SUBST |
| 18014 | fi |
| 18015 | # Now quote all the things that may contain metacharacters while being |
| 18016 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18017 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18018 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18019 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18020 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18021 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18022 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18023 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18024 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18025 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18026 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18027 | compiler_GCJ \ |
| 18028 | CC_GCJ \ |
| 18029 | LD_GCJ \ |
| 18030 | lt_prog_compiler_wl_GCJ \ |
| 18031 | lt_prog_compiler_pic_GCJ \ |
| 18032 | lt_prog_compiler_static_GCJ \ |
| 18033 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18034 | export_dynamic_flag_spec_GCJ \ |
| 18035 | thread_safe_flag_spec_GCJ \ |
| 18036 | whole_archive_flag_spec_GCJ \ |
| 18037 | enable_shared_with_static_runtimes_GCJ \ |
| 18038 | old_archive_cmds_GCJ \ |
| 18039 | old_archive_from_new_cmds_GCJ \ |
| 18040 | predep_objects_GCJ \ |
| 18041 | postdep_objects_GCJ \ |
| 18042 | predeps_GCJ \ |
| 18043 | postdeps_GCJ \ |
| 18044 | compiler_lib_search_path_GCJ \ |
| 18045 | archive_cmds_GCJ \ |
| 18046 | archive_expsym_cmds_GCJ \ |
| 18047 | postinstall_cmds_GCJ \ |
| 18048 | postuninstall_cmds_GCJ \ |
| 18049 | old_archive_from_expsyms_cmds_GCJ \ |
| 18050 | allow_undefined_flag_GCJ \ |
| 18051 | no_undefined_flag_GCJ \ |
| 18052 | export_symbols_cmds_GCJ \ |
| 18053 | hardcode_libdir_flag_spec_GCJ \ |
| 18054 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18055 | hardcode_libdir_separator_GCJ \ |
| 18056 | hardcode_automatic_GCJ \ |
| 18057 | module_cmds_GCJ \ |
| 18058 | module_expsym_cmds_GCJ \ |
| 18059 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18060 | exclude_expsyms_GCJ \ |
| 18061 | include_expsyms_GCJ; do |
| 18062 | |
| 18063 | case $var in |
| 18064 | old_archive_cmds_GCJ | \ |
| 18065 | old_archive_from_new_cmds_GCJ | \ |
| 18066 | archive_cmds_GCJ | \ |
| 18067 | archive_expsym_cmds_GCJ | \ |
| 18068 | module_cmds_GCJ | \ |
| 18069 | module_expsym_cmds_GCJ | \ |
| 18070 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18071 | export_symbols_cmds_GCJ | \ |
| 18072 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18073 | postinstall_cmds | postuninstall_cmds | \ |
| 18074 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18075 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18076 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18077 | 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] | 18078 | ;; |
| 18079 | *) |
| 18080 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18081 | ;; |
| 18082 | esac |
| 18083 | done |
| 18084 | |
| 18085 | case $lt_echo in |
| 18086 | *'\$0 --fallback-echo"') |
| 18087 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18088 | ;; |
| 18089 | esac |
| 18090 | |
| 18091 | cfgfile="$ofile" |
| 18092 | |
| 18093 | cat <<__EOF__ >> "$cfgfile" |
| 18094 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18095 | |
| 18096 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18097 | |
| 18098 | # Shell to use when invoking shell scripts. |
| 18099 | SHELL=$lt_SHELL |
| 18100 | |
| 18101 | # Whether or not to build shared libraries. |
| 18102 | build_libtool_libs=$enable_shared |
| 18103 | |
| 18104 | # Whether or not to build static libraries. |
| 18105 | build_old_libs=$enable_static |
| 18106 | |
| 18107 | # Whether or not to add -lc for building shared libraries. |
| 18108 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18109 | |
| 18110 | # Whether or not to disallow shared libs when runtime libs are static |
| 18111 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18112 | |
| 18113 | # Whether or not to optimize for fast installation. |
| 18114 | fast_install=$enable_fast_install |
| 18115 | |
| 18116 | # The host system. |
| 18117 | host_alias=$host_alias |
| 18118 | host=$host |
| 18119 | |
| 18120 | # An echo program that does not interpret backslashes. |
| 18121 | echo=$lt_echo |
| 18122 | |
| 18123 | # The archiver. |
| 18124 | AR=$lt_AR |
| 18125 | AR_FLAGS=$lt_AR_FLAGS |
| 18126 | |
| 18127 | # A C compiler. |
| 18128 | LTCC=$lt_LTCC |
| 18129 | |
| 18130 | # A language-specific compiler. |
| 18131 | CC=$lt_compiler_GCJ |
| 18132 | |
| 18133 | # Is the compiler the GNU C compiler? |
| 18134 | with_gcc=$GCC_GCJ |
| 18135 | |
| 18136 | # An ERE matcher. |
| 18137 | EGREP=$lt_EGREP |
| 18138 | |
| 18139 | # The linker used to build libraries. |
| 18140 | LD=$lt_LD_GCJ |
| 18141 | |
| 18142 | # Whether we need hard or soft links. |
| 18143 | LN_S=$lt_LN_S |
| 18144 | |
| 18145 | # A BSD-compatible nm program. |
| 18146 | NM=$lt_NM |
| 18147 | |
| 18148 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18149 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18150 | |
| 18151 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18152 | MAGIC_CMD=$MAGIC_CMD |
| 18153 | |
| 18154 | # Used on cygwin: DLL creation program. |
| 18155 | DLLTOOL="$DLLTOOL" |
| 18156 | |
| 18157 | # Used on cygwin: object dumper. |
| 18158 | OBJDUMP="$OBJDUMP" |
| 18159 | |
| 18160 | # Used on cygwin: assembler. |
| 18161 | AS="$AS" |
| 18162 | |
| 18163 | # The name of the directory that contains temporary libtool files. |
| 18164 | objdir=$objdir |
| 18165 | |
| 18166 | # How to create reloadable object files. |
| 18167 | reload_flag=$lt_reload_flag |
| 18168 | reload_cmds=$lt_reload_cmds |
| 18169 | |
| 18170 | # How to pass a linker flag through the compiler. |
| 18171 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18172 | |
| 18173 | # Object file suffix (normally "o"). |
| 18174 | objext="$ac_objext" |
| 18175 | |
| 18176 | # Old archive suffix (normally "a"). |
| 18177 | libext="$libext" |
| 18178 | |
| 18179 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18180 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18181 | |
| 18182 | # Executable file suffix (normally ""). |
| 18183 | exeext="$exeext" |
| 18184 | |
| 18185 | # Additional compiler flags for building library objects. |
| 18186 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18187 | pic_mode=$pic_mode |
| 18188 | |
| 18189 | # What is the maximum length of a command? |
| 18190 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18191 | |
| 18192 | # Does compiler simultaneously support -c and -o options? |
| 18193 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18194 | |
| 18195 | # Must we lock files when doing compilation ? |
| 18196 | need_locks=$lt_need_locks |
| 18197 | |
| 18198 | # Do we need the lib prefix for modules? |
| 18199 | need_lib_prefix=$need_lib_prefix |
| 18200 | |
| 18201 | # Do we need a version for libraries? |
| 18202 | need_version=$need_version |
| 18203 | |
| 18204 | # Whether dlopen is supported. |
| 18205 | dlopen_support=$enable_dlopen |
| 18206 | |
| 18207 | # Whether dlopen of programs is supported. |
| 18208 | dlopen_self=$enable_dlopen_self |
| 18209 | |
| 18210 | # Whether dlopen of statically linked programs is supported. |
| 18211 | dlopen_self_static=$enable_dlopen_self_static |
| 18212 | |
| 18213 | # Compiler flag to prevent dynamic linking. |
| 18214 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 18215 | |
| 18216 | # Compiler flag to turn off builtin functions. |
| 18217 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 18218 | |
| 18219 | # Compiler flag to allow reflexive dlopens. |
| 18220 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 18221 | |
| 18222 | # Compiler flag to generate shared objects directly from archives. |
| 18223 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 18224 | |
| 18225 | # Compiler flag to generate thread-safe objects. |
| 18226 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 18227 | |
| 18228 | # Library versioning type. |
| 18229 | version_type=$version_type |
| 18230 | |
| 18231 | # Format of library name prefix. |
| 18232 | libname_spec=$lt_libname_spec |
| 18233 | |
| 18234 | # List of archive names. First name is the real one, the rest are links. |
| 18235 | # The last name is the one that the linker finds with -lNAME. |
| 18236 | library_names_spec=$lt_library_names_spec |
| 18237 | |
| 18238 | # The coded name of the library, if different from the real name. |
| 18239 | soname_spec=$lt_soname_spec |
| 18240 | |
| 18241 | # Commands used to build and install an old-style archive. |
| 18242 | RANLIB=$lt_RANLIB |
| 18243 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 18244 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18245 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18246 | |
| 18247 | # Create an old-style archive from a shared archive. |
| 18248 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 18249 | |
| 18250 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18251 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 18252 | |
| 18253 | # Commands used to build and install a shared archive. |
| 18254 | archive_cmds=$lt_archive_cmds_GCJ |
| 18255 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 18256 | postinstall_cmds=$lt_postinstall_cmds |
| 18257 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18258 | |
| 18259 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18260 | module_cmds=$lt_module_cmds_GCJ |
| 18261 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 18262 | |
| 18263 | # Commands to strip libraries. |
| 18264 | old_striplib=$lt_old_striplib |
| 18265 | striplib=$lt_striplib |
| 18266 | |
| 18267 | # Dependencies to place before the objects being linked to create a |
| 18268 | # shared library. |
| 18269 | predep_objects=$lt_predep_objects_GCJ |
| 18270 | |
| 18271 | # Dependencies to place after the objects being linked to create a |
| 18272 | # shared library. |
| 18273 | postdep_objects=$lt_postdep_objects_GCJ |
| 18274 | |
| 18275 | # Dependencies to place before the objects being linked to create a |
| 18276 | # shared library. |
| 18277 | predeps=$lt_predeps_GCJ |
| 18278 | |
| 18279 | # Dependencies to place after the objects being linked to create a |
| 18280 | # shared library. |
| 18281 | postdeps=$lt_postdeps_GCJ |
| 18282 | |
| 18283 | # The library search path used internally by the compiler when linking |
| 18284 | # a shared library. |
| 18285 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 18286 | |
| 18287 | # Method to check whether dependent libraries are shared objects. |
| 18288 | deplibs_check_method=$lt_deplibs_check_method |
| 18289 | |
| 18290 | # Command to use when deplibs_check_method == file_magic. |
| 18291 | file_magic_cmd=$lt_file_magic_cmd |
| 18292 | |
| 18293 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18294 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 18295 | |
| 18296 | # Flag that forces no undefined symbols. |
| 18297 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 18298 | |
| 18299 | # Commands used to finish a libtool library installation in a directory. |
| 18300 | finish_cmds=$lt_finish_cmds |
| 18301 | |
| 18302 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18303 | finish_eval=$lt_finish_eval |
| 18304 | |
| 18305 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18306 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18307 | |
| 18308 | # Transform the output of nm in a proper C declaration |
| 18309 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18310 | |
| 18311 | # Transform the output of nm in a C name address pair |
| 18312 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18313 | |
| 18314 | # This is the shared library runtime path variable. |
| 18315 | runpath_var=$runpath_var |
| 18316 | |
| 18317 | # This is the shared library path variable. |
| 18318 | shlibpath_var=$shlibpath_var |
| 18319 | |
| 18320 | # Is shlibpath searched before the hard-coded library search path? |
| 18321 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18322 | |
| 18323 | # How to hardcode a shared library path into an executable. |
| 18324 | hardcode_action=$hardcode_action_GCJ |
| 18325 | |
| 18326 | # Whether we should hardcode library paths into libraries. |
| 18327 | hardcode_into_libs=$hardcode_into_libs |
| 18328 | |
| 18329 | # Flag to hardcode \$libdir into a binary during linking. |
| 18330 | # This must work even if \$libdir does not exist. |
| 18331 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 18332 | |
| 18333 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18334 | # a binary during linking. This must work even if \$libdir does |
| 18335 | # not exist. |
| 18336 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 18337 | |
| 18338 | # Whether we need a single -rpath flag with a separated argument. |
| 18339 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 18340 | |
| 18341 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18342 | # resulting binary. |
| 18343 | hardcode_direct=$hardcode_direct_GCJ |
| 18344 | |
| 18345 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18346 | # resulting binary. |
| 18347 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 18348 | |
| 18349 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18350 | # the resulting binary. |
| 18351 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 18352 | |
| 18353 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18354 | # and all subsequent libraries and executables linked against it. |
| 18355 | hardcode_automatic=$hardcode_automatic_GCJ |
| 18356 | |
| 18357 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18358 | # restored at relink time. |
| 18359 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18360 | |
| 18361 | # Whether libtool must link a program against all its dependency libraries. |
| 18362 | link_all_deplibs=$link_all_deplibs_GCJ |
| 18363 | |
| 18364 | # Compile-time system search path for libraries |
| 18365 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18366 | |
| 18367 | # Run-time system search path for libraries |
| 18368 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18369 | |
| 18370 | # Fix the shell variable \$srcfile for the compiler. |
| 18371 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 18372 | |
| 18373 | # Set to yes if exported symbols are required. |
| 18374 | always_export_symbols=$always_export_symbols_GCJ |
| 18375 | |
| 18376 | # The commands to list exported symbols. |
| 18377 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 18378 | |
| 18379 | # The commands to extract the exported symbol list from a shared archive. |
| 18380 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18381 | |
| 18382 | # Symbols that should not be listed in the preloaded symbols. |
| 18383 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 18384 | |
| 18385 | # Symbols that must always be exported. |
| 18386 | include_expsyms=$lt_include_expsyms_GCJ |
| 18387 | |
| 18388 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18389 | |
| 18390 | __EOF__ |
| 18391 | |
| 18392 | |
| 18393 | else |
| 18394 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18395 | # `config.status --recheck' to rerun these tests and create the |
| 18396 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18397 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18398 | if test -f "$ltmain_in"; then |
| 18399 | test -f Makefile && make "$ltmain" |
| 18400 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18401 | fi |
| 18402 | |
| 18403 | |
| 18404 | ac_ext=c |
| 18405 | ac_cpp='$CPP $CPPFLAGS' |
| 18406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18409 | |
| 18410 | CC="$lt_save_CC" |
| 18411 | |
| 18412 | else |
| 18413 | tagname="" |
| 18414 | fi |
| 18415 | ;; |
| 18416 | |
| 18417 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18418 | ac_ext=c |
| 18419 | ac_cpp='$CPP $CPPFLAGS' |
| 18420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18423 | |
| 18424 | |
| 18425 | # Source file extension for RC test sources. |
| 18426 | ac_ext=rc |
| 18427 | |
| 18428 | # Object file extension for compiled RC test sources. |
| 18429 | objext=o |
| 18430 | objext_RC=$objext |
| 18431 | |
| 18432 | # Code to be used in simple compile tests |
| 18433 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 18434 | |
| 18435 | # Code to be used in simple link tests |
| 18436 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 18437 | |
| 18438 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18439 | |
| 18440 | # If no C compiler was specified, use CC. |
| 18441 | LTCC=${LTCC-"$CC"} |
| 18442 | |
| 18443 | # Allow CC to be a program name with arguments. |
| 18444 | compiler=$CC |
| 18445 | |
| 18446 | |
| 18447 | # Allow CC to be a program name with arguments. |
| 18448 | lt_save_CC="$CC" |
| 18449 | CC=${RC-"windres"} |
| 18450 | compiler=$CC |
| 18451 | compiler_RC=$CC |
| 18452 | lt_cv_prog_compiler_c_o_RC=yes |
| 18453 | |
| 18454 | # The else clause should only fire when bootstrapping the |
| 18455 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18456 | # with your package, and you will get complaints that there are |
| 18457 | # no rules to generate ltmain.sh. |
| 18458 | if test -f "$ltmain"; then |
| 18459 | # See if we are running on zsh, and set the options which allow our commands through |
| 18460 | # without removal of \ escapes. |
| 18461 | if test -n "${ZSH_VERSION+set}" ; then |
| 18462 | setopt NO_GLOB_SUBST |
| 18463 | fi |
| 18464 | # Now quote all the things that may contain metacharacters while being |
| 18465 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18466 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18467 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18468 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18469 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18470 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18471 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18472 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18473 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18474 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18475 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18476 | compiler_RC \ |
| 18477 | CC_RC \ |
| 18478 | LD_RC \ |
| 18479 | lt_prog_compiler_wl_RC \ |
| 18480 | lt_prog_compiler_pic_RC \ |
| 18481 | lt_prog_compiler_static_RC \ |
| 18482 | lt_prog_compiler_no_builtin_flag_RC \ |
| 18483 | export_dynamic_flag_spec_RC \ |
| 18484 | thread_safe_flag_spec_RC \ |
| 18485 | whole_archive_flag_spec_RC \ |
| 18486 | enable_shared_with_static_runtimes_RC \ |
| 18487 | old_archive_cmds_RC \ |
| 18488 | old_archive_from_new_cmds_RC \ |
| 18489 | predep_objects_RC \ |
| 18490 | postdep_objects_RC \ |
| 18491 | predeps_RC \ |
| 18492 | postdeps_RC \ |
| 18493 | compiler_lib_search_path_RC \ |
| 18494 | archive_cmds_RC \ |
| 18495 | archive_expsym_cmds_RC \ |
| 18496 | postinstall_cmds_RC \ |
| 18497 | postuninstall_cmds_RC \ |
| 18498 | old_archive_from_expsyms_cmds_RC \ |
| 18499 | allow_undefined_flag_RC \ |
| 18500 | no_undefined_flag_RC \ |
| 18501 | export_symbols_cmds_RC \ |
| 18502 | hardcode_libdir_flag_spec_RC \ |
| 18503 | hardcode_libdir_flag_spec_ld_RC \ |
| 18504 | hardcode_libdir_separator_RC \ |
| 18505 | hardcode_automatic_RC \ |
| 18506 | module_cmds_RC \ |
| 18507 | module_expsym_cmds_RC \ |
| 18508 | lt_cv_prog_compiler_c_o_RC \ |
| 18509 | exclude_expsyms_RC \ |
| 18510 | include_expsyms_RC; do |
| 18511 | |
| 18512 | case $var in |
| 18513 | old_archive_cmds_RC | \ |
| 18514 | old_archive_from_new_cmds_RC | \ |
| 18515 | archive_cmds_RC | \ |
| 18516 | archive_expsym_cmds_RC | \ |
| 18517 | module_cmds_RC | \ |
| 18518 | module_expsym_cmds_RC | \ |
| 18519 | old_archive_from_expsyms_cmds_RC | \ |
| 18520 | export_symbols_cmds_RC | \ |
| 18521 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18522 | postinstall_cmds | postuninstall_cmds | \ |
| 18523 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18524 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18525 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18526 | 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] | 18527 | ;; |
| 18528 | *) |
| 18529 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18530 | ;; |
| 18531 | esac |
| 18532 | done |
| 18533 | |
| 18534 | case $lt_echo in |
| 18535 | *'\$0 --fallback-echo"') |
| 18536 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18537 | ;; |
| 18538 | esac |
| 18539 | |
| 18540 | cfgfile="$ofile" |
| 18541 | |
| 18542 | cat <<__EOF__ >> "$cfgfile" |
| 18543 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18544 | |
| 18545 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18546 | |
| 18547 | # Shell to use when invoking shell scripts. |
| 18548 | SHELL=$lt_SHELL |
| 18549 | |
| 18550 | # Whether or not to build shared libraries. |
| 18551 | build_libtool_libs=$enable_shared |
| 18552 | |
| 18553 | # Whether or not to build static libraries. |
| 18554 | build_old_libs=$enable_static |
| 18555 | |
| 18556 | # Whether or not to add -lc for building shared libraries. |
| 18557 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 18558 | |
| 18559 | # Whether or not to disallow shared libs when runtime libs are static |
| 18560 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 18561 | |
| 18562 | # Whether or not to optimize for fast installation. |
| 18563 | fast_install=$enable_fast_install |
| 18564 | |
| 18565 | # The host system. |
| 18566 | host_alias=$host_alias |
| 18567 | host=$host |
| 18568 | |
| 18569 | # An echo program that does not interpret backslashes. |
| 18570 | echo=$lt_echo |
| 18571 | |
| 18572 | # The archiver. |
| 18573 | AR=$lt_AR |
| 18574 | AR_FLAGS=$lt_AR_FLAGS |
| 18575 | |
| 18576 | # A C compiler. |
| 18577 | LTCC=$lt_LTCC |
| 18578 | |
| 18579 | # A language-specific compiler. |
| 18580 | CC=$lt_compiler_RC |
| 18581 | |
| 18582 | # Is the compiler the GNU C compiler? |
| 18583 | with_gcc=$GCC_RC |
| 18584 | |
| 18585 | # An ERE matcher. |
| 18586 | EGREP=$lt_EGREP |
| 18587 | |
| 18588 | # The linker used to build libraries. |
| 18589 | LD=$lt_LD_RC |
| 18590 | |
| 18591 | # Whether we need hard or soft links. |
| 18592 | LN_S=$lt_LN_S |
| 18593 | |
| 18594 | # A BSD-compatible nm program. |
| 18595 | NM=$lt_NM |
| 18596 | |
| 18597 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18598 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18599 | |
| 18600 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18601 | MAGIC_CMD=$MAGIC_CMD |
| 18602 | |
| 18603 | # Used on cygwin: DLL creation program. |
| 18604 | DLLTOOL="$DLLTOOL" |
| 18605 | |
| 18606 | # Used on cygwin: object dumper. |
| 18607 | OBJDUMP="$OBJDUMP" |
| 18608 | |
| 18609 | # Used on cygwin: assembler. |
| 18610 | AS="$AS" |
| 18611 | |
| 18612 | # The name of the directory that contains temporary libtool files. |
| 18613 | objdir=$objdir |
| 18614 | |
| 18615 | # How to create reloadable object files. |
| 18616 | reload_flag=$lt_reload_flag |
| 18617 | reload_cmds=$lt_reload_cmds |
| 18618 | |
| 18619 | # How to pass a linker flag through the compiler. |
| 18620 | wl=$lt_lt_prog_compiler_wl_RC |
| 18621 | |
| 18622 | # Object file suffix (normally "o"). |
| 18623 | objext="$ac_objext" |
| 18624 | |
| 18625 | # Old archive suffix (normally "a"). |
| 18626 | libext="$libext" |
| 18627 | |
| 18628 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18629 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18630 | |
| 18631 | # Executable file suffix (normally ""). |
| 18632 | exeext="$exeext" |
| 18633 | |
| 18634 | # Additional compiler flags for building library objects. |
| 18635 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18636 | pic_mode=$pic_mode |
| 18637 | |
| 18638 | # What is the maximum length of a command? |
| 18639 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18640 | |
| 18641 | # Does compiler simultaneously support -c and -o options? |
| 18642 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18643 | |
| 18644 | # Must we lock files when doing compilation ? |
| 18645 | need_locks=$lt_need_locks |
| 18646 | |
| 18647 | # Do we need the lib prefix for modules? |
| 18648 | need_lib_prefix=$need_lib_prefix |
| 18649 | |
| 18650 | # Do we need a version for libraries? |
| 18651 | need_version=$need_version |
| 18652 | |
| 18653 | # Whether dlopen is supported. |
| 18654 | dlopen_support=$enable_dlopen |
| 18655 | |
| 18656 | # Whether dlopen of programs is supported. |
| 18657 | dlopen_self=$enable_dlopen_self |
| 18658 | |
| 18659 | # Whether dlopen of statically linked programs is supported. |
| 18660 | dlopen_self_static=$enable_dlopen_self_static |
| 18661 | |
| 18662 | # Compiler flag to prevent dynamic linking. |
| 18663 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18664 | |
| 18665 | # Compiler flag to turn off builtin functions. |
| 18666 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18667 | |
| 18668 | # Compiler flag to allow reflexive dlopens. |
| 18669 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 18670 | |
| 18671 | # Compiler flag to generate shared objects directly from archives. |
| 18672 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 18673 | |
| 18674 | # Compiler flag to generate thread-safe objects. |
| 18675 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 18676 | |
| 18677 | # Library versioning type. |
| 18678 | version_type=$version_type |
| 18679 | |
| 18680 | # Format of library name prefix. |
| 18681 | libname_spec=$lt_libname_spec |
| 18682 | |
| 18683 | # List of archive names. First name is the real one, the rest are links. |
| 18684 | # The last name is the one that the linker finds with -lNAME. |
| 18685 | library_names_spec=$lt_library_names_spec |
| 18686 | |
| 18687 | # The coded name of the library, if different from the real name. |
| 18688 | soname_spec=$lt_soname_spec |
| 18689 | |
| 18690 | # Commands used to build and install an old-style archive. |
| 18691 | RANLIB=$lt_RANLIB |
| 18692 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 18693 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18694 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18695 | |
| 18696 | # Create an old-style archive from a shared archive. |
| 18697 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 18698 | |
| 18699 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18700 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 18701 | |
| 18702 | # Commands used to build and install a shared archive. |
| 18703 | archive_cmds=$lt_archive_cmds_RC |
| 18704 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 18705 | postinstall_cmds=$lt_postinstall_cmds |
| 18706 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18707 | |
| 18708 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18709 | module_cmds=$lt_module_cmds_RC |
| 18710 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 18711 | |
| 18712 | # Commands to strip libraries. |
| 18713 | old_striplib=$lt_old_striplib |
| 18714 | striplib=$lt_striplib |
| 18715 | |
| 18716 | # Dependencies to place before the objects being linked to create a |
| 18717 | # shared library. |
| 18718 | predep_objects=$lt_predep_objects_RC |
| 18719 | |
| 18720 | # Dependencies to place after the objects being linked to create a |
| 18721 | # shared library. |
| 18722 | postdep_objects=$lt_postdep_objects_RC |
| 18723 | |
| 18724 | # Dependencies to place before the objects being linked to create a |
| 18725 | # shared library. |
| 18726 | predeps=$lt_predeps_RC |
| 18727 | |
| 18728 | # Dependencies to place after the objects being linked to create a |
| 18729 | # shared library. |
| 18730 | postdeps=$lt_postdeps_RC |
| 18731 | |
| 18732 | # The library search path used internally by the compiler when linking |
| 18733 | # a shared library. |
| 18734 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 18735 | |
| 18736 | # Method to check whether dependent libraries are shared objects. |
| 18737 | deplibs_check_method=$lt_deplibs_check_method |
| 18738 | |
| 18739 | # Command to use when deplibs_check_method == file_magic. |
| 18740 | file_magic_cmd=$lt_file_magic_cmd |
| 18741 | |
| 18742 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18743 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 18744 | |
| 18745 | # Flag that forces no undefined symbols. |
| 18746 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 18747 | |
| 18748 | # Commands used to finish a libtool library installation in a directory. |
| 18749 | finish_cmds=$lt_finish_cmds |
| 18750 | |
| 18751 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18752 | finish_eval=$lt_finish_eval |
| 18753 | |
| 18754 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18755 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18756 | |
| 18757 | # Transform the output of nm in a proper C declaration |
| 18758 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18759 | |
| 18760 | # Transform the output of nm in a C name address pair |
| 18761 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18762 | |
| 18763 | # This is the shared library runtime path variable. |
| 18764 | runpath_var=$runpath_var |
| 18765 | |
| 18766 | # This is the shared library path variable. |
| 18767 | shlibpath_var=$shlibpath_var |
| 18768 | |
| 18769 | # Is shlibpath searched before the hard-coded library search path? |
| 18770 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18771 | |
| 18772 | # How to hardcode a shared library path into an executable. |
| 18773 | hardcode_action=$hardcode_action_RC |
| 18774 | |
| 18775 | # Whether we should hardcode library paths into libraries. |
| 18776 | hardcode_into_libs=$hardcode_into_libs |
| 18777 | |
| 18778 | # Flag to hardcode \$libdir into a binary during linking. |
| 18779 | # This must work even if \$libdir does not exist. |
| 18780 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 18781 | |
| 18782 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18783 | # a binary during linking. This must work even if \$libdir does |
| 18784 | # not exist. |
| 18785 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 18786 | |
| 18787 | # Whether we need a single -rpath flag with a separated argument. |
| 18788 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 18789 | |
| 18790 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18791 | # resulting binary. |
| 18792 | hardcode_direct=$hardcode_direct_RC |
| 18793 | |
| 18794 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18795 | # resulting binary. |
| 18796 | hardcode_minus_L=$hardcode_minus_L_RC |
| 18797 | |
| 18798 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18799 | # the resulting binary. |
| 18800 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 18801 | |
| 18802 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18803 | # and all subsequent libraries and executables linked against it. |
| 18804 | hardcode_automatic=$hardcode_automatic_RC |
| 18805 | |
| 18806 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18807 | # restored at relink time. |
| 18808 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18809 | |
| 18810 | # Whether libtool must link a program against all its dependency libraries. |
| 18811 | link_all_deplibs=$link_all_deplibs_RC |
| 18812 | |
| 18813 | # Compile-time system search path for libraries |
| 18814 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18815 | |
| 18816 | # Run-time system search path for libraries |
| 18817 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18818 | |
| 18819 | # Fix the shell variable \$srcfile for the compiler. |
| 18820 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 18821 | |
| 18822 | # Set to yes if exported symbols are required. |
| 18823 | always_export_symbols=$always_export_symbols_RC |
| 18824 | |
| 18825 | # The commands to list exported symbols. |
| 18826 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 18827 | |
| 18828 | # The commands to extract the exported symbol list from a shared archive. |
| 18829 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18830 | |
| 18831 | # Symbols that should not be listed in the preloaded symbols. |
| 18832 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18833 | |
| 18834 | # Symbols that must always be exported. |
| 18835 | include_expsyms=$lt_include_expsyms_RC |
| 18836 | |
| 18837 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18838 | |
| 18839 | __EOF__ |
| 18840 | |
| 18841 | |
| 18842 | else |
| 18843 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18844 | # `config.status --recheck' to rerun these tests and create the |
| 18845 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18846 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18847 | if test -f "$ltmain_in"; then |
| 18848 | test -f Makefile && make "$ltmain" |
| 18849 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18850 | fi |
| 18851 | |
| 18852 | |
| 18853 | ac_ext=c |
| 18854 | ac_cpp='$CPP $CPPFLAGS' |
| 18855 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18856 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18857 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18858 | |
| 18859 | CC="$lt_save_CC" |
| 18860 | |
| 18861 | ;; |
| 18862 | |
| 18863 | *) |
| 18864 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 18865 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 18866 | { (exit 1); exit 1; }; } |
| 18867 | ;; |
| 18868 | esac |
| 18869 | |
| 18870 | # Append the new tag name to the list of available tags. |
| 18871 | if test -n "$tagname" ; then |
| 18872 | available_tags="$available_tags $tagname" |
| 18873 | fi |
| 18874 | fi |
| 18875 | done |
| 18876 | IFS="$lt_save_ifs" |
| 18877 | |
| 18878 | # Now substitute the updated list of available tags. |
| 18879 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 18880 | mv "${ofile}T" "$ofile" |
| 18881 | chmod +x "$ofile" |
| 18882 | else |
| 18883 | rm -f "${ofile}T" |
| 18884 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 18885 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 18886 | { (exit 1); exit 1; }; } |
| 18887 | fi |
| 18888 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18889 | |
| 18890 | |
| 18891 | |
| 18892 | # This can be used to rebuild libtool when needed |
| 18893 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 18894 | |
| 18895 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18896 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18897 | |
| 18898 | # Prevent multiple expansion |
| 18899 | |
| 18900 | |
| 18901 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18902 | |
| 18903 | |
| 18904 | |
| 18905 | |
| 18906 | |
| 18907 | |
| 18908 | |
| 18909 | |
| 18910 | |
| 18911 | |
| 18912 | |
| 18913 | |
| 18914 | |
| 18915 | |
| 18916 | |
| 18917 | |
| 18918 | |
| 18919 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18920 | # Extract the first word of "dot", so it can be a program name with args. |
| 18921 | set dummy dot; ac_word=$2 |
| 18922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18924 | if test "${ac_cv_path_DOT+set}" = set; then |
| 18925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18926 | else |
| 18927 | case $DOT in |
| 18928 | [\\/]* | ?:[\\/]*) |
| 18929 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 18930 | ;; |
| 18931 | *) |
| 18932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18933 | for as_dir in $PATH |
| 18934 | do |
| 18935 | IFS=$as_save_IFS |
| 18936 | test -z "$as_dir" && as_dir=. |
| 18937 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18939 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 18940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18941 | break 2 |
| 18942 | fi |
| 18943 | done |
| 18944 | done |
| 18945 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18946 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18947 | ;; |
| 18948 | esac |
| 18949 | fi |
| 18950 | DOT=$ac_cv_path_DOT |
| 18951 | |
| 18952 | if test -n "$DOT"; then |
| 18953 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 18954 | echo "${ECHO_T}$DOT" >&6 |
| 18955 | else |
| 18956 | echo "$as_me:$LINENO: result: no" >&5 |
| 18957 | echo "${ECHO_T}no" >&6 |
| 18958 | fi |
| 18959 | |
| 18960 | # Extract the first word of "etags", so it can be a program name with args. |
| 18961 | set dummy etags; ac_word=$2 |
| 18962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18964 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 18965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18966 | else |
| 18967 | case $ETAGS in |
| 18968 | [\\/]* | ?:[\\/]*) |
| 18969 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 18970 | ;; |
| 18971 | *) |
| 18972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18973 | for as_dir in $PATH |
| 18974 | do |
| 18975 | IFS=$as_save_IFS |
| 18976 | test -z "$as_dir" && as_dir=. |
| 18977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18979 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 18980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18981 | break 2 |
| 18982 | fi |
| 18983 | done |
| 18984 | done |
| 18985 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18986 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18987 | ;; |
| 18988 | esac |
| 18989 | fi |
| 18990 | ETAGS=$ac_cv_path_ETAGS |
| 18991 | |
| 18992 | if test -n "$ETAGS"; then |
| 18993 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 18994 | echo "${ECHO_T}$ETAGS" >&6 |
| 18995 | else |
| 18996 | echo "$as_me:$LINENO: result: no" >&5 |
| 18997 | echo "${ECHO_T}no" >&6 |
| 18998 | fi |
| 18999 | |
Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 19000 | etags_version=`$ETAGS --version 2>&1` |
| 19001 | case "$etags_version" in |
| 19002 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 19003 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 19004 | *) ETAGSFLAGS="" ;; |
| 19005 | esac |
| 19006 | ETAGSFLAGS=$ETAGSFLAGS |
| 19007 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19008 | # Extract the first word of "python", so it can be a program name with args. |
| 19009 | set dummy python; ac_word=$2 |
| 19010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19012 | if test "${ac_cv_path_PYTHON+set}" = set; then |
| 19013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19014 | else |
| 19015 | case $PYTHON in |
| 19016 | [\\/]* | ?:[\\/]*) |
| 19017 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 19018 | ;; |
| 19019 | *) |
| 19020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19021 | for as_dir in $PATH |
| 19022 | do |
| 19023 | IFS=$as_save_IFS |
| 19024 | test -z "$as_dir" && as_dir=. |
| 19025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19027 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 19028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19029 | break 2 |
| 19030 | fi |
| 19031 | done |
| 19032 | done |
| 19033 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19034 | test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19035 | ;; |
| 19036 | esac |
| 19037 | fi |
| 19038 | PYTHON=$ac_cv_path_PYTHON |
| 19039 | |
| 19040 | if test -n "$PYTHON"; then |
| 19041 | echo "$as_me:$LINENO: result: $PYTHON" >&5 |
| 19042 | echo "${ECHO_T}$PYTHON" >&6 |
| 19043 | else |
| 19044 | echo "$as_me:$LINENO: result: no" >&5 |
| 19045 | echo "${ECHO_T}no" >&6 |
| 19046 | fi |
| 19047 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19048 | if test "$PYTHON" = "false" |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19049 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19050 | { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 |
| 19051 | echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19052 | fi |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19053 | # Extract the first word of "qmtest", so it can be a program name with args. |
| 19054 | set dummy qmtest; ac_word=$2 |
| 19055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19057 | if test "${ac_cv_path_QMTEST+set}" = set; then |
| 19058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19059 | else |
| 19060 | case $QMTEST in |
| 19061 | [\\/]* | ?:[\\/]*) |
| 19062 | ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. |
| 19063 | ;; |
| 19064 | *) |
| 19065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19066 | for as_dir in $PATH |
| 19067 | do |
| 19068 | IFS=$as_save_IFS |
| 19069 | test -z "$as_dir" && as_dir=. |
| 19070 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19072 | ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" |
| 19073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19074 | break 2 |
| 19075 | fi |
| 19076 | done |
| 19077 | done |
| 19078 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19079 | test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19080 | ;; |
| 19081 | esac |
| 19082 | fi |
| 19083 | QMTEST=$ac_cv_path_QMTEST |
| 19084 | |
| 19085 | if test -n "$QMTEST"; then |
| 19086 | echo "$as_me:$LINENO: result: $QMTEST" >&5 |
| 19087 | echo "${ECHO_T}$QMTEST" >&6 |
| 19088 | else |
| 19089 | echo "$as_me:$LINENO: result: no" >&5 |
| 19090 | echo "${ECHO_T}no" >&6 |
| 19091 | fi |
| 19092 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19093 | if test "$QMTEST" = "false" |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19094 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19095 | { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 |
| 19096 | echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} |
John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19097 | fi |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19098 | |
| 19099 | pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` |
| 19100 | pymajor=`echo $pyversion | cut -d. -f1` |
| 19101 | pyminor=`echo $pyversion | cut -d. -f2` |
| 19102 | |
| 19103 | if test "$pymajor" -ge "2" |
| 19104 | then |
| 19105 | if test "$pymajor" -eq "2" |
| 19106 | then |
| 19107 | if test "$pyminor" -lt "2" |
| 19108 | then |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19109 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 |
| 19110 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19111 | fi |
| 19112 | fi |
| 19113 | else |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19114 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 |
| 19115 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19116 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19117 | |
| 19118 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19119 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 19120 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 19121 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 19122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19123 | else |
| 19124 | ac_check_lib_save_LIBS=$LIBS |
| 19125 | LIBS="-lelf $LIBS" |
| 19126 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19127 | /* confdefs.h. */ |
| 19128 | _ACEOF |
| 19129 | cat confdefs.h >>conftest.$ac_ext |
| 19130 | cat >>conftest.$ac_ext <<_ACEOF |
| 19131 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19132 | |
| 19133 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19134 | #ifdef __cplusplus |
| 19135 | extern "C" |
| 19136 | #endif |
| 19137 | /* We use char because int might match the return type of a gcc2 |
| 19138 | builtin and then its argument prototype would still apply. */ |
| 19139 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19140 | int |
| 19141 | main () |
| 19142 | { |
| 19143 | elf_begin (); |
| 19144 | ; |
| 19145 | return 0; |
| 19146 | } |
| 19147 | _ACEOF |
| 19148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19150 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19151 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19153 | rm -f conftest.er1 |
| 19154 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19156 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19157 | { ac_try='test -z "$ac_c_werror_flag" |
| 19158 | || test ! -s conftest.err' |
| 19159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19160 | (eval $ac_try) 2>&5 |
| 19161 | ac_status=$? |
| 19162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19163 | (exit $ac_status); }; } && |
| 19164 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19166 | (eval $ac_try) 2>&5 |
| 19167 | ac_status=$? |
| 19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19169 | (exit $ac_status); }; }; then |
| 19170 | ac_cv_lib_elf_elf_begin=yes |
| 19171 | else |
| 19172 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19174 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19175 | ac_cv_lib_elf_elf_begin=no |
| 19176 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19177 | rm -f conftest.err conftest.$ac_objext \ |
| 19178 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19179 | LIBS=$ac_check_lib_save_LIBS |
| 19180 | fi |
| 19181 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 19182 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 19183 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 19184 | cat >>confdefs.h <<_ACEOF |
| 19185 | #define HAVE_LIBELF 1 |
| 19186 | _ACEOF |
| 19187 | |
| 19188 | LIBS="-lelf $LIBS" |
| 19189 | |
| 19190 | fi |
| 19191 | |
| 19192 | |
| 19193 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 19194 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 19195 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 19196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19197 | else |
| 19198 | ac_func_search_save_LIBS=$LIBS |
| 19199 | ac_cv_search_dlopen=no |
| 19200 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19201 | /* confdefs.h. */ |
| 19202 | _ACEOF |
| 19203 | cat confdefs.h >>conftest.$ac_ext |
| 19204 | cat >>conftest.$ac_ext <<_ACEOF |
| 19205 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19206 | |
| 19207 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19208 | #ifdef __cplusplus |
| 19209 | extern "C" |
| 19210 | #endif |
| 19211 | /* We use char because int might match the return type of a gcc2 |
| 19212 | builtin and then its argument prototype would still apply. */ |
| 19213 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19214 | int |
| 19215 | main () |
| 19216 | { |
| 19217 | dlopen (); |
| 19218 | ; |
| 19219 | return 0; |
| 19220 | } |
| 19221 | _ACEOF |
| 19222 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19224 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19225 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19227 | rm -f conftest.er1 |
| 19228 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19230 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19231 | { ac_try='test -z "$ac_c_werror_flag" |
| 19232 | || test ! -s conftest.err' |
| 19233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19234 | (eval $ac_try) 2>&5 |
| 19235 | ac_status=$? |
| 19236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19237 | (exit $ac_status); }; } && |
| 19238 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19240 | (eval $ac_try) 2>&5 |
| 19241 | ac_status=$? |
| 19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19243 | (exit $ac_status); }; }; then |
| 19244 | ac_cv_search_dlopen="none required" |
| 19245 | else |
| 19246 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19248 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19249 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19250 | rm -f conftest.err conftest.$ac_objext \ |
| 19251 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19252 | if test "$ac_cv_search_dlopen" = no; then |
| 19253 | for ac_lib in dl; do |
| 19254 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19255 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19256 | /* confdefs.h. */ |
| 19257 | _ACEOF |
| 19258 | cat confdefs.h >>conftest.$ac_ext |
| 19259 | cat >>conftest.$ac_ext <<_ACEOF |
| 19260 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19261 | |
| 19262 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19263 | #ifdef __cplusplus |
| 19264 | extern "C" |
| 19265 | #endif |
| 19266 | /* We use char because int might match the return type of a gcc2 |
| 19267 | builtin and then its argument prototype would still apply. */ |
| 19268 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19269 | int |
| 19270 | main () |
| 19271 | { |
| 19272 | dlopen (); |
| 19273 | ; |
| 19274 | return 0; |
| 19275 | } |
| 19276 | _ACEOF |
| 19277 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19279 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19280 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19282 | rm -f conftest.er1 |
| 19283 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19285 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19286 | { ac_try='test -z "$ac_c_werror_flag" |
| 19287 | || test ! -s conftest.err' |
| 19288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19289 | (eval $ac_try) 2>&5 |
| 19290 | ac_status=$? |
| 19291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19292 | (exit $ac_status); }; } && |
| 19293 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19295 | (eval $ac_try) 2>&5 |
| 19296 | ac_status=$? |
| 19297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19298 | (exit $ac_status); }; }; then |
| 19299 | ac_cv_search_dlopen="-l$ac_lib" |
| 19300 | break |
| 19301 | else |
| 19302 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19305 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19306 | rm -f conftest.err conftest.$ac_objext \ |
| 19307 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19308 | done |
| 19309 | fi |
| 19310 | LIBS=$ac_func_search_save_LIBS |
| 19311 | fi |
| 19312 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 19313 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 19314 | if test "$ac_cv_search_dlopen" != no; then |
| 19315 | 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] | 19316 | |
| 19317 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 19318 | #define HAVE_DLOPEN 1 |
| 19319 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19320 | |
| 19321 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 19322 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 19323 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19324 | fi |
| 19325 | |
| 19326 | |
| 19327 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 19328 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 19329 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 19330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19331 | else |
| 19332 | ac_func_search_save_LIBS=$LIBS |
| 19333 | ac_cv_search_mallinfo=no |
| 19334 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19335 | /* confdefs.h. */ |
| 19336 | _ACEOF |
| 19337 | cat confdefs.h >>conftest.$ac_ext |
| 19338 | cat >>conftest.$ac_ext <<_ACEOF |
| 19339 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19340 | |
| 19341 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19342 | #ifdef __cplusplus |
| 19343 | extern "C" |
| 19344 | #endif |
| 19345 | /* We use char because int might match the return type of a gcc2 |
| 19346 | builtin and then its argument prototype would still apply. */ |
| 19347 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19348 | int |
| 19349 | main () |
| 19350 | { |
| 19351 | mallinfo (); |
| 19352 | ; |
| 19353 | return 0; |
| 19354 | } |
| 19355 | _ACEOF |
| 19356 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19358 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19359 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19361 | rm -f conftest.er1 |
| 19362 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19364 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19365 | { ac_try='test -z "$ac_c_werror_flag" |
| 19366 | || test ! -s conftest.err' |
| 19367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19368 | (eval $ac_try) 2>&5 |
| 19369 | ac_status=$? |
| 19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19371 | (exit $ac_status); }; } && |
| 19372 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19374 | (eval $ac_try) 2>&5 |
| 19375 | ac_status=$? |
| 19376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19377 | (exit $ac_status); }; }; then |
| 19378 | ac_cv_search_mallinfo="none required" |
| 19379 | else |
| 19380 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19382 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19383 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19384 | rm -f conftest.err conftest.$ac_objext \ |
| 19385 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19386 | if test "$ac_cv_search_mallinfo" = no; then |
| 19387 | for ac_lib in malloc; do |
| 19388 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19389 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19390 | /* confdefs.h. */ |
| 19391 | _ACEOF |
| 19392 | cat confdefs.h >>conftest.$ac_ext |
| 19393 | cat >>conftest.$ac_ext <<_ACEOF |
| 19394 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19395 | |
| 19396 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19397 | #ifdef __cplusplus |
| 19398 | extern "C" |
| 19399 | #endif |
| 19400 | /* We use char because int might match the return type of a gcc2 |
| 19401 | builtin and then its argument prototype would still apply. */ |
| 19402 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19403 | int |
| 19404 | main () |
| 19405 | { |
| 19406 | mallinfo (); |
| 19407 | ; |
| 19408 | return 0; |
| 19409 | } |
| 19410 | _ACEOF |
| 19411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19413 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19414 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19416 | rm -f conftest.er1 |
| 19417 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19419 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19420 | { ac_try='test -z "$ac_c_werror_flag" |
| 19421 | || test ! -s conftest.err' |
| 19422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19423 | (eval $ac_try) 2>&5 |
| 19424 | ac_status=$? |
| 19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19426 | (exit $ac_status); }; } && |
| 19427 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19429 | (eval $ac_try) 2>&5 |
| 19430 | ac_status=$? |
| 19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19432 | (exit $ac_status); }; }; then |
| 19433 | ac_cv_search_mallinfo="-l$ac_lib" |
| 19434 | break |
| 19435 | else |
| 19436 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19438 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19439 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19440 | rm -f conftest.err conftest.$ac_objext \ |
| 19441 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19442 | done |
| 19443 | fi |
| 19444 | LIBS=$ac_func_search_save_LIBS |
| 19445 | fi |
| 19446 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 19447 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 19448 | if test "$ac_cv_search_mallinfo" != no; then |
| 19449 | 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] | 19450 | |
| 19451 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19452 | #define HAVE_MALLINFO 1 |
| 19453 | _ACEOF |
| 19454 | |
| 19455 | fi |
| 19456 | |
| 19457 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19458 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 19459 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 |
| 19460 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 19461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19462 | else |
| 19463 | ac_func_search_save_LIBS=$LIBS |
| 19464 | ac_cv_search_pthread_mutex_lock=no |
| 19465 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19466 | /* confdefs.h. */ |
| 19467 | _ACEOF |
| 19468 | cat confdefs.h >>conftest.$ac_ext |
| 19469 | cat >>conftest.$ac_ext <<_ACEOF |
| 19470 | /* end confdefs.h. */ |
| 19471 | |
| 19472 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19473 | #ifdef __cplusplus |
| 19474 | extern "C" |
| 19475 | #endif |
| 19476 | /* We use char because int might match the return type of a gcc2 |
| 19477 | builtin and then its argument prototype would still apply. */ |
| 19478 | char pthread_mutex_lock (); |
| 19479 | int |
| 19480 | main () |
| 19481 | { |
| 19482 | pthread_mutex_lock (); |
| 19483 | ; |
| 19484 | return 0; |
| 19485 | } |
| 19486 | _ACEOF |
| 19487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19489 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19490 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19492 | rm -f conftest.er1 |
| 19493 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19495 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19496 | { ac_try='test -z "$ac_c_werror_flag" |
| 19497 | || test ! -s conftest.err' |
| 19498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19499 | (eval $ac_try) 2>&5 |
| 19500 | ac_status=$? |
| 19501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19502 | (exit $ac_status); }; } && |
| 19503 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19505 | (eval $ac_try) 2>&5 |
| 19506 | ac_status=$? |
| 19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19508 | (exit $ac_status); }; }; then |
| 19509 | ac_cv_search_pthread_mutex_lock="none required" |
| 19510 | else |
| 19511 | echo "$as_me: failed program was:" >&5 |
| 19512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19513 | |
| 19514 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19515 | rm -f conftest.err conftest.$ac_objext \ |
| 19516 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19517 | if test "$ac_cv_search_pthread_mutex_lock" = no; then |
| 19518 | for ac_lib in pthread; do |
| 19519 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19520 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19521 | /* confdefs.h. */ |
| 19522 | _ACEOF |
| 19523 | cat confdefs.h >>conftest.$ac_ext |
| 19524 | cat >>conftest.$ac_ext <<_ACEOF |
| 19525 | /* end confdefs.h. */ |
| 19526 | |
| 19527 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19528 | #ifdef __cplusplus |
| 19529 | extern "C" |
| 19530 | #endif |
| 19531 | /* We use char because int might match the return type of a gcc2 |
| 19532 | builtin and then its argument prototype would still apply. */ |
| 19533 | char pthread_mutex_lock (); |
| 19534 | int |
| 19535 | main () |
| 19536 | { |
| 19537 | pthread_mutex_lock (); |
| 19538 | ; |
| 19539 | return 0; |
| 19540 | } |
| 19541 | _ACEOF |
| 19542 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19544 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19545 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19547 | rm -f conftest.er1 |
| 19548 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19550 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19551 | { ac_try='test -z "$ac_c_werror_flag" |
| 19552 | || test ! -s conftest.err' |
| 19553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19554 | (eval $ac_try) 2>&5 |
| 19555 | ac_status=$? |
| 19556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19557 | (exit $ac_status); }; } && |
| 19558 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19560 | (eval $ac_try) 2>&5 |
| 19561 | ac_status=$? |
| 19562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19563 | (exit $ac_status); }; }; then |
| 19564 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" |
| 19565 | break |
| 19566 | else |
| 19567 | echo "$as_me: failed program was:" >&5 |
| 19568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19569 | |
| 19570 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19571 | rm -f conftest.err conftest.$ac_objext \ |
| 19572 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19573 | done |
| 19574 | fi |
| 19575 | LIBS=$ac_func_search_save_LIBS |
| 19576 | fi |
| 19577 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 19578 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 |
| 19579 | if test "$ac_cv_search_pthread_mutex_lock" != no; then |
| 19580 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 19581 | HAVE_PTHREAD_MUTEX_LOCK=1 |
| 19582 | else |
| 19583 | HAVE_PTHREAD_MUTEX_LOCK=0 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19584 | fi |
| 19585 | |
| 19586 | |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 19587 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19588 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 19589 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 19590 | if test "${ac_cv_header_stdc+set}" = set; then |
| 19591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19592 | else |
| 19593 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19594 | /* confdefs.h. */ |
| 19595 | _ACEOF |
| 19596 | cat confdefs.h >>conftest.$ac_ext |
| 19597 | cat >>conftest.$ac_ext <<_ACEOF |
| 19598 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19599 | #include <stdlib.h> |
| 19600 | #include <stdarg.h> |
| 19601 | #include <string.h> |
| 19602 | #include <float.h> |
| 19603 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19604 | int |
| 19605 | main () |
| 19606 | { |
| 19607 | |
| 19608 | ; |
| 19609 | return 0; |
| 19610 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19611 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19612 | rm -f conftest.$ac_objext |
| 19613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19614 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19615 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19617 | rm -f conftest.er1 |
| 19618 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19620 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19621 | { ac_try='test -z "$ac_c_werror_flag" |
| 19622 | || test ! -s conftest.err' |
| 19623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19624 | (eval $ac_try) 2>&5 |
| 19625 | ac_status=$? |
| 19626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19627 | (exit $ac_status); }; } && |
| 19628 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19630 | (eval $ac_try) 2>&5 |
| 19631 | ac_status=$? |
| 19632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19633 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19634 | ac_cv_header_stdc=yes |
| 19635 | else |
| 19636 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19638 | |
| 19639 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19640 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19642 | |
| 19643 | if test $ac_cv_header_stdc = yes; then |
| 19644 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 19645 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19646 | /* confdefs.h. */ |
| 19647 | _ACEOF |
| 19648 | cat confdefs.h >>conftest.$ac_ext |
| 19649 | cat >>conftest.$ac_ext <<_ACEOF |
| 19650 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19651 | #include <string.h> |
| 19652 | |
| 19653 | _ACEOF |
| 19654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19655 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19656 | : |
| 19657 | else |
| 19658 | ac_cv_header_stdc=no |
| 19659 | fi |
| 19660 | rm -f conftest* |
| 19661 | |
| 19662 | fi |
| 19663 | |
| 19664 | if test $ac_cv_header_stdc = yes; then |
| 19665 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 19666 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19667 | /* confdefs.h. */ |
| 19668 | _ACEOF |
| 19669 | cat confdefs.h >>conftest.$ac_ext |
| 19670 | cat >>conftest.$ac_ext <<_ACEOF |
| 19671 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19672 | #include <stdlib.h> |
| 19673 | |
| 19674 | _ACEOF |
| 19675 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19676 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19677 | : |
| 19678 | else |
| 19679 | ac_cv_header_stdc=no |
| 19680 | fi |
| 19681 | rm -f conftest* |
| 19682 | |
| 19683 | fi |
| 19684 | |
| 19685 | if test $ac_cv_header_stdc = yes; then |
| 19686 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 19687 | if test "$cross_compiling" = yes; then |
| 19688 | : |
| 19689 | else |
| 19690 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19691 | /* confdefs.h. */ |
| 19692 | _ACEOF |
| 19693 | cat confdefs.h >>conftest.$ac_ext |
| 19694 | cat >>conftest.$ac_ext <<_ACEOF |
| 19695 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19696 | #include <ctype.h> |
| 19697 | #if ((' ' & 0x0FF) == 0x020) |
| 19698 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19699 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19700 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19701 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19702 | (('a' <= (c) && (c) <= 'i') \ |
| 19703 | || ('j' <= (c) && (c) <= 'r') \ |
| 19704 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19705 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19706 | #endif |
| 19707 | |
| 19708 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19709 | int |
| 19710 | main () |
| 19711 | { |
| 19712 | int i; |
| 19713 | for (i = 0; i < 256; i++) |
| 19714 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19715 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19716 | exit(2); |
| 19717 | exit (0); |
| 19718 | } |
| 19719 | _ACEOF |
| 19720 | rm -f conftest$ac_exeext |
| 19721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19722 | (eval $ac_link) 2>&5 |
| 19723 | ac_status=$? |
| 19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19727 | (eval $ac_try) 2>&5 |
| 19728 | ac_status=$? |
| 19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19730 | (exit $ac_status); }; }; then |
| 19731 | : |
| 19732 | else |
| 19733 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19734 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19736 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19737 | ( exit $ac_status ) |
| 19738 | ac_cv_header_stdc=no |
| 19739 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19740 | 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] | 19741 | fi |
| 19742 | fi |
| 19743 | fi |
| 19744 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 19745 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 19746 | if test $ac_cv_header_stdc = yes; then |
| 19747 | |
| 19748 | cat >>confdefs.h <<\_ACEOF |
| 19749 | #define STDC_HEADERS 1 |
| 19750 | _ACEOF |
| 19751 | |
| 19752 | fi |
| 19753 | |
| 19754 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 19755 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 19756 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 19757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19758 | else |
| 19759 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19760 | /* confdefs.h. */ |
| 19761 | _ACEOF |
| 19762 | cat confdefs.h >>conftest.$ac_ext |
| 19763 | cat >>conftest.$ac_ext <<_ACEOF |
| 19764 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19765 | #include <sys/types.h> |
| 19766 | #include <sys/wait.h> |
| 19767 | #ifndef WEXITSTATUS |
| 19768 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 19769 | #endif |
| 19770 | #ifndef WIFEXITED |
| 19771 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 19772 | #endif |
| 19773 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19774 | int |
| 19775 | main () |
| 19776 | { |
| 19777 | int s; |
| 19778 | wait (&s); |
| 19779 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 19780 | ; |
| 19781 | return 0; |
| 19782 | } |
| 19783 | _ACEOF |
| 19784 | rm -f conftest.$ac_objext |
| 19785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19786 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19787 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19789 | rm -f conftest.er1 |
| 19790 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19792 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19793 | { ac_try='test -z "$ac_c_werror_flag" |
| 19794 | || test ! -s conftest.err' |
| 19795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19796 | (eval $ac_try) 2>&5 |
| 19797 | ac_status=$? |
| 19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19799 | (exit $ac_status); }; } && |
| 19800 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19802 | (eval $ac_try) 2>&5 |
| 19803 | ac_status=$? |
| 19804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19805 | (exit $ac_status); }; }; then |
| 19806 | ac_cv_header_sys_wait_h=yes |
| 19807 | else |
| 19808 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19811 | ac_cv_header_sys_wait_h=no |
| 19812 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19814 | fi |
| 19815 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 19816 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 19817 | if test $ac_cv_header_sys_wait_h = yes; then |
| 19818 | |
| 19819 | cat >>confdefs.h <<\_ACEOF |
| 19820 | #define HAVE_SYS_WAIT_H 1 |
| 19821 | _ACEOF |
| 19822 | |
| 19823 | fi |
| 19824 | |
| 19825 | |
| 19826 | |
| 19827 | |
| 19828 | |
| 19829 | |
| 19830 | |
| 19831 | |
| 19832 | |
| 19833 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19834 | |
Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 19835 | |
John Criswell | b2815e0 | 2004-05-27 20:40:39 +0000 | [diff] [blame] | 19836 | |
| 19837 | for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19838 | do |
| 19839 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19840 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19841 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19845 | fi |
| 19846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19848 | else |
| 19849 | # Is the header compilable? |
| 19850 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19851 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19852 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19853 | /* confdefs.h. */ |
| 19854 | _ACEOF |
| 19855 | cat confdefs.h >>conftest.$ac_ext |
| 19856 | cat >>conftest.$ac_ext <<_ACEOF |
| 19857 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19858 | $ac_includes_default |
| 19859 | #include <$ac_header> |
| 19860 | _ACEOF |
| 19861 | rm -f conftest.$ac_objext |
| 19862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19863 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19864 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19866 | rm -f conftest.er1 |
| 19867 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19869 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19870 | { ac_try='test -z "$ac_c_werror_flag" |
| 19871 | || test ! -s conftest.err' |
| 19872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19873 | (eval $ac_try) 2>&5 |
| 19874 | ac_status=$? |
| 19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19876 | (exit $ac_status); }; } && |
| 19877 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19879 | (eval $ac_try) 2>&5 |
| 19880 | ac_status=$? |
| 19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19882 | (exit $ac_status); }; }; then |
| 19883 | ac_header_compiler=yes |
| 19884 | else |
| 19885 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19887 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19888 | ac_header_compiler=no |
| 19889 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19891 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19892 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19893 | |
| 19894 | # Is the header present? |
| 19895 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19896 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19897 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19898 | /* confdefs.h. */ |
| 19899 | _ACEOF |
| 19900 | cat confdefs.h >>conftest.$ac_ext |
| 19901 | cat >>conftest.$ac_ext <<_ACEOF |
| 19902 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19903 | #include <$ac_header> |
| 19904 | _ACEOF |
| 19905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19907 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19908 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19909 | rm -f conftest.er1 |
| 19910 | cat conftest.err >&5 |
| 19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19912 | (exit $ac_status); } >/dev/null; then |
| 19913 | if test -s conftest.err; then |
| 19914 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19915 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19916 | else |
| 19917 | ac_cpp_err= |
| 19918 | fi |
| 19919 | else |
| 19920 | ac_cpp_err=yes |
| 19921 | fi |
| 19922 | if test -z "$ac_cpp_err"; then |
| 19923 | ac_header_preproc=yes |
| 19924 | else |
| 19925 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19927 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19928 | ac_header_preproc=no |
| 19929 | fi |
| 19930 | rm -f conftest.err conftest.$ac_ext |
| 19931 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19932 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19933 | |
| 19934 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19935 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19936 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19937 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19938 | 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] | 19939 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19940 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19941 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19942 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19943 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19944 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19945 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19946 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19947 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19948 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19949 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19950 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19951 | 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] | 19952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19953 | 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] | 19954 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19955 | 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] | 19956 | ( |
| 19957 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19958 | ## ----------------------------------- ## |
| 19959 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19960 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19961 | _ASBOX |
| 19962 | ) | |
| 19963 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19964 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19965 | esac |
| 19966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19970 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19971 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19972 | fi |
| 19973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19974 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19975 | |
| 19976 | fi |
| 19977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19978 | cat >>confdefs.h <<_ACEOF |
| 19979 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19980 | _ACEOF |
| 19981 | |
| 19982 | fi |
| 19983 | |
| 19984 | done |
| 19985 | |
| 19986 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 19987 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 19988 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 19989 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 19990 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 19991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19992 | fi |
| 19993 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 19994 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 19995 | else |
| 19996 | # Is the header compilable? |
| 19997 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 19998 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
| 19999 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20000 | /* confdefs.h. */ |
| 20001 | _ACEOF |
| 20002 | cat confdefs.h >>conftest.$ac_ext |
| 20003 | cat >>conftest.$ac_ext <<_ACEOF |
| 20004 | /* end confdefs.h. */ |
| 20005 | $ac_includes_default |
| 20006 | #include <sys/types.h> |
| 20007 | _ACEOF |
| 20008 | rm -f conftest.$ac_objext |
| 20009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20010 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20011 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20013 | rm -f conftest.er1 |
| 20014 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20016 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20017 | { ac_try='test -z "$ac_c_werror_flag" |
| 20018 | || test ! -s conftest.err' |
| 20019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20020 | (eval $ac_try) 2>&5 |
| 20021 | ac_status=$? |
| 20022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20023 | (exit $ac_status); }; } && |
| 20024 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20026 | (eval $ac_try) 2>&5 |
| 20027 | ac_status=$? |
| 20028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20029 | (exit $ac_status); }; }; then |
| 20030 | ac_header_compiler=yes |
| 20031 | else |
| 20032 | echo "$as_me: failed program was:" >&5 |
| 20033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20034 | |
| 20035 | ac_header_compiler=no |
| 20036 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20038 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20039 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20040 | |
| 20041 | # Is the header present? |
| 20042 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 20043 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
| 20044 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20045 | /* confdefs.h. */ |
| 20046 | _ACEOF |
| 20047 | cat confdefs.h >>conftest.$ac_ext |
| 20048 | cat >>conftest.$ac_ext <<_ACEOF |
| 20049 | /* end confdefs.h. */ |
| 20050 | #include <sys/types.h> |
| 20051 | _ACEOF |
| 20052 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20053 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20054 | ac_status=$? |
| 20055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20056 | rm -f conftest.er1 |
| 20057 | cat conftest.err >&5 |
| 20058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20059 | (exit $ac_status); } >/dev/null; then |
| 20060 | if test -s conftest.err; then |
| 20061 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20062 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20063 | else |
| 20064 | ac_cpp_err= |
| 20065 | fi |
| 20066 | else |
| 20067 | ac_cpp_err=yes |
| 20068 | fi |
| 20069 | if test -z "$ac_cpp_err"; then |
| 20070 | ac_header_preproc=yes |
| 20071 | else |
| 20072 | echo "$as_me: failed program was:" >&5 |
| 20073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20074 | |
| 20075 | ac_header_preproc=no |
| 20076 | fi |
| 20077 | rm -f conftest.err conftest.$ac_ext |
| 20078 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20079 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20080 | |
| 20081 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20082 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20083 | yes:no: ) |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20084 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20085 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20086 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 20087 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 20088 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20089 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20090 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20091 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 20092 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20093 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 20094 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 20095 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 20096 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 20097 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20098 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20099 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 20100 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20101 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 20102 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20103 | ( |
| 20104 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20105 | ## ----------------------------------- ## |
| 20106 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 20107 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20108 | _ASBOX |
| 20109 | ) | |
| 20110 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20111 | ;; |
| 20112 | esac |
| 20113 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 20114 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
| 20115 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 20116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20117 | else |
| 20118 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 20119 | fi |
| 20120 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 20121 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
| 20122 | |
| 20123 | fi |
| 20124 | if test $ac_cv_header_sys_types_h = yes; then |
| 20125 | INCLUDE_SYS_TYPES_H='#include <sys/types.h>' |
| 20126 | else |
| 20127 | INCLUDE_SYS_TYPES_H='' |
| 20128 | fi |
| 20129 | |
| 20130 | |
| 20131 | |
| 20132 | if test "${ac_cv_header_inttypes_h+set}" = set; then |
| 20133 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 20134 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
| 20135 | if test "${ac_cv_header_inttypes_h+set}" = set; then |
| 20136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20137 | fi |
| 20138 | echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 |
| 20139 | echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 |
| 20140 | else |
| 20141 | # Is the header compilable? |
| 20142 | echo "$as_me:$LINENO: checking inttypes.h usability" >&5 |
| 20143 | echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 |
| 20144 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20145 | /* confdefs.h. */ |
| 20146 | _ACEOF |
| 20147 | cat confdefs.h >>conftest.$ac_ext |
| 20148 | cat >>conftest.$ac_ext <<_ACEOF |
| 20149 | /* end confdefs.h. */ |
| 20150 | $ac_includes_default |
| 20151 | #include <inttypes.h> |
| 20152 | _ACEOF |
| 20153 | rm -f conftest.$ac_objext |
| 20154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20155 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20156 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20158 | rm -f conftest.er1 |
| 20159 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20161 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20162 | { ac_try='test -z "$ac_c_werror_flag" |
| 20163 | || test ! -s conftest.err' |
| 20164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20165 | (eval $ac_try) 2>&5 |
| 20166 | ac_status=$? |
| 20167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20168 | (exit $ac_status); }; } && |
| 20169 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20171 | (eval $ac_try) 2>&5 |
| 20172 | ac_status=$? |
| 20173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20174 | (exit $ac_status); }; }; then |
| 20175 | ac_header_compiler=yes |
| 20176 | else |
| 20177 | echo "$as_me: failed program was:" >&5 |
| 20178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20179 | |
| 20180 | ac_header_compiler=no |
| 20181 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20183 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20184 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20185 | |
| 20186 | # Is the header present? |
| 20187 | echo "$as_me:$LINENO: checking inttypes.h presence" >&5 |
| 20188 | echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 |
| 20189 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20190 | /* confdefs.h. */ |
| 20191 | _ACEOF |
| 20192 | cat confdefs.h >>conftest.$ac_ext |
| 20193 | cat >>conftest.$ac_ext <<_ACEOF |
| 20194 | /* end confdefs.h. */ |
| 20195 | #include <inttypes.h> |
| 20196 | _ACEOF |
| 20197 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20198 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20199 | ac_status=$? |
| 20200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20201 | rm -f conftest.er1 |
| 20202 | cat conftest.err >&5 |
| 20203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20204 | (exit $ac_status); } >/dev/null; then |
| 20205 | if test -s conftest.err; then |
| 20206 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20207 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20208 | else |
| 20209 | ac_cpp_err= |
| 20210 | fi |
| 20211 | else |
| 20212 | ac_cpp_err=yes |
| 20213 | fi |
| 20214 | if test -z "$ac_cpp_err"; then |
| 20215 | ac_header_preproc=yes |
| 20216 | else |
| 20217 | echo "$as_me: failed program was:" >&5 |
| 20218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20219 | |
| 20220 | ac_header_preproc=no |
| 20221 | fi |
| 20222 | rm -f conftest.err conftest.$ac_ext |
| 20223 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20224 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20225 | |
| 20226 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20227 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20228 | yes:no: ) |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20229 | { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20230 | echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20231 | { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 |
| 20232 | echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} |
| 20233 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20234 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20235 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20236 | { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 |
| 20237 | echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20238 | { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 |
| 20239 | echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} |
| 20240 | { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 |
| 20241 | echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} |
| 20242 | { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20243 | echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20244 | { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 |
| 20245 | echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20246 | { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 |
| 20247 | echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20248 | ( |
| 20249 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20250 | ## ----------------------------------- ## |
| 20251 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 20252 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20253 | _ASBOX |
| 20254 | ) | |
| 20255 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20256 | ;; |
| 20257 | esac |
| 20258 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 20259 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
| 20260 | if test "${ac_cv_header_inttypes_h+set}" = set; then |
| 20261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20262 | else |
| 20263 | ac_cv_header_inttypes_h=$ac_header_preproc |
| 20264 | fi |
| 20265 | echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 |
| 20266 | echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 |
| 20267 | |
| 20268 | fi |
| 20269 | if test $ac_cv_header_inttypes_h = yes; then |
| 20270 | INCLUDE_INTTYPES_H='#include <inttypes.h>' |
| 20271 | else |
| 20272 | INCLUDE_INTTYPES_H='' |
| 20273 | fi |
| 20274 | |
| 20275 | |
| 20276 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20277 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 20278 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 20279 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
| 20280 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 20281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20282 | fi |
| 20283 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 20284 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
| 20285 | else |
| 20286 | # Is the header compilable? |
| 20287 | echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 20288 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 |
| 20289 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20290 | /* confdefs.h. */ |
| 20291 | _ACEOF |
| 20292 | cat confdefs.h >>conftest.$ac_ext |
| 20293 | cat >>conftest.$ac_ext <<_ACEOF |
| 20294 | /* end confdefs.h. */ |
| 20295 | $ac_includes_default |
| 20296 | #include <stdint.h> |
| 20297 | _ACEOF |
| 20298 | rm -f conftest.$ac_objext |
| 20299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20300 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20301 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20303 | rm -f conftest.er1 |
| 20304 | cat conftest.err >&5 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20306 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20307 | { ac_try='test -z "$ac_c_werror_flag" |
| 20308 | || test ! -s conftest.err' |
| 20309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20310 | (eval $ac_try) 2>&5 |
| 20311 | ac_status=$? |
| 20312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20313 | (exit $ac_status); }; } && |
| 20314 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20316 | (eval $ac_try) 2>&5 |
| 20317 | ac_status=$? |
| 20318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20319 | (exit $ac_status); }; }; then |
| 20320 | ac_header_compiler=yes |
| 20321 | else |
| 20322 | echo "$as_me: failed program was:" >&5 |
| 20323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20324 | |
| 20325 | ac_header_compiler=no |
| 20326 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20328 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20329 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20330 | |
| 20331 | # Is the header present? |
| 20332 | echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 20333 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 |
| 20334 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20335 | /* confdefs.h. */ |
| 20336 | _ACEOF |
| 20337 | cat confdefs.h >>conftest.$ac_ext |
| 20338 | cat >>conftest.$ac_ext <<_ACEOF |
| 20339 | /* end confdefs.h. */ |
| 20340 | #include <stdint.h> |
| 20341 | _ACEOF |
| 20342 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20343 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20344 | ac_status=$? |
| 20345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20346 | rm -f conftest.er1 |
| 20347 | cat conftest.err >&5 |
| 20348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20349 | (exit $ac_status); } >/dev/null; then |
| 20350 | if test -s conftest.err; then |
| 20351 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20352 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20353 | else |
| 20354 | ac_cpp_err= |
| 20355 | fi |
| 20356 | else |
| 20357 | ac_cpp_err=yes |
| 20358 | fi |
| 20359 | if test -z "$ac_cpp_err"; then |
| 20360 | ac_header_preproc=yes |
| 20361 | else |
| 20362 | echo "$as_me: failed program was:" >&5 |
| 20363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20364 | |
| 20365 | ac_header_preproc=no |
| 20366 | fi |
| 20367 | rm -f conftest.err conftest.$ac_ext |
| 20368 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20369 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20370 | |
| 20371 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20373 | yes:no: ) |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20374 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20375 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20376 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 20377 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 20378 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20379 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20380 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20381 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 20382 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20383 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 20384 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 20385 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 20386 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 20387 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20388 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20389 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 20390 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20391 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 20392 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20393 | ( |
| 20394 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20395 | ## ----------------------------------- ## |
| 20396 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 20397 | ## ----------------------------------- ## |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20398 | _ASBOX |
| 20399 | ) | |
| 20400 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20401 | ;; |
| 20402 | esac |
| 20403 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 20404 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
| 20405 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 20406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20407 | else |
| 20408 | ac_cv_header_stdint_h=$ac_header_preproc |
| 20409 | fi |
| 20410 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 20411 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
| 20412 | |
| 20413 | fi |
| 20414 | if test $ac_cv_header_stdint_h = yes; then |
| 20415 | INCLUDE_STDINT_H='#include <stdint.h>' |
| 20416 | else |
| 20417 | INCLUDE_STDINT_H='' |
| 20418 | fi |
| 20419 | |
| 20420 | |
| 20421 | |
| 20422 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20423 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20424 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 20425 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 20426 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 20427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20428 | else |
| 20429 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20430 | /* confdefs.h. */ |
| 20431 | _ACEOF |
| 20432 | cat confdefs.h >>conftest.$ac_ext |
| 20433 | cat >>conftest.$ac_ext <<_ACEOF |
| 20434 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20435 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20436 | int |
| 20437 | main () |
| 20438 | { |
| 20439 | if ((pid_t *) 0) |
| 20440 | return 0; |
| 20441 | if (sizeof (pid_t)) |
| 20442 | return 0; |
| 20443 | ; |
| 20444 | return 0; |
| 20445 | } |
| 20446 | _ACEOF |
| 20447 | rm -f conftest.$ac_objext |
| 20448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20449 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20450 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20452 | rm -f conftest.er1 |
| 20453 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20455 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20456 | { ac_try='test -z "$ac_c_werror_flag" |
| 20457 | || test ! -s conftest.err' |
| 20458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20459 | (eval $ac_try) 2>&5 |
| 20460 | ac_status=$? |
| 20461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20462 | (exit $ac_status); }; } && |
| 20463 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20465 | (eval $ac_try) 2>&5 |
| 20466 | ac_status=$? |
| 20467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20468 | (exit $ac_status); }; }; then |
| 20469 | ac_cv_type_pid_t=yes |
| 20470 | else |
| 20471 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20473 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20474 | ac_cv_type_pid_t=no |
| 20475 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20477 | fi |
| 20478 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 20479 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 20480 | if test $ac_cv_type_pid_t = yes; then |
| 20481 | : |
| 20482 | else |
| 20483 | |
| 20484 | cat >>confdefs.h <<_ACEOF |
| 20485 | #define pid_t int |
| 20486 | _ACEOF |
| 20487 | |
| 20488 | fi |
| 20489 | |
| 20490 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 20491 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 20492 | if test "${ac_cv_type_size_t+set}" = set; then |
| 20493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20494 | else |
| 20495 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20496 | /* confdefs.h. */ |
| 20497 | _ACEOF |
| 20498 | cat confdefs.h >>conftest.$ac_ext |
| 20499 | cat >>conftest.$ac_ext <<_ACEOF |
| 20500 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20501 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20502 | int |
| 20503 | main () |
| 20504 | { |
| 20505 | if ((size_t *) 0) |
| 20506 | return 0; |
| 20507 | if (sizeof (size_t)) |
| 20508 | return 0; |
| 20509 | ; |
| 20510 | return 0; |
| 20511 | } |
| 20512 | _ACEOF |
| 20513 | rm -f conftest.$ac_objext |
| 20514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20515 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20516 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20518 | rm -f conftest.er1 |
| 20519 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20521 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20522 | { ac_try='test -z "$ac_c_werror_flag" |
| 20523 | || test ! -s conftest.err' |
| 20524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20525 | (eval $ac_try) 2>&5 |
| 20526 | ac_status=$? |
| 20527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20528 | (exit $ac_status); }; } && |
| 20529 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20531 | (eval $ac_try) 2>&5 |
| 20532 | ac_status=$? |
| 20533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20534 | (exit $ac_status); }; }; then |
| 20535 | ac_cv_type_size_t=yes |
| 20536 | else |
| 20537 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20540 | ac_cv_type_size_t=no |
| 20541 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20543 | fi |
| 20544 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 20545 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 20546 | if test $ac_cv_type_size_t = yes; then |
| 20547 | : |
| 20548 | else |
| 20549 | |
| 20550 | cat >>confdefs.h <<_ACEOF |
| 20551 | #define size_t unsigned |
| 20552 | _ACEOF |
| 20553 | |
| 20554 | fi |
| 20555 | |
| 20556 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 20557 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 20558 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 20559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20560 | else |
| 20561 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20562 | /* confdefs.h. */ |
| 20563 | _ACEOF |
| 20564 | cat confdefs.h >>conftest.$ac_ext |
| 20565 | cat >>conftest.$ac_ext <<_ACEOF |
| 20566 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20567 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20568 | int |
| 20569 | main () |
| 20570 | { |
| 20571 | if ((int64_t *) 0) |
| 20572 | return 0; |
| 20573 | if (sizeof (int64_t)) |
| 20574 | return 0; |
| 20575 | ; |
| 20576 | return 0; |
| 20577 | } |
| 20578 | _ACEOF |
| 20579 | rm -f conftest.$ac_objext |
| 20580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20581 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20582 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20584 | rm -f conftest.er1 |
| 20585 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20587 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20588 | { ac_try='test -z "$ac_c_werror_flag" |
| 20589 | || test ! -s conftest.err' |
| 20590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20591 | (eval $ac_try) 2>&5 |
| 20592 | ac_status=$? |
| 20593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20594 | (exit $ac_status); }; } && |
| 20595 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20597 | (eval $ac_try) 2>&5 |
| 20598 | ac_status=$? |
| 20599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20600 | (exit $ac_status); }; }; then |
| 20601 | ac_cv_type_int64_t=yes |
| 20602 | else |
| 20603 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20605 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20606 | ac_cv_type_int64_t=no |
| 20607 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20609 | fi |
| 20610 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 20611 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 20612 | if test $ac_cv_type_int64_t = yes; then |
| 20613 | |
| 20614 | cat >>confdefs.h <<_ACEOF |
| 20615 | #define HAVE_INT64_T 1 |
| 20616 | _ACEOF |
| 20617 | |
| 20618 | |
| 20619 | else |
| 20620 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 20621 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 20622 | { (exit 1); exit 1; }; } |
| 20623 | fi |
| 20624 | |
| 20625 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 20626 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 20627 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 20628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20629 | else |
| 20630 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20631 | /* confdefs.h. */ |
| 20632 | _ACEOF |
| 20633 | cat confdefs.h >>conftest.$ac_ext |
| 20634 | cat >>conftest.$ac_ext <<_ACEOF |
| 20635 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20636 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20637 | int |
| 20638 | main () |
| 20639 | { |
| 20640 | if ((uint64_t *) 0) |
| 20641 | return 0; |
| 20642 | if (sizeof (uint64_t)) |
| 20643 | return 0; |
| 20644 | ; |
| 20645 | return 0; |
| 20646 | } |
| 20647 | _ACEOF |
| 20648 | rm -f conftest.$ac_objext |
| 20649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20650 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20651 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20653 | rm -f conftest.er1 |
| 20654 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20656 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20657 | { ac_try='test -z "$ac_c_werror_flag" |
| 20658 | || test ! -s conftest.err' |
| 20659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20660 | (eval $ac_try) 2>&5 |
| 20661 | ac_status=$? |
| 20662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20663 | (exit $ac_status); }; } && |
| 20664 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20666 | (eval $ac_try) 2>&5 |
| 20667 | ac_status=$? |
| 20668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20669 | (exit $ac_status); }; }; then |
| 20670 | ac_cv_type_uint64_t=yes |
| 20671 | else |
| 20672 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20674 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20675 | ac_cv_type_uint64_t=no |
| 20676 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20678 | fi |
| 20679 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 20680 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 20681 | if test $ac_cv_type_uint64_t = yes; then |
| 20682 | |
| 20683 | cat >>confdefs.h <<_ACEOF |
| 20684 | #define HAVE_UINT64_T 1 |
| 20685 | _ACEOF |
| 20686 | |
| 20687 | |
| 20688 | else |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 20689 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20690 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 20691 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 20692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20693 | else |
| 20694 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20695 | /* confdefs.h. */ |
| 20696 | _ACEOF |
| 20697 | cat confdefs.h >>conftest.$ac_ext |
| 20698 | cat >>conftest.$ac_ext <<_ACEOF |
| 20699 | /* end confdefs.h. */ |
| 20700 | $ac_includes_default |
| 20701 | int |
| 20702 | main () |
| 20703 | { |
| 20704 | if ((u_int64_t *) 0) |
| 20705 | return 0; |
| 20706 | if (sizeof (u_int64_t)) |
| 20707 | return 0; |
| 20708 | ; |
| 20709 | return 0; |
| 20710 | } |
| 20711 | _ACEOF |
| 20712 | rm -f conftest.$ac_objext |
| 20713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20714 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20715 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20717 | rm -f conftest.er1 |
| 20718 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20720 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20721 | { ac_try='test -z "$ac_c_werror_flag" |
| 20722 | || test ! -s conftest.err' |
| 20723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20724 | (eval $ac_try) 2>&5 |
| 20725 | ac_status=$? |
| 20726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20727 | (exit $ac_status); }; } && |
| 20728 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20730 | (eval $ac_try) 2>&5 |
| 20731 | ac_status=$? |
| 20732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20733 | (exit $ac_status); }; }; then |
| 20734 | ac_cv_type_u_int64_t=yes |
| 20735 | else |
| 20736 | echo "$as_me: failed program was:" >&5 |
| 20737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20738 | |
| 20739 | ac_cv_type_u_int64_t=no |
| 20740 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20742 | fi |
| 20743 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 20744 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 20745 | if test $ac_cv_type_u_int64_t = yes; then |
| 20746 | |
| 20747 | cat >>confdefs.h <<_ACEOF |
| 20748 | #define HAVE_U_INT64_T 1 |
| 20749 | _ACEOF |
| 20750 | |
| 20751 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 20752 | else |
| 20753 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 20754 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 20755 | { (exit 1); exit 1; }; } |
| 20756 | fi |
| 20757 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20758 | fi |
| 20759 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20760 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 20761 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 20762 | if test "${ac_cv_header_time+set}" = set; then |
| 20763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20764 | else |
| 20765 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20766 | /* confdefs.h. */ |
| 20767 | _ACEOF |
| 20768 | cat confdefs.h >>conftest.$ac_ext |
| 20769 | cat >>conftest.$ac_ext <<_ACEOF |
| 20770 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20771 | #include <sys/types.h> |
| 20772 | #include <sys/time.h> |
| 20773 | #include <time.h> |
| 20774 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20775 | int |
| 20776 | main () |
| 20777 | { |
| 20778 | if ((struct tm *) 0) |
| 20779 | return 0; |
| 20780 | ; |
| 20781 | return 0; |
| 20782 | } |
| 20783 | _ACEOF |
| 20784 | rm -f conftest.$ac_objext |
| 20785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20786 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20787 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20789 | rm -f conftest.er1 |
| 20790 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20792 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20793 | { ac_try='test -z "$ac_c_werror_flag" |
| 20794 | || test ! -s conftest.err' |
| 20795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20796 | (eval $ac_try) 2>&5 |
| 20797 | ac_status=$? |
| 20798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20799 | (exit $ac_status); }; } && |
| 20800 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20802 | (eval $ac_try) 2>&5 |
| 20803 | ac_status=$? |
| 20804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20805 | (exit $ac_status); }; }; then |
| 20806 | ac_cv_header_time=yes |
| 20807 | else |
| 20808 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20811 | ac_cv_header_time=no |
| 20812 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20814 | fi |
| 20815 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 20816 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 20817 | if test $ac_cv_header_time = yes; then |
| 20818 | |
| 20819 | cat >>confdefs.h <<\_ACEOF |
| 20820 | #define TIME_WITH_SYS_TIME 1 |
| 20821 | _ACEOF |
| 20822 | |
| 20823 | fi |
| 20824 | |
| 20825 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 20826 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 20827 | if test "${ac_cv_struct_tm+set}" = set; then |
| 20828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20829 | else |
| 20830 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20831 | /* confdefs.h. */ |
| 20832 | _ACEOF |
| 20833 | cat confdefs.h >>conftest.$ac_ext |
| 20834 | cat >>conftest.$ac_ext <<_ACEOF |
| 20835 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20836 | #include <sys/types.h> |
| 20837 | #include <time.h> |
| 20838 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20839 | int |
| 20840 | main () |
| 20841 | { |
| 20842 | struct tm *tp; tp->tm_sec; |
| 20843 | ; |
| 20844 | return 0; |
| 20845 | } |
| 20846 | _ACEOF |
| 20847 | rm -f conftest.$ac_objext |
| 20848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20849 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20850 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20852 | rm -f conftest.er1 |
| 20853 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20855 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20856 | { ac_try='test -z "$ac_c_werror_flag" |
| 20857 | || test ! -s conftest.err' |
| 20858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20859 | (eval $ac_try) 2>&5 |
| 20860 | ac_status=$? |
| 20861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20862 | (exit $ac_status); }; } && |
| 20863 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20865 | (eval $ac_try) 2>&5 |
| 20866 | ac_status=$? |
| 20867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20868 | (exit $ac_status); }; }; then |
| 20869 | ac_cv_struct_tm=time.h |
| 20870 | else |
| 20871 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20873 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20874 | ac_cv_struct_tm=sys/time.h |
| 20875 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20877 | fi |
| 20878 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 20879 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 20880 | if test $ac_cv_struct_tm = sys/time.h; then |
| 20881 | |
| 20882 | cat >>confdefs.h <<\_ACEOF |
| 20883 | #define TM_IN_SYS_TIME 1 |
| 20884 | _ACEOF |
| 20885 | |
| 20886 | fi |
| 20887 | |
| 20888 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20889 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20890 | echo "$as_me:$LINENO: checking for printf %a format specifier" >&5 |
Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 20891 | echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20892 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20893 | ac_cpp='$CPP $CPPFLAGS' |
| 20894 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20895 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20896 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20897 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20898 | if test "$cross_compiling" = yes; then |
| 20899 | ac_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20900 | else |
| 20901 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20902 | |
| 20903 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20904 | _ACEOF |
| 20905 | cat confdefs.h >>conftest.$ac_ext |
| 20906 | cat >>conftest.$ac_ext <<_ACEOF |
| 20907 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20908 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20909 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20910 | #include <stdlib.h> |
| 20911 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20912 | int |
| 20913 | main () |
| 20914 | { |
| 20915 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20916 | volatile double A, B; |
| 20917 | char Buffer[100]; |
| 20918 | A = 1; |
| 20919 | A /= 10.0; |
| 20920 | sprintf(Buffer, "%a", A); |
| 20921 | B = atof(Buffer); |
| 20922 | if (A != B) |
| 20923 | return (1); |
| 20924 | if (A != 0x1.999999999999ap-4) |
| 20925 | return (1); |
| 20926 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20927 | ; |
| 20928 | return 0; |
| 20929 | } |
| 20930 | _ACEOF |
| 20931 | rm -f conftest$ac_exeext |
| 20932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20933 | (eval $ac_link) 2>&5 |
| 20934 | ac_status=$? |
| 20935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20938 | (eval $ac_try) 2>&5 |
| 20939 | ac_status=$? |
| 20940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20941 | (exit $ac_status); }; }; then |
| 20942 | ac_c_printf_a=yes |
| 20943 | else |
| 20944 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20945 | echo "$as_me: failed program was:" >&5 |
| 20946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20947 | |
| 20948 | ( exit $ac_status ) |
| 20949 | ac_c_printf_a=no |
| 20950 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20951 | 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] | 20952 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20953 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20954 | ac_cpp='$CPP $CPPFLAGS' |
| 20955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20958 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20959 | echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5 |
Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 20960 | echo "${ECHO_T}$ac_c_printf_a" >&6 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20961 | if test "$ac_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20962 | |
| 20963 | cat >>confdefs.h <<\_ACEOF |
| 20964 | #define HAVE_PRINTF_A 1 |
| 20965 | _ACEOF |
| 20966 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20967 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20968 | |
| 20969 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 20970 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 20971 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 20972 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 20973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20974 | else |
| 20975 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 20976 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 20977 | /* confdefs.h. */ |
| 20978 | _ACEOF |
| 20979 | cat confdefs.h >>conftest.$ac_ext |
| 20980 | cat >>conftest.$ac_ext <<_ACEOF |
| 20981 | /* end confdefs.h. */ |
| 20982 | #include <sys/types.h> |
| 20983 | #include <sys/param.h> |
| 20984 | |
| 20985 | int |
| 20986 | main () |
| 20987 | { |
| 20988 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 20989 | bogus endian macros |
| 20990 | #endif |
| 20991 | |
| 20992 | ; |
| 20993 | return 0; |
| 20994 | } |
| 20995 | _ACEOF |
| 20996 | rm -f conftest.$ac_objext |
| 20997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20998 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 20999 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21001 | rm -f conftest.er1 |
| 21002 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21004 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21005 | { ac_try='test -z "$ac_c_werror_flag" |
| 21006 | || test ! -s conftest.err' |
| 21007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21008 | (eval $ac_try) 2>&5 |
| 21009 | ac_status=$? |
| 21010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21011 | (exit $ac_status); }; } && |
| 21012 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21014 | (eval $ac_try) 2>&5 |
| 21015 | ac_status=$? |
| 21016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21017 | (exit $ac_status); }; }; then |
| 21018 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 21019 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21020 | /* confdefs.h. */ |
| 21021 | _ACEOF |
| 21022 | cat confdefs.h >>conftest.$ac_ext |
| 21023 | cat >>conftest.$ac_ext <<_ACEOF |
| 21024 | /* end confdefs.h. */ |
| 21025 | #include <sys/types.h> |
| 21026 | #include <sys/param.h> |
| 21027 | |
| 21028 | int |
| 21029 | main () |
| 21030 | { |
| 21031 | #if BYTE_ORDER != BIG_ENDIAN |
| 21032 | not big endian |
| 21033 | #endif |
| 21034 | |
| 21035 | ; |
| 21036 | return 0; |
| 21037 | } |
| 21038 | _ACEOF |
| 21039 | rm -f conftest.$ac_objext |
| 21040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21041 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21042 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21044 | rm -f conftest.er1 |
| 21045 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21047 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21048 | { ac_try='test -z "$ac_c_werror_flag" |
| 21049 | || test ! -s conftest.err' |
| 21050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21051 | (eval $ac_try) 2>&5 |
| 21052 | ac_status=$? |
| 21053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21054 | (exit $ac_status); }; } && |
| 21055 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21057 | (eval $ac_try) 2>&5 |
| 21058 | ac_status=$? |
| 21059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21060 | (exit $ac_status); }; }; then |
| 21061 | ac_cv_c_bigendian=yes |
| 21062 | else |
| 21063 | echo "$as_me: failed program was:" >&5 |
| 21064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21065 | |
| 21066 | ac_cv_c_bigendian=no |
| 21067 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21069 | else |
| 21070 | echo "$as_me: failed program was:" >&5 |
| 21071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21072 | |
| 21073 | # It does not; compile a test program. |
| 21074 | if test "$cross_compiling" = yes; then |
| 21075 | # try to guess the endianness by grepping values into an object file |
| 21076 | ac_cv_c_bigendian=unknown |
| 21077 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21078 | /* confdefs.h. */ |
| 21079 | _ACEOF |
| 21080 | cat confdefs.h >>conftest.$ac_ext |
| 21081 | cat >>conftest.$ac_ext <<_ACEOF |
| 21082 | /* end confdefs.h. */ |
| 21083 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 21084 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 21085 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 21086 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 21087 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 21088 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 21089 | int |
| 21090 | main () |
| 21091 | { |
| 21092 | _ascii (); _ebcdic (); |
| 21093 | ; |
| 21094 | return 0; |
| 21095 | } |
| 21096 | _ACEOF |
| 21097 | rm -f conftest.$ac_objext |
| 21098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21099 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21100 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21102 | rm -f conftest.er1 |
| 21103 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21105 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21106 | { ac_try='test -z "$ac_c_werror_flag" |
| 21107 | || test ! -s conftest.err' |
| 21108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21109 | (eval $ac_try) 2>&5 |
| 21110 | ac_status=$? |
| 21111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21112 | (exit $ac_status); }; } && |
| 21113 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21115 | (eval $ac_try) 2>&5 |
| 21116 | ac_status=$? |
| 21117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21118 | (exit $ac_status); }; }; then |
| 21119 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 21120 | ac_cv_c_bigendian=yes |
| 21121 | fi |
| 21122 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 21123 | if test "$ac_cv_c_bigendian" = unknown; then |
| 21124 | ac_cv_c_bigendian=no |
| 21125 | else |
| 21126 | # finding both strings is unlikely to happen, but who knows? |
| 21127 | ac_cv_c_bigendian=unknown |
| 21128 | fi |
| 21129 | fi |
| 21130 | else |
| 21131 | echo "$as_me: failed program was:" >&5 |
| 21132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21133 | |
| 21134 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21136 | else |
| 21137 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21138 | /* confdefs.h. */ |
| 21139 | _ACEOF |
| 21140 | cat confdefs.h >>conftest.$ac_ext |
| 21141 | cat >>conftest.$ac_ext <<_ACEOF |
| 21142 | /* end confdefs.h. */ |
| 21143 | int |
| 21144 | main () |
| 21145 | { |
| 21146 | /* Are we little or big endian? From Harbison&Steele. */ |
| 21147 | union |
| 21148 | { |
| 21149 | long l; |
| 21150 | char c[sizeof (long)]; |
| 21151 | } u; |
| 21152 | u.l = 1; |
| 21153 | exit (u.c[sizeof (long) - 1] == 1); |
| 21154 | } |
| 21155 | _ACEOF |
| 21156 | rm -f conftest$ac_exeext |
| 21157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21158 | (eval $ac_link) 2>&5 |
| 21159 | ac_status=$? |
| 21160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21161 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21163 | (eval $ac_try) 2>&5 |
| 21164 | ac_status=$? |
| 21165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21166 | (exit $ac_status); }; }; then |
| 21167 | ac_cv_c_bigendian=no |
| 21168 | else |
| 21169 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21170 | echo "$as_me: failed program was:" >&5 |
| 21171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21172 | |
| 21173 | ( exit $ac_status ) |
| 21174 | ac_cv_c_bigendian=yes |
| 21175 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21176 | 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] | 21177 | fi |
| 21178 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21180 | fi |
| 21181 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 21182 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 21183 | case $ac_cv_c_bigendian in |
| 21184 | yes) |
| 21185 | ENDIAN=big |
| 21186 | ;; |
| 21187 | no) |
| 21188 | ENDIAN=little |
| 21189 | ;; |
| 21190 | *) |
| 21191 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 21192 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 21193 | echo "$as_me: error: unknown endianness |
| 21194 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 21195 | { (exit 1); exit 1; }; } ;; |
| 21196 | esac |
| 21197 | |
| 21198 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21199 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 21200 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 21201 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 21202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21203 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21204 | ac_ext=cc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21205 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21209 | |
| 21210 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21211 | /* confdefs.h. */ |
| 21212 | _ACEOF |
| 21213 | cat confdefs.h >>conftest.$ac_ext |
| 21214 | cat >>conftest.$ac_ext <<_ACEOF |
| 21215 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21216 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21217 | int |
| 21218 | main () |
| 21219 | { |
| 21220 | using namespace Outer::Inner; return i; |
| 21221 | ; |
| 21222 | return 0; |
| 21223 | } |
| 21224 | _ACEOF |
| 21225 | rm -f conftest.$ac_objext |
| 21226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21227 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21228 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21230 | rm -f conftest.er1 |
| 21231 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21233 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21234 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21235 | || test ! -s conftest.err' |
| 21236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21237 | (eval $ac_try) 2>&5 |
| 21238 | ac_status=$? |
| 21239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21240 | (exit $ac_status); }; } && |
| 21241 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21243 | (eval $ac_try) 2>&5 |
| 21244 | ac_status=$? |
| 21245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21246 | (exit $ac_status); }; }; then |
| 21247 | ac_cv_cxx_namespaces=yes |
| 21248 | else |
| 21249 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21251 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21252 | ac_cv_cxx_namespaces=no |
| 21253 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21255 | ac_ext=c |
| 21256 | ac_cpp='$CPP $CPPFLAGS' |
| 21257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21260 | |
| 21261 | |
| 21262 | fi |
| 21263 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 21264 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 21265 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 21266 | |
| 21267 | cat >>confdefs.h <<\_ACEOF |
| 21268 | #define HAVE_NAMESPACES |
| 21269 | _ACEOF |
| 21270 | |
| 21271 | fi |
| 21272 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21273 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 21274 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 |
| 21275 | 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] | 21276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21277 | else |
| 21278 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21279 | ac_ext=cc |
| 21280 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21281 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21282 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21283 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21284 | |
| 21285 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21286 | /* confdefs.h. */ |
| 21287 | _ACEOF |
| 21288 | cat confdefs.h >>conftest.$ac_ext |
| 21289 | cat >>conftest.$ac_ext <<_ACEOF |
| 21290 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21291 | #include <ext/hash_map> |
| 21292 | #ifdef HAVE_NAMESPACES |
| 21293 | using namespace std; |
| 21294 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21295 | int |
| 21296 | main () |
| 21297 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21298 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21299 | ; |
| 21300 | return 0; |
| 21301 | } |
| 21302 | _ACEOF |
| 21303 | rm -f conftest.$ac_objext |
| 21304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21305 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21306 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21308 | rm -f conftest.er1 |
| 21309 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21311 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21312 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21313 | || test ! -s conftest.err' |
| 21314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21315 | (eval $ac_try) 2>&5 |
| 21316 | ac_status=$? |
| 21317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21318 | (exit $ac_status); }; } && |
| 21319 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21321 | (eval $ac_try) 2>&5 |
| 21322 | ac_status=$? |
| 21323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21324 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21325 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21326 | else |
| 21327 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21329 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21330 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21331 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21333 | ac_ext=c |
| 21334 | ac_cpp='$CPP $CPPFLAGS' |
| 21335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21338 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21339 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21340 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 21341 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21342 | HAVE_STD_EXT_HASH_MAP=0 |
| 21343 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 21344 | then |
| 21345 | HAVE_STD_EXT_HASH_MAP=1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21346 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21347 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21348 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 21349 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 |
| 21350 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 21351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21352 | else |
| 21353 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21354 | ac_ext=cc |
| 21355 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21356 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21357 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21358 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21359 | |
| 21360 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21361 | /* confdefs.h. */ |
| 21362 | _ACEOF |
| 21363 | cat confdefs.h >>conftest.$ac_ext |
| 21364 | cat >>conftest.$ac_ext <<_ACEOF |
| 21365 | /* end confdefs.h. */ |
| 21366 | #include <ext/hash_map> |
| 21367 | #ifdef HAVE_NAMESPACES |
| 21368 | using namespace __gnu_cxx; |
| 21369 | #endif |
| 21370 | int |
| 21371 | main () |
| 21372 | { |
| 21373 | hash_map<int,int> t; |
| 21374 | ; |
| 21375 | return 0; |
| 21376 | } |
| 21377 | _ACEOF |
| 21378 | rm -f conftest.$ac_objext |
| 21379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21380 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21381 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21383 | rm -f conftest.er1 |
| 21384 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21386 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21387 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21388 | || test ! -s conftest.err' |
| 21389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21390 | (eval $ac_try) 2>&5 |
| 21391 | ac_status=$? |
| 21392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21393 | (exit $ac_status); }; } && |
| 21394 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21396 | (eval $ac_try) 2>&5 |
| 21397 | ac_status=$? |
| 21398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21399 | (exit $ac_status); }; }; then |
| 21400 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 21401 | else |
| 21402 | echo "$as_me: failed program was:" >&5 |
| 21403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21404 | |
| 21405 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21406 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21408 | ac_ext=c |
| 21409 | ac_cpp='$CPP $CPPFLAGS' |
| 21410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21413 | |
| 21414 | fi |
| 21415 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 21416 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21417 | HAVE_GNU_EXT_HASH_MAP=0 |
| 21418 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 21419 | then |
| 21420 | HAVE_GNU_EXT_HASH_MAP=1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21421 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21422 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21423 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 21424 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 |
| 21425 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 21426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21427 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21428 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21429 | ac_ext=cc |
| 21430 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21431 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21432 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21433 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21434 | |
| 21435 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21436 | /* confdefs.h. */ |
| 21437 | _ACEOF |
| 21438 | cat confdefs.h >>conftest.$ac_ext |
| 21439 | cat >>conftest.$ac_ext <<_ACEOF |
| 21440 | /* end confdefs.h. */ |
| 21441 | #include <hash_map> |
| 21442 | int |
| 21443 | main () |
| 21444 | { |
| 21445 | hash_map<int,int> t; |
| 21446 | ; |
| 21447 | return 0; |
| 21448 | } |
| 21449 | _ACEOF |
| 21450 | rm -f conftest.$ac_objext |
| 21451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21452 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21453 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21455 | rm -f conftest.er1 |
| 21456 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21458 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21459 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21460 | || test ! -s conftest.err' |
| 21461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21462 | (eval $ac_try) 2>&5 |
| 21463 | ac_status=$? |
| 21464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21465 | (exit $ac_status); }; } && |
| 21466 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21468 | (eval $ac_try) 2>&5 |
| 21469 | ac_status=$? |
| 21470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21471 | (exit $ac_status); }; }; then |
| 21472 | ac_cv_cxx_have_global_hash_map=yes |
| 21473 | else |
| 21474 | echo "$as_me: failed program was:" >&5 |
| 21475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21476 | |
| 21477 | ac_cv_cxx_have_global_hash_map=no |
| 21478 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21480 | ac_ext=c |
| 21481 | ac_cpp='$CPP $CPPFLAGS' |
| 21482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21485 | |
| 21486 | fi |
| 21487 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 21488 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21489 | HAVE_GLOBAL_HASH_MAP=0 |
| 21490 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 21491 | then |
| 21492 | HAVE_GLOBAL_HASH_MAP=1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21493 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21494 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21495 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 21496 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 |
| 21497 | 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] | 21498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21499 | else |
| 21500 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21501 | ac_ext=cc |
| 21502 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21503 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21504 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21505 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21506 | |
| 21507 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21508 | /* confdefs.h. */ |
| 21509 | _ACEOF |
| 21510 | cat confdefs.h >>conftest.$ac_ext |
| 21511 | cat >>conftest.$ac_ext <<_ACEOF |
| 21512 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21513 | #include <ext/hash_set> |
| 21514 | #ifdef HAVE_NAMESPACES |
| 21515 | using namespace std; |
| 21516 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21517 | int |
| 21518 | main () |
| 21519 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21520 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21521 | ; |
| 21522 | return 0; |
| 21523 | } |
| 21524 | _ACEOF |
| 21525 | rm -f conftest.$ac_objext |
| 21526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21527 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21528 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21530 | rm -f conftest.er1 |
| 21531 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21533 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21534 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21535 | || test ! -s conftest.err' |
| 21536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21537 | (eval $ac_try) 2>&5 |
| 21538 | ac_status=$? |
| 21539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21540 | (exit $ac_status); }; } && |
| 21541 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21543 | (eval $ac_try) 2>&5 |
| 21544 | ac_status=$? |
| 21545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21546 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21547 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21548 | else |
| 21549 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21551 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21552 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21553 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21555 | ac_ext=c |
| 21556 | ac_cpp='$CPP $CPPFLAGS' |
| 21557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21560 | |
| 21561 | fi |
| 21562 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 21563 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21564 | HAVE_STD_EXT_HASH_SET=0 |
| 21565 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 21566 | then |
| 21567 | HAVE_STD_EXT_HASH_SET=1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21568 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21569 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21570 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 21571 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 |
| 21572 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 21573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21574 | else |
| 21575 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21576 | ac_ext=cc |
| 21577 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21578 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21579 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21580 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21581 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21582 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21583 | /* confdefs.h. */ |
| 21584 | _ACEOF |
| 21585 | cat confdefs.h >>conftest.$ac_ext |
| 21586 | cat >>conftest.$ac_ext <<_ACEOF |
| 21587 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21588 | #include <ext/hash_set> |
| 21589 | #ifdef HAVE_NAMESPACES |
| 21590 | using namespace __gnu_cxx; |
| 21591 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21592 | int |
| 21593 | main () |
| 21594 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21595 | hash_set<int> t; |
| 21596 | ; |
| 21597 | return 0; |
| 21598 | } |
| 21599 | _ACEOF |
| 21600 | rm -f conftest.$ac_objext |
| 21601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21602 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21603 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21605 | rm -f conftest.er1 |
| 21606 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21608 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21609 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21610 | || test ! -s conftest.err' |
| 21611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21612 | (eval $ac_try) 2>&5 |
| 21613 | ac_status=$? |
| 21614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21615 | (exit $ac_status); }; } && |
| 21616 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21618 | (eval $ac_try) 2>&5 |
| 21619 | ac_status=$? |
| 21620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21621 | (exit $ac_status); }; }; then |
| 21622 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 21623 | else |
| 21624 | echo "$as_me: failed program was:" >&5 |
| 21625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21626 | |
| 21627 | ac_cv_cxx_have_gnu_ext_hash_set=no |
| 21628 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21630 | ac_ext=c |
| 21631 | ac_cpp='$CPP $CPPFLAGS' |
| 21632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21635 | |
| 21636 | fi |
| 21637 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 21638 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21639 | HAVE_GNU_EXT_HASH_SET=0 |
| 21640 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 21641 | then |
| 21642 | HAVE_GNU_EXT_HASH_SET=1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21643 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21644 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21645 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 21646 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 |
| 21647 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 21648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21649 | else |
| 21650 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21651 | ac_ext=cc |
| 21652 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21656 | |
| 21657 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21658 | /* confdefs.h. */ |
| 21659 | _ACEOF |
| 21660 | cat confdefs.h >>conftest.$ac_ext |
| 21661 | cat >>conftest.$ac_ext <<_ACEOF |
| 21662 | /* end confdefs.h. */ |
| 21663 | #include <hash_set> |
| 21664 | int |
| 21665 | main () |
| 21666 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21667 | hash_set<int> t; return 0; |
| 21668 | ; |
| 21669 | return 0; |
| 21670 | } |
| 21671 | _ACEOF |
| 21672 | rm -f conftest.$ac_objext |
| 21673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21674 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21675 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21677 | rm -f conftest.er1 |
| 21678 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21680 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21681 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21682 | || test ! -s conftest.err' |
| 21683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21684 | (eval $ac_try) 2>&5 |
| 21685 | ac_status=$? |
| 21686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21687 | (exit $ac_status); }; } && |
| 21688 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21690 | (eval $ac_try) 2>&5 |
| 21691 | ac_status=$? |
| 21692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21693 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21694 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21695 | else |
| 21696 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21698 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21699 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21700 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21702 | ac_ext=c |
| 21703 | ac_cpp='$CPP $CPPFLAGS' |
| 21704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21707 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21708 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21709 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 21710 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21711 | HAVE_GLOBAL_HASH_SET=0 |
| 21712 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 21713 | then |
| 21714 | HAVE_GLOBAL_HASH_SET=1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21715 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21716 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21717 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 21718 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 21719 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 21720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21721 | else |
| 21722 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21723 | ac_ext=cc |
| 21724 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21725 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21726 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21727 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21728 | |
| 21729 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21730 | /* confdefs.h. */ |
| 21731 | _ACEOF |
| 21732 | cat confdefs.h >>conftest.$ac_ext |
| 21733 | cat >>conftest.$ac_ext <<_ACEOF |
| 21734 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21735 | #include <iterator> |
| 21736 | #ifdef HAVE_NAMESPACES |
| 21737 | using namespace std; |
| 21738 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21739 | int |
| 21740 | main () |
| 21741 | { |
| 21742 | iterator<int,int,int> t; return 0; |
| 21743 | ; |
| 21744 | return 0; |
| 21745 | } |
| 21746 | _ACEOF |
| 21747 | rm -f conftest.$ac_objext |
| 21748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21749 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21750 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21752 | rm -f conftest.er1 |
| 21753 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21755 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21756 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21757 | || test ! -s conftest.err' |
| 21758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21759 | (eval $ac_try) 2>&5 |
| 21760 | ac_status=$? |
| 21761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21762 | (exit $ac_status); }; } && |
| 21763 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21765 | (eval $ac_try) 2>&5 |
| 21766 | ac_status=$? |
| 21767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21768 | (exit $ac_status); }; }; then |
| 21769 | ac_cv_cxx_have_std_iterator=yes |
| 21770 | else |
| 21771 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21773 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21774 | ac_cv_cxx_have_std_iterator=no |
| 21775 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21777 | ac_ext=c |
| 21778 | ac_cpp='$CPP $CPPFLAGS' |
| 21779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21782 | |
| 21783 | |
| 21784 | fi |
| 21785 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 21786 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 21787 | HAVE_STD_ITERATOR=0 |
| 21788 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 21789 | then |
| 21790 | HAVE_STD_ITERATOR=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21791 | fi |
| 21792 | |
| 21793 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 21794 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 21795 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 21796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21797 | else |
| 21798 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21799 | ac_ext=cc |
| 21800 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21801 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21802 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21803 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21804 | |
| 21805 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21806 | /* confdefs.h. */ |
| 21807 | _ACEOF |
| 21808 | cat confdefs.h >>conftest.$ac_ext |
| 21809 | cat >>conftest.$ac_ext <<_ACEOF |
| 21810 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21811 | #include <iterator> |
| 21812 | #ifdef HAVE_NAMESPACES |
| 21813 | using namespace std; |
| 21814 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21815 | int |
| 21816 | main () |
| 21817 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21818 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21819 | ; |
| 21820 | return 0; |
| 21821 | } |
| 21822 | _ACEOF |
| 21823 | rm -f conftest.$ac_objext |
| 21824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21825 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21826 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21828 | rm -f conftest.er1 |
| 21829 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21831 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21832 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21833 | || test ! -s conftest.err' |
| 21834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21835 | (eval $ac_try) 2>&5 |
| 21836 | ac_status=$? |
| 21837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21838 | (exit $ac_status); }; } && |
| 21839 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21841 | (eval $ac_try) 2>&5 |
| 21842 | ac_status=$? |
| 21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21844 | (exit $ac_status); }; }; then |
| 21845 | ac_cv_cxx_have_bi_iterator=yes |
| 21846 | else |
| 21847 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21849 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21850 | ac_cv_cxx_have_bi_iterator=no |
| 21851 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21853 | ac_ext=c |
| 21854 | ac_cpp='$CPP $CPPFLAGS' |
| 21855 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21856 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21857 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21858 | |
| 21859 | |
| 21860 | fi |
| 21861 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 21862 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 21863 | HAVE_BI_ITERATOR=0 |
| 21864 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 21865 | then |
| 21866 | HAVE_BI_ITERATOR=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21867 | fi |
| 21868 | |
| 21869 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 21870 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 21871 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 21872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21873 | else |
| 21874 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21875 | ac_ext=cc |
| 21876 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21877 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21878 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21879 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21880 | |
| 21881 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21882 | /* confdefs.h. */ |
| 21883 | _ACEOF |
| 21884 | cat confdefs.h >>conftest.$ac_ext |
| 21885 | cat >>conftest.$ac_ext <<_ACEOF |
| 21886 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21887 | #include <iterator> |
| 21888 | #ifdef HAVE_NAMESPACES |
| 21889 | using namespace std; |
| 21890 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21891 | int |
| 21892 | main () |
| 21893 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21894 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21895 | ; |
| 21896 | return 0; |
| 21897 | } |
| 21898 | _ACEOF |
| 21899 | rm -f conftest.$ac_objext |
| 21900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21901 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21902 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21904 | rm -f conftest.er1 |
| 21905 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21907 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21908 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21909 | || test ! -s conftest.err' |
| 21910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21911 | (eval $ac_try) 2>&5 |
| 21912 | ac_status=$? |
| 21913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21914 | (exit $ac_status); }; } && |
| 21915 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21917 | (eval $ac_try) 2>&5 |
| 21918 | ac_status=$? |
| 21919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21920 | (exit $ac_status); }; }; then |
| 21921 | ac_cv_cxx_have_fwd_iterator=yes |
| 21922 | else |
| 21923 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21925 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21926 | ac_cv_cxx_have_fwd_iterator=no |
| 21927 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21929 | ac_ext=c |
| 21930 | ac_cpp='$CPP $CPPFLAGS' |
| 21931 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21932 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21933 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21934 | |
| 21935 | |
| 21936 | fi |
| 21937 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 21938 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 21939 | HAVE_FWD_ITERATOR=0 |
| 21940 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 21941 | then |
| 21942 | HAVE_FWD_ITERATOR=1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21943 | fi |
| 21944 | |
| 21945 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21946 | |
| 21947 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 21948 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 |
| 21949 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 21950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21951 | else |
| 21952 | ac_ext=cc |
| 21953 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21954 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21955 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21956 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21957 | |
| 21958 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21959 | /* confdefs.h. */ |
| 21960 | _ACEOF |
| 21961 | cat confdefs.h >>conftest.$ac_ext |
| 21962 | cat >>conftest.$ac_ext <<_ACEOF |
| 21963 | /* end confdefs.h. */ |
| 21964 | #include <math.h> |
| 21965 | int foo(float f) {return isnan(f);} |
| 21966 | _ACEOF |
| 21967 | rm -f conftest.$ac_objext |
| 21968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21969 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21970 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21972 | rm -f conftest.er1 |
| 21973 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21975 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21976 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 21977 | || test ! -s conftest.err' |
| 21978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21979 | (eval $ac_try) 2>&5 |
| 21980 | ac_status=$? |
| 21981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21982 | (exit $ac_status); }; } && |
| 21983 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21985 | (eval $ac_try) 2>&5 |
| 21986 | ac_status=$? |
| 21987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21988 | (exit $ac_status); }; }; then |
| 21989 | ac_cv_func_isnan_in_math_h=yes |
| 21990 | else |
| 21991 | echo "$as_me: failed program was:" >&5 |
| 21992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21993 | |
| 21994 | ac_cv_func_isnan_in_math_h=no |
| 21995 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 21997 | ac_ext=c |
| 21998 | ac_cpp='$CPP $CPPFLAGS' |
| 21999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22002 | |
| 22003 | fi |
| 22004 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 22005 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 |
| 22006 | if test "$ac_cv_func_isnan_in_math_h" = "yes" |
| 22007 | then |
| 22008 | |
| 22009 | cat >>confdefs.h <<\_ACEOF |
| 22010 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 22011 | _ACEOF |
| 22012 | |
| 22013 | fi |
| 22014 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 22015 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 |
| 22016 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 22017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22018 | else |
| 22019 | ac_ext=cc |
| 22020 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22021 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22022 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22023 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22024 | |
| 22025 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22026 | /* confdefs.h. */ |
| 22027 | _ACEOF |
| 22028 | cat confdefs.h >>conftest.$ac_ext |
| 22029 | cat >>conftest.$ac_ext <<_ACEOF |
| 22030 | /* end confdefs.h. */ |
| 22031 | #include <cmath> |
| 22032 | int foo(float f) {return isnan(f);} |
| 22033 | _ACEOF |
| 22034 | rm -f conftest.$ac_objext |
| 22035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22036 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22037 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22039 | rm -f conftest.er1 |
| 22040 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22042 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22043 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 22044 | || test ! -s conftest.err' |
| 22045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22046 | (eval $ac_try) 2>&5 |
| 22047 | ac_status=$? |
| 22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22049 | (exit $ac_status); }; } && |
| 22050 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22052 | (eval $ac_try) 2>&5 |
| 22053 | ac_status=$? |
| 22054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22055 | (exit $ac_status); }; }; then |
| 22056 | ac_cv_func_isnan_in_cmath=yes |
| 22057 | else |
| 22058 | echo "$as_me: failed program was:" >&5 |
| 22059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22060 | |
| 22061 | ac_cv_func_isnan_in_cmath=no |
| 22062 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22064 | ac_ext=c |
| 22065 | ac_cpp='$CPP $CPPFLAGS' |
| 22066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22069 | |
| 22070 | fi |
| 22071 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 22072 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 |
| 22073 | if test "$ac_cv_func_isnan_in_cmath" = "yes" |
| 22074 | then |
| 22075 | |
| 22076 | cat >>confdefs.h <<\_ACEOF |
| 22077 | #define HAVE_ISNAN_IN_CMATH 1 |
| 22078 | _ACEOF |
| 22079 | |
| 22080 | fi |
| 22081 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 22082 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 |
| 22083 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 22084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22085 | else |
| 22086 | ac_ext=cc |
| 22087 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22088 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22089 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22090 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22091 | |
| 22092 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22093 | /* confdefs.h. */ |
| 22094 | _ACEOF |
| 22095 | cat confdefs.h >>conftest.$ac_ext |
| 22096 | cat >>conftest.$ac_ext <<_ACEOF |
| 22097 | /* end confdefs.h. */ |
| 22098 | #include <cmath> |
| 22099 | using std::isnan; int foo(float f) {return isnan(f);} |
| 22100 | _ACEOF |
| 22101 | rm -f conftest.$ac_objext |
| 22102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22103 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22104 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22106 | rm -f conftest.er1 |
| 22107 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22109 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22110 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 22111 | || test ! -s conftest.err' |
| 22112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22113 | (eval $ac_try) 2>&5 |
| 22114 | ac_status=$? |
| 22115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22116 | (exit $ac_status); }; } && |
| 22117 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22119 | (eval $ac_try) 2>&5 |
| 22120 | ac_status=$? |
| 22121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22122 | (exit $ac_status); }; }; then |
| 22123 | ac_cv_func_std_isnan_in_cmath=yes |
| 22124 | else |
| 22125 | echo "$as_me: failed program was:" >&5 |
| 22126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22127 | |
| 22128 | ac_cv_func_std_isnan_in_cmath=no |
| 22129 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22131 | ac_ext=c |
| 22132 | ac_cpp='$CPP $CPPFLAGS' |
| 22133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22136 | |
| 22137 | fi |
| 22138 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 22139 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 |
| 22140 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" |
| 22141 | then |
| 22142 | |
| 22143 | cat >>confdefs.h <<\_ACEOF |
| 22144 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 22145 | _ACEOF |
| 22146 | |
| 22147 | fi |
| 22148 | |
| 22149 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22150 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 22151 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 |
| 22152 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 22153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22154 | else |
| 22155 | ac_ext=cc |
| 22156 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22157 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22158 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22159 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22160 | |
| 22161 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22162 | /* confdefs.h. */ |
| 22163 | _ACEOF |
| 22164 | cat confdefs.h >>conftest.$ac_ext |
| 22165 | cat >>conftest.$ac_ext <<_ACEOF |
| 22166 | /* end confdefs.h. */ |
| 22167 | #include <math.h> |
| 22168 | int foo(float f) {return isinf(f);} |
| 22169 | _ACEOF |
| 22170 | rm -f conftest.$ac_objext |
| 22171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22172 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22173 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22175 | rm -f conftest.er1 |
| 22176 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22178 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22179 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 22180 | || test ! -s conftest.err' |
| 22181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22182 | (eval $ac_try) 2>&5 |
| 22183 | ac_status=$? |
| 22184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22185 | (exit $ac_status); }; } && |
| 22186 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22188 | (eval $ac_try) 2>&5 |
| 22189 | ac_status=$? |
| 22190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22191 | (exit $ac_status); }; }; then |
| 22192 | ac_cv_func_isinf_in_math_h=yes |
| 22193 | else |
| 22194 | echo "$as_me: failed program was:" >&5 |
| 22195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22196 | |
| 22197 | ac_cv_func_isinf_in_math_h=no |
| 22198 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22200 | ac_ext=c |
| 22201 | ac_cpp='$CPP $CPPFLAGS' |
| 22202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22205 | |
| 22206 | fi |
| 22207 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 22208 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 |
| 22209 | if test "$ac_cv_func_isinf_in_math_h" = "yes" |
| 22210 | then |
| 22211 | |
| 22212 | cat >>confdefs.h <<\_ACEOF |
| 22213 | #define HAVE_ISINF_IN_MATH_H 1 |
| 22214 | _ACEOF |
| 22215 | |
| 22216 | fi |
| 22217 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 22218 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 |
| 22219 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 22220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22221 | else |
| 22222 | ac_ext=cc |
| 22223 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22224 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22225 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22226 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22227 | |
| 22228 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22229 | /* confdefs.h. */ |
| 22230 | _ACEOF |
| 22231 | cat confdefs.h >>conftest.$ac_ext |
| 22232 | cat >>conftest.$ac_ext <<_ACEOF |
| 22233 | /* end confdefs.h. */ |
| 22234 | #include <cmath> |
| 22235 | int foo(float f) {return isinf(f);} |
| 22236 | _ACEOF |
| 22237 | rm -f conftest.$ac_objext |
| 22238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22239 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22240 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22242 | rm -f conftest.er1 |
| 22243 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22245 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22246 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 22247 | || test ! -s conftest.err' |
| 22248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22249 | (eval $ac_try) 2>&5 |
| 22250 | ac_status=$? |
| 22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22252 | (exit $ac_status); }; } && |
| 22253 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22255 | (eval $ac_try) 2>&5 |
| 22256 | ac_status=$? |
| 22257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22258 | (exit $ac_status); }; }; then |
| 22259 | ac_cv_func_isinf_in_cmath=yes |
| 22260 | else |
| 22261 | echo "$as_me: failed program was:" >&5 |
| 22262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22263 | |
| 22264 | ac_cv_func_isinf_in_cmath=no |
| 22265 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22267 | ac_ext=c |
| 22268 | ac_cpp='$CPP $CPPFLAGS' |
| 22269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22272 | |
| 22273 | fi |
| 22274 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 22275 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 |
| 22276 | if test "$ac_cv_func_isinf_in_cmath" = "yes" |
| 22277 | then |
| 22278 | |
| 22279 | cat >>confdefs.h <<\_ACEOF |
| 22280 | #define HAVE_ISINF_IN_CMATH 1 |
| 22281 | _ACEOF |
| 22282 | |
| 22283 | fi |
| 22284 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 22285 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 |
| 22286 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 22287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22288 | else |
| 22289 | ac_ext=cc |
| 22290 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22291 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22292 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22293 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22294 | |
| 22295 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22296 | /* confdefs.h. */ |
| 22297 | _ACEOF |
| 22298 | cat confdefs.h >>conftest.$ac_ext |
| 22299 | cat >>conftest.$ac_ext <<_ACEOF |
| 22300 | /* end confdefs.h. */ |
| 22301 | #include <cmath> |
| 22302 | using std::isinf; int foo(float f) {return isinf(f);} |
| 22303 | _ACEOF |
| 22304 | rm -f conftest.$ac_objext |
| 22305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22306 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22307 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22309 | rm -f conftest.er1 |
| 22310 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22312 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22313 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 22314 | || test ! -s conftest.err' |
| 22315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22316 | (eval $ac_try) 2>&5 |
| 22317 | ac_status=$? |
| 22318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22319 | (exit $ac_status); }; } && |
| 22320 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22322 | (eval $ac_try) 2>&5 |
| 22323 | ac_status=$? |
| 22324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22325 | (exit $ac_status); }; }; then |
| 22326 | ac_cv_func_std_isinf_in_cmath=yes |
| 22327 | else |
| 22328 | echo "$as_me: failed program was:" >&5 |
| 22329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22330 | |
| 22331 | ac_cv_func_std_isinf_in_cmath=no |
| 22332 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22334 | ac_ext=c |
| 22335 | ac_cpp='$CPP $CPPFLAGS' |
| 22336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22339 | |
| 22340 | fi |
| 22341 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 22342 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 |
| 22343 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" |
| 22344 | then |
| 22345 | |
| 22346 | cat >>confdefs.h <<\_ACEOF |
| 22347 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 22348 | _ACEOF |
| 22349 | |
| 22350 | fi |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22351 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 22352 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 |
| 22353 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 22354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22355 | else |
| 22356 | ac_ext=cc |
| 22357 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22358 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22359 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22360 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22361 | |
| 22362 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22363 | /* confdefs.h. */ |
| 22364 | _ACEOF |
| 22365 | cat confdefs.h >>conftest.$ac_ext |
| 22366 | cat >>conftest.$ac_ext <<_ACEOF |
| 22367 | /* end confdefs.h. */ |
| 22368 | #include <ieeefp.h> |
| 22369 | int foo(float f) {return finite(f);} |
| 22370 | _ACEOF |
| 22371 | rm -f conftest.$ac_objext |
| 22372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22373 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22374 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22376 | rm -f conftest.er1 |
| 22377 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22379 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22380 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 22381 | || test ! -s conftest.err' |
| 22382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22383 | (eval $ac_try) 2>&5 |
| 22384 | ac_status=$? |
| 22385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22386 | (exit $ac_status); }; } && |
| 22387 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22389 | (eval $ac_try) 2>&5 |
| 22390 | ac_status=$? |
| 22391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22392 | (exit $ac_status); }; }; then |
| 22393 | ac_cv_func_finite_in_ieeefp_h=yes |
| 22394 | else |
| 22395 | echo "$as_me: failed program was:" >&5 |
| 22396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22397 | |
| 22398 | ac_cv_func_finite_in_ieeefp_h=no |
| 22399 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22401 | ac_ext=c |
| 22402 | ac_cpp='$CPP $CPPFLAGS' |
| 22403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22406 | |
| 22407 | fi |
| 22408 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 22409 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 |
| 22410 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" |
| 22411 | then |
| 22412 | |
| 22413 | cat >>confdefs.h <<\_ACEOF |
| 22414 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 22415 | _ACEOF |
| 22416 | |
| 22417 | fi |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22418 | |
| 22419 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22420 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 22421 | # for constant arguments. Useless! |
| 22422 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 22423 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 22424 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 22425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22426 | else |
| 22427 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22428 | /* confdefs.h. */ |
| 22429 | _ACEOF |
| 22430 | cat confdefs.h >>conftest.$ac_ext |
| 22431 | cat >>conftest.$ac_ext <<_ACEOF |
| 22432 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22433 | #include <alloca.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22434 | int |
| 22435 | main () |
| 22436 | { |
| 22437 | char *p = (char *) alloca (2 * sizeof (int)); |
| 22438 | ; |
| 22439 | return 0; |
| 22440 | } |
| 22441 | _ACEOF |
| 22442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22444 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22445 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22447 | rm -f conftest.er1 |
| 22448 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22450 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22451 | { ac_try='test -z "$ac_c_werror_flag" |
| 22452 | || test ! -s conftest.err' |
| 22453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22454 | (eval $ac_try) 2>&5 |
| 22455 | ac_status=$? |
| 22456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22457 | (exit $ac_status); }; } && |
| 22458 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22460 | (eval $ac_try) 2>&5 |
| 22461 | ac_status=$? |
| 22462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22463 | (exit $ac_status); }; }; then |
| 22464 | ac_cv_working_alloca_h=yes |
| 22465 | else |
| 22466 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22468 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22469 | ac_cv_working_alloca_h=no |
| 22470 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22471 | rm -f conftest.err conftest.$ac_objext \ |
| 22472 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22473 | fi |
| 22474 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 22475 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 22476 | if test $ac_cv_working_alloca_h = yes; then |
| 22477 | |
| 22478 | cat >>confdefs.h <<\_ACEOF |
| 22479 | #define HAVE_ALLOCA_H 1 |
| 22480 | _ACEOF |
| 22481 | |
| 22482 | fi |
| 22483 | |
| 22484 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 22485 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 22486 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 22487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22488 | else |
| 22489 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22490 | /* confdefs.h. */ |
| 22491 | _ACEOF |
| 22492 | cat confdefs.h >>conftest.$ac_ext |
| 22493 | cat >>conftest.$ac_ext <<_ACEOF |
| 22494 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22495 | #ifdef __GNUC__ |
| 22496 | # define alloca __builtin_alloca |
| 22497 | #else |
| 22498 | # ifdef _MSC_VER |
| 22499 | # include <malloc.h> |
| 22500 | # define alloca _alloca |
| 22501 | # else |
| 22502 | # if HAVE_ALLOCA_H |
| 22503 | # include <alloca.h> |
| 22504 | # else |
| 22505 | # ifdef _AIX |
| 22506 | #pragma alloca |
| 22507 | # else |
| 22508 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 22509 | char *alloca (); |
| 22510 | # endif |
| 22511 | # endif |
| 22512 | # endif |
| 22513 | # endif |
| 22514 | #endif |
| 22515 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22516 | int |
| 22517 | main () |
| 22518 | { |
| 22519 | char *p = (char *) alloca (1); |
| 22520 | ; |
| 22521 | return 0; |
| 22522 | } |
| 22523 | _ACEOF |
| 22524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22526 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22527 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22529 | rm -f conftest.er1 |
| 22530 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22532 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22533 | { ac_try='test -z "$ac_c_werror_flag" |
| 22534 | || test ! -s conftest.err' |
| 22535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22536 | (eval $ac_try) 2>&5 |
| 22537 | ac_status=$? |
| 22538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22539 | (exit $ac_status); }; } && |
| 22540 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22542 | (eval $ac_try) 2>&5 |
| 22543 | ac_status=$? |
| 22544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22545 | (exit $ac_status); }; }; then |
| 22546 | ac_cv_func_alloca_works=yes |
| 22547 | else |
| 22548 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22550 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22551 | ac_cv_func_alloca_works=no |
| 22552 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22553 | rm -f conftest.err conftest.$ac_objext \ |
| 22554 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22555 | fi |
| 22556 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 22557 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 22558 | |
| 22559 | if test $ac_cv_func_alloca_works = yes; then |
| 22560 | |
| 22561 | cat >>confdefs.h <<\_ACEOF |
| 22562 | #define HAVE_ALLOCA 1 |
| 22563 | _ACEOF |
| 22564 | |
| 22565 | else |
| 22566 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 22567 | # that cause trouble. Some versions do not even contain alloca or |
| 22568 | # contain a buggy version. If you still want to use their alloca, |
| 22569 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 22570 | |
| 22571 | ALLOCA=alloca.$ac_objext |
| 22572 | |
| 22573 | cat >>confdefs.h <<\_ACEOF |
| 22574 | #define C_ALLOCA 1 |
| 22575 | _ACEOF |
| 22576 | |
| 22577 | |
| 22578 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 22579 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 22580 | if test "${ac_cv_os_cray+set}" = set; then |
| 22581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22582 | else |
| 22583 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22584 | /* confdefs.h. */ |
| 22585 | _ACEOF |
| 22586 | cat confdefs.h >>conftest.$ac_ext |
| 22587 | cat >>conftest.$ac_ext <<_ACEOF |
| 22588 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22589 | #if defined(CRAY) && ! defined(CRAY2) |
| 22590 | webecray |
| 22591 | #else |
| 22592 | wenotbecray |
| 22593 | #endif |
| 22594 | |
| 22595 | _ACEOF |
| 22596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22597 | $EGREP "webecray" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22598 | ac_cv_os_cray=yes |
| 22599 | else |
| 22600 | ac_cv_os_cray=no |
| 22601 | fi |
| 22602 | rm -f conftest* |
| 22603 | |
| 22604 | fi |
| 22605 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 22606 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 22607 | if test $ac_cv_os_cray = yes; then |
| 22608 | for ac_func in _getb67 GETB67 getb67; do |
| 22609 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22610 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22611 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22612 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22614 | else |
| 22615 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22616 | /* confdefs.h. */ |
| 22617 | _ACEOF |
| 22618 | cat confdefs.h >>conftest.$ac_ext |
| 22619 | cat >>conftest.$ac_ext <<_ACEOF |
| 22620 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22621 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22623 | #define $ac_func innocuous_$ac_func |
| 22624 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22625 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22626 | which can conflict with char $ac_func (); below. |
| 22627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22628 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22629 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22630 | #ifdef __STDC__ |
| 22631 | # include <limits.h> |
| 22632 | #else |
| 22633 | # include <assert.h> |
| 22634 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22635 | |
| 22636 | #undef $ac_func |
| 22637 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22638 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22639 | #ifdef __cplusplus |
| 22640 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22641 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22642 | #endif |
| 22643 | /* We use char because int might match the return type of a gcc2 |
| 22644 | builtin and then its argument prototype would still apply. */ |
| 22645 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22646 | /* The GNU C library defines this for functions which it implements |
| 22647 | to always fail with ENOSYS. Some functions are actually named |
| 22648 | something starting with __ and the normal name is an alias. */ |
| 22649 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22650 | choke me |
| 22651 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22652 | char (*f) () = $ac_func; |
| 22653 | #endif |
| 22654 | #ifdef __cplusplus |
| 22655 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22656 | #endif |
| 22657 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22658 | int |
| 22659 | main () |
| 22660 | { |
| 22661 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22662 | ; |
| 22663 | return 0; |
| 22664 | } |
| 22665 | _ACEOF |
| 22666 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22668 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22669 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22671 | rm -f conftest.er1 |
| 22672 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22674 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22675 | { ac_try='test -z "$ac_c_werror_flag" |
| 22676 | || test ! -s conftest.err' |
| 22677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22678 | (eval $ac_try) 2>&5 |
| 22679 | ac_status=$? |
| 22680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22681 | (exit $ac_status); }; } && |
| 22682 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22684 | (eval $ac_try) 2>&5 |
| 22685 | ac_status=$? |
| 22686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22687 | (exit $ac_status); }; }; then |
| 22688 | eval "$as_ac_var=yes" |
| 22689 | else |
| 22690 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22692 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22693 | eval "$as_ac_var=no" |
| 22694 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22695 | rm -f conftest.err conftest.$ac_objext \ |
| 22696 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22697 | fi |
| 22698 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22699 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22700 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22701 | |
| 22702 | cat >>confdefs.h <<_ACEOF |
| 22703 | #define CRAY_STACKSEG_END $ac_func |
| 22704 | _ACEOF |
| 22705 | |
| 22706 | break |
| 22707 | fi |
| 22708 | |
| 22709 | done |
| 22710 | fi |
| 22711 | |
| 22712 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 22713 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 22714 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 22715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22716 | else |
| 22717 | if test "$cross_compiling" = yes; then |
| 22718 | ac_cv_c_stack_direction=0 |
| 22719 | else |
| 22720 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22721 | /* confdefs.h. */ |
| 22722 | _ACEOF |
| 22723 | cat confdefs.h >>conftest.$ac_ext |
| 22724 | cat >>conftest.$ac_ext <<_ACEOF |
| 22725 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22726 | int |
| 22727 | find_stack_direction () |
| 22728 | { |
| 22729 | static char *addr = 0; |
| 22730 | auto char dummy; |
| 22731 | if (addr == 0) |
| 22732 | { |
| 22733 | addr = &dummy; |
| 22734 | return find_stack_direction (); |
| 22735 | } |
| 22736 | else |
| 22737 | return (&dummy > addr) ? 1 : -1; |
| 22738 | } |
| 22739 | |
| 22740 | int |
| 22741 | main () |
| 22742 | { |
| 22743 | exit (find_stack_direction () < 0); |
| 22744 | } |
| 22745 | _ACEOF |
| 22746 | rm -f conftest$ac_exeext |
| 22747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22748 | (eval $ac_link) 2>&5 |
| 22749 | ac_status=$? |
| 22750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22753 | (eval $ac_try) 2>&5 |
| 22754 | ac_status=$? |
| 22755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22756 | (exit $ac_status); }; }; then |
| 22757 | ac_cv_c_stack_direction=1 |
| 22758 | else |
| 22759 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22760 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22762 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22763 | ( exit $ac_status ) |
| 22764 | ac_cv_c_stack_direction=-1 |
| 22765 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22766 | 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] | 22767 | fi |
| 22768 | fi |
| 22769 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 22770 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 22771 | |
| 22772 | cat >>confdefs.h <<_ACEOF |
| 22773 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 22774 | _ACEOF |
| 22775 | |
| 22776 | |
| 22777 | fi |
| 22778 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22779 | |
| 22780 | |
| 22781 | for ac_header in stdlib.h unistd.h |
| 22782 | do |
| 22783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 22784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 22785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 22787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 22788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22789 | fi |
| 22790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 22791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 22792 | else |
| 22793 | # Is the header compilable? |
| 22794 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 22795 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 22796 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22797 | /* confdefs.h. */ |
| 22798 | _ACEOF |
| 22799 | cat confdefs.h >>conftest.$ac_ext |
| 22800 | cat >>conftest.$ac_ext <<_ACEOF |
| 22801 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22802 | $ac_includes_default |
| 22803 | #include <$ac_header> |
| 22804 | _ACEOF |
| 22805 | rm -f conftest.$ac_objext |
| 22806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22807 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22808 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22810 | rm -f conftest.er1 |
| 22811 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22813 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22814 | { ac_try='test -z "$ac_c_werror_flag" |
| 22815 | || test ! -s conftest.err' |
| 22816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22817 | (eval $ac_try) 2>&5 |
| 22818 | ac_status=$? |
| 22819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22820 | (exit $ac_status); }; } && |
| 22821 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22823 | (eval $ac_try) 2>&5 |
| 22824 | ac_status=$? |
| 22825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22826 | (exit $ac_status); }; }; then |
| 22827 | ac_header_compiler=yes |
| 22828 | else |
| 22829 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22831 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22832 | ac_header_compiler=no |
| 22833 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22835 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22836 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 22837 | |
| 22838 | # Is the header present? |
| 22839 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 22840 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 22841 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22842 | /* confdefs.h. */ |
| 22843 | _ACEOF |
| 22844 | cat confdefs.h >>conftest.$ac_ext |
| 22845 | cat >>conftest.$ac_ext <<_ACEOF |
| 22846 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22847 | #include <$ac_header> |
| 22848 | _ACEOF |
| 22849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 22850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 22851 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22852 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22853 | rm -f conftest.er1 |
| 22854 | cat conftest.err >&5 |
| 22855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22856 | (exit $ac_status); } >/dev/null; then |
| 22857 | if test -s conftest.err; then |
| 22858 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22860 | else |
| 22861 | ac_cpp_err= |
| 22862 | fi |
| 22863 | else |
| 22864 | ac_cpp_err=yes |
| 22865 | fi |
| 22866 | if test -z "$ac_cpp_err"; then |
| 22867 | ac_header_preproc=yes |
| 22868 | else |
| 22869 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22871 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22872 | ac_header_preproc=no |
| 22873 | fi |
| 22874 | rm -f conftest.err conftest.$ac_ext |
| 22875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22876 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 22877 | |
| 22878 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22880 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22881 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22882 | 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] | 22883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 22884 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 22885 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22886 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22887 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22888 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 22889 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22890 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 22891 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 22892 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 22893 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 22894 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 22895 | 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] | 22896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 22897 | 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] | 22898 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 22899 | 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] | 22900 | ( |
| 22901 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22902 | ## ----------------------------------- ## |
| 22903 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 22904 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22905 | _ASBOX |
| 22906 | ) | |
| 22907 | sed "s/^/$as_me: WARNING: /" >&2 |
| 22908 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22909 | esac |
| 22910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 22912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 22913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22914 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22915 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22916 | fi |
| 22917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 22918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 22919 | |
| 22920 | fi |
| 22921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 22922 | cat >>confdefs.h <<_ACEOF |
| 22923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 22924 | _ACEOF |
| 22925 | |
| 22926 | fi |
| 22927 | |
| 22928 | done |
| 22929 | |
| 22930 | |
| 22931 | for ac_func in getpagesize |
| 22932 | do |
| 22933 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22934 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22935 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22936 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22938 | else |
| 22939 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22940 | /* confdefs.h. */ |
| 22941 | _ACEOF |
| 22942 | cat confdefs.h >>conftest.$ac_ext |
| 22943 | cat >>conftest.$ac_ext <<_ACEOF |
| 22944 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22947 | #define $ac_func innocuous_$ac_func |
| 22948 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22949 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22950 | which can conflict with char $ac_func (); below. |
| 22951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22952 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22953 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22954 | #ifdef __STDC__ |
| 22955 | # include <limits.h> |
| 22956 | #else |
| 22957 | # include <assert.h> |
| 22958 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22959 | |
| 22960 | #undef $ac_func |
| 22961 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22962 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22963 | #ifdef __cplusplus |
| 22964 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22965 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22966 | #endif |
| 22967 | /* We use char because int might match the return type of a gcc2 |
| 22968 | builtin and then its argument prototype would still apply. */ |
| 22969 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22970 | /* The GNU C library defines this for functions which it implements |
| 22971 | to always fail with ENOSYS. Some functions are actually named |
| 22972 | something starting with __ and the normal name is an alias. */ |
| 22973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22974 | choke me |
| 22975 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22976 | char (*f) () = $ac_func; |
| 22977 | #endif |
| 22978 | #ifdef __cplusplus |
| 22979 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22980 | #endif |
| 22981 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22982 | int |
| 22983 | main () |
| 22984 | { |
| 22985 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22986 | ; |
| 22987 | return 0; |
| 22988 | } |
| 22989 | _ACEOF |
| 22990 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22992 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22993 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22995 | rm -f conftest.er1 |
| 22996 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22998 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22999 | { ac_try='test -z "$ac_c_werror_flag" |
| 23000 | || test ! -s conftest.err' |
| 23001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23002 | (eval $ac_try) 2>&5 |
| 23003 | ac_status=$? |
| 23004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23005 | (exit $ac_status); }; } && |
| 23006 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23008 | (eval $ac_try) 2>&5 |
| 23009 | ac_status=$? |
| 23010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23011 | (exit $ac_status); }; }; then |
| 23012 | eval "$as_ac_var=yes" |
| 23013 | else |
| 23014 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23017 | eval "$as_ac_var=no" |
| 23018 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23019 | rm -f conftest.err conftest.$ac_objext \ |
| 23020 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23021 | fi |
| 23022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 23023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 23024 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23025 | cat >>confdefs.h <<_ACEOF |
| 23026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23027 | _ACEOF |
| 23028 | |
| 23029 | fi |
| 23030 | done |
| 23031 | |
| 23032 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 23033 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 23034 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 23035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23036 | else |
| 23037 | if test "$cross_compiling" = yes; then |
| 23038 | ac_cv_func_mmap_fixed_mapped=no |
| 23039 | else |
| 23040 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23041 | /* confdefs.h. */ |
| 23042 | _ACEOF |
| 23043 | cat confdefs.h >>conftest.$ac_ext |
| 23044 | cat >>conftest.$ac_ext <<_ACEOF |
| 23045 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23046 | $ac_includes_default |
| 23047 | /* malloc might have been renamed as rpl_malloc. */ |
| 23048 | #undef malloc |
| 23049 | |
| 23050 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 23051 | Here is a matrix of mmap possibilities: |
| 23052 | mmap private not fixed |
| 23053 | mmap private fixed at somewhere currently unmapped |
| 23054 | mmap private fixed at somewhere already mapped |
| 23055 | mmap shared not fixed |
| 23056 | mmap shared fixed at somewhere currently unmapped |
| 23057 | mmap shared fixed at somewhere already mapped |
| 23058 | For private mappings, we should verify that changes cannot be read() |
| 23059 | back from the file, nor mmap's back from the file at a different |
| 23060 | address. (There have been systems where private was not correctly |
| 23061 | implemented like the infamous i386 svr4.0, and systems where the |
| 23062 | VM page cache was not coherent with the file system buffer cache |
| 23063 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 23064 | For shared mappings, we should conversely verify that changes get |
| 23065 | propagated back to all the places they're supposed to be. |
| 23066 | |
| 23067 | Grep wants private fixed already mapped. |
| 23068 | The main things grep needs to know about mmap are: |
| 23069 | * does it exist and is it safe to write into the mmap'd area |
| 23070 | * how to use it (BSD variants) */ |
| 23071 | |
| 23072 | #include <fcntl.h> |
| 23073 | #include <sys/mman.h> |
| 23074 | |
| 23075 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 23076 | char *malloc (); |
| 23077 | #endif |
| 23078 | |
| 23079 | /* This mess was copied from the GNU getpagesize.h. */ |
| 23080 | #if !HAVE_GETPAGESIZE |
| 23081 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 23082 | # if !HAVE_SYS_PARAM_H |
| 23083 | # define HAVE_SYS_PARAM_H 1 |
| 23084 | # endif |
| 23085 | |
| 23086 | # ifdef _SC_PAGESIZE |
| 23087 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 23088 | # else /* no _SC_PAGESIZE */ |
| 23089 | # if HAVE_SYS_PARAM_H |
| 23090 | # include <sys/param.h> |
| 23091 | # ifdef EXEC_PAGESIZE |
| 23092 | # define getpagesize() EXEC_PAGESIZE |
| 23093 | # else /* no EXEC_PAGESIZE */ |
| 23094 | # ifdef NBPG |
| 23095 | # define getpagesize() NBPG * CLSIZE |
| 23096 | # ifndef CLSIZE |
| 23097 | # define CLSIZE 1 |
| 23098 | # endif /* no CLSIZE */ |
| 23099 | # else /* no NBPG */ |
| 23100 | # ifdef NBPC |
| 23101 | # define getpagesize() NBPC |
| 23102 | # else /* no NBPC */ |
| 23103 | # ifdef PAGESIZE |
| 23104 | # define getpagesize() PAGESIZE |
| 23105 | # endif /* PAGESIZE */ |
| 23106 | # endif /* no NBPC */ |
| 23107 | # endif /* no NBPG */ |
| 23108 | # endif /* no EXEC_PAGESIZE */ |
| 23109 | # else /* no HAVE_SYS_PARAM_H */ |
| 23110 | # define getpagesize() 8192 /* punt totally */ |
| 23111 | # endif /* no HAVE_SYS_PARAM_H */ |
| 23112 | # endif /* no _SC_PAGESIZE */ |
| 23113 | |
| 23114 | #endif /* no HAVE_GETPAGESIZE */ |
| 23115 | |
| 23116 | int |
| 23117 | main () |
| 23118 | { |
| 23119 | char *data, *data2, *data3; |
| 23120 | int i, pagesize; |
| 23121 | int fd; |
| 23122 | |
| 23123 | pagesize = getpagesize (); |
| 23124 | |
| 23125 | /* First, make a file with some known garbage in it. */ |
| 23126 | data = (char *) malloc (pagesize); |
| 23127 | if (!data) |
| 23128 | exit (1); |
| 23129 | for (i = 0; i < pagesize; ++i) |
| 23130 | *(data + i) = rand (); |
| 23131 | umask (0); |
| 23132 | fd = creat ("conftest.mmap", 0600); |
| 23133 | if (fd < 0) |
| 23134 | exit (1); |
| 23135 | if (write (fd, data, pagesize) != pagesize) |
| 23136 | exit (1); |
| 23137 | close (fd); |
| 23138 | |
| 23139 | /* Next, try to mmap the file at a fixed address which already has |
| 23140 | something else allocated at it. If we can, also make sure that |
| 23141 | we see the same garbage. */ |
| 23142 | fd = open ("conftest.mmap", O_RDWR); |
| 23143 | if (fd < 0) |
| 23144 | exit (1); |
| 23145 | data2 = (char *) malloc (2 * pagesize); |
| 23146 | if (!data2) |
| 23147 | exit (1); |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23148 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23149 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23150 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23151 | exit (1); |
| 23152 | for (i = 0; i < pagesize; ++i) |
| 23153 | if (*(data + i) != *(data2 + i)) |
| 23154 | exit (1); |
| 23155 | |
| 23156 | /* Finally, make sure that changes to the mapped area do not |
| 23157 | percolate back to the file as seen by read(). (This is a bug on |
| 23158 | some variants of i386 svr4.0.) */ |
| 23159 | for (i = 0; i < pagesize; ++i) |
| 23160 | *(data2 + i) = *(data2 + i) + 1; |
| 23161 | data3 = (char *) malloc (pagesize); |
| 23162 | if (!data3) |
| 23163 | exit (1); |
| 23164 | if (read (fd, data3, pagesize) != pagesize) |
| 23165 | exit (1); |
| 23166 | for (i = 0; i < pagesize; ++i) |
| 23167 | if (*(data + i) != *(data3 + i)) |
| 23168 | exit (1); |
| 23169 | close (fd); |
| 23170 | exit (0); |
| 23171 | } |
| 23172 | _ACEOF |
| 23173 | rm -f conftest$ac_exeext |
| 23174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23175 | (eval $ac_link) 2>&5 |
| 23176 | ac_status=$? |
| 23177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23178 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23180 | (eval $ac_try) 2>&5 |
| 23181 | ac_status=$? |
| 23182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23183 | (exit $ac_status); }; }; then |
| 23184 | ac_cv_func_mmap_fixed_mapped=yes |
| 23185 | else |
| 23186 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23187 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23189 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23190 | ( exit $ac_status ) |
| 23191 | ac_cv_func_mmap_fixed_mapped=no |
| 23192 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23193 | 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] | 23194 | fi |
| 23195 | fi |
| 23196 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 23197 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 23198 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 23199 | |
| 23200 | cat >>confdefs.h <<\_ACEOF |
| 23201 | #define HAVE_MMAP 1 |
| 23202 | _ACEOF |
| 23203 | |
| 23204 | fi |
| 23205 | rm -f conftest.mmap |
| 23206 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23207 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 23208 | then |
John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 23209 | { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 |
| 23210 | echo "$as_me: WARNING: mmap() required but not found" >&2;} |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23211 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23212 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 23213 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 23214 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 23215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23216 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23217 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23218 | ac_cpp='$CPP $CPPFLAGS' |
| 23219 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23220 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23221 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23222 | |
| 23223 | if test "$cross_compiling" = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23224 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23225 | else |
| 23226 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23227 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23228 | #ifdef HAVE_SYS_TYPES_H |
| 23229 | #include <sys/types.h> |
| 23230 | #endif |
| 23231 | |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23232 | #ifdef HAVE_SYS_MMAN_H |
| 23233 | #include <sys/mman.h> |
| 23234 | #endif |
| 23235 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23236 | #ifdef HAVE_FCNTL_H |
| 23237 | #include <fcntl.h> |
| 23238 | #endif |
| 23239 | |
| 23240 | int fd; |
| 23241 | int main () { |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23242 | fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23243 | _ACEOF |
| 23244 | rm -f conftest$ac_exeext |
| 23245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23246 | (eval $ac_link) 2>&5 |
| 23247 | ac_status=$? |
| 23248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23251 | (eval $ac_try) 2>&5 |
| 23252 | ac_status=$? |
| 23253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23254 | (exit $ac_status); }; }; then |
| 23255 | ac_cv_func_mmap_file=yes |
| 23256 | else |
| 23257 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23258 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23260 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23261 | ( exit $ac_status ) |
| 23262 | ac_cv_func_mmap_file=no |
| 23263 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23264 | 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] | 23265 | fi |
| 23266 | ac_ext=c |
| 23267 | ac_cpp='$CPP $CPPFLAGS' |
| 23268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23271 | |
| 23272 | |
| 23273 | fi |
| 23274 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 23275 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 23276 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23277 | |
| 23278 | cat >>confdefs.h <<\_ACEOF |
| 23279 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23280 | _ACEOF |
| 23281 | |
| 23282 | MMAP_FILE=yes |
| 23283 | |
| 23284 | fi |
| 23285 | |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23286 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23287 | then |
John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 23288 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 23289 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23290 | fi |
| 23291 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 23292 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 23293 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 23294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23295 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23296 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23297 | ac_cpp='$CPP $CPPFLAGS' |
| 23298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23301 | |
| 23302 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23303 | /* confdefs.h. */ |
| 23304 | _ACEOF |
| 23305 | cat confdefs.h >>conftest.$ac_ext |
| 23306 | cat >>conftest.$ac_ext <<_ACEOF |
| 23307 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23308 | #include <sys/mman.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23309 | #include <unistd.h> |
| 23310 | #include <fcntl.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23311 | int |
| 23312 | main () |
| 23313 | { |
| 23314 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 23315 | ; |
| 23316 | return 0; |
| 23317 | } |
| 23318 | _ACEOF |
| 23319 | rm -f conftest.$ac_objext |
| 23320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23321 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23322 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23324 | rm -f conftest.er1 |
| 23325 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23327 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23328 | { ac_try='test -z "$ac_c_werror_flag" |
| 23329 | || test ! -s conftest.err' |
| 23330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23331 | (eval $ac_try) 2>&5 |
| 23332 | ac_status=$? |
| 23333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23334 | (exit $ac_status); }; } && |
| 23335 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23337 | (eval $ac_try) 2>&5 |
| 23338 | ac_status=$? |
| 23339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23340 | (exit $ac_status); }; }; then |
| 23341 | ac_cv_header_mmap_anon=yes |
| 23342 | else |
| 23343 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23345 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23346 | ac_cv_header_mmap_anon=no |
| 23347 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23349 | ac_ext=c |
| 23350 | ac_cpp='$CPP $CPPFLAGS' |
| 23351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23354 | |
| 23355 | |
| 23356 | fi |
| 23357 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 23358 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 23359 | if test "$ac_cv_header_mmap_anon" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23360 | |
| 23361 | cat >>confdefs.h <<\_ACEOF |
| 23362 | #define HAVE_MMAP_ANONYMOUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23363 | _ACEOF |
| 23364 | |
| 23365 | fi |
| 23366 | |
| 23367 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 23368 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 23369 | if test "${ac_cv_type_signal+set}" = set; then |
| 23370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23371 | else |
| 23372 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23373 | /* confdefs.h. */ |
| 23374 | _ACEOF |
| 23375 | cat confdefs.h >>conftest.$ac_ext |
| 23376 | cat >>conftest.$ac_ext <<_ACEOF |
| 23377 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23378 | #include <sys/types.h> |
| 23379 | #include <signal.h> |
| 23380 | #ifdef signal |
| 23381 | # undef signal |
| 23382 | #endif |
| 23383 | #ifdef __cplusplus |
| 23384 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 23385 | #else |
| 23386 | void (*signal ()) (); |
| 23387 | #endif |
| 23388 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23389 | int |
| 23390 | main () |
| 23391 | { |
| 23392 | int i; |
| 23393 | ; |
| 23394 | return 0; |
| 23395 | } |
| 23396 | _ACEOF |
| 23397 | rm -f conftest.$ac_objext |
| 23398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23399 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23400 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23402 | rm -f conftest.er1 |
| 23403 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23405 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23406 | { ac_try='test -z "$ac_c_werror_flag" |
| 23407 | || test ! -s conftest.err' |
| 23408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23409 | (eval $ac_try) 2>&5 |
| 23410 | ac_status=$? |
| 23411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23412 | (exit $ac_status); }; } && |
| 23413 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23415 | (eval $ac_try) 2>&5 |
| 23416 | ac_status=$? |
| 23417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23418 | (exit $ac_status); }; }; then |
| 23419 | ac_cv_type_signal=void |
| 23420 | else |
| 23421 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23423 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23424 | ac_cv_type_signal=int |
| 23425 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23427 | fi |
| 23428 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 23429 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 23430 | |
| 23431 | cat >>confdefs.h <<_ACEOF |
| 23432 | #define RETSIGTYPE $ac_cv_type_signal |
| 23433 | _ACEOF |
| 23434 | |
| 23435 | |
| 23436 | |
| 23437 | |
| 23438 | |
| 23439 | |
| 23440 | |
Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 23441 | |
Brian Gaeke | 9a08b5e | 2004-04-02 21:26:02 +0000 | [diff] [blame] | 23442 | |
John Criswell | d662156 | 2004-06-07 14:26:24 +0000 | [diff] [blame] | 23443 | |
| 23444 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 23445 | for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23446 | do |
| 23447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 23450 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 23451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23452 | else |
| 23453 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23454 | /* confdefs.h. */ |
| 23455 | _ACEOF |
| 23456 | cat confdefs.h >>conftest.$ac_ext |
| 23457 | cat >>conftest.$ac_ext <<_ACEOF |
| 23458 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23459 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23460 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23461 | #define $ac_func innocuous_$ac_func |
| 23462 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23463 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23464 | which can conflict with char $ac_func (); below. |
| 23465 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23466 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23467 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23468 | #ifdef __STDC__ |
| 23469 | # include <limits.h> |
| 23470 | #else |
| 23471 | # include <assert.h> |
| 23472 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23473 | |
| 23474 | #undef $ac_func |
| 23475 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23476 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23477 | #ifdef __cplusplus |
| 23478 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23479 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23480 | #endif |
| 23481 | /* We use char because int might match the return type of a gcc2 |
| 23482 | builtin and then its argument prototype would still apply. */ |
| 23483 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23484 | /* The GNU C library defines this for functions which it implements |
| 23485 | to always fail with ENOSYS. Some functions are actually named |
| 23486 | something starting with __ and the normal name is an alias. */ |
| 23487 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 23488 | choke me |
| 23489 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23490 | char (*f) () = $ac_func; |
| 23491 | #endif |
| 23492 | #ifdef __cplusplus |
| 23493 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23494 | #endif |
| 23495 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23496 | int |
| 23497 | main () |
| 23498 | { |
| 23499 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23500 | ; |
| 23501 | return 0; |
| 23502 | } |
| 23503 | _ACEOF |
| 23504 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23506 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23507 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23509 | rm -f conftest.er1 |
| 23510 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23512 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23513 | { ac_try='test -z "$ac_c_werror_flag" |
| 23514 | || test ! -s conftest.err' |
| 23515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23516 | (eval $ac_try) 2>&5 |
| 23517 | ac_status=$? |
| 23518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23519 | (exit $ac_status); }; } && |
| 23520 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23522 | (eval $ac_try) 2>&5 |
| 23523 | ac_status=$? |
| 23524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23525 | (exit $ac_status); }; }; then |
| 23526 | eval "$as_ac_var=yes" |
| 23527 | else |
| 23528 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23530 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23531 | eval "$as_ac_var=no" |
| 23532 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23533 | rm -f conftest.err conftest.$ac_objext \ |
| 23534 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23535 | fi |
| 23536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 23537 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 23538 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23539 | cat >>confdefs.h <<_ACEOF |
| 23540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23541 | _ACEOF |
| 23542 | |
| 23543 | fi |
| 23544 | done |
| 23545 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23546 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 23547 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 23548 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 23549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23550 | else |
| 23551 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23552 | /* confdefs.h. */ |
| 23553 | _ACEOF |
| 23554 | cat confdefs.h >>conftest.$ac_ext |
| 23555 | cat >>conftest.$ac_ext <<_ACEOF |
| 23556 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23557 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 23558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23559 | #define mprotect innocuous_mprotect |
| 23560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23561 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23562 | which can conflict with char mprotect (); below. |
| 23563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23564 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23565 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23566 | #ifdef __STDC__ |
| 23567 | # include <limits.h> |
| 23568 | #else |
| 23569 | # include <assert.h> |
| 23570 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23571 | |
| 23572 | #undef mprotect |
| 23573 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23574 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23575 | #ifdef __cplusplus |
| 23576 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23577 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23578 | #endif |
| 23579 | /* We use char because int might match the return type of a gcc2 |
| 23580 | builtin and then its argument prototype would still apply. */ |
| 23581 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23582 | /* The GNU C library defines this for functions which it implements |
| 23583 | to always fail with ENOSYS. Some functions are actually named |
| 23584 | something starting with __ and the normal name is an alias. */ |
| 23585 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 23586 | choke me |
| 23587 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23588 | char (*f) () = mprotect; |
| 23589 | #endif |
| 23590 | #ifdef __cplusplus |
| 23591 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23592 | #endif |
| 23593 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23594 | int |
| 23595 | main () |
| 23596 | { |
| 23597 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23598 | ; |
| 23599 | return 0; |
| 23600 | } |
| 23601 | _ACEOF |
| 23602 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23604 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23605 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23607 | rm -f conftest.er1 |
| 23608 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23610 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23611 | { ac_try='test -z "$ac_c_werror_flag" |
| 23612 | || test ! -s conftest.err' |
| 23613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23614 | (eval $ac_try) 2>&5 |
| 23615 | ac_status=$? |
| 23616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23617 | (exit $ac_status); }; } && |
| 23618 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23620 | (eval $ac_try) 2>&5 |
| 23621 | ac_status=$? |
| 23622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23623 | (exit $ac_status); }; }; then |
| 23624 | ac_cv_func_mprotect=yes |
| 23625 | else |
| 23626 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23628 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23629 | ac_cv_func_mprotect=no |
| 23630 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23631 | rm -f conftest.err conftest.$ac_objext \ |
| 23632 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23633 | fi |
| 23634 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 23635 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 23636 | if test $ac_cv_func_mprotect = yes; then |
| 23637 | : |
| 23638 | else |
| 23639 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 23640 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 23641 | { (exit 1); exit 1; }; } |
| 23642 | fi |
| 23643 | |
| 23644 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23645 | |
Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 23646 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 23647 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23648 | ac_ext=c |
| 23649 | ac_cpp='$CPP $CPPFLAGS' |
| 23650 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23651 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23652 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23653 | |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23654 | oldcflags="$CFLAGS" |
| 23655 | CFLAGS="$CFLAGS -Wl,-R." |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23656 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23657 | int main() { return 0; } |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23658 | _ACEOF |
| 23659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23661 | (eval $ac_link) 2>conftest.er1 |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23662 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23664 | rm -f conftest.er1 |
| 23665 | cat conftest.err >&5 |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23667 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23668 | { ac_try='test -z "$ac_c_werror_flag" |
| 23669 | || test ! -s conftest.err' |
| 23670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23671 | (eval $ac_try) 2>&5 |
| 23672 | ac_status=$? |
| 23673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23674 | (exit $ac_status); }; } && |
| 23675 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23677 | (eval $ac_try) 2>&5 |
| 23678 | ac_status=$? |
| 23679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23680 | (exit $ac_status); }; }; then |
| 23681 | ac_cv_link_use_r=yes |
| 23682 | else |
| 23683 | echo "$as_me: failed program was:" >&5 |
| 23684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23685 | |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23686 | ac_cv_link_use_r=no |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23687 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23688 | rm -f conftest.err conftest.$ac_objext \ |
| 23689 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23690 | CFLAGS="$oldcflags" |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23691 | ac_ext=c |
| 23692 | ac_cpp='$CPP $CPPFLAGS' |
| 23693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23696 | |
Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 23697 | echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5 |
| 23698 | echo "${ECHO_T}$ac_cv_link_use_r" >&6 |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23699 | if test "$ac_cv_link_use_r" = yes |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23700 | then |
Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23701 | |
| 23702 | cat >>confdefs.h <<\_ACEOF |
John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23703 | #define HAVE_LINK_R 1 |
| 23704 | _ACEOF |
| 23705 | |
| 23706 | fi |
| 23707 | |
| 23708 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23709 | # Check whether --enable-optimized or --disable-optimized was given. |
| 23710 | if test "${enable_optimized+set}" = set; then |
| 23711 | enableval="$enable_optimized" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23712 | |
| 23713 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23714 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23715 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23716 | if test ${enableval} = "no" |
| 23717 | then |
| 23718 | ENABLE_OPTIMIZED= |
| 23719 | |
| 23720 | else |
| 23721 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 23722 | |
| 23723 | fi |
| 23724 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23725 | # Check whether --enable-jit or --disable-jit was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23726 | if test "${enable_jit+set}" = set; then |
| 23727 | enableval="$enable_jit" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23728 | |
| 23729 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 23730 | enableval=default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23731 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23732 | if test ${enableval} = "no" |
| 23733 | then |
| 23734 | JIT= |
| 23735 | |
| 23736 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 23737 | case $target in |
| 23738 | *i*86*) |
| 23739 | JIT=TARGET_HAS_JIT=1 |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23740 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 23741 | ;; |
| 23742 | *sparc*) |
| 23743 | JIT=TARGET_HAS_JIT=1 |
| 23744 | |
| 23745 | ;; |
| 23746 | *) |
| 23747 | JIT= |
| 23748 | |
| 23749 | ;; |
| 23750 | esac |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23751 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23752 | |
| 23753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23754 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 23755 | if test "${with_llvmgccdir+set}" = set; then |
| 23756 | withval="$with_llvmgccdir" |
| 23757 | LLVMGCCDIR=$withval |
| 23758 | |
| 23759 | fi; |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23760 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 |
| 23761 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 |
| 23762 | LLVM_GCC_CHECK=no |
| 23763 | if test -d "$LLVMGCCDIR" |
| 23764 | then |
| 23765 | if test -x "$LLVMGCCDIR/bin/gcc" |
| 23766 | then |
| 23767 | LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" |
| 23768 | fi |
| 23769 | fi |
| 23770 | llvmgccwarn=no |
| 23771 | echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 |
| 23772 | echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 |
| 23773 | if test "$LLVM_GCC_CHECK" = "no" |
| 23774 | then |
| 23775 | llvmgccwarn=yes |
| 23776 | fi |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23777 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 23778 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 |
| 23779 | LLVM_GCC_SANE=no |
| 23780 | if test -x "$LLVM_GCC_CHECK" |
| 23781 | then |
| 23782 | cp /dev/null conftest.c |
| 23783 | "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
| 23784 | if test $? -eq 0 |
| 23785 | then |
| 23786 | LLVM_GCC_SANE=yes |
| 23787 | fi |
| 23788 | rm conftest.c |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 23789 | llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23790 | LLVMCC1=$llvmcc1path |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 23791 | |
| 23792 | llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23793 | LLVMCC1PLUS=$llvmcc1pluspath |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 23794 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23795 | fi |
| 23796 | echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 |
| 23797 | echo "${ECHO_T}$LLVM_GCC_SANE" >&6 |
| 23798 | if test "$LLVM_GCC_SANE" = "no" |
| 23799 | then |
| 23800 | llvmgccwarn=yes |
| 23801 | fi |
| 23802 | |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23803 | echo "$as_me:$LINENO: checking for shared library suffix" >&5 |
| 23804 | echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 |
| 23805 | eval "SHLIBEXT=$shrext" |
| 23806 | echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 |
| 23807 | echo "${ECHO_T}$SHLIBEXT" >&6 |
| 23808 | SHLIBEXT=$SHLIBEXT |
| 23809 | |
| 23810 | |
| 23811 | cat >>confdefs.h <<_ACEOF |
| 23812 | #define SHLIBEXT "$SHLIBEXT" |
| 23813 | _ACEOF |
| 23814 | |
| 23815 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 23816 | # Translate the various configuration directories and other basic |
| 23817 | # information into substitutions that will end up in config.h.in so |
| 23818 | # that these configured values can be hard-wired into a program. |
| 23819 | eval LLVM_PREFIX="${prefix}"; |
| 23820 | eval LLVM_BINDIR="${prefix}/bin"; |
| 23821 | eval LLVM_LIBDIR="${prefix}/lib"; |
| 23822 | eval LLVM_DATADIR="${prefix}/data"; |
| 23823 | eval LLVM_DOCSDIR="${prefix}/docs"; |
| 23824 | eval LLVM_ETCDIR="${prefix}/etc"; |
| 23825 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 23826 | eval LLVM_INFODIR="${prefix}/info"; |
| 23827 | eval LLVM_MANDIR="${prefix}/man"; |
| 23828 | LLVM_CONFIGTIME=`date` |
| 23829 | |
| 23830 | |
| 23831 | |
| 23832 | |
| 23833 | |
| 23834 | |
| 23835 | |
| 23836 | |
| 23837 | |
| 23838 | |
| 23839 | |
| 23840 | cat >>confdefs.h <<_ACEOF |
| 23841 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 23842 | _ACEOF |
| 23843 | |
| 23844 | |
| 23845 | cat >>confdefs.h <<_ACEOF |
| 23846 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 23847 | _ACEOF |
| 23848 | |
| 23849 | |
| 23850 | cat >>confdefs.h <<_ACEOF |
| 23851 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 23852 | _ACEOF |
| 23853 | |
| 23854 | |
| 23855 | cat >>confdefs.h <<_ACEOF |
| 23856 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 23857 | _ACEOF |
| 23858 | |
| 23859 | |
| 23860 | cat >>confdefs.h <<_ACEOF |
| 23861 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 23862 | _ACEOF |
| 23863 | |
| 23864 | |
| 23865 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 23866 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 23867 | _ACEOF |
| 23868 | |
| 23869 | |
| 23870 | cat >>confdefs.h <<_ACEOF |
| 23871 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 23872 | _ACEOF |
| 23873 | |
| 23874 | |
| 23875 | cat >>confdefs.h <<_ACEOF |
| 23876 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 23877 | _ACEOF |
| 23878 | |
| 23879 | |
| 23880 | cat >>confdefs.h <<_ACEOF |
| 23881 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 23882 | _ACEOF |
| 23883 | |
| 23884 | |
| 23885 | cat >>confdefs.h <<_ACEOF |
| 23886 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 23887 | _ACEOF |
| 23888 | |
| 23889 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23890 | cat >confcache <<\_ACEOF |
| 23891 | # This file is a shell script that caches the results of configure |
| 23892 | # tests run on this system so they can be shared between configure |
| 23893 | # scripts and configure runs, see configure's option --config-cache. |
| 23894 | # It is not useful on other systems. If it contains results you don't |
| 23895 | # want to keep, you may remove or edit it. |
| 23896 | # |
| 23897 | # config.status only pays attention to the cache file if you give it |
| 23898 | # the --recheck option to rerun configure. |
| 23899 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23900 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23901 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23902 | # following values. |
| 23903 | |
| 23904 | _ACEOF |
| 23905 | |
| 23906 | # The following way of writing the cache mishandles newlines in values, |
| 23907 | # but we know of no workaround that is simple, portable, and efficient. |
| 23908 | # So, don't put newlines in cache variables' values. |
| 23909 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23910 | # and sets the high bit in the cache file unless we assign to the vars. |
| 23911 | { |
| 23912 | (set) 2>&1 | |
| 23913 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 23914 | *ac_space=\ *) |
| 23915 | # `set' does not quote correctly, so add quotes (double-quote |
| 23916 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23917 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23918 | "s/'/'\\\\''/g; |
| 23919 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23920 | ;; |
| 23921 | *) |
| 23922 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 23923 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23924 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23925 | ;; |
| 23926 | esac; |
| 23927 | } | |
| 23928 | sed ' |
| 23929 | t clear |
| 23930 | : clear |
| 23931 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23932 | t end |
| 23933 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23934 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23935 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23936 | if test -w $cache_file; then |
| 23937 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 23938 | cat confcache >$cache_file |
| 23939 | else |
| 23940 | echo "not updating unwritable cache $cache_file" |
| 23941 | fi |
| 23942 | fi |
| 23943 | rm -f confcache |
| 23944 | |
| 23945 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23946 | # Let make expand exec_prefix. |
| 23947 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 23948 | |
| 23949 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23950 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23951 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23952 | # (actually we leave an empty line to preserve line numbers). |
| 23953 | if test "x$srcdir" = x.; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23954 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23955 | s/:*\$(srcdir):*/:/; |
| 23956 | s/:*\${srcdir}:*/:/; |
| 23957 | s/:*@srcdir@:*/:/; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23958 | s/^\([^=]*=[ ]*\):*/\1/; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23959 | s/:*$//; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23960 | s/^[^=]*=[ ]*$//; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23961 | }' |
| 23962 | fi |
| 23963 | |
| 23964 | DEFS=-DHAVE_CONFIG_H |
| 23965 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23966 | ac_libobjs= |
| 23967 | ac_ltlibobjs= |
| 23968 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23969 | # 1. Remove the extension, and $U if already installed. |
| 23970 | ac_i=`echo "$ac_i" | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23971 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23972 | # 2. Add them. |
| 23973 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 23974 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 23975 | done |
| 23976 | LIBOBJS=$ac_libobjs |
| 23977 | |
| 23978 | LTLIBOBJS=$ac_ltlibobjs |
| 23979 | |
| 23980 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23981 | |
| 23982 | : ${CONFIG_STATUS=./config.status} |
| 23983 | ac_clean_files_save=$ac_clean_files |
| 23984 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23985 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23986 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23987 | cat >$CONFIG_STATUS <<_ACEOF |
| 23988 | #! $SHELL |
| 23989 | # Generated by $as_me. |
| 23990 | # Run this file to recreate the current configuration. |
| 23991 | # Compiler output produced by configure, useful for debugging |
| 23992 | # configure, is in config.log if it exists. |
| 23993 | |
| 23994 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23995 | ac_cs_recheck=false |
| 23996 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23997 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23998 | _ACEOF |
| 23999 | |
| 24000 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24001 | ## --------------------- ## |
| 24002 | ## M4sh Initialization. ## |
| 24003 | ## --------------------- ## |
| 24004 | |
| 24005 | # Be Bourne compatible |
| 24006 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24007 | emulate sh |
| 24008 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24009 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 24010 | # is contrary to our usage. Disable this feature. |
| 24011 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24012 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 24013 | set -o posix |
| 24014 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24015 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24017 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24018 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24019 | as_unset=unset |
| 24020 | else |
| 24021 | as_unset=false |
| 24022 | fi |
| 24023 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24024 | |
| 24025 | # Work around bugs in pre-3.0 UWIN ksh. |
| 24026 | $as_unset ENV MAIL MAILPATH |
| 24027 | PS1='$ ' |
| 24028 | PS2='> ' |
| 24029 | PS4='+ ' |
| 24030 | |
| 24031 | # NLS nuisances. |
| 24032 | for as_var in \ |
| 24033 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 24034 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 24035 | LC_TELEPHONE LC_TIME |
| 24036 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24037 | 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] | 24038 | eval $as_var=C; export $as_var |
| 24039 | else |
| 24040 | $as_unset $as_var |
| 24041 | fi |
| 24042 | done |
| 24043 | |
| 24044 | # Required to use basename. |
| 24045 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 24046 | as_expr=expr |
| 24047 | else |
| 24048 | as_expr=false |
| 24049 | fi |
| 24050 | |
| 24051 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 24052 | as_basename=basename |
| 24053 | else |
| 24054 | as_basename=false |
| 24055 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24056 | |
| 24057 | |
| 24058 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24059 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24060 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24061 | X"$0" : 'X\(//\)$' \| \ |
| 24062 | X"$0" : 'X\(/\)$' \| \ |
| 24063 | . : '\(.\)' 2>/dev/null || |
| 24064 | echo X/"$0" | |
| 24065 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 24066 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 24067 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 24068 | s/.*/./; q'` |
| 24069 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24070 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24071 | # PATH needs CR, and LINENO needs CR and PATH. |
| 24072 | # Avoid depending upon Character Ranges. |
| 24073 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 24074 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 24075 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 24076 | as_cr_digits='0123456789' |
| 24077 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 24078 | |
| 24079 | # The user is always right. |
| 24080 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24081 | echo "#! /bin/sh" >conf$$.sh |
| 24082 | echo "exit 0" >>conf$$.sh |
| 24083 | chmod +x conf$$.sh |
| 24084 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24085 | PATH_SEPARATOR=';' |
| 24086 | else |
| 24087 | PATH_SEPARATOR=: |
| 24088 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24089 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24090 | fi |
| 24091 | |
| 24092 | |
| 24093 | as_lineno_1=$LINENO |
| 24094 | as_lineno_2=$LINENO |
| 24095 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 24096 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 24097 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 24098 | # Find who we are. Look in the path if we contain no path at all |
| 24099 | # relative or not. |
| 24100 | case $0 in |
| 24101 | *[\\/]* ) as_myself=$0 ;; |
| 24102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24103 | for as_dir in $PATH |
| 24104 | do |
| 24105 | IFS=$as_save_IFS |
| 24106 | test -z "$as_dir" && as_dir=. |
| 24107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 24108 | done |
| 24109 | |
| 24110 | ;; |
| 24111 | esac |
| 24112 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 24113 | # in which case we are not to be found in the path. |
| 24114 | if test "x$as_myself" = x; then |
| 24115 | as_myself=$0 |
| 24116 | fi |
| 24117 | if test ! -f "$as_myself"; then |
| 24118 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 24119 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 24120 | { (exit 1); exit 1; }; } |
| 24121 | fi |
| 24122 | case $CONFIG_SHELL in |
| 24123 | '') |
| 24124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24125 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 24126 | do |
| 24127 | IFS=$as_save_IFS |
| 24128 | test -z "$as_dir" && as_dir=. |
| 24129 | for as_base in sh bash ksh sh5; do |
| 24130 | case $as_dir in |
| 24131 | /*) |
| 24132 | if ("$as_dir/$as_base" -c ' |
| 24133 | as_lineno_1=$LINENO |
| 24134 | as_lineno_2=$LINENO |
| 24135 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 24136 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 24137 | 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] | 24138 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 24139 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24140 | CONFIG_SHELL=$as_dir/$as_base |
| 24141 | export CONFIG_SHELL |
| 24142 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 24143 | fi;; |
| 24144 | esac |
| 24145 | done |
| 24146 | done |
| 24147 | ;; |
| 24148 | esac |
| 24149 | |
| 24150 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 24151 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 24152 | # line-number line before each line; the second 'sed' does the real |
| 24153 | # work. The second script uses 'N' to pair each line-number line |
| 24154 | # with the numbered line, and appends trailing '-' during |
| 24155 | # substitution so that $LINENO is not a special case at line end. |
| 24156 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 24157 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 24158 | sed '=' <$as_myself | |
| 24159 | sed ' |
| 24160 | N |
| 24161 | s,$,-, |
| 24162 | : loop |
| 24163 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 24164 | t loop |
| 24165 | s,-$,, |
| 24166 | s,^['$as_cr_digits']*\n,, |
| 24167 | ' >$as_me.lineno && |
| 24168 | chmod +x $as_me.lineno || |
| 24169 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 24170 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 24171 | { (exit 1); exit 1; }; } |
| 24172 | |
| 24173 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 24174 | # (the dirname of $[0] is not the place where we might find the |
| 24175 | # original and so on. Autoconf is especially sensible to this). |
| 24176 | . ./$as_me.lineno |
| 24177 | # Exit status is that of the last command. |
| 24178 | exit |
| 24179 | } |
| 24180 | |
| 24181 | |
| 24182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 24183 | *c*,-n*) ECHO_N= ECHO_C=' |
| 24184 | ' ECHO_T=' ' ;; |
| 24185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 24186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 24187 | esac |
| 24188 | |
| 24189 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 24190 | as_expr=expr |
| 24191 | else |
| 24192 | as_expr=false |
| 24193 | fi |
| 24194 | |
| 24195 | rm -f conf$$ conf$$.exe conf$$.file |
| 24196 | echo >conf$$.file |
| 24197 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 24198 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 24199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 24200 | if test -f conf$$.exe; then |
| 24201 | # Don't use ln at all; we don't have any links |
| 24202 | as_ln_s='cp -p' |
| 24203 | else |
| 24204 | as_ln_s='ln -s' |
| 24205 | fi |
| 24206 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 24207 | as_ln_s=ln |
| 24208 | else |
| 24209 | as_ln_s='cp -p' |
| 24210 | fi |
| 24211 | rm -f conf$$ conf$$.exe conf$$.file |
| 24212 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24213 | if mkdir -p . 2>/dev/null; then |
| 24214 | as_mkdir_p=: |
| 24215 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24216 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24217 | as_mkdir_p=false |
| 24218 | fi |
| 24219 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24220 | as_executable_p="test -f" |
| 24221 | |
| 24222 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24223 | 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] | 24224 | |
| 24225 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24226 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24227 | |
| 24228 | |
| 24229 | # IFS |
| 24230 | # We need space, tab and new line, in precisely that order. |
| 24231 | as_nl=' |
| 24232 | ' |
| 24233 | IFS=" $as_nl" |
| 24234 | |
| 24235 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24236 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24237 | |
| 24238 | exec 6>&1 |
| 24239 | |
| 24240 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 24241 | # report actual input values of CONFIG_FILES etc. instead of their |
| 24242 | # values after options handling. Logging --version etc. is OK. |
| 24243 | exec 5>>config.log |
| 24244 | { |
| 24245 | echo |
| 24246 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24247 | ## Running $as_me. ## |
| 24248 | _ASBOX |
| 24249 | } >&5 |
| 24250 | cat >&5 <<_CSEOF |
| 24251 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24252 | This file was extended by LLVM $as_me 1.4, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24253 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24254 | |
| 24255 | CONFIG_FILES = $CONFIG_FILES |
| 24256 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24257 | CONFIG_LINKS = $CONFIG_LINKS |
| 24258 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24259 | $ $0 $@ |
| 24260 | |
| 24261 | _CSEOF |
| 24262 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 24263 | echo >&5 |
| 24264 | _ACEOF |
| 24265 | |
| 24266 | # Files that config.status was made for. |
| 24267 | if test -n "$ac_config_files"; then |
| 24268 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 24269 | fi |
| 24270 | |
| 24271 | if test -n "$ac_config_headers"; then |
| 24272 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 24273 | fi |
| 24274 | |
| 24275 | if test -n "$ac_config_links"; then |
| 24276 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 24277 | fi |
| 24278 | |
| 24279 | if test -n "$ac_config_commands"; then |
| 24280 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 24281 | fi |
| 24282 | |
| 24283 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24284 | |
| 24285 | ac_cs_usage="\ |
| 24286 | \`$as_me' instantiates files from templates according to the |
| 24287 | current configuration. |
| 24288 | |
| 24289 | Usage: $0 [OPTIONS] [FILE]... |
| 24290 | |
| 24291 | -h, --help print this help, then exit |
| 24292 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24293 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24294 | -d, --debug don't remove temporary files |
| 24295 | --recheck update $as_me by reconfiguring in the same conditions |
| 24296 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24297 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24298 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24299 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24300 | |
| 24301 | Configuration files: |
| 24302 | $config_files |
| 24303 | |
| 24304 | Configuration headers: |
| 24305 | $config_headers |
| 24306 | |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 24307 | Configuration links: |
| 24308 | $config_links |
| 24309 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24310 | Configuration commands: |
| 24311 | $config_commands |
| 24312 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24313 | Report bugs to <bug-autoconf@gnu.org>." |
| 24314 | _ACEOF |
| 24315 | |
| 24316 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24317 | ac_cs_version="\\ |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24318 | LLVM config.status 1.4 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24319 | configured by $0, generated by GNU Autoconf 2.59, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24320 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 24321 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24322 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24323 | This config.status script is free software; the Free Software Foundation |
| 24324 | gives unlimited permission to copy, distribute and modify it." |
| 24325 | srcdir=$srcdir |
| 24326 | INSTALL="$INSTALL" |
| 24327 | _ACEOF |
| 24328 | |
| 24329 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24330 | # If no file are specified by the user, then we need to provide default |
| 24331 | # value. By we need to know if files were specified by the user. |
| 24332 | ac_need_defaults=: |
| 24333 | while test $# != 0 |
| 24334 | do |
| 24335 | case $1 in |
| 24336 | --*=*) |
| 24337 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 24338 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24339 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24340 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24341 | -*) |
| 24342 | ac_option=$1 |
| 24343 | ac_optarg=$2 |
| 24344 | ac_shift=shift |
| 24345 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24346 | *) # This is not an option, so the user has probably given explicit |
| 24347 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24348 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24349 | ac_need_defaults=false;; |
| 24350 | esac |
| 24351 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24352 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24353 | # Handling of the options. |
| 24354 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 24355 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24356 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24357 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24358 | --version | --vers* | -V ) |
| 24359 | echo "$ac_cs_version"; exit 0 ;; |
| 24360 | --he | --h) |
| 24361 | # Conflict between --help and --header |
| 24362 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 24363 | Try \`$0 --help' for more information." >&5 |
| 24364 | echo "$as_me: error: ambiguous option: $1 |
| 24365 | Try \`$0 --help' for more information." >&2;} |
| 24366 | { (exit 1); exit 1; }; };; |
| 24367 | --help | --hel | -h ) |
| 24368 | echo "$ac_cs_usage"; exit 0 ;; |
| 24369 | --debug | --d* | -d ) |
| 24370 | debug=: ;; |
| 24371 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24372 | $ac_shift |
| 24373 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24374 | ac_need_defaults=false;; |
| 24375 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24376 | $ac_shift |
| 24377 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24378 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24379 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24380 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24381 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24382 | |
| 24383 | # This is an error. |
| 24384 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 24385 | Try \`$0 --help' for more information." >&5 |
| 24386 | echo "$as_me: error: unrecognized option: $1 |
| 24387 | Try \`$0 --help' for more information." >&2;} |
| 24388 | { (exit 1); exit 1; }; } ;; |
| 24389 | |
| 24390 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 24391 | |
| 24392 | esac |
| 24393 | shift |
| 24394 | done |
| 24395 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24396 | ac_configure_extra_args= |
| 24397 | |
| 24398 | if $ac_cs_silent; then |
| 24399 | exec 6>/dev/null |
| 24400 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24401 | fi |
| 24402 | |
| 24403 | _ACEOF |
| 24404 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24405 | if \$ac_cs_recheck; then |
| 24406 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 24407 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 24408 | fi |
| 24409 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24410 | _ACEOF |
| 24411 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24412 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24413 | # |
| 24414 | # INIT-COMMANDS section. |
| 24415 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24416 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24417 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` |
| 24418 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 24419 | ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24420 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24421 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24422 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 24423 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 24424 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` |
| 24425 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24426 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 24427 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24428 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24429 | |
| 24430 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24431 | |
| 24432 | |
| 24433 | |
| 24434 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24435 | for ac_config_target in $ac_config_targets |
| 24436 | do |
| 24437 | case "$ac_config_target" in |
| 24438 | # Handling of arguments. |
| 24439 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 24440 | "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;; |
| 24441 | "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;; |
| 24442 | "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;; |
| 24443 | "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;; |
| 24444 | "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;; |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 24445 | "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24446 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 24447 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 24448 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24449 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24450 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24451 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 24452 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 24453 | "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; |
| 24454 | "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24455 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 24456 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24457 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 24458 | "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24459 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 24460 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 24461 | { (exit 1); exit 1; }; };; |
| 24462 | esac |
| 24463 | done |
| 24464 | |
| 24465 | # If the user did not use the arguments to specify the items to instantiate, |
| 24466 | # then the envvar interface is used. Set only those that are not. |
| 24467 | # We use the long form for the default assignment because of an extremely |
| 24468 | # bizarre bug on SunOS 4.1.3. |
| 24469 | if $ac_need_defaults; then |
| 24470 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 24471 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 24472 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24473 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24474 | fi |
| 24475 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24476 | # Have a temporary directory for convenience. Make it in the build tree |
| 24477 | # simply because there is no reason to put it here, and in addition, |
| 24478 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24479 | # Create a temporary directory, and hook for its removal unless debugging. |
| 24480 | $debug || |
| 24481 | { |
| 24482 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 24483 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 24484 | } |
| 24485 | |
| 24486 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24487 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24488 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24489 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24490 | test -n "$tmp" && test -d "$tmp" |
| 24491 | } || |
| 24492 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24493 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24494 | (umask 077 && mkdir $tmp) |
| 24495 | } || |
| 24496 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24497 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24498 | { (exit 1); exit 1; } |
| 24499 | } |
| 24500 | |
| 24501 | _ACEOF |
| 24502 | |
| 24503 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24504 | |
| 24505 | # |
| 24506 | # CONFIG_FILES section. |
| 24507 | # |
| 24508 | |
| 24509 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 24510 | # This happens for instance when ./config.status config.h |
| 24511 | if test -n "\$CONFIG_FILES"; then |
| 24512 | # Protect against being on the right side of a sed subst in config.status. |
| 24513 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 24514 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 24515 | s,@SHELL@,$SHELL,;t t |
| 24516 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 24517 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 24518 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 24519 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 24520 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 24521 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 24522 | s,@exec_prefix@,$exec_prefix,;t t |
| 24523 | s,@prefix@,$prefix,;t t |
| 24524 | s,@program_transform_name@,$program_transform_name,;t t |
| 24525 | s,@bindir@,$bindir,;t t |
| 24526 | s,@sbindir@,$sbindir,;t t |
| 24527 | s,@libexecdir@,$libexecdir,;t t |
| 24528 | s,@datadir@,$datadir,;t t |
| 24529 | s,@sysconfdir@,$sysconfdir,;t t |
| 24530 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 24531 | s,@localstatedir@,$localstatedir,;t t |
| 24532 | s,@libdir@,$libdir,;t t |
| 24533 | s,@includedir@,$includedir,;t t |
| 24534 | s,@oldincludedir@,$oldincludedir,;t t |
| 24535 | s,@infodir@,$infodir,;t t |
| 24536 | s,@mandir@,$mandir,;t t |
| 24537 | s,@build_alias@,$build_alias,;t t |
| 24538 | s,@host_alias@,$host_alias,;t t |
| 24539 | s,@target_alias@,$target_alias,;t t |
| 24540 | s,@DEFS@,$DEFS,;t t |
| 24541 | s,@ECHO_C@,$ECHO_C,;t t |
| 24542 | s,@ECHO_N@,$ECHO_N,;t t |
| 24543 | s,@ECHO_T@,$ECHO_T,;t t |
| 24544 | s,@LIBS@,$LIBS,;t t |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24545 | s,@subdirs@,$subdirs,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24546 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 24547 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 24548 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 24549 | s,@build@,$build,;t t |
| 24550 | s,@build_cpu@,$build_cpu,;t t |
| 24551 | s,@build_vendor@,$build_vendor,;t t |
| 24552 | s,@build_os@,$build_os,;t t |
| 24553 | s,@host@,$host,;t t |
| 24554 | s,@host_cpu@,$host_cpu,;t t |
| 24555 | s,@host_vendor@,$host_vendor,;t t |
| 24556 | s,@host_os@,$host_os,;t t |
| 24557 | s,@target@,$target,;t t |
| 24558 | s,@target_cpu@,$target_cpu,;t t |
| 24559 | s,@target_vendor@,$target_vendor,;t t |
| 24560 | s,@target_os@,$target_os,;t t |
| 24561 | s,@OS@,$OS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24562 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 24563 | s,@ARCH@,$ARCH,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24564 | s,@CXX@,$CXX,;t t |
| 24565 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 24566 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 24567 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 24568 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 24569 | s,@EXEEXT@,$EXEEXT,;t t |
| 24570 | s,@OBJEXT@,$OBJEXT,;t t |
| 24571 | s,@CC@,$CC,;t t |
| 24572 | s,@CFLAGS@,$CFLAGS,;t t |
| 24573 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 24574 | s,@CPP@,$CPP,;t t |
| 24575 | s,@ifGNUmake@,$ifGNUmake,;t t |
| 24576 | s,@LEX@,$LEX,;t t |
| 24577 | s,@LEXLIB@,$LEXLIB,;t t |
| 24578 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 24579 | s,@FLEX@,$FLEX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24580 | s,@YACC@,$YACC,;t t |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 24581 | s,@BISON@,$BISON,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24582 | s,@EGREP@,$EGREP,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24583 | s,@LN_S@,$LN_S,;t t |
| 24584 | s,@ECHO@,$ECHO,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24585 | s,@AR@,$AR,;t t |
| 24586 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24587 | s,@RANLIB@,$RANLIB,;t t |
| 24588 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 24589 | s,@STRIP@,$STRIP,;t t |
| 24590 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24591 | s,@CXXCPP@,$CXXCPP,;t t |
| 24592 | s,@F77@,$F77,;t t |
| 24593 | s,@FFLAGS@,$FFLAGS,;t t |
| 24594 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24595 | s,@LIBTOOL@,$LIBTOOL,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24596 | s,@DOT@,$DOT,;t t |
| 24597 | s,@ETAGS@,$ETAGS,;t t |
Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 24598 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 24599 | s,@PYTHON@,$PYTHON,;t t |
| 24600 | s,@QMTEST@,$QMTEST,;t t |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 24601 | s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 24602 | s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t |
| 24603 | s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 24604 | s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 24605 | s,@ENDIAN@,$ENDIAN,;t t |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 24606 | s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t |
| 24607 | s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t |
| 24608 | s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t |
| 24609 | s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t |
| 24610 | s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t |
| 24611 | s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 24612 | s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t |
| 24613 | s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t |
| 24614 | s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24615 | s,@ALLOCA@,$ALLOCA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24616 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24617 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24618 | s,@JIT@,$JIT,;t t |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 24619 | s,@LLVMCC1@,$LLVMCC1,;t t |
| 24620 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 24621 | s,@SHLIBEXT@,$SHLIBEXT,;t t |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24622 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t |
| 24623 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t |
| 24624 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t |
| 24625 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t |
| 24626 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t |
| 24627 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t |
| 24628 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t |
| 24629 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t |
| 24630 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t |
| 24631 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 24632 | s,@LIBOBJS@,$LIBOBJS,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24633 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24634 | CEOF |
| 24635 | |
| 24636 | _ACEOF |
| 24637 | |
| 24638 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24639 | # Split the substitutions into bite-sized pieces for seds with |
| 24640 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 24641 | ac_max_sed_lines=48 |
| 24642 | ac_sed_frag=1 # Number of current file. |
| 24643 | ac_beg=1 # First line for current file. |
| 24644 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 24645 | ac_more_lines=: |
| 24646 | ac_sed_cmds= |
| 24647 | while $ac_more_lines; do |
| 24648 | if test $ac_beg -gt 1; then |
| 24649 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 24650 | else |
| 24651 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 24652 | fi |
| 24653 | if test ! -s $tmp/subs.frag; then |
| 24654 | ac_more_lines=false |
| 24655 | else |
| 24656 | # The purpose of the label and of the branching condition is to |
| 24657 | # speed up the sed processing (if there are no `@' at all, there |
| 24658 | # is no need to browse any of the substitutions). |
| 24659 | # These are the two extra sed commands mentioned above. |
| 24660 | (echo ':t |
| 24661 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 24662 | if test -z "$ac_sed_cmds"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24663 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24664 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24665 | 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] | 24666 | fi |
| 24667 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 24668 | ac_beg=$ac_end |
| 24669 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 24670 | fi |
| 24671 | done |
| 24672 | if test -z "$ac_sed_cmds"; then |
| 24673 | ac_sed_cmds=cat |
| 24674 | fi |
| 24675 | fi # test -n "$CONFIG_FILES" |
| 24676 | |
| 24677 | _ACEOF |
| 24678 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24679 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 24680 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 24681 | case $ac_file in |
| 24682 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24683 | cat >$tmp/stdin |
| 24684 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24685 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24686 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24687 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24688 | * ) ac_file_in=$ac_file.in ;; |
| 24689 | esac |
| 24690 | |
| 24691 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 24692 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 24693 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24694 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24695 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24696 | X"$ac_file" : 'X\(/\)' \| \ |
| 24697 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24698 | echo X"$ac_file" | |
| 24699 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24700 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24701 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24702 | /^X\(\/\).*/{ s//\1/; q; } |
| 24703 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24704 | { if $as_mkdir_p; then |
| 24705 | mkdir -p "$ac_dir" |
| 24706 | else |
| 24707 | as_dir="$ac_dir" |
| 24708 | as_dirs= |
| 24709 | while test ! -d "$as_dir"; do |
| 24710 | as_dirs="$as_dir $as_dirs" |
| 24711 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24712 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24713 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24714 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24715 | X"$as_dir" : 'X\(/\)' \| \ |
| 24716 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24717 | echo X"$as_dir" | |
| 24718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24720 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24721 | /^X\(\/\).*/{ s//\1/; q; } |
| 24722 | s/.*/./; q'` |
| 24723 | done |
| 24724 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 24725 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 24726 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 24727 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24728 | |
| 24729 | ac_builddir=. |
| 24730 | |
| 24731 | if test "$ac_dir" != .; then |
| 24732 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 24733 | # A "../" for each directory in $ac_dir_suffix. |
| 24734 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 24735 | else |
| 24736 | ac_dir_suffix= ac_top_builddir= |
| 24737 | fi |
| 24738 | |
| 24739 | case $srcdir in |
| 24740 | .) # No --srcdir option. We are building in place. |
| 24741 | ac_srcdir=. |
| 24742 | if test -z "$ac_top_builddir"; then |
| 24743 | ac_top_srcdir=. |
| 24744 | else |
| 24745 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 24746 | fi ;; |
| 24747 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 24748 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 24749 | ac_top_srcdir=$srcdir ;; |
| 24750 | *) # Relative path. |
| 24751 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 24752 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 24753 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24754 | |
| 24755 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 24756 | # the directories may not exist. |
| 24757 | case `pwd` in |
| 24758 | .) ac_abs_builddir="$ac_dir";; |
| 24759 | *) |
| 24760 | case "$ac_dir" in |
| 24761 | .) ac_abs_builddir=`pwd`;; |
| 24762 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 24763 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 24764 | esac;; |
| 24765 | esac |
| 24766 | case $ac_abs_builddir in |
| 24767 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 24768 | *) |
| 24769 | case ${ac_top_builddir}. in |
| 24770 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 24771 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 24772 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 24773 | esac;; |
| 24774 | esac |
| 24775 | case $ac_abs_builddir in |
| 24776 | .) ac_abs_srcdir=$ac_srcdir;; |
| 24777 | *) |
| 24778 | case $ac_srcdir in |
| 24779 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 24780 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 24781 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 24782 | esac;; |
| 24783 | esac |
| 24784 | case $ac_abs_builddir in |
| 24785 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 24786 | *) |
| 24787 | case $ac_top_srcdir in |
| 24788 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 24789 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 24790 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 24791 | esac;; |
| 24792 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24793 | |
| 24794 | |
| 24795 | case $INSTALL in |
| 24796 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 24797 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 24798 | esac |
| 24799 | |
| 24800 | if test x"$ac_file" != x-; then |
| 24801 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24802 | echo "$as_me: creating $ac_file" >&6;} |
| 24803 | rm -f "$ac_file" |
| 24804 | fi |
| 24805 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24806 | # use $as_me), people would be surprised to read: |
| 24807 | # /* config.h. Generated by config.status. */ |
| 24808 | if test x"$ac_file" = x-; then |
| 24809 | configure_input= |
| 24810 | else |
| 24811 | configure_input="$ac_file. " |
| 24812 | fi |
| 24813 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24814 | sed 's,.*/,,'` by configure." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24815 | |
| 24816 | # First look for the input files in the build tree, otherwise in the |
| 24817 | # src tree. |
| 24818 | ac_file_inputs=`IFS=: |
| 24819 | for f in $ac_file_in; do |
| 24820 | case $f in |
| 24821 | -) echo $tmp/stdin ;; |
| 24822 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24823 | # Absolute (can't be DOS-style, as IFS=:) |
| 24824 | 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] | 24825 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24826 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24827 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24828 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24829 | if test -f "$f"; then |
| 24830 | # Build tree |
| 24831 | echo "$f" |
| 24832 | elif test -f "$srcdir/$f"; then |
| 24833 | # Source tree |
| 24834 | echo "$srcdir/$f" |
| 24835 | else |
| 24836 | # /dev/null tree |
| 24837 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24838 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24839 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24840 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24841 | esac |
| 24842 | done` || { (exit 1); exit 1; } |
| 24843 | _ACEOF |
| 24844 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24845 | sed "$ac_vpsub |
| 24846 | $extrasub |
| 24847 | _ACEOF |
| 24848 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24849 | :t |
| 24850 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 24851 | s,@configure_input@,$configure_input,;t t |
| 24852 | s,@srcdir@,$ac_srcdir,;t t |
| 24853 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 24854 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 24855 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 24856 | s,@builddir@,$ac_builddir,;t t |
| 24857 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 24858 | s,@top_builddir@,$ac_top_builddir,;t t |
| 24859 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 24860 | s,@INSTALL@,$ac_INSTALL,;t t |
| 24861 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 24862 | rm -f $tmp/stdin |
| 24863 | if test x"$ac_file" != x-; then |
| 24864 | mv $tmp/out $ac_file |
| 24865 | else |
| 24866 | cat $tmp/out |
| 24867 | rm -f $tmp/out |
| 24868 | fi |
| 24869 | |
| 24870 | done |
| 24871 | _ACEOF |
| 24872 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24873 | |
| 24874 | # |
| 24875 | # CONFIG_HEADER section. |
| 24876 | # |
| 24877 | |
| 24878 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 24879 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 24880 | # |
| 24881 | # ac_d sets the value in "#define NAME VALUE" lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24882 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 24883 | ac_dB='[ ].*$,\1#\2' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24884 | ac_dC=' ' |
| 24885 | ac_dD=',;t' |
| 24886 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24887 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24888 | ac_uB='$,\1#\2define\3' |
| 24889 | ac_uC=' ' |
| 24890 | ac_uD=',;t' |
| 24891 | |
| 24892 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 24893 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 24894 | case $ac_file in |
| 24895 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24896 | cat >$tmp/stdin |
| 24897 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24898 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24899 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24900 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24901 | * ) ac_file_in=$ac_file.in ;; |
| 24902 | esac |
| 24903 | |
| 24904 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24905 | echo "$as_me: creating $ac_file" >&6;} |
| 24906 | |
| 24907 | # First look for the input files in the build tree, otherwise in the |
| 24908 | # src tree. |
| 24909 | ac_file_inputs=`IFS=: |
| 24910 | for f in $ac_file_in; do |
| 24911 | case $f in |
| 24912 | -) echo $tmp/stdin ;; |
| 24913 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24914 | # Absolute (can't be DOS-style, as IFS=:) |
| 24915 | 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] | 24916 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24917 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24918 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 24919 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24920 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24921 | if test -f "$f"; then |
| 24922 | # Build tree |
| 24923 | echo "$f" |
| 24924 | elif test -f "$srcdir/$f"; then |
| 24925 | # Source tree |
| 24926 | echo "$srcdir/$f" |
| 24927 | else |
| 24928 | # /dev/null tree |
| 24929 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24930 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24931 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24932 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24933 | esac |
| 24934 | done` || { (exit 1); exit 1; } |
| 24935 | # Remove the trailing spaces. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24936 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24937 | |
| 24938 | _ACEOF |
| 24939 | |
| 24940 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 24941 | # `conftest.undefs', that substitutes the proper values into |
| 24942 | # config.h.in to produce config.h. The first handles `#define' |
| 24943 | # templates, and the second `#undef' templates. |
| 24944 | # And first: Protect against being on the right side of a sed subst in |
| 24945 | # config.status. Protect against being in an unquoted here document |
| 24946 | # in config.status. |
| 24947 | rm -f conftest.defines conftest.undefs |
| 24948 | # Using a here document instead of a string reduces the quoting nightmare. |
| 24949 | # Putting comments in sed scripts is not portable. |
| 24950 | # |
| 24951 | # `end' is used to avoid that the second main sed command (meant for |
| 24952 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 24953 | # See the Autoconf documentation for `clear'. |
| 24954 | cat >confdef2sed.sed <<\_ACEOF |
| 24955 | s/[\\&,]/\\&/g |
| 24956 | s,[\\$`],\\&,g |
| 24957 | t clear |
| 24958 | : clear |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24959 | 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] | 24960 | t end |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24961 | 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] | 24962 | : end |
| 24963 | _ACEOF |
| 24964 | # If some macros were called several times there might be several times |
| 24965 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 24966 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 24967 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 24968 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 24969 | rm -f confdef2sed.sed |
| 24970 | |
| 24971 | # This sed command replaces #undef with comments. This is necessary, for |
| 24972 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24973 | # on some systems where configure will not decide to define it. |
| 24974 | cat >>conftest.undefs <<\_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24975 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24976 | _ACEOF |
| 24977 | |
| 24978 | # Break up conftest.defines because some shells have a limit on the size |
| 24979 | # of here documents, and old seds have small limits too (100 cmds). |
| 24980 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24981 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24982 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 24983 | echo ' :' >>$CONFIG_STATUS |
| 24984 | rm -f conftest.tail |
| 24985 | while grep . conftest.defines >/dev/null |
| 24986 | do |
| 24987 | # Write a limited-size here document to $tmp/defines.sed. |
| 24988 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 24989 | # Speed up: don't consider the non `#define' lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24990 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24991 | # Work around the forget-to-reset-the-flag bug. |
| 24992 | echo 't clr' >>$CONFIG_STATUS |
| 24993 | echo ': clr' >>$CONFIG_STATUS |
| 24994 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 24995 | echo 'CEOF |
| 24996 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 24997 | rm -f $tmp/in |
| 24998 | mv $tmp/out $tmp/in |
| 24999 | ' >>$CONFIG_STATUS |
| 25000 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 25001 | rm -f conftest.defines |
| 25002 | mv conftest.tail conftest.defines |
| 25003 | done |
| 25004 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25005 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25006 | echo >>$CONFIG_STATUS |
| 25007 | |
| 25008 | # Break up conftest.undefs because some shells have a limit on the size |
| 25009 | # of here documents, and old seds have small limits too (100 cmds). |
| 25010 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 25011 | rm -f conftest.tail |
| 25012 | while grep . conftest.undefs >/dev/null |
| 25013 | do |
| 25014 | # Write a limited-size here document to $tmp/undefs.sed. |
| 25015 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 25016 | # Speed up: don't consider the non `#undef' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25017 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25018 | # Work around the forget-to-reset-the-flag bug. |
| 25019 | echo 't clr' >>$CONFIG_STATUS |
| 25020 | echo ': clr' >>$CONFIG_STATUS |
| 25021 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 25022 | echo 'CEOF |
| 25023 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 25024 | rm -f $tmp/in |
| 25025 | mv $tmp/out $tmp/in |
| 25026 | ' >>$CONFIG_STATUS |
| 25027 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 25028 | rm -f conftest.undefs |
| 25029 | mv conftest.tail conftest.undefs |
| 25030 | done |
| 25031 | rm -f conftest.undefs |
| 25032 | |
| 25033 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25034 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25035 | # use $as_me), people would be surprised to read: |
| 25036 | # /* config.h. Generated by config.status. */ |
| 25037 | if test x"$ac_file" = x-; then |
| 25038 | echo "/* Generated by configure. */" >$tmp/config.h |
| 25039 | else |
| 25040 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 25041 | fi |
| 25042 | cat $tmp/in >>$tmp/config.h |
| 25043 | rm -f $tmp/in |
| 25044 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25045 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25046 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 25047 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 25048 | else |
| 25049 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 25050 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25051 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25052 | X"$ac_file" : 'X\(//\)$' \| \ |
| 25053 | X"$ac_file" : 'X\(/\)' \| \ |
| 25054 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25055 | echo X"$ac_file" | |
| 25056 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25057 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25058 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25059 | /^X\(\/\).*/{ s//\1/; q; } |
| 25060 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25061 | { if $as_mkdir_p; then |
| 25062 | mkdir -p "$ac_dir" |
| 25063 | else |
| 25064 | as_dir="$ac_dir" |
| 25065 | as_dirs= |
| 25066 | while test ! -d "$as_dir"; do |
| 25067 | as_dirs="$as_dir $as_dirs" |
| 25068 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 25069 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25070 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25071 | X"$as_dir" : 'X\(//\)$' \| \ |
| 25072 | X"$as_dir" : 'X\(/\)' \| \ |
| 25073 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25074 | echo X"$as_dir" | |
| 25075 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25076 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25077 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25078 | /^X\(\/\).*/{ s//\1/; q; } |
| 25079 | s/.*/./; q'` |
| 25080 | done |
| 25081 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 25082 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 25083 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 25084 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25085 | |
| 25086 | rm -f $ac_file |
| 25087 | mv $tmp/config.h $ac_file |
| 25088 | fi |
| 25089 | else |
| 25090 | cat $tmp/config.h |
| 25091 | rm -f $tmp/config.h |
| 25092 | fi |
| 25093 | done |
| 25094 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25095 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25096 | |
| 25097 | # |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25098 | # CONFIG_LINKS section. |
| 25099 | # |
| 25100 | |
| 25101 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 25102 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 25103 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 25104 | |
| 25105 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 25106 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 25107 | |
| 25108 | if test ! -r $srcdir/$ac_source; then |
| 25109 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 25110 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 25111 | { (exit 1); exit 1; }; } |
| 25112 | fi |
| 25113 | rm -f $ac_dest |
| 25114 | |
| 25115 | # Make relative symlinks. |
| 25116 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 25117 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25118 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 25119 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 25120 | X"$ac_dest" : 'X\(/\)' \| \ |
| 25121 | . : '\(.\)' 2>/dev/null || |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25122 | echo X"$ac_dest" | |
| 25123 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25124 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25125 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25126 | /^X\(\/\).*/{ s//\1/; q; } |
| 25127 | s/.*/./; q'` |
| 25128 | { if $as_mkdir_p; then |
| 25129 | mkdir -p "$ac_dest_dir" |
| 25130 | else |
| 25131 | as_dir="$ac_dest_dir" |
| 25132 | as_dirs= |
| 25133 | while test ! -d "$as_dir"; do |
| 25134 | as_dirs="$as_dir $as_dirs" |
| 25135 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 25136 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25137 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25138 | X"$as_dir" : 'X\(//\)$' \| \ |
| 25139 | X"$as_dir" : 'X\(/\)' \| \ |
| 25140 | . : '\(.\)' 2>/dev/null || |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25141 | echo X"$as_dir" | |
| 25142 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25143 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25144 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25145 | /^X\(\/\).*/{ s//\1/; q; } |
| 25146 | s/.*/./; q'` |
| 25147 | done |
| 25148 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 25149 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 25150 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 25151 | { (exit 1); exit 1; }; }; } |
| 25152 | |
| 25153 | ac_builddir=. |
| 25154 | |
| 25155 | if test "$ac_dest_dir" != .; then |
| 25156 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 25157 | # A "../" for each directory in $ac_dir_suffix. |
| 25158 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 25159 | else |
| 25160 | ac_dir_suffix= ac_top_builddir= |
| 25161 | fi |
| 25162 | |
| 25163 | case $srcdir in |
| 25164 | .) # No --srcdir option. We are building in place. |
| 25165 | ac_srcdir=. |
| 25166 | if test -z "$ac_top_builddir"; then |
| 25167 | ac_top_srcdir=. |
| 25168 | else |
| 25169 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 25170 | fi ;; |
| 25171 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 25172 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25173 | ac_top_srcdir=$srcdir ;; |
| 25174 | *) # Relative path. |
| 25175 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 25176 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 25177 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25178 | |
| 25179 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 25180 | # the directories may not exist. |
| 25181 | case `pwd` in |
| 25182 | .) ac_abs_builddir="$ac_dest_dir";; |
| 25183 | *) |
| 25184 | case "$ac_dest_dir" in |
| 25185 | .) ac_abs_builddir=`pwd`;; |
| 25186 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
| 25187 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
| 25188 | esac;; |
| 25189 | esac |
| 25190 | case $ac_abs_builddir in |
| 25191 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25192 | *) |
| 25193 | case ${ac_top_builddir}. in |
| 25194 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 25195 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25196 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 25197 | esac;; |
| 25198 | esac |
| 25199 | case $ac_abs_builddir in |
| 25200 | .) ac_abs_srcdir=$ac_srcdir;; |
| 25201 | *) |
| 25202 | case $ac_srcdir in |
| 25203 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 25204 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 25205 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 25206 | esac;; |
| 25207 | esac |
| 25208 | case $ac_abs_builddir in |
| 25209 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25210 | *) |
| 25211 | case $ac_top_srcdir in |
| 25212 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 25213 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25214 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 25215 | esac;; |
| 25216 | esac |
Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25217 | |
| 25218 | |
| 25219 | case $srcdir in |
| 25220 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 25221 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 25222 | esac |
| 25223 | |
| 25224 | # Try a symlink, then a hard link, then a copy. |
| 25225 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 25226 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 25227 | cp -p $srcdir/$ac_source $ac_dest || |
| 25228 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 25229 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 25230 | { (exit 1); exit 1; }; } |
| 25231 | done |
| 25232 | _ACEOF |
| 25233 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25234 | |
| 25235 | # |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25236 | # CONFIG_COMMANDS section. |
| 25237 | # |
| 25238 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 25239 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 25240 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 25241 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 25242 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25243 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 25244 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 25245 | X"$ac_dest" : 'X\(/\)' \| \ |
| 25246 | . : '\(.\)' 2>/dev/null || |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25247 | echo X"$ac_dest" | |
| 25248 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25249 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25250 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25251 | /^X\(\/\).*/{ s//\1/; q; } |
| 25252 | s/.*/./; q'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25253 | { if $as_mkdir_p; then |
| 25254 | mkdir -p "$ac_dir" |
| 25255 | else |
| 25256 | as_dir="$ac_dir" |
| 25257 | as_dirs= |
| 25258 | while test ! -d "$as_dir"; do |
| 25259 | as_dirs="$as_dir $as_dirs" |
| 25260 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 25261 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25262 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25263 | X"$as_dir" : 'X\(//\)$' \| \ |
| 25264 | X"$as_dir" : 'X\(/\)' \| \ |
| 25265 | . : '\(.\)' 2>/dev/null || |
| 25266 | echo X"$as_dir" | |
| 25267 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25268 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25269 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25270 | /^X\(\/\).*/{ s//\1/; q; } |
| 25271 | s/.*/./; q'` |
| 25272 | done |
| 25273 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 25274 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 25275 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 25276 | { (exit 1); exit 1; }; }; } |
| 25277 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25278 | ac_builddir=. |
| 25279 | |
| 25280 | if test "$ac_dir" != .; then |
| 25281 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 25282 | # A "../" for each directory in $ac_dir_suffix. |
| 25283 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 25284 | else |
| 25285 | ac_dir_suffix= ac_top_builddir= |
| 25286 | fi |
| 25287 | |
| 25288 | case $srcdir in |
| 25289 | .) # No --srcdir option. We are building in place. |
| 25290 | ac_srcdir=. |
| 25291 | if test -z "$ac_top_builddir"; then |
| 25292 | ac_top_srcdir=. |
| 25293 | else |
| 25294 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 25295 | fi ;; |
| 25296 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 25297 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25298 | ac_top_srcdir=$srcdir ;; |
| 25299 | *) # Relative path. |
| 25300 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 25301 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 25302 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25303 | |
| 25304 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 25305 | # the directories may not exist. |
| 25306 | case `pwd` in |
| 25307 | .) ac_abs_builddir="$ac_dir";; |
| 25308 | *) |
| 25309 | case "$ac_dir" in |
| 25310 | .) ac_abs_builddir=`pwd`;; |
| 25311 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 25312 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 25313 | esac;; |
| 25314 | esac |
| 25315 | case $ac_abs_builddir in |
| 25316 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25317 | *) |
| 25318 | case ${ac_top_builddir}. in |
| 25319 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 25320 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25321 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 25322 | esac;; |
| 25323 | esac |
| 25324 | case $ac_abs_builddir in |
| 25325 | .) ac_abs_srcdir=$ac_srcdir;; |
| 25326 | *) |
| 25327 | case $ac_srcdir in |
| 25328 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 25329 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 25330 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 25331 | esac;; |
| 25332 | esac |
| 25333 | case $ac_abs_builddir in |
| 25334 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25335 | *) |
| 25336 | case $ac_top_srcdir in |
| 25337 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 25338 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25339 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 25340 | esac;; |
| 25341 | esac |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25342 | |
| 25343 | |
| 25344 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 25345 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 25346 | case $ac_dest in |
| 25347 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 25348 | 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] | 25349 | 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] | 25350 | 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] | 25351 | 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] | 25352 | test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 25353 | 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] | 25354 | test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; |
| 25355 | 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] | 25356 | tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25357 | 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] | 25358 | 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] | 25359 | esac |
| 25360 | done |
| 25361 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25362 | |
| 25363 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25364 | |
| 25365 | { (exit 0); exit 0; } |
| 25366 | _ACEOF |
| 25367 | chmod +x $CONFIG_STATUS |
| 25368 | ac_clean_files=$ac_clean_files_save |
| 25369 | |
| 25370 | |
| 25371 | # configure is writing to config.log, and then calls config.status. |
| 25372 | # config.status does its own redirection, appending to config.log. |
| 25373 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25374 | # by configure, so config.status won't be able to write to it; its |
| 25375 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25376 | # effectively closing config.log, so it can be properly (re)opened and |
| 25377 | # appended to by config.status. When coming back to configure, we |
| 25378 | # need to make the FD available again. |
| 25379 | if test "$no_create" != yes; then |
| 25380 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25381 | ac_config_status_args= |
| 25382 | test "$silent" = yes && |
| 25383 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25384 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25385 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25386 | exec 5>>config.log |
| 25387 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25388 | # would make configure fail if this is the last instruction. |
| 25389 | $ac_cs_success || { (exit 1); exit 1; } |
| 25390 | fi |
| 25391 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25392 | # |
| 25393 | # CONFIG_SUBDIRS section. |
| 25394 | # |
| 25395 | if test "$no_recursion" != yes; then |
| 25396 | |
| 25397 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 25398 | ac_sub_configure_args= |
| 25399 | ac_prev= |
| 25400 | for ac_arg in $ac_configure_args; do |
| 25401 | if test -n "$ac_prev"; then |
| 25402 | ac_prev= |
| 25403 | continue |
| 25404 | fi |
| 25405 | case $ac_arg in |
| 25406 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 25407 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 25408 | ac_prev=cache_file ;; |
| 25409 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 25410 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 25411 | | --c=*) |
| 25412 | ;; |
| 25413 | --config-cache | -C) |
| 25414 | ;; |
| 25415 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 25416 | ac_prev=srcdir ;; |
| 25417 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 25418 | ;; |
| 25419 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 25420 | ac_prev=prefix ;; |
| 25421 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 25422 | ;; |
| 25423 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 25424 | esac |
| 25425 | done |
| 25426 | |
| 25427 | # Always prepend --prefix to ensure using the same prefix |
| 25428 | # in subdir configurations. |
| 25429 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 25430 | |
| 25431 | ac_popdir=`pwd` |
| 25432 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 25433 | |
| 25434 | # Do not complain, so a configure script can configure whichever |
| 25435 | # parts of a large source tree are present. |
| 25436 | test -d $srcdir/$ac_dir || continue |
| 25437 | |
| 25438 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 25439 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 25440 | { if $as_mkdir_p; then |
| 25441 | mkdir -p "$ac_dir" |
| 25442 | else |
| 25443 | as_dir="$ac_dir" |
| 25444 | as_dirs= |
| 25445 | while test ! -d "$as_dir"; do |
| 25446 | as_dirs="$as_dir $as_dirs" |
| 25447 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 25448 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25449 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25450 | X"$as_dir" : 'X\(//\)$' \| \ |
| 25451 | X"$as_dir" : 'X\(/\)' \| \ |
| 25452 | . : '\(.\)' 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25453 | echo X"$as_dir" | |
| 25454 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25455 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25456 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25457 | /^X\(\/\).*/{ s//\1/; q; } |
| 25458 | s/.*/./; q'` |
| 25459 | done |
| 25460 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 25461 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 25462 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 25463 | { (exit 1); exit 1; }; }; } |
| 25464 | |
| 25465 | ac_builddir=. |
| 25466 | |
| 25467 | if test "$ac_dir" != .; then |
| 25468 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 25469 | # A "../" for each directory in $ac_dir_suffix. |
| 25470 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 25471 | else |
| 25472 | ac_dir_suffix= ac_top_builddir= |
| 25473 | fi |
| 25474 | |
| 25475 | case $srcdir in |
| 25476 | .) # No --srcdir option. We are building in place. |
| 25477 | ac_srcdir=. |
| 25478 | if test -z "$ac_top_builddir"; then |
| 25479 | ac_top_srcdir=. |
| 25480 | else |
| 25481 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 25482 | fi ;; |
| 25483 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 25484 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25485 | ac_top_srcdir=$srcdir ;; |
| 25486 | *) # Relative path. |
| 25487 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 25488 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 25489 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25490 | |
| 25491 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 25492 | # the directories may not exist. |
| 25493 | case `pwd` in |
| 25494 | .) ac_abs_builddir="$ac_dir";; |
| 25495 | *) |
| 25496 | case "$ac_dir" in |
| 25497 | .) ac_abs_builddir=`pwd`;; |
| 25498 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 25499 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 25500 | esac;; |
| 25501 | esac |
| 25502 | case $ac_abs_builddir in |
| 25503 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25504 | *) |
| 25505 | case ${ac_top_builddir}. in |
| 25506 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 25507 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25508 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 25509 | esac;; |
| 25510 | esac |
| 25511 | case $ac_abs_builddir in |
| 25512 | .) ac_abs_srcdir=$ac_srcdir;; |
| 25513 | *) |
| 25514 | case $ac_srcdir in |
| 25515 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 25516 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 25517 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 25518 | esac;; |
| 25519 | esac |
| 25520 | case $ac_abs_builddir in |
| 25521 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25522 | *) |
| 25523 | case $ac_top_srcdir in |
| 25524 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 25525 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25526 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 25527 | esac;; |
| 25528 | esac |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25529 | |
| 25530 | |
| 25531 | cd $ac_dir |
| 25532 | |
| 25533 | # Check for guested configure; otherwise get Cygnus style configure. |
| 25534 | if test -f $ac_srcdir/configure.gnu; then |
| 25535 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 25536 | elif test -f $ac_srcdir/configure; then |
| 25537 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 25538 | elif test -f $ac_srcdir/configure.in; then |
| 25539 | ac_sub_configure=$ac_configure |
| 25540 | else |
| 25541 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 25542 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 25543 | ac_sub_configure= |
| 25544 | fi |
| 25545 | |
| 25546 | # The recursion is here. |
| 25547 | if test -n "$ac_sub_configure"; then |
| 25548 | # Make the cache file name correct relative to the subdirectory. |
| 25549 | case $cache_file in |
| 25550 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 25551 | *) # Relative path. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25552 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25553 | esac |
| 25554 | |
| 25555 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 25556 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 25557 | # The eval makes quoting arguments work. |
| 25558 | eval $ac_sub_configure $ac_sub_configure_args \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25559 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 25560 | { { 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] | 25561 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 25562 | { (exit 1); exit 1; }; } |
| 25563 | fi |
| 25564 | |
| 25565 | cd $ac_popdir |
| 25566 | done |
| 25567 | fi |
| 25568 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25569 | |
| 25570 | if test $llvmgccwarn = yes |
| 25571 | then |
| 25572 | { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 |
| 25573 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} |
| 25574 | { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 |
| 25575 | echo "$as_me: WARNING: ***** appear to be working." >&2;} |
| 25576 | { echo "$as_me:$LINENO: WARNING: ***** " >&5 |
| 25577 | echo "$as_me: WARNING: ***** " >&2;} |
| 25578 | { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 |
| 25579 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} |
| 25580 | { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 |
| 25581 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} |
| 25582 | { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 |
| 25583 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} |
| 25584 | fi |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 25585 | |