John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.4. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10 | # |
| 11 | # $LLVM_COPYRIGHT |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
| 16 | # Be Bourne compatible |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 24 | set -o posix |
| 25 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | |
| 28 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | as_unset=unset |
| 31 | else |
| 32 | as_unset=false |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | # Work around bugs in pre-3.0 UWIN ksh. |
| 37 | $as_unset ENV MAIL MAILPATH |
| 38 | PS1='$ ' |
| 39 | PS2='> ' |
| 40 | PS4='+ ' |
| 41 | |
| 42 | # NLS nuisances. |
| 43 | for as_var in \ |
| 44 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 45 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 46 | LC_TELEPHONE LC_TIME |
| 47 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 48 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 49 | eval $as_var=C; export $as_var |
| 50 | else |
| 51 | $as_unset $as_var |
| 52 | fi |
| 53 | done |
| 54 | |
| 55 | # Required to use basename. |
| 56 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 57 | as_expr=expr |
| 58 | else |
| 59 | as_expr=false |
| 60 | fi |
| 61 | |
| 62 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 63 | as_basename=basename |
| 64 | else |
| 65 | as_basename=false |
| 66 | fi |
| 67 | |
| 68 | |
| 69 | # Name of the executable. |
| 70 | as_me=`$as_basename "$0" || |
| 71 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 72 | X"$0" : 'X\(//\)$' \| \ |
| 73 | X"$0" : 'X\(/\)$' \| \ |
| 74 | . : '\(.\)' 2>/dev/null || |
| 75 | echo X/"$0" | |
| 76 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 78 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 79 | s/.*/./; q'` |
| 80 | |
| 81 | |
| 82 | # PATH needs CR, and LINENO needs CR and PATH. |
| 83 | # Avoid depending upon Character Ranges. |
| 84 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 85 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 86 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 87 | as_cr_digits='0123456789' |
| 88 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 89 | |
| 90 | # The user is always right. |
| 91 | if test "${PATH_SEPARATOR+set}" != set; then |
| 92 | echo "#! /bin/sh" >conf$$.sh |
| 93 | echo "exit 0" >>conf$$.sh |
| 94 | chmod +x conf$$.sh |
| 95 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 96 | PATH_SEPARATOR=';' |
| 97 | else |
| 98 | PATH_SEPARATOR=: |
| 99 | fi |
| 100 | rm -f conf$$.sh |
| 101 | fi |
| 102 | |
| 103 | |
| 104 | as_lineno_1=$LINENO |
| 105 | as_lineno_2=$LINENO |
| 106 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 107 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 108 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 109 | # Find who we are. Look in the path if we contain no path at all |
| 110 | # relative or not. |
| 111 | case $0 in |
| 112 | *[\\/]* ) as_myself=$0 ;; |
| 113 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 114 | for as_dir in $PATH |
| 115 | do |
| 116 | IFS=$as_save_IFS |
| 117 | test -z "$as_dir" && as_dir=. |
| 118 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 119 | done |
| 120 | |
| 121 | ;; |
| 122 | esac |
| 123 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 124 | # in which case we are not to be found in the path. |
| 125 | if test "x$as_myself" = x; then |
| 126 | as_myself=$0 |
| 127 | fi |
| 128 | if test ! -f "$as_myself"; then |
| 129 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 130 | { (exit 1); exit 1; }; } |
| 131 | fi |
| 132 | case $CONFIG_SHELL in |
| 133 | '') |
| 134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 135 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 136 | do |
| 137 | IFS=$as_save_IFS |
| 138 | test -z "$as_dir" && as_dir=. |
| 139 | for as_base in sh bash ksh sh5; do |
| 140 | case $as_dir in |
| 141 | /*) |
| 142 | if ("$as_dir/$as_base" -c ' |
| 143 | as_lineno_1=$LINENO |
| 144 | as_lineno_2=$LINENO |
| 145 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 146 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 147 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 148 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 149 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 150 | CONFIG_SHELL=$as_dir/$as_base |
| 151 | export CONFIG_SHELL |
| 152 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 153 | fi;; |
| 154 | esac |
| 155 | done |
| 156 | done |
| 157 | ;; |
| 158 | esac |
| 159 | |
| 160 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 161 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 162 | # line-number line before each line; the second 'sed' does the real |
| 163 | # work. The second script uses 'N' to pair each line-number line |
| 164 | # with the numbered line, and appends trailing '-' during |
| 165 | # substitution so that $LINENO is not a special case at line end. |
| 166 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 167 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 168 | sed '=' <$as_myself | |
| 169 | sed ' |
| 170 | N |
| 171 | s,$,-, |
| 172 | : loop |
| 173 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 174 | t loop |
| 175 | s,-$,, |
| 176 | s,^['$as_cr_digits']*\n,, |
| 177 | ' >$as_me.lineno && |
| 178 | chmod +x $as_me.lineno || |
| 179 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 180 | { (exit 1); exit 1; }; } |
| 181 | |
| 182 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 183 | # (the dirname of $[0] is not the place where we might find the |
| 184 | # original and so on. Autoconf is especially sensible to this). |
| 185 | . ./$as_me.lineno |
| 186 | # Exit status is that of the last command. |
| 187 | exit |
| 188 | } |
| 189 | |
| 190 | |
| 191 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 192 | *c*,-n*) ECHO_N= ECHO_C=' |
| 193 | ' ECHO_T=' ' ;; |
| 194 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 195 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 196 | esac |
| 197 | |
| 198 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 199 | as_expr=expr |
| 200 | else |
| 201 | as_expr=false |
| 202 | fi |
| 203 | |
| 204 | rm -f conf$$ conf$$.exe conf$$.file |
| 205 | echo >conf$$.file |
| 206 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 207 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 208 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 209 | if test -f conf$$.exe; then |
| 210 | # Don't use ln at all; we don't have any links |
| 211 | as_ln_s='cp -p' |
| 212 | else |
| 213 | as_ln_s='ln -s' |
| 214 | fi |
| 215 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 216 | as_ln_s=ln |
| 217 | else |
| 218 | as_ln_s='cp -p' |
| 219 | fi |
| 220 | rm -f conf$$ conf$$.exe conf$$.file |
| 221 | |
| 222 | if mkdir -p . 2>/dev/null; then |
| 223 | as_mkdir_p=: |
| 224 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 225 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 226 | as_mkdir_p=false |
| 227 | fi |
| 228 | |
| 229 | as_executable_p="test -f" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 232 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 233 | |
| 234 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 236 | |
| 237 | |
| 238 | # IFS |
| 239 | # We need space, tab and new line, in precisely that order. |
| 240 | as_nl=' |
| 241 | ' |
| 242 | IFS=" $as_nl" |
| 243 | |
| 244 | # CDPATH. |
| 245 | $as_unset CDPATH |
| 246 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 247 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 248 | |
| 249 | # Check that we are running under the correct shell. |
| 250 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 251 | |
| 252 | case X$ECHO in |
| 253 | X*--fallback-echo) |
| 254 | # Remove one level of quotation (which was required for Make). |
| 255 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 256 | ;; |
| 257 | esac |
| 258 | |
| 259 | echo=${ECHO-echo} |
| 260 | if test "X$1" = X--no-reexec; then |
| 261 | # Discard the --no-reexec flag, and continue. |
| 262 | shift |
| 263 | elif test "X$1" = X--fallback-echo; then |
| 264 | # Avoid inline document here, it may be left over |
| 265 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 266 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 267 | # Yippee, $echo works! |
| 268 | : |
| 269 | else |
| 270 | # Restart under the correct shell. |
| 271 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 272 | fi |
| 273 | |
| 274 | if test "X$1" = X--fallback-echo; then |
| 275 | # used as fallback echo |
| 276 | shift |
| 277 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 278 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 279 | EOF |
| 280 | exit 0 |
| 281 | fi |
| 282 | |
| 283 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 284 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 286 | |
| 287 | if test -z "$ECHO"; then |
| 288 | if test "X${echo_test_string+set}" != Xset; then |
| 289 | # find a string as large as possible, as long as the shell can cope with it |
| 290 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 291 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 292 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 293 | echo_test_string="`eval $cmd`" && |
| 294 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 295 | then |
| 296 | break |
| 297 | fi |
| 298 | done |
| 299 | fi |
| 300 | |
| 301 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 302 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 303 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 304 | : |
| 305 | else |
| 306 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 307 | # backslashes. This makes it impossible to quote backslashes using |
| 308 | # echo "$something" | sed 's/\\/\\\\/g' |
| 309 | # |
| 310 | # So, first we look for a working echo in the user's PATH. |
| 311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 314 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 315 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 316 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 317 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 318 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 319 | echo="$dir/echo" |
| 320 | break |
| 321 | fi |
| 322 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 323 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 324 | |
| 325 | if test "X$echo" = Xecho; then |
| 326 | # We didn't find a better echo, so look for alternatives. |
| 327 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 328 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 329 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 330 | # This shell has a builtin print -r that does the trick. |
| 331 | echo='print -r' |
| 332 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 333 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 334 | # If we have ksh, try running configure again with it. |
| 335 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 336 | export ORIGINAL_CONFIG_SHELL |
| 337 | CONFIG_SHELL=/bin/ksh |
| 338 | export CONFIG_SHELL |
| 339 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 340 | else |
| 341 | # Try using printf. |
| 342 | echo='printf %s\n' |
| 343 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 344 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 345 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 346 | # Cool, printf works |
| 347 | : |
| 348 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 349 | test "X$echo_testing_string" = 'X\t' && |
| 350 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 351 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 352 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 353 | export CONFIG_SHELL |
| 354 | SHELL="$CONFIG_SHELL" |
| 355 | export SHELL |
| 356 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 357 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = 'X\t' && |
| 359 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 360 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 362 | else |
| 363 | # maybe with a smaller string... |
| 364 | prev=: |
| 365 | |
| 366 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 367 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 368 | then |
| 369 | break |
| 370 | fi |
| 371 | prev="$cmd" |
| 372 | done |
| 373 | |
| 374 | if test "$prev" != 'sed 50q "$0"'; then |
| 375 | echo_test_string=`eval $prev` |
| 376 | export echo_test_string |
| 377 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 378 | else |
| 379 | # Oops. We lost completely, so just stick with echo. |
| 380 | echo=echo |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | fi |
| 385 | fi |
| 386 | fi |
| 387 | |
| 388 | # Copy echo and quote the copy suitably for passing to libtool from |
| 389 | # the Makefile, instead of quoting the original, which is used later. |
| 390 | ECHO=$echo |
| 391 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 392 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 393 | fi |
| 394 | |
| 395 | |
| 396 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 397 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 398 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 400 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 401 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 402 | # Name of the host. |
| 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 404 | # so uname gets run too. |
| 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 406 | |
| 407 | exec 6>&1 |
| 408 | |
| 409 | # |
| 410 | # Initializations. |
| 411 | # |
| 412 | ac_default_prefix=/usr/local |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 414 | cross_compiling=no |
| 415 | subdirs= |
| 416 | MFLAGS= |
| 417 | MAKEFLAGS= |
| 418 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 419 | |
| 420 | # Maximum number of lines to put in a shell here document. |
| 421 | # This variable seems obsolete. It should probably be removed, and |
| 422 | # only ac_max_sed_lines should be used. |
| 423 | : ${ac_max_here_lines=38} |
| 424 | |
| 425 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 426 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 427 | PACKAGE_TARNAME='-llvm-' |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.4' |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 429 | PACKAGE_STRING='llvm 1.4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 432 | ac_unique_file="lib/VMCore/Module.cpp" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 433 | ac_subdirs_all="$ac_subdirs_all projects/sample" |
| 434 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" |
| 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" |
| 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" |
| 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" |
Alkis Evlogimenos | eadc9ef | 2005-01-05 17:57:28 +0000 | [diff] [blame^] | 438 | ac_subdirs_all="$ac_subdirs_all projects/llvm-java" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" |
| 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 441 | ac_subdirs_all="$ac_subdirs_all projects/poolalloc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 442 | # Factoring default headers for most tests. |
| 443 | ac_includes_default="\ |
| 444 | #include <stdio.h> |
| 445 | #if HAVE_SYS_TYPES_H |
| 446 | # include <sys/types.h> |
| 447 | #endif |
| 448 | #if HAVE_SYS_STAT_H |
| 449 | # include <sys/stat.h> |
| 450 | #endif |
| 451 | #if STDC_HEADERS |
| 452 | # include <stdlib.h> |
| 453 | # include <stddef.h> |
| 454 | #else |
| 455 | # if HAVE_STDLIB_H |
| 456 | # include <stdlib.h> |
| 457 | # endif |
| 458 | #endif |
| 459 | #if HAVE_STRING_H |
| 460 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 461 | # include <memory.h> |
| 462 | # endif |
| 463 | # include <string.h> |
| 464 | #endif |
| 465 | #if HAVE_STRINGS_H |
| 466 | # include <strings.h> |
| 467 | #endif |
| 468 | #if HAVE_INTTYPES_H |
| 469 | # include <inttypes.h> |
| 470 | #else |
| 471 | # if HAVE_STDINT_H |
| 472 | # include <stdint.h> |
| 473 | # endif |
| 474 | #endif |
| 475 | #if HAVE_UNISTD_H |
| 476 | # include <unistd.h> |
| 477 | #endif" |
| 478 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 479 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 480 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 481 | |
| 482 | # Initialize some variables set by options. |
| 483 | ac_init_help= |
| 484 | ac_init_version=false |
| 485 | # The variables have the same names as the options, with |
| 486 | # dashes changed to underlines. |
| 487 | cache_file=/dev/null |
| 488 | exec_prefix=NONE |
| 489 | no_create= |
| 490 | no_recursion= |
| 491 | prefix=NONE |
| 492 | program_prefix=NONE |
| 493 | program_suffix=NONE |
| 494 | program_transform_name=s,x,x, |
| 495 | silent= |
| 496 | site= |
| 497 | srcdir= |
| 498 | verbose= |
| 499 | x_includes=NONE |
| 500 | x_libraries=NONE |
| 501 | |
| 502 | # Installation directory options. |
| 503 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 504 | # and all the variables that are supposed to be based on exec_prefix |
| 505 | # by default will actually change. |
| 506 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 507 | bindir='${exec_prefix}/bin' |
| 508 | sbindir='${exec_prefix}/sbin' |
| 509 | libexecdir='${exec_prefix}/libexec' |
| 510 | datadir='${prefix}/share' |
| 511 | sysconfdir='${prefix}/etc' |
| 512 | sharedstatedir='${prefix}/com' |
| 513 | localstatedir='${prefix}/var' |
| 514 | libdir='${exec_prefix}/lib' |
| 515 | includedir='${prefix}/include' |
| 516 | oldincludedir='/usr/include' |
| 517 | infodir='${prefix}/info' |
| 518 | mandir='${prefix}/man' |
| 519 | |
| 520 | ac_prev= |
| 521 | for ac_option |
| 522 | do |
| 523 | # If the previous option needs an argument, assign it. |
| 524 | if test -n "$ac_prev"; then |
| 525 | eval "$ac_prev=\$ac_option" |
| 526 | ac_prev= |
| 527 | continue |
| 528 | fi |
| 529 | |
| 530 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 531 | |
| 532 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 533 | |
| 534 | case $ac_option in |
| 535 | |
| 536 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 537 | ac_prev=bindir ;; |
| 538 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 539 | bindir=$ac_optarg ;; |
| 540 | |
| 541 | -build | --build | --buil | --bui | --bu) |
| 542 | ac_prev=build_alias ;; |
| 543 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 544 | build_alias=$ac_optarg ;; |
| 545 | |
| 546 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 547 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 548 | ac_prev=cache_file ;; |
| 549 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 550 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 551 | cache_file=$ac_optarg ;; |
| 552 | |
| 553 | --config-cache | -C) |
| 554 | cache_file=config.cache ;; |
| 555 | |
| 556 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 557 | ac_prev=datadir ;; |
| 558 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 559 | | --da=*) |
| 560 | datadir=$ac_optarg ;; |
| 561 | |
| 562 | -disable-* | --disable-*) |
| 563 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 564 | # Reject names that are not valid shell variable names. |
| 565 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 566 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 567 | { (exit 1); exit 1; }; } |
| 568 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 569 | eval "enable_$ac_feature=no" ;; |
| 570 | |
| 571 | -enable-* | --enable-*) |
| 572 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 573 | # Reject names that are not valid shell variable names. |
| 574 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 575 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 576 | { (exit 1); exit 1; }; } |
| 577 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 578 | case $ac_option in |
| 579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 580 | *) ac_optarg=yes ;; |
| 581 | esac |
| 582 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 583 | |
| 584 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 585 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 586 | | --exec | --exe | --ex) |
| 587 | ac_prev=exec_prefix ;; |
| 588 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 589 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 590 | | --exec=* | --exe=* | --ex=*) |
| 591 | exec_prefix=$ac_optarg ;; |
| 592 | |
| 593 | -gas | --gas | --ga | --g) |
| 594 | # Obsolete; use --with-gas. |
| 595 | with_gas=yes ;; |
| 596 | |
| 597 | -help | --help | --hel | --he | -h) |
| 598 | ac_init_help=long ;; |
| 599 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 600 | ac_init_help=recursive ;; |
| 601 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 602 | ac_init_help=short ;; |
| 603 | |
| 604 | -host | --host | --hos | --ho) |
| 605 | ac_prev=host_alias ;; |
| 606 | -host=* | --host=* | --hos=* | --ho=*) |
| 607 | host_alias=$ac_optarg ;; |
| 608 | |
| 609 | -includedir | --includedir | --includedi | --included | --include \ |
| 610 | | --includ | --inclu | --incl | --inc) |
| 611 | ac_prev=includedir ;; |
| 612 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 613 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 614 | includedir=$ac_optarg ;; |
| 615 | |
| 616 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 617 | ac_prev=infodir ;; |
| 618 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 619 | infodir=$ac_optarg ;; |
| 620 | |
| 621 | -libdir | --libdir | --libdi | --libd) |
| 622 | ac_prev=libdir ;; |
| 623 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 624 | libdir=$ac_optarg ;; |
| 625 | |
| 626 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 627 | | --libexe | --libex | --libe) |
| 628 | ac_prev=libexecdir ;; |
| 629 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 630 | | --libexe=* | --libex=* | --libe=*) |
| 631 | libexecdir=$ac_optarg ;; |
| 632 | |
| 633 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 634 | | --localstate | --localstat | --localsta | --localst \ |
| 635 | | --locals | --local | --loca | --loc | --lo) |
| 636 | ac_prev=localstatedir ;; |
| 637 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 638 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 639 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 640 | localstatedir=$ac_optarg ;; |
| 641 | |
| 642 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 643 | ac_prev=mandir ;; |
| 644 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 645 | mandir=$ac_optarg ;; |
| 646 | |
| 647 | -nfp | --nfp | --nf) |
| 648 | # Obsolete; use --without-fp. |
| 649 | with_fp=no ;; |
| 650 | |
| 651 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 652 | | --no-cr | --no-c | -n) |
| 653 | no_create=yes ;; |
| 654 | |
| 655 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 656 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 657 | no_recursion=yes ;; |
| 658 | |
| 659 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 660 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 661 | | --oldin | --oldi | --old | --ol | --o) |
| 662 | ac_prev=oldincludedir ;; |
| 663 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 664 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 665 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 666 | oldincludedir=$ac_optarg ;; |
| 667 | |
| 668 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 669 | ac_prev=prefix ;; |
| 670 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 671 | prefix=$ac_optarg ;; |
| 672 | |
| 673 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 674 | | --program-pre | --program-pr | --program-p) |
| 675 | ac_prev=program_prefix ;; |
| 676 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 677 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 678 | program_prefix=$ac_optarg ;; |
| 679 | |
| 680 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 681 | | --program-suf | --program-su | --program-s) |
| 682 | ac_prev=program_suffix ;; |
| 683 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 684 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 685 | program_suffix=$ac_optarg ;; |
| 686 | |
| 687 | -program-transform-name | --program-transform-name \ |
| 688 | | --program-transform-nam | --program-transform-na \ |
| 689 | | --program-transform-n | --program-transform- \ |
| 690 | | --program-transform | --program-transfor \ |
| 691 | | --program-transfo | --program-transf \ |
| 692 | | --program-trans | --program-tran \ |
| 693 | | --progr-tra | --program-tr | --program-t) |
| 694 | ac_prev=program_transform_name ;; |
| 695 | -program-transform-name=* | --program-transform-name=* \ |
| 696 | | --program-transform-nam=* | --program-transform-na=* \ |
| 697 | | --program-transform-n=* | --program-transform-=* \ |
| 698 | | --program-transform=* | --program-transfor=* \ |
| 699 | | --program-transfo=* | --program-transf=* \ |
| 700 | | --program-trans=* | --program-tran=* \ |
| 701 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 702 | program_transform_name=$ac_optarg ;; |
| 703 | |
| 704 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 705 | | -silent | --silent | --silen | --sile | --sil) |
| 706 | silent=yes ;; |
| 707 | |
| 708 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 709 | ac_prev=sbindir ;; |
| 710 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 711 | | --sbi=* | --sb=*) |
| 712 | sbindir=$ac_optarg ;; |
| 713 | |
| 714 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 715 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 716 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 717 | | --sha | --sh) |
| 718 | ac_prev=sharedstatedir ;; |
| 719 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 720 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 721 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 722 | | --sha=* | --sh=*) |
| 723 | sharedstatedir=$ac_optarg ;; |
| 724 | |
| 725 | -site | --site | --sit) |
| 726 | ac_prev=site ;; |
| 727 | -site=* | --site=* | --sit=*) |
| 728 | site=$ac_optarg ;; |
| 729 | |
| 730 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 731 | ac_prev=srcdir ;; |
| 732 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 733 | srcdir=$ac_optarg ;; |
| 734 | |
| 735 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 736 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 737 | ac_prev=sysconfdir ;; |
| 738 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 739 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 740 | sysconfdir=$ac_optarg ;; |
| 741 | |
| 742 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 743 | ac_prev=target_alias ;; |
| 744 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 745 | target_alias=$ac_optarg ;; |
| 746 | |
| 747 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 748 | verbose=yes ;; |
| 749 | |
| 750 | -version | --version | --versio | --versi | --vers | -V) |
| 751 | ac_init_version=: ;; |
| 752 | |
| 753 | -with-* | --with-*) |
| 754 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 755 | # Reject names that are not valid shell variable names. |
| 756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 757 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 758 | { (exit 1); exit 1; }; } |
| 759 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 760 | case $ac_option in |
| 761 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 762 | *) ac_optarg=yes ;; |
| 763 | esac |
| 764 | eval "with_$ac_package='$ac_optarg'" ;; |
| 765 | |
| 766 | -without-* | --without-*) |
| 767 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 768 | # Reject names that are not valid shell variable names. |
| 769 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 770 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 771 | { (exit 1); exit 1; }; } |
| 772 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 773 | eval "with_$ac_package=no" ;; |
| 774 | |
| 775 | --x) |
| 776 | # Obsolete; use --with-x. |
| 777 | with_x=yes ;; |
| 778 | |
| 779 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 780 | | --x-incl | --x-inc | --x-in | --x-i) |
| 781 | ac_prev=x_includes ;; |
| 782 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 783 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 784 | x_includes=$ac_optarg ;; |
| 785 | |
| 786 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 787 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 788 | ac_prev=x_libraries ;; |
| 789 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 790 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 791 | x_libraries=$ac_optarg ;; |
| 792 | |
| 793 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 794 | Try \`$0 --help' for more information." >&2 |
| 795 | { (exit 1); exit 1; }; } |
| 796 | ;; |
| 797 | |
| 798 | *=*) |
| 799 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 800 | # Reject names that are not valid shell variable names. |
| 801 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 802 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 803 | { (exit 1); exit 1; }; } |
| 804 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 805 | eval "$ac_envvar='$ac_optarg'" |
| 806 | export $ac_envvar ;; |
| 807 | |
| 808 | *) |
| 809 | # FIXME: should be removed in autoconf 3.0. |
| 810 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 811 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 812 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 813 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 814 | ;; |
| 815 | |
| 816 | esac |
| 817 | done |
| 818 | |
| 819 | if test -n "$ac_prev"; then |
| 820 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 821 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 822 | { (exit 1); exit 1; }; } |
| 823 | fi |
| 824 | |
| 825 | # Be sure to have absolute paths. |
| 826 | for ac_var in exec_prefix prefix |
| 827 | do |
| 828 | eval ac_val=$`echo $ac_var` |
| 829 | case $ac_val in |
| 830 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 831 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 832 | { (exit 1); exit 1; }; };; |
| 833 | esac |
| 834 | done |
| 835 | |
| 836 | # Be sure to have absolute paths. |
| 837 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 838 | localstatedir libdir includedir oldincludedir infodir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 839 | do |
| 840 | eval ac_val=$`echo $ac_var` |
| 841 | case $ac_val in |
| 842 | [\\/$]* | ?:[\\/]* ) ;; |
| 843 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 844 | { (exit 1); exit 1; }; };; |
| 845 | esac |
| 846 | done |
| 847 | |
| 848 | # There might be people who depend on the old broken behavior: `$host' |
| 849 | # used to hold the argument of --host etc. |
| 850 | # FIXME: To remove some day. |
| 851 | build=$build_alias |
| 852 | host=$host_alias |
| 853 | target=$target_alias |
| 854 | |
| 855 | # FIXME: To remove some day. |
| 856 | if test "x$host_alias" != x; then |
| 857 | if test "x$build_alias" = x; then |
| 858 | cross_compiling=maybe |
| 859 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 860 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 861 | elif test "x$build_alias" != "x$host_alias"; then |
| 862 | cross_compiling=yes |
| 863 | fi |
| 864 | fi |
| 865 | |
| 866 | ac_tool_prefix= |
| 867 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 868 | |
| 869 | test "$silent" = yes && exec 6>/dev/null |
| 870 | |
| 871 | |
| 872 | # Find the source files, if location was not specified. |
| 873 | if test -z "$srcdir"; then |
| 874 | ac_srcdir_defaulted=yes |
| 875 | # Try the directory containing this script, then its parent. |
| 876 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 877 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 878 | X"$0" : 'X\(//\)[^/]' \| \ |
| 879 | X"$0" : 'X\(//\)$' \| \ |
| 880 | X"$0" : 'X\(/\)' \| \ |
| 881 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | echo X"$0" | |
| 883 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 884 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 885 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 886 | /^X\(\/\).*/{ s//\1/; q; } |
| 887 | s/.*/./; q'` |
| 888 | srcdir=$ac_confdir |
| 889 | if test ! -r $srcdir/$ac_unique_file; then |
| 890 | srcdir=.. |
| 891 | fi |
| 892 | else |
| 893 | ac_srcdir_defaulted=no |
| 894 | fi |
| 895 | if test ! -r $srcdir/$ac_unique_file; then |
| 896 | if test "$ac_srcdir_defaulted" = yes; then |
| 897 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 898 | { (exit 1); exit 1; }; } |
| 899 | else |
| 900 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 901 | { (exit 1); exit 1; }; } |
| 902 | fi |
| 903 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 904 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 905 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 906 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 907 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 908 | ac_env_build_alias_set=${build_alias+set} |
| 909 | ac_env_build_alias_value=$build_alias |
| 910 | ac_cv_env_build_alias_set=${build_alias+set} |
| 911 | ac_cv_env_build_alias_value=$build_alias |
| 912 | ac_env_host_alias_set=${host_alias+set} |
| 913 | ac_env_host_alias_value=$host_alias |
| 914 | ac_cv_env_host_alias_set=${host_alias+set} |
| 915 | ac_cv_env_host_alias_value=$host_alias |
| 916 | ac_env_target_alias_set=${target_alias+set} |
| 917 | ac_env_target_alias_value=$target_alias |
| 918 | ac_cv_env_target_alias_set=${target_alias+set} |
| 919 | ac_cv_env_target_alias_value=$target_alias |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | ac_env_CC_set=${CC+set} |
| 921 | ac_env_CC_value=$CC |
| 922 | ac_cv_env_CC_set=${CC+set} |
| 923 | ac_cv_env_CC_value=$CC |
| 924 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 925 | ac_env_CFLAGS_value=$CFLAGS |
| 926 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 927 | ac_cv_env_CFLAGS_value=$CFLAGS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 928 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 929 | ac_env_LDFLAGS_value=$LDFLAGS |
| 930 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 931 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 932 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 933 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 934 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 935 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 936 | ac_env_CPP_set=${CPP+set} |
| 937 | ac_env_CPP_value=$CPP |
| 938 | ac_cv_env_CPP_set=${CPP+set} |
| 939 | ac_cv_env_CPP_value=$CPP |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 940 | ac_env_CXX_set=${CXX+set} |
| 941 | ac_env_CXX_value=$CXX |
| 942 | ac_cv_env_CXX_set=${CXX+set} |
| 943 | ac_cv_env_CXX_value=$CXX |
| 944 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 945 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 946 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 947 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 948 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 949 | ac_env_CXXCPP_value=$CXXCPP |
| 950 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 951 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 952 | ac_env_F77_set=${F77+set} |
| 953 | ac_env_F77_value=$F77 |
| 954 | ac_cv_env_F77_set=${F77+set} |
| 955 | ac_cv_env_F77_value=$F77 |
| 956 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 957 | ac_env_FFLAGS_value=$FFLAGS |
| 958 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 959 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 960 | |
| 961 | # |
| 962 | # Report the --help message. |
| 963 | # |
| 964 | if test "$ac_init_help" = "long"; then |
| 965 | # Omit some internal or obsolete options to make the list less imposing. |
| 966 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 967 | cat <<_ACEOF |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 968 | \`configure' configures llvm 1.4 to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 969 | |
| 970 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 971 | |
| 972 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 973 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 974 | |
| 975 | Defaults for the options are specified in brackets. |
| 976 | |
| 977 | Configuration: |
| 978 | -h, --help display this help and exit |
| 979 | --help=short display options specific to this package |
| 980 | --help=recursive display the short help of all the included packages |
| 981 | -V, --version display version information and exit |
| 982 | -q, --quiet, --silent do not print \`checking...' messages |
| 983 | --cache-file=FILE cache test results in FILE [disabled] |
| 984 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 985 | -n, --no-create do not create output files |
| 986 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 987 | |
| 988 | _ACEOF |
| 989 | |
| 990 | cat <<_ACEOF |
| 991 | Installation directories: |
| 992 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 995 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 996 | |
| 997 | By default, \`make install' will install all the files in |
| 998 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 999 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1000 | for instance \`--prefix=\$HOME'. |
| 1001 | |
| 1002 | For better control, use the options below. |
| 1003 | |
| 1004 | Fine tuning of the installation directories: |
| 1005 | --bindir=DIR user executables [EPREFIX/bin] |
| 1006 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1007 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1008 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1009 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1010 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1011 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1012 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1013 | --includedir=DIR C header files [PREFIX/include] |
| 1014 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1015 | --infodir=DIR info documentation [PREFIX/info] |
| 1016 | --mandir=DIR man documentation [PREFIX/man] |
| 1017 | _ACEOF |
| 1018 | |
| 1019 | cat <<\_ACEOF |
| 1020 | |
| 1021 | System types: |
| 1022 | --build=BUILD configure for building on BUILD [guessed] |
| 1023 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1024 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1025 | _ACEOF |
| 1026 | fi |
| 1027 | |
| 1028 | if test -n "$ac_init_help"; then |
| 1029 | case $ac_init_help in |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1030 | short | recursive ) echo "Configuration of llvm 1.4:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 | esac |
| 1032 | cat <<\_ACEOF |
| 1033 | |
| 1034 | Optional Features: |
| 1035 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1036 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1037 | --enable-optimized |
| 1038 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1039 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1040 | --enable-ltdl-install install libltdl |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1041 | --enable-shared[=PKGS] |
| 1042 | build shared libraries [default=yes] |
| 1043 | --enable-static[=PKGS] |
| 1044 | build static libraries [default=yes] |
| 1045 | --enable-fast-install[=PKGS] |
| 1046 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1047 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1048 | |
| 1049 | Optional Packages: |
| 1050 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1051 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1052 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1053 | searches PATH) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1054 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1055 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1056 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1057 | both] |
| 1058 | --with-tags[=TAGS] |
| 1059 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1060 | |
| 1061 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1062 | CC C compiler command |
| 1063 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1064 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1065 | nonstandard directory <lib dir> |
| 1066 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1067 | headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1068 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1069 | CXX C++ compiler command |
| 1070 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1071 | CXXCPP C++ preprocessor |
| 1072 | F77 Fortran 77 compiler command |
| 1073 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1074 | |
| 1075 | Use these variables to override the choices made by `configure' or to help |
| 1076 | it to find libraries and programs with nonstandard names/locations. |
| 1077 | |
| 1078 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1079 | _ACEOF |
| 1080 | fi |
| 1081 | |
| 1082 | if test "$ac_init_help" = "recursive"; then |
| 1083 | # If there are subdirs, report their specific --help. |
| 1084 | ac_popdir=`pwd` |
| 1085 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1086 | test -d $ac_dir || continue |
| 1087 | ac_builddir=. |
| 1088 | |
| 1089 | if test "$ac_dir" != .; then |
| 1090 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1091 | # A "../" for each directory in $ac_dir_suffix. |
| 1092 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1093 | else |
| 1094 | ac_dir_suffix= ac_top_builddir= |
| 1095 | fi |
| 1096 | |
| 1097 | case $srcdir in |
| 1098 | .) # No --srcdir option. We are building in place. |
| 1099 | ac_srcdir=. |
| 1100 | if test -z "$ac_top_builddir"; then |
| 1101 | ac_top_srcdir=. |
| 1102 | else |
| 1103 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1104 | fi ;; |
| 1105 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1106 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1107 | ac_top_srcdir=$srcdir ;; |
| 1108 | *) # Relative path. |
| 1109 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1110 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1111 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1112 | |
| 1113 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1114 | # the directories may not exist. |
| 1115 | case `pwd` in |
| 1116 | .) ac_abs_builddir="$ac_dir";; |
| 1117 | *) |
| 1118 | case "$ac_dir" in |
| 1119 | .) ac_abs_builddir=`pwd`;; |
| 1120 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1121 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1122 | esac;; |
| 1123 | esac |
| 1124 | case $ac_abs_builddir in |
| 1125 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1126 | *) |
| 1127 | case ${ac_top_builddir}. in |
| 1128 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1129 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1130 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1131 | esac;; |
| 1132 | esac |
| 1133 | case $ac_abs_builddir in |
| 1134 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1135 | *) |
| 1136 | case $ac_srcdir in |
| 1137 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1138 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1139 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1140 | esac;; |
| 1141 | esac |
| 1142 | case $ac_abs_builddir in |
| 1143 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1144 | *) |
| 1145 | case $ac_top_srcdir in |
| 1146 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1147 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1148 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1149 | esac;; |
| 1150 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1151 | |
| 1152 | cd $ac_dir |
| 1153 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1154 | if test -f $ac_srcdir/configure.gnu; then |
| 1155 | echo |
| 1156 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1157 | elif test -f $ac_srcdir/configure; then |
| 1158 | echo |
| 1159 | $SHELL $ac_srcdir/configure --help=recursive |
| 1160 | elif test -f $ac_srcdir/configure.ac || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1161 | test -f $ac_srcdir/configure.in; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1162 | echo |
| 1163 | $ac_configure --help |
| 1164 | else |
| 1165 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1166 | fi |
| 1167 | cd $ac_popdir |
| 1168 | done |
| 1169 | fi |
| 1170 | |
| 1171 | test -n "$ac_init_help" && exit 0 |
| 1172 | if $ac_init_version; then |
| 1173 | cat <<\_ACEOF |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1174 | llvm configure 1.4 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1175 | generated by GNU Autoconf 2.59 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1176 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1177 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1178 | This configure script is free software; the Free Software Foundation |
| 1179 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1180 | |
| 1181 | $LLVM_COPYRIGHT |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1182 | _ACEOF |
| 1183 | exit 0 |
| 1184 | fi |
| 1185 | exec 5>config.log |
| 1186 | cat >&5 <<_ACEOF |
| 1187 | This file contains any messages produced by compilers while |
| 1188 | running configure, to aid debugging if configure makes a mistake. |
| 1189 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1190 | It was created by llvm $as_me 1.4, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1191 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1192 | |
| 1193 | $ $0 $@ |
| 1194 | |
| 1195 | _ACEOF |
| 1196 | { |
| 1197 | cat <<_ASUNAME |
| 1198 | ## --------- ## |
| 1199 | ## Platform. ## |
| 1200 | ## --------- ## |
| 1201 | |
| 1202 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1203 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1204 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1205 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1206 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1207 | |
| 1208 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1209 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1210 | |
| 1211 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1212 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1213 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1214 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1215 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1216 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1217 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1218 | |
| 1219 | _ASUNAME |
| 1220 | |
| 1221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1222 | for as_dir in $PATH |
| 1223 | do |
| 1224 | IFS=$as_save_IFS |
| 1225 | test -z "$as_dir" && as_dir=. |
| 1226 | echo "PATH: $as_dir" |
| 1227 | done |
| 1228 | |
| 1229 | } >&5 |
| 1230 | |
| 1231 | cat >&5 <<_ACEOF |
| 1232 | |
| 1233 | |
| 1234 | ## ----------- ## |
| 1235 | ## Core tests. ## |
| 1236 | ## ----------- ## |
| 1237 | |
| 1238 | _ACEOF |
| 1239 | |
| 1240 | |
| 1241 | # Keep a trace of the command line. |
| 1242 | # 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] | 1243 | # 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] | 1244 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1245 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1246 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1247 | ac_configure_args0= |
| 1248 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1250 | ac_must_keep_next=false |
| 1251 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1252 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1253 | for ac_arg |
| 1254 | do |
| 1255 | case $ac_arg in |
| 1256 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1257 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1258 | | -silent | --silent | --silen | --sile | --sil) |
| 1259 | continue ;; |
| 1260 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1261 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1262 | esac |
| 1263 | case $ac_pass in |
| 1264 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1265 | 2) |
| 1266 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1267 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1268 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1269 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1270 | case $ac_arg in |
| 1271 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1272 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1273 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1274 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1275 | case "$ac_configure_args0 " in |
| 1276 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1277 | esac |
| 1278 | ;; |
| 1279 | -* ) ac_must_keep_next=true ;; |
| 1280 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1281 | fi |
| 1282 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1283 | # Get rid of the leading space. |
| 1284 | ac_sep=" " |
| 1285 | ;; |
| 1286 | esac |
| 1287 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1288 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1289 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1290 | $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] | 1291 | |
| 1292 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1293 | # config.log. We remove comments because anyway the quotes in there |
| 1294 | # would cause problems or look ugly. |
| 1295 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1296 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1297 | trap 'exit_status=$? |
| 1298 | # Save into config.log some information that might help in debugging. |
| 1299 | { |
| 1300 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1301 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1302 | cat <<\_ASBOX |
| 1303 | ## ---------------- ## |
| 1304 | ## Cache variables. ## |
| 1305 | ## ---------------- ## |
| 1306 | _ASBOX |
| 1307 | echo |
| 1308 | # The following way of writing the cache mishandles newlines in values, |
| 1309 | { |
| 1310 | (set) 2>&1 | |
| 1311 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1312 | *ac_space=\ *) |
| 1313 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1314 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1315 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1316 | ;; |
| 1317 | *) |
| 1318 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1319 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1320 | ;; |
| 1321 | esac; |
| 1322 | } |
| 1323 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1324 | |
| 1325 | cat <<\_ASBOX |
| 1326 | ## ----------------- ## |
| 1327 | ## Output variables. ## |
| 1328 | ## ----------------- ## |
| 1329 | _ASBOX |
| 1330 | echo |
| 1331 | for ac_var in $ac_subst_vars |
| 1332 | do |
| 1333 | eval ac_val=$`echo $ac_var` |
| 1334 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1335 | done | sort |
| 1336 | echo |
| 1337 | |
| 1338 | if test -n "$ac_subst_files"; then |
| 1339 | cat <<\_ASBOX |
| 1340 | ## ------------- ## |
| 1341 | ## Output files. ## |
| 1342 | ## ------------- ## |
| 1343 | _ASBOX |
| 1344 | echo |
| 1345 | for ac_var in $ac_subst_files |
| 1346 | do |
| 1347 | eval ac_val=$`echo $ac_var` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1348 | echo "$ac_var='"'"'$ac_val'"'"'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1349 | done | sort |
| 1350 | echo |
| 1351 | fi |
| 1352 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1353 | if test -s confdefs.h; then |
| 1354 | cat <<\_ASBOX |
| 1355 | ## ----------- ## |
| 1356 | ## confdefs.h. ## |
| 1357 | ## ----------- ## |
| 1358 | _ASBOX |
| 1359 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1360 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1361 | echo |
| 1362 | fi |
| 1363 | test "$ac_signal" != 0 && |
| 1364 | echo "$as_me: caught signal $ac_signal" |
| 1365 | echo "$as_me: exit $exit_status" |
| 1366 | } >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1367 | rm -f core *.core && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1368 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1369 | exit $exit_status |
| 1370 | ' 0 |
| 1371 | for ac_signal in 1 2 13 15; do |
| 1372 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1373 | done |
| 1374 | ac_signal=0 |
| 1375 | |
| 1376 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1377 | rm -rf conftest* confdefs.h |
| 1378 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1379 | echo >confdefs.h |
| 1380 | |
| 1381 | # Predefined preprocessor variables. |
| 1382 | |
| 1383 | cat >>confdefs.h <<_ACEOF |
| 1384 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1385 | _ACEOF |
| 1386 | |
| 1387 | |
| 1388 | cat >>confdefs.h <<_ACEOF |
| 1389 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1390 | _ACEOF |
| 1391 | |
| 1392 | |
| 1393 | cat >>confdefs.h <<_ACEOF |
| 1394 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1395 | _ACEOF |
| 1396 | |
| 1397 | |
| 1398 | cat >>confdefs.h <<_ACEOF |
| 1399 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1400 | _ACEOF |
| 1401 | |
| 1402 | |
| 1403 | cat >>confdefs.h <<_ACEOF |
| 1404 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1405 | _ACEOF |
| 1406 | |
| 1407 | |
| 1408 | # Let the site file select an alternate cache file if it wants to. |
| 1409 | # Prefer explicitly selected file to automatically selected ones. |
| 1410 | if test -z "$CONFIG_SITE"; then |
| 1411 | if test "x$prefix" != xNONE; then |
| 1412 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1413 | else |
| 1414 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1415 | fi |
| 1416 | fi |
| 1417 | for ac_site_file in $CONFIG_SITE; do |
| 1418 | if test -r "$ac_site_file"; then |
| 1419 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1420 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1421 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1422 | . "$ac_site_file" |
| 1423 | fi |
| 1424 | done |
| 1425 | |
| 1426 | if test -r "$cache_file"; then |
| 1427 | # Some versions of bash will fail to source /dev/null (special |
| 1428 | # files actually), so we avoid doing that. |
| 1429 | if test -f "$cache_file"; then |
| 1430 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1431 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1432 | case $cache_file in |
| 1433 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1434 | *) . ./$cache_file;; |
| 1435 | esac |
| 1436 | fi |
| 1437 | else |
| 1438 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1439 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1440 | >$cache_file |
| 1441 | fi |
| 1442 | |
| 1443 | # Check that the precious variables saved in the cache have kept the same |
| 1444 | # value. |
| 1445 | ac_cache_corrupted=false |
| 1446 | for ac_var in `(set) 2>&1 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1447 | 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] | 1448 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1449 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1450 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1451 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1452 | case $ac_old_set,$ac_new_set in |
| 1453 | set,) |
| 1454 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1455 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1456 | ac_cache_corrupted=: ;; |
| 1457 | ,set) |
| 1458 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1459 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1460 | ac_cache_corrupted=: ;; |
| 1461 | ,);; |
| 1462 | *) |
| 1463 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1464 | { 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] | 1465 | 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] | 1466 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1468 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1469 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1470 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | fi;; |
| 1472 | esac |
| 1473 | # Pass precious variables to config.status. |
| 1474 | if test "$ac_new_set" = set; then |
| 1475 | case $ac_new_val in |
| 1476 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1477 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1478 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1479 | esac |
| 1480 | case " $ac_configure_args " in |
| 1481 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1482 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1483 | esac |
| 1484 | fi |
| 1485 | done |
| 1486 | if $ac_cache_corrupted; then |
| 1487 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1488 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1489 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1490 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1491 | { (exit 1); exit 1; }; } |
| 1492 | fi |
| 1493 | |
| 1494 | ac_ext=c |
| 1495 | ac_cpp='$CPP $CPPFLAGS' |
| 1496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | |
| 1522 | |
| 1523 | |
| 1524 | |
| 1525 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1526 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1527 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign." |
| 1528 | |
| 1529 | |
| 1530 | |
| 1531 | |
| 1532 | |
| 1533 | |
| 1534 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1535 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1536 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1537 | if test -f $ac_dir/install-sh; then |
| 1538 | ac_aux_dir=$ac_dir |
| 1539 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1540 | break |
| 1541 | elif test -f $ac_dir/install.sh; then |
| 1542 | ac_aux_dir=$ac_dir |
| 1543 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1544 | break |
| 1545 | elif test -f $ac_dir/shtool; then |
| 1546 | ac_aux_dir=$ac_dir |
| 1547 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1548 | break |
| 1549 | fi |
| 1550 | done |
| 1551 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1552 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1553 | 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] | 1554 | { (exit 1); exit 1; }; } |
| 1555 | fi |
| 1556 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1557 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1558 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1559 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1560 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1561 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1562 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 1563 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1564 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1565 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1566 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1567 | fi |
| 1568 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1569 | for i in `ls ${srcdir}/projects` |
| 1570 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1571 | if test -d ${srcdir}/projects/${i} ; then |
| 1572 | case ${i} in |
| 1573 | "CVS") ;; |
| 1574 | "sample") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1575 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1576 | subdirs="$subdirs projects/sample" |
| 1577 | ;; |
| 1578 | "Stacker") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1579 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1580 | subdirs="$subdirs projects/Stacker" |
| 1581 | ;; |
| 1582 | "llvm-test") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1583 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1584 | subdirs="$subdirs projects/llvm-test" |
| 1585 | ;; |
| 1586 | "llvm-reopt") |
| 1587 | |
| 1588 | subdirs="$subdirs projects/llvm-reopt" |
| 1589 | ;; |
| 1590 | "llvm-gcc") |
| 1591 | |
| 1592 | subdirs="$subdirs projects/llvm-gcc" |
| 1593 | ;; |
Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1594 | "Java") |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1595 | |
Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1596 | subdirs="$subdirs projects/Java" |
| 1597 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1598 | "llvm-tv") |
| 1599 | |
| 1600 | subdirs="$subdirs projects/llvm-tv" |
| 1601 | ;; |
| 1602 | "llvm-fefw") |
| 1603 | |
| 1604 | subdirs="$subdirs projects/llvm-fefw" |
| 1605 | ;; |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1606 | "poolalloc") |
| 1607 | |
| 1608 | subdirs="$subdirs projects/poolalloc" |
| 1609 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1610 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1611 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1612 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 1613 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1614 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1615 | fi |
| 1616 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1617 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1618 | |
| 1619 | # Make sure we can run config.sub. |
| 1620 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1621 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1622 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1623 | { (exit 1); exit 1; }; } |
| 1624 | |
| 1625 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1626 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1627 | if test "${ac_cv_build+set}" = set; then |
| 1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1629 | else |
| 1630 | ac_cv_build_alias=$build_alias |
| 1631 | test -z "$ac_cv_build_alias" && |
| 1632 | ac_cv_build_alias=`$ac_config_guess` |
| 1633 | test -z "$ac_cv_build_alias" && |
| 1634 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1635 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1636 | { (exit 1); exit 1; }; } |
| 1637 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1638 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1639 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1640 | { (exit 1); exit 1; }; } |
| 1641 | |
| 1642 | fi |
| 1643 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1644 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1645 | build=$ac_cv_build |
| 1646 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1647 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1648 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1649 | |
| 1650 | |
| 1651 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1652 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1653 | if test "${ac_cv_host+set}" = set; then |
| 1654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1655 | else |
| 1656 | ac_cv_host_alias=$host_alias |
| 1657 | test -z "$ac_cv_host_alias" && |
| 1658 | ac_cv_host_alias=$ac_cv_build_alias |
| 1659 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1660 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1661 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1662 | { (exit 1); exit 1; }; } |
| 1663 | |
| 1664 | fi |
| 1665 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1666 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1667 | host=$ac_cv_host |
| 1668 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1669 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1670 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1671 | |
| 1672 | |
| 1673 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1674 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1675 | if test "${ac_cv_target+set}" = set; then |
| 1676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1677 | else |
| 1678 | ac_cv_target_alias=$target_alias |
| 1679 | test "x$ac_cv_target_alias" = "x" && |
| 1680 | ac_cv_target_alias=$ac_cv_host_alias |
| 1681 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1682 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1683 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1684 | { (exit 1); exit 1; }; } |
| 1685 | |
| 1686 | fi |
| 1687 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1688 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1689 | target=$ac_cv_target |
| 1690 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1691 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1692 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1693 | |
| 1694 | |
| 1695 | # The aliases save the names the user supplied, while $host etc. |
| 1696 | # will get canonicalized. |
| 1697 | test -n "$target_alias" && |
| 1698 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1699 | NONENONEs,x,x, && |
| 1700 | program_prefix=${target_alias}- |
| 1701 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1702 | echo "$as_me:$LINENO: checking type of operating system we're on" >&5 |
| 1703 | echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6 |
| 1704 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1706 | else |
| 1707 | case $build in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1708 | *-*-aix*) |
| 1709 | llvm_cv_os_type="AIX" |
| 1710 | llvm_cv_platform_type="Unix" ;; |
| 1711 | *-*-cygwin*) |
| 1712 | llvm_cv_os_type="Cygwin" |
| 1713 | llvm_cv_platform_type="Unix" ;; |
| 1714 | *-*-darwin*) |
| 1715 | llvm_cv_os_type="Darwin" |
| 1716 | llvm_cv_platform_type="Unix" ;; |
| 1717 | *-*-freebsd*) |
| 1718 | llvm_cv_os_type="FreeBSD" |
| 1719 | llvm_cv_platform_type="Unix" ;; |
| 1720 | *-*-interix*) |
| 1721 | llvm_cv_os_type="Interix" |
| 1722 | llvm_cv_platform_type="Unix" ;; |
| 1723 | *-*-linux*) |
| 1724 | llvm_cv_os_type="Linux" |
| 1725 | llvm_cv_platform_type="Unix" ;; |
| 1726 | *-*-solaris*) |
| 1727 | llvm_cv_os_type="SunOS" |
| 1728 | llvm_cv_platform_type="Unix" ;; |
| 1729 | *-*-win32*) |
| 1730 | llvm_cv_os_type="Win32" |
| 1731 | llvm_cv_platform_type="Win32" ;; |
| 1732 | *-*-mingw*) |
| 1733 | llvm_cv_os_type="MingW" |
| 1734 | llvm_cv_platform_type="Win32" ;; |
| 1735 | *) |
| 1736 | llvm_cv_os_type="Unknown" |
| 1737 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1738 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1739 | fi |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1740 | echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 1741 | echo "${ECHO_T}$llvm_cv_os_type" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1743 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 1744 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 1745 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1746 | { (exit 1); exit 1; }; } |
| 1747 | fi |
| 1748 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1749 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1750 | |
| 1751 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1752 | case $llvm_cv_platform_type in |
| 1753 | Unix) |
| 1754 | |
| 1755 | cat >>confdefs.h <<\_ACEOF |
| 1756 | #define LLVM_ON_UNIX 1 |
| 1757 | _ACEOF |
| 1758 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1759 | LLVM_ON_UNIX=1 |
| 1760 | |
| 1761 | LLVM_ON_WIN32=0 |
| 1762 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1763 | ;; |
| 1764 | Win32) |
| 1765 | |
| 1766 | cat >>confdefs.h <<\_ACEOF |
| 1767 | #define LLVM_ON_WIN32 1 |
| 1768 | _ACEOF |
| 1769 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1770 | LLVM_ON_UNIX=0 |
| 1771 | |
| 1772 | LLVM_ON_WIN32=1 |
| 1773 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1774 | ;; |
| 1775 | esac |
| 1776 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1777 | case $target in |
| 1778 | sparc*-*-solaris*) target=sparcv9-sun-solaris2.8 |
| 1779 | |
| 1780 | ;; |
| 1781 | esac |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1782 | |
| 1783 | echo "$as_me:$LINENO: checking target architecture" >&5 |
| 1784 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1785 | if test "${llvm_cv_target_arch+set}" = set; then |
| 1786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1787 | else |
| 1788 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1789 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 1790 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1791 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 1792 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
| 1793 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1794 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1795 | fi |
| 1796 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 1797 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1798 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1799 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 1800 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 1801 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 1802 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1803 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1804 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1805 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1806 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1807 | ac_ext=c |
| 1808 | ac_cpp='$CPP $CPPFLAGS' |
| 1809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1812 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1813 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1814 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1817 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1819 | else |
| 1820 | if test -n "$CC"; then |
| 1821 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1822 | else |
| 1823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1824 | for as_dir in $PATH |
| 1825 | do |
| 1826 | IFS=$as_save_IFS |
| 1827 | test -z "$as_dir" && as_dir=. |
| 1828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1829 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1830 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1831 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1832 | break 2 |
| 1833 | fi |
| 1834 | done |
| 1835 | done |
| 1836 | |
| 1837 | fi |
| 1838 | fi |
| 1839 | CC=$ac_cv_prog_CC |
| 1840 | if test -n "$CC"; then |
| 1841 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1842 | echo "${ECHO_T}$CC" >&6 |
| 1843 | else |
| 1844 | echo "$as_me:$LINENO: result: no" >&5 |
| 1845 | echo "${ECHO_T}no" >&6 |
| 1846 | fi |
| 1847 | |
| 1848 | fi |
| 1849 | if test -z "$ac_cv_prog_CC"; then |
| 1850 | ac_ct_CC=$CC |
| 1851 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1852 | set dummy gcc; ac_word=$2 |
| 1853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1855 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1857 | else |
| 1858 | if test -n "$ac_ct_CC"; then |
| 1859 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1860 | else |
| 1861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1862 | for as_dir in $PATH |
| 1863 | do |
| 1864 | IFS=$as_save_IFS |
| 1865 | test -z "$as_dir" && as_dir=. |
| 1866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1868 | ac_cv_prog_ac_ct_CC="gcc" |
| 1869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1870 | break 2 |
| 1871 | fi |
| 1872 | done |
| 1873 | done |
| 1874 | |
| 1875 | fi |
| 1876 | fi |
| 1877 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1878 | if test -n "$ac_ct_CC"; then |
| 1879 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1880 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1881 | else |
| 1882 | echo "$as_me:$LINENO: result: no" >&5 |
| 1883 | echo "${ECHO_T}no" >&6 |
| 1884 | fi |
| 1885 | |
| 1886 | CC=$ac_ct_CC |
| 1887 | else |
| 1888 | CC="$ac_cv_prog_CC" |
| 1889 | fi |
| 1890 | |
| 1891 | if test -z "$CC"; then |
| 1892 | if test -n "$ac_tool_prefix"; then |
| 1893 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1894 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1897 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1899 | else |
| 1900 | if test -n "$CC"; then |
| 1901 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1902 | else |
| 1903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1904 | for as_dir in $PATH |
| 1905 | do |
| 1906 | IFS=$as_save_IFS |
| 1907 | test -z "$as_dir" && as_dir=. |
| 1908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1910 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1912 | break 2 |
| 1913 | fi |
| 1914 | done |
| 1915 | done |
| 1916 | |
| 1917 | fi |
| 1918 | fi |
| 1919 | CC=$ac_cv_prog_CC |
| 1920 | if test -n "$CC"; then |
| 1921 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1922 | echo "${ECHO_T}$CC" >&6 |
| 1923 | else |
| 1924 | echo "$as_me:$LINENO: result: no" >&5 |
| 1925 | echo "${ECHO_T}no" >&6 |
| 1926 | fi |
| 1927 | |
| 1928 | fi |
| 1929 | if test -z "$ac_cv_prog_CC"; then |
| 1930 | ac_ct_CC=$CC |
| 1931 | # Extract the first word of "cc", so it can be a program name with args. |
| 1932 | set dummy cc; ac_word=$2 |
| 1933 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1935 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1937 | else |
| 1938 | if test -n "$ac_ct_CC"; then |
| 1939 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1940 | else |
| 1941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1942 | for as_dir in $PATH |
| 1943 | do |
| 1944 | IFS=$as_save_IFS |
| 1945 | test -z "$as_dir" && as_dir=. |
| 1946 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1947 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1948 | ac_cv_prog_ac_ct_CC="cc" |
| 1949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1950 | break 2 |
| 1951 | fi |
| 1952 | done |
| 1953 | done |
| 1954 | |
| 1955 | fi |
| 1956 | fi |
| 1957 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1958 | if test -n "$ac_ct_CC"; then |
| 1959 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1960 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1961 | else |
| 1962 | echo "$as_me:$LINENO: result: no" >&5 |
| 1963 | echo "${ECHO_T}no" >&6 |
| 1964 | fi |
| 1965 | |
| 1966 | CC=$ac_ct_CC |
| 1967 | else |
| 1968 | CC="$ac_cv_prog_CC" |
| 1969 | fi |
| 1970 | |
| 1971 | fi |
| 1972 | if test -z "$CC"; then |
| 1973 | # Extract the first word of "cc", so it can be a program name with args. |
| 1974 | set dummy cc; ac_word=$2 |
| 1975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1977 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1979 | else |
| 1980 | if test -n "$CC"; then |
| 1981 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1982 | else |
| 1983 | ac_prog_rejected=no |
| 1984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1985 | for as_dir in $PATH |
| 1986 | do |
| 1987 | IFS=$as_save_IFS |
| 1988 | test -z "$as_dir" && as_dir=. |
| 1989 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1991 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1992 | ac_prog_rejected=yes |
| 1993 | continue |
| 1994 | fi |
| 1995 | ac_cv_prog_CC="cc" |
| 1996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1997 | break 2 |
| 1998 | fi |
| 1999 | done |
| 2000 | done |
| 2001 | |
| 2002 | if test $ac_prog_rejected = yes; then |
| 2003 | # We found a bogon in the path, so make sure we never use it. |
| 2004 | set dummy $ac_cv_prog_CC |
| 2005 | shift |
| 2006 | if test $# != 0; then |
| 2007 | # We chose a different compiler from the bogus one. |
| 2008 | # However, it has the same basename, so the bogon will be chosen |
| 2009 | # first if we set CC to just the basename; use the full file name. |
| 2010 | shift |
| 2011 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2012 | fi |
| 2013 | fi |
| 2014 | fi |
| 2015 | fi |
| 2016 | CC=$ac_cv_prog_CC |
| 2017 | if test -n "$CC"; then |
| 2018 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2019 | echo "${ECHO_T}$CC" >&6 |
| 2020 | else |
| 2021 | echo "$as_me:$LINENO: result: no" >&5 |
| 2022 | echo "${ECHO_T}no" >&6 |
| 2023 | fi |
| 2024 | |
| 2025 | fi |
| 2026 | if test -z "$CC"; then |
| 2027 | if test -n "$ac_tool_prefix"; then |
| 2028 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2029 | do |
| 2030 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2031 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2032 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2034 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2036 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2037 | if test -n "$CC"; then |
| 2038 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2039 | else |
| 2040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2041 | for as_dir in $PATH |
| 2042 | do |
| 2043 | IFS=$as_save_IFS |
| 2044 | test -z "$as_dir" && as_dir=. |
| 2045 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2046 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2047 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2049 | break 2 |
| 2050 | fi |
| 2051 | done |
| 2052 | done |
| 2053 | |
| 2054 | fi |
| 2055 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2056 | CC=$ac_cv_prog_CC |
| 2057 | if test -n "$CC"; then |
| 2058 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2059 | echo "${ECHO_T}$CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2060 | else |
| 2061 | echo "$as_me:$LINENO: result: no" >&5 |
| 2062 | echo "${ECHO_T}no" >&6 |
| 2063 | fi |
| 2064 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2065 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2066 | done |
| 2067 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2068 | if test -z "$CC"; then |
| 2069 | ac_ct_CC=$CC |
| 2070 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2071 | do |
| 2072 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2073 | set dummy $ac_prog; ac_word=$2 |
| 2074 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2076 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2078 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2079 | if test -n "$ac_ct_CC"; then |
| 2080 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2081 | else |
| 2082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2083 | for as_dir in $PATH |
| 2084 | do |
| 2085 | IFS=$as_save_IFS |
| 2086 | test -z "$as_dir" && as_dir=. |
| 2087 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2088 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2089 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2091 | break 2 |
| 2092 | fi |
| 2093 | done |
| 2094 | done |
| 2095 | |
| 2096 | fi |
| 2097 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2098 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2099 | if test -n "$ac_ct_CC"; then |
| 2100 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2101 | echo "${ECHO_T}$ac_ct_CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2102 | else |
| 2103 | echo "$as_me:$LINENO: result: no" >&5 |
| 2104 | echo "${ECHO_T}no" >&6 |
| 2105 | fi |
| 2106 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2107 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2108 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2109 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2110 | CC=$ac_ct_CC |
| 2111 | fi |
| 2112 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2113 | fi |
| 2114 | |
| 2115 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2116 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2117 | See \`config.log' for more details." >&5 |
| 2118 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2119 | See \`config.log' for more details." >&2;} |
| 2120 | { (exit 1); exit 1; }; } |
| 2121 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2122 | # Provide some information about the compiler. |
| 2123 | echo "$as_me:$LINENO:" \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2124 | "checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2125 | ac_compiler=`set X $ac_compile; echo $2` |
| 2126 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2127 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2128 | ac_status=$? |
| 2129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2130 | (exit $ac_status); } |
| 2131 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2132 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2133 | ac_status=$? |
| 2134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2135 | (exit $ac_status); } |
| 2136 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2137 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2138 | ac_status=$? |
| 2139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2140 | (exit $ac_status); } |
| 2141 | |
| 2142 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2143 | /* confdefs.h. */ |
| 2144 | _ACEOF |
| 2145 | cat confdefs.h >>conftest.$ac_ext |
| 2146 | cat >>conftest.$ac_ext <<_ACEOF |
| 2147 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2148 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2149 | int |
| 2150 | main () |
| 2151 | { |
| 2152 | |
| 2153 | ; |
| 2154 | return 0; |
| 2155 | } |
| 2156 | _ACEOF |
| 2157 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2158 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2159 | # Try to create an executable without -o first, disregard a.out. |
| 2160 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2161 | # of exeext. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2162 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2163 | 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] | 2164 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2165 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2166 | (eval $ac_link_default) 2>&5 |
| 2167 | ac_status=$? |
| 2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2169 | (exit $ac_status); }; then |
| 2170 | # Find the output, starting from the most likely. This scheme is |
| 2171 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2172 | # resort. |
| 2173 | |
| 2174 | # Be careful to initialize this variable, since it used to be cached. |
| 2175 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2176 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2177 | # b.out is created by i960 compilers. |
| 2178 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2179 | do |
| 2180 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2181 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2182 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2183 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2184 | conftest.$ac_ext ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2185 | # This is the source file. |
| 2186 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2187 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2188 | # We found the default executable, but exeext='' is most |
| 2189 | # certainly right. |
| 2190 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2191 | *.* ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2192 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2193 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2194 | # but it would be cool to find out if it's true. Does anybody |
| 2195 | # maintain Libtool? --akim. |
| 2196 | export ac_cv_exeext |
| 2197 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2198 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2199 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2200 | esac |
| 2201 | done |
| 2202 | else |
| 2203 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2205 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2206 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2207 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2208 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2209 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2210 | { (exit 77); exit 77; }; } |
| 2211 | fi |
| 2212 | |
| 2213 | ac_exeext=$ac_cv_exeext |
| 2214 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2215 | echo "${ECHO_T}$ac_file" >&6 |
| 2216 | |
| 2217 | # Check the compiler produces executables we can run. If not, either |
| 2218 | # the compiler is broken, or we cross compile. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2219 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2220 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2221 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2222 | # If not cross compiling, check that we can run a simple program. |
| 2223 | if test "$cross_compiling" != yes; then |
| 2224 | if { ac_try='./$ac_file' |
| 2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2226 | (eval $ac_try) 2>&5 |
| 2227 | ac_status=$? |
| 2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); }; }; then |
| 2230 | cross_compiling=no |
| 2231 | else |
| 2232 | if test "$cross_compiling" = maybe; then |
| 2233 | cross_compiling=yes |
| 2234 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2235 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2236 | If you meant to cross compile, use \`--host'. |
| 2237 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2238 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2239 | If you meant to cross compile, use \`--host'. |
| 2240 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2241 | { (exit 1); exit 1; }; } |
| 2242 | fi |
| 2243 | fi |
| 2244 | fi |
| 2245 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2246 | echo "${ECHO_T}yes" >&6 |
| 2247 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2248 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2249 | ac_clean_files=$ac_clean_files_save |
| 2250 | # Check the compiler produces executables we can run. If not, either |
| 2251 | # the compiler is broken, or we cross compile. |
| 2252 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2253 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2254 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2255 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2256 | |
| 2257 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2258 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2260 | (eval $ac_link) 2>&5 |
| 2261 | ac_status=$? |
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2263 | (exit $ac_status); }; then |
| 2264 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2265 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2266 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2267 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2268 | for ac_file in conftest.exe conftest conftest.*; do |
| 2269 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2270 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2271 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2272 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2273 | export ac_cv_exeext |
| 2274 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2275 | * ) break;; |
| 2276 | esac |
| 2277 | done |
| 2278 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2279 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2280 | See \`config.log' for more details." >&5 |
| 2281 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2282 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2283 | { (exit 1); exit 1; }; } |
| 2284 | fi |
| 2285 | |
| 2286 | rm -f conftest$ac_cv_exeext |
| 2287 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2288 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2289 | |
| 2290 | rm -f conftest.$ac_ext |
| 2291 | EXEEXT=$ac_cv_exeext |
| 2292 | ac_exeext=$EXEEXT |
| 2293 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2294 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2295 | if test "${ac_cv_objext+set}" = set; then |
| 2296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2297 | else |
| 2298 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2299 | /* confdefs.h. */ |
| 2300 | _ACEOF |
| 2301 | cat confdefs.h >>conftest.$ac_ext |
| 2302 | cat >>conftest.$ac_ext <<_ACEOF |
| 2303 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2305 | int |
| 2306 | main () |
| 2307 | { |
| 2308 | |
| 2309 | ; |
| 2310 | return 0; |
| 2311 | } |
| 2312 | _ACEOF |
| 2313 | rm -f conftest.o conftest.obj |
| 2314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2315 | (eval $ac_compile) 2>&5 |
| 2316 | ac_status=$? |
| 2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2318 | (exit $ac_status); }; then |
| 2319 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2320 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2322 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2323 | break;; |
| 2324 | esac |
| 2325 | done |
| 2326 | else |
| 2327 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2329 | |
| 2330 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2331 | See \`config.log' for more details." >&5 |
| 2332 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2333 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2334 | { (exit 1); exit 1; }; } |
| 2335 | fi |
| 2336 | |
| 2337 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2338 | fi |
| 2339 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2340 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2341 | OBJEXT=$ac_cv_objext |
| 2342 | ac_objext=$OBJEXT |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2343 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2344 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2345 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2347 | else |
| 2348 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2349 | /* confdefs.h. */ |
| 2350 | _ACEOF |
| 2351 | cat confdefs.h >>conftest.$ac_ext |
| 2352 | cat >>conftest.$ac_ext <<_ACEOF |
| 2353 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2354 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2355 | int |
| 2356 | main () |
| 2357 | { |
| 2358 | #ifndef __GNUC__ |
| 2359 | choke me |
| 2360 | #endif |
| 2361 | |
| 2362 | ; |
| 2363 | return 0; |
| 2364 | } |
| 2365 | _ACEOF |
| 2366 | rm -f conftest.$ac_objext |
| 2367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2368 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2369 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2371 | rm -f conftest.er1 |
| 2372 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2374 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2375 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2376 | || test ! -s conftest.err' |
| 2377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2378 | (eval $ac_try) 2>&5 |
| 2379 | ac_status=$? |
| 2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2381 | (exit $ac_status); }; } && |
| 2382 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2384 | (eval $ac_try) 2>&5 |
| 2385 | ac_status=$? |
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2387 | (exit $ac_status); }; }; then |
| 2388 | ac_compiler_gnu=yes |
| 2389 | else |
| 2390 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2392 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2393 | ac_compiler_gnu=no |
| 2394 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2396 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2397 | |
| 2398 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2399 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2400 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2401 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2402 | ac_test_CFLAGS=${CFLAGS+set} |
| 2403 | ac_save_CFLAGS=$CFLAGS |
| 2404 | CFLAGS="-g" |
| 2405 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2406 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2407 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2409 | else |
| 2410 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2411 | /* confdefs.h. */ |
| 2412 | _ACEOF |
| 2413 | cat confdefs.h >>conftest.$ac_ext |
| 2414 | cat >>conftest.$ac_ext <<_ACEOF |
| 2415 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2416 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2417 | int |
| 2418 | main () |
| 2419 | { |
| 2420 | |
| 2421 | ; |
| 2422 | return 0; |
| 2423 | } |
| 2424 | _ACEOF |
| 2425 | rm -f conftest.$ac_objext |
| 2426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2427 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2428 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2430 | rm -f conftest.er1 |
| 2431 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2433 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2434 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2435 | || test ! -s conftest.err' |
| 2436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2437 | (eval $ac_try) 2>&5 |
| 2438 | ac_status=$? |
| 2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2440 | (exit $ac_status); }; } && |
| 2441 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2443 | (eval $ac_try) 2>&5 |
| 2444 | ac_status=$? |
| 2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2446 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2447 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2448 | else |
| 2449 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2451 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2452 | ac_cv_prog_cc_g=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2453 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2455 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2456 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2457 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2458 | if test "$ac_test_CFLAGS" = set; then |
| 2459 | CFLAGS=$ac_save_CFLAGS |
| 2460 | elif test $ac_cv_prog_cc_g = yes; then |
| 2461 | if test "$GCC" = yes; then |
| 2462 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2463 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2464 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2465 | fi |
| 2466 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2467 | if test "$GCC" = yes; then |
| 2468 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2469 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2470 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2471 | fi |
| 2472 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2473 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2474 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2475 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2477 | else |
| 2478 | ac_cv_prog_cc_stdc=no |
| 2479 | ac_save_CC=$CC |
| 2480 | cat >conftest.$ac_ext <<_ACEOF |
| 2481 | /* confdefs.h. */ |
| 2482 | _ACEOF |
| 2483 | cat confdefs.h >>conftest.$ac_ext |
| 2484 | cat >>conftest.$ac_ext <<_ACEOF |
| 2485 | /* end confdefs.h. */ |
| 2486 | #include <stdarg.h> |
| 2487 | #include <stdio.h> |
| 2488 | #include <sys/types.h> |
| 2489 | #include <sys/stat.h> |
| 2490 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2491 | struct buf { int x; }; |
| 2492 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2493 | static char *e (p, i) |
| 2494 | char **p; |
| 2495 | int i; |
| 2496 | { |
| 2497 | return p[i]; |
| 2498 | } |
| 2499 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2500 | { |
| 2501 | char *s; |
| 2502 | va_list v; |
| 2503 | va_start (v,p); |
| 2504 | s = g (p, va_arg (v,int)); |
| 2505 | va_end (v); |
| 2506 | return s; |
| 2507 | } |
| 2508 | |
| 2509 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2510 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2511 | These don't provoke an error unfortunately, instead are silently treated |
| 2512 | as 'x'. The following induces an error, until -std1 is added to get |
| 2513 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2514 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2515 | that's true only with -std1. */ |
| 2516 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2517 | |
| 2518 | int test (int i, double x); |
| 2519 | struct s1 {int (*f) (int a);}; |
| 2520 | struct s2 {int (*f) (double a);}; |
| 2521 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2522 | int argc; |
| 2523 | char **argv; |
| 2524 | int |
| 2525 | main () |
| 2526 | { |
| 2527 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2528 | ; |
| 2529 | return 0; |
| 2530 | } |
| 2531 | _ACEOF |
| 2532 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2533 | # breaks some systems' header files. |
| 2534 | # AIX -qlanglvl=ansi |
| 2535 | # Ultrix and OSF/1 -std1 |
| 2536 | # HP-UX 10.20 and later -Ae |
| 2537 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2538 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2539 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2540 | do |
| 2541 | CC="$ac_save_CC $ac_arg" |
| 2542 | rm -f conftest.$ac_objext |
| 2543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2544 | (eval $ac_compile) 2>conftest.er1 |
| 2545 | ac_status=$? |
| 2546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2547 | rm -f conftest.er1 |
| 2548 | cat conftest.err >&5 |
| 2549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2550 | (exit $ac_status); } && |
| 2551 | { ac_try='test -z "$ac_c_werror_flag" |
| 2552 | || test ! -s conftest.err' |
| 2553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2554 | (eval $ac_try) 2>&5 |
| 2555 | ac_status=$? |
| 2556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2557 | (exit $ac_status); }; } && |
| 2558 | { ac_try='test -s conftest.$ac_objext' |
| 2559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2560 | (eval $ac_try) 2>&5 |
| 2561 | ac_status=$? |
| 2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2563 | (exit $ac_status); }; }; then |
| 2564 | ac_cv_prog_cc_stdc=$ac_arg |
| 2565 | break |
| 2566 | else |
| 2567 | echo "$as_me: failed program was:" >&5 |
| 2568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2569 | |
| 2570 | fi |
| 2571 | rm -f conftest.err conftest.$ac_objext |
| 2572 | done |
| 2573 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2574 | CC=$ac_save_CC |
| 2575 | |
| 2576 | fi |
| 2577 | |
| 2578 | case "x$ac_cv_prog_cc_stdc" in |
| 2579 | x|xno) |
| 2580 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2581 | echo "${ECHO_T}none needed" >&6 ;; |
| 2582 | *) |
| 2583 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2584 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2585 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2586 | esac |
| 2587 | |
| 2588 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2589 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2590 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2591 | # the declaration of exit, since it's the most demanding environment. |
| 2592 | cat >conftest.$ac_ext <<_ACEOF |
| 2593 | #ifndef __cplusplus |
| 2594 | choke me |
| 2595 | #endif |
| 2596 | _ACEOF |
| 2597 | rm -f conftest.$ac_objext |
| 2598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2599 | (eval $ac_compile) 2>conftest.er1 |
| 2600 | ac_status=$? |
| 2601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2602 | rm -f conftest.er1 |
| 2603 | cat conftest.err >&5 |
| 2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2605 | (exit $ac_status); } && |
| 2606 | { ac_try='test -z "$ac_c_werror_flag" |
| 2607 | || test ! -s conftest.err' |
| 2608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2609 | (eval $ac_try) 2>&5 |
| 2610 | ac_status=$? |
| 2611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2612 | (exit $ac_status); }; } && |
| 2613 | { ac_try='test -s conftest.$ac_objext' |
| 2614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2615 | (eval $ac_try) 2>&5 |
| 2616 | ac_status=$? |
| 2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2618 | (exit $ac_status); }; }; then |
| 2619 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2620 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2621 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2622 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2623 | 'extern "C" void exit (int) throw ();' \ |
| 2624 | 'extern "C" void exit (int);' \ |
| 2625 | 'void exit (int);' |
| 2626 | do |
| 2627 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2628 | /* confdefs.h. */ |
| 2629 | _ACEOF |
| 2630 | cat confdefs.h >>conftest.$ac_ext |
| 2631 | cat >>conftest.$ac_ext <<_ACEOF |
| 2632 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2633 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2634 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2635 | int |
| 2636 | main () |
| 2637 | { |
| 2638 | exit (42); |
| 2639 | ; |
| 2640 | return 0; |
| 2641 | } |
| 2642 | _ACEOF |
| 2643 | rm -f conftest.$ac_objext |
| 2644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2645 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2646 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2648 | rm -f conftest.er1 |
| 2649 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2651 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2652 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2653 | || test ! -s conftest.err' |
| 2654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2655 | (eval $ac_try) 2>&5 |
| 2656 | ac_status=$? |
| 2657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2658 | (exit $ac_status); }; } && |
| 2659 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2661 | (eval $ac_try) 2>&5 |
| 2662 | ac_status=$? |
| 2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2664 | (exit $ac_status); }; }; then |
| 2665 | : |
| 2666 | else |
| 2667 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | continue |
| 2671 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2674 | /* confdefs.h. */ |
| 2675 | _ACEOF |
| 2676 | cat confdefs.h >>conftest.$ac_ext |
| 2677 | cat >>conftest.$ac_ext <<_ACEOF |
| 2678 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2679 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2680 | int |
| 2681 | main () |
| 2682 | { |
| 2683 | exit (42); |
| 2684 | ; |
| 2685 | return 0; |
| 2686 | } |
| 2687 | _ACEOF |
| 2688 | rm -f conftest.$ac_objext |
| 2689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2690 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2691 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2693 | rm -f conftest.er1 |
| 2694 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2696 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2697 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2698 | || test ! -s conftest.err' |
| 2699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2700 | (eval $ac_try) 2>&5 |
| 2701 | ac_status=$? |
| 2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2703 | (exit $ac_status); }; } && |
| 2704 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2706 | (eval $ac_try) 2>&5 |
| 2707 | ac_status=$? |
| 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2709 | (exit $ac_status); }; }; then |
| 2710 | break |
| 2711 | else |
| 2712 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2714 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2717 | done |
| 2718 | rm -f conftest* |
| 2719 | if test -n "$ac_declaration"; then |
| 2720 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2721 | echo $ac_declaration >>confdefs.h |
| 2722 | echo '#endif' >>confdefs.h |
| 2723 | fi |
| 2724 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2725 | else |
| 2726 | echo "$as_me: failed program was:" >&5 |
| 2727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2728 | |
| 2729 | fi |
| 2730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2731 | ac_ext=c |
| 2732 | ac_cpp='$CPP $CPPFLAGS' |
| 2733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2736 | |
| 2737 | |
| 2738 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 2739 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 2740 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 2741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2742 | else |
| 2743 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 2744 | cat >conftest.$ac_ext <<_ACEOF |
| 2745 | /* confdefs.h. */ |
| 2746 | _ACEOF |
| 2747 | cat confdefs.h >>conftest.$ac_ext |
| 2748 | cat >>conftest.$ac_ext <<_ACEOF |
| 2749 | /* end confdefs.h. */ |
| 2750 | #include <sys/types.h> |
| 2751 | #include <sys/param.h> |
| 2752 | |
| 2753 | int |
| 2754 | main () |
| 2755 | { |
| 2756 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2757 | bogus endian macros |
| 2758 | #endif |
| 2759 | |
| 2760 | ; |
| 2761 | return 0; |
| 2762 | } |
| 2763 | _ACEOF |
| 2764 | rm -f conftest.$ac_objext |
| 2765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2766 | (eval $ac_compile) 2>conftest.er1 |
| 2767 | ac_status=$? |
| 2768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2769 | rm -f conftest.er1 |
| 2770 | cat conftest.err >&5 |
| 2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2772 | (exit $ac_status); } && |
| 2773 | { ac_try='test -z "$ac_c_werror_flag" |
| 2774 | || test ! -s conftest.err' |
| 2775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2776 | (eval $ac_try) 2>&5 |
| 2777 | ac_status=$? |
| 2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2779 | (exit $ac_status); }; } && |
| 2780 | { ac_try='test -s conftest.$ac_objext' |
| 2781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2782 | (eval $ac_try) 2>&5 |
| 2783 | ac_status=$? |
| 2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 | (exit $ac_status); }; }; then |
| 2786 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2787 | cat >conftest.$ac_ext <<_ACEOF |
| 2788 | /* confdefs.h. */ |
| 2789 | _ACEOF |
| 2790 | cat confdefs.h >>conftest.$ac_ext |
| 2791 | cat >>conftest.$ac_ext <<_ACEOF |
| 2792 | /* end confdefs.h. */ |
| 2793 | #include <sys/types.h> |
| 2794 | #include <sys/param.h> |
| 2795 | |
| 2796 | int |
| 2797 | main () |
| 2798 | { |
| 2799 | #if BYTE_ORDER != BIG_ENDIAN |
| 2800 | not big endian |
| 2801 | #endif |
| 2802 | |
| 2803 | ; |
| 2804 | return 0; |
| 2805 | } |
| 2806 | _ACEOF |
| 2807 | rm -f conftest.$ac_objext |
| 2808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2809 | (eval $ac_compile) 2>conftest.er1 |
| 2810 | ac_status=$? |
| 2811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2812 | rm -f conftest.er1 |
| 2813 | cat conftest.err >&5 |
| 2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2815 | (exit $ac_status); } && |
| 2816 | { ac_try='test -z "$ac_c_werror_flag" |
| 2817 | || test ! -s conftest.err' |
| 2818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2819 | (eval $ac_try) 2>&5 |
| 2820 | ac_status=$? |
| 2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2822 | (exit $ac_status); }; } && |
| 2823 | { ac_try='test -s conftest.$ac_objext' |
| 2824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2825 | (eval $ac_try) 2>&5 |
| 2826 | ac_status=$? |
| 2827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2828 | (exit $ac_status); }; }; then |
| 2829 | ac_cv_c_bigendian=yes |
| 2830 | else |
| 2831 | echo "$as_me: failed program was:" >&5 |
| 2832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2833 | |
| 2834 | ac_cv_c_bigendian=no |
| 2835 | fi |
| 2836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2837 | else |
| 2838 | echo "$as_me: failed program was:" >&5 |
| 2839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2840 | |
| 2841 | # It does not; compile a test program. |
| 2842 | if test "$cross_compiling" = yes; then |
| 2843 | # try to guess the endianness by grepping values into an object file |
| 2844 | ac_cv_c_bigendian=unknown |
| 2845 | cat >conftest.$ac_ext <<_ACEOF |
| 2846 | /* confdefs.h. */ |
| 2847 | _ACEOF |
| 2848 | cat confdefs.h >>conftest.$ac_ext |
| 2849 | cat >>conftest.$ac_ext <<_ACEOF |
| 2850 | /* end confdefs.h. */ |
| 2851 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 2852 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 2853 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 2854 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 2855 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 2856 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 2857 | int |
| 2858 | main () |
| 2859 | { |
| 2860 | _ascii (); _ebcdic (); |
| 2861 | ; |
| 2862 | return 0; |
| 2863 | } |
| 2864 | _ACEOF |
| 2865 | rm -f conftest.$ac_objext |
| 2866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2867 | (eval $ac_compile) 2>conftest.er1 |
| 2868 | ac_status=$? |
| 2869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2870 | rm -f conftest.er1 |
| 2871 | cat conftest.err >&5 |
| 2872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2873 | (exit $ac_status); } && |
| 2874 | { ac_try='test -z "$ac_c_werror_flag" |
| 2875 | || test ! -s conftest.err' |
| 2876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2877 | (eval $ac_try) 2>&5 |
| 2878 | ac_status=$? |
| 2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2880 | (exit $ac_status); }; } && |
| 2881 | { ac_try='test -s conftest.$ac_objext' |
| 2882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2883 | (eval $ac_try) 2>&5 |
| 2884 | ac_status=$? |
| 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); }; }; then |
| 2887 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 2888 | ac_cv_c_bigendian=yes |
| 2889 | fi |
| 2890 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 2891 | if test "$ac_cv_c_bigendian" = unknown; then |
| 2892 | ac_cv_c_bigendian=no |
| 2893 | else |
| 2894 | # finding both strings is unlikely to happen, but who knows? |
| 2895 | ac_cv_c_bigendian=unknown |
| 2896 | fi |
| 2897 | fi |
| 2898 | else |
| 2899 | echo "$as_me: failed program was:" >&5 |
| 2900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2901 | |
| 2902 | fi |
| 2903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2904 | else |
| 2905 | cat >conftest.$ac_ext <<_ACEOF |
| 2906 | /* confdefs.h. */ |
| 2907 | _ACEOF |
| 2908 | cat confdefs.h >>conftest.$ac_ext |
| 2909 | cat >>conftest.$ac_ext <<_ACEOF |
| 2910 | /* end confdefs.h. */ |
| 2911 | int |
| 2912 | main () |
| 2913 | { |
| 2914 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2915 | union |
| 2916 | { |
| 2917 | long l; |
| 2918 | char c[sizeof (long)]; |
| 2919 | } u; |
| 2920 | u.l = 1; |
| 2921 | exit (u.c[sizeof (long) - 1] == 1); |
| 2922 | } |
| 2923 | _ACEOF |
| 2924 | rm -f conftest$ac_exeext |
| 2925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2926 | (eval $ac_link) 2>&5 |
| 2927 | ac_status=$? |
| 2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2931 | (eval $ac_try) 2>&5 |
| 2932 | ac_status=$? |
| 2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2934 | (exit $ac_status); }; }; then |
| 2935 | ac_cv_c_bigendian=no |
| 2936 | else |
| 2937 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2938 | echo "$as_me: failed program was:" >&5 |
| 2939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2940 | |
| 2941 | ( exit $ac_status ) |
| 2942 | ac_cv_c_bigendian=yes |
| 2943 | fi |
| 2944 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2945 | fi |
| 2946 | fi |
| 2947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2948 | fi |
| 2949 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 2950 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 2951 | case $ac_cv_c_bigendian in |
| 2952 | yes) |
| 2953 | ENDIAN=big |
| 2954 | ;; |
| 2955 | no) |
| 2956 | ENDIAN=little |
| 2957 | ;; |
| 2958 | *) |
| 2959 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 2960 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 2961 | echo "$as_me: error: unknown endianness |
| 2962 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 2963 | { (exit 1); exit 1; }; } ;; |
| 2964 | esac |
| 2965 | |
| 2966 | |
| 2967 | |
| 2968 | # Check whether --enable-optimized or --disable-optimized was given. |
| 2969 | if test "${enable_optimized+set}" = set; then |
| 2970 | enableval="$enable_optimized" |
| 2971 | |
| 2972 | else |
| 2973 | enableval=no |
| 2974 | fi; |
| 2975 | if test ${enableval} = "no" ; then |
| 2976 | ENABLE_OPTIMIZED= |
| 2977 | |
| 2978 | else |
| 2979 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 2980 | |
| 2981 | fi |
| 2982 | |
| 2983 | # Check whether --enable-jit or --disable-jit was given. |
| 2984 | if test "${enable_jit+set}" = set; then |
| 2985 | enableval="$enable_jit" |
| 2986 | |
| 2987 | else |
| 2988 | enableval=default |
| 2989 | fi; |
| 2990 | if test ${enableval} = "no" |
| 2991 | then |
| 2992 | JIT= |
| 2993 | |
| 2994 | else |
Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 2995 | case "$llvm_cv_target_arch" in |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2996 | x86) JIT=TARGET_HAS_JIT=1 |
| 2997 | ;; |
| 2998 | Sparc) JIT=TARGET_HAS_JIT=1 |
| 2999 | ;; |
| 3000 | PowerPC) JIT=TARGET_HAS_JIT=1 |
| 3001 | ;; |
Reid Spencer | be41b25 | 2004-12-28 06:34:11 +0000 | [diff] [blame] | 3002 | x86_64) JIT= |
Reid Spencer | 95ed843 | 2004-12-23 06:22:33 +0000 | [diff] [blame] | 3003 | ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3004 | *) JIT= |
| 3005 | ;; |
| 3006 | esac |
| 3007 | fi |
| 3008 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3009 | # Check whether --enable-doxygen or --disable-doxygen was given. |
| 3010 | if test "${enable_doxygen+set}" = set; then |
| 3011 | enableval="$enable_doxygen" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3012 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3013 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3014 | enableval=default |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3015 | fi; |
| 3016 | case "$enableval" in |
| 3017 | yes) ENABLE_DOXYGEN=1 |
| 3018 | ;; |
| 3019 | no) ENABLE_DOXYGEN=0 |
| 3020 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3021 | default) ENABLE_DOXYGEN=0 |
| 3022 | ;; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3023 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 3024 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 3025 | { (exit 1); exit 1; }; } ;; |
| 3026 | esac |
| 3027 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3028 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3029 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 3030 | if test "${with_llvmgccdir+set}" = set; then |
| 3031 | withval="$with_llvmgccdir" |
| 3032 | |
| 3033 | else |
| 3034 | withval=default |
| 3035 | fi; |
| 3036 | case "$withval" in |
| 3037 | default) WITH_LLVMGCCDIR=default ;; |
| 3038 | /*) WITH_LLVMGCCDIR=$withval ;; |
| 3039 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 3040 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 3041 | { (exit 1); exit 1; }; } ;; |
| 3042 | esac |
| 3043 | |
| 3044 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3045 | ac_ext=c |
| 3046 | ac_cpp='$CPP $CPPFLAGS' |
| 3047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3050 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3051 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3052 | # On Suns, sometimes $CPP names a directory. |
| 3053 | if test -n "$CPP" && test -d "$CPP"; then |
| 3054 | CPP= |
| 3055 | fi |
| 3056 | if test -z "$CPP"; then |
| 3057 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3059 | else |
| 3060 | # Double quotes because CPP needs to be expanded |
| 3061 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3062 | do |
| 3063 | ac_preproc_ok=false |
| 3064 | for ac_c_preproc_warn_flag in '' yes |
| 3065 | do |
| 3066 | # Use a header file that comes with gcc, so configuring glibc |
| 3067 | # with a fresh cross-compiler works. |
| 3068 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3069 | # <limits.h> exists even on freestanding compilers. |
| 3070 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3071 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3072 | cat >conftest.$ac_ext <<_ACEOF |
| 3073 | /* confdefs.h. */ |
| 3074 | _ACEOF |
| 3075 | cat confdefs.h >>conftest.$ac_ext |
| 3076 | cat >>conftest.$ac_ext <<_ACEOF |
| 3077 | /* end confdefs.h. */ |
| 3078 | #ifdef __STDC__ |
| 3079 | # include <limits.h> |
| 3080 | #else |
| 3081 | # include <assert.h> |
| 3082 | #endif |
| 3083 | Syntax error |
| 3084 | _ACEOF |
| 3085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3087 | ac_status=$? |
| 3088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3089 | rm -f conftest.er1 |
| 3090 | cat conftest.err >&5 |
| 3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3092 | (exit $ac_status); } >/dev/null; then |
| 3093 | if test -s conftest.err; then |
| 3094 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3095 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3096 | else |
| 3097 | ac_cpp_err= |
| 3098 | fi |
| 3099 | else |
| 3100 | ac_cpp_err=yes |
| 3101 | fi |
| 3102 | if test -z "$ac_cpp_err"; then |
| 3103 | : |
| 3104 | else |
| 3105 | echo "$as_me: failed program was:" >&5 |
| 3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3107 | |
| 3108 | # Broken: fails on valid input. |
| 3109 | continue |
| 3110 | fi |
| 3111 | rm -f conftest.err conftest.$ac_ext |
| 3112 | |
| 3113 | # OK, works on sane cases. Now check whether non-existent headers |
| 3114 | # can be detected and how. |
| 3115 | cat >conftest.$ac_ext <<_ACEOF |
| 3116 | /* confdefs.h. */ |
| 3117 | _ACEOF |
| 3118 | cat confdefs.h >>conftest.$ac_ext |
| 3119 | cat >>conftest.$ac_ext <<_ACEOF |
| 3120 | /* end confdefs.h. */ |
| 3121 | #include <ac_nonexistent.h> |
| 3122 | _ACEOF |
| 3123 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3124 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3125 | ac_status=$? |
| 3126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3127 | rm -f conftest.er1 |
| 3128 | cat conftest.err >&5 |
| 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3130 | (exit $ac_status); } >/dev/null; then |
| 3131 | if test -s conftest.err; then |
| 3132 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3133 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3134 | else |
| 3135 | ac_cpp_err= |
| 3136 | fi |
| 3137 | else |
| 3138 | ac_cpp_err=yes |
| 3139 | fi |
| 3140 | if test -z "$ac_cpp_err"; then |
| 3141 | # Broken: success on invalid input. |
| 3142 | continue |
| 3143 | else |
| 3144 | echo "$as_me: failed program was:" >&5 |
| 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3146 | |
| 3147 | # Passes both tests. |
| 3148 | ac_preproc_ok=: |
| 3149 | break |
| 3150 | fi |
| 3151 | rm -f conftest.err conftest.$ac_ext |
| 3152 | |
| 3153 | done |
| 3154 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3155 | rm -f conftest.err conftest.$ac_ext |
| 3156 | if $ac_preproc_ok; then |
| 3157 | break |
| 3158 | fi |
| 3159 | |
| 3160 | done |
| 3161 | ac_cv_prog_CPP=$CPP |
| 3162 | |
| 3163 | fi |
| 3164 | CPP=$ac_cv_prog_CPP |
| 3165 | else |
| 3166 | ac_cv_prog_CPP=$CPP |
| 3167 | fi |
| 3168 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3169 | echo "${ECHO_T}$CPP" >&6 |
| 3170 | ac_preproc_ok=false |
| 3171 | for ac_c_preproc_warn_flag in '' yes |
| 3172 | do |
| 3173 | # Use a header file that comes with gcc, so configuring glibc |
| 3174 | # with a fresh cross-compiler works. |
| 3175 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3176 | # <limits.h> exists even on freestanding compilers. |
| 3177 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3178 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3179 | cat >conftest.$ac_ext <<_ACEOF |
| 3180 | /* confdefs.h. */ |
| 3181 | _ACEOF |
| 3182 | cat confdefs.h >>conftest.$ac_ext |
| 3183 | cat >>conftest.$ac_ext <<_ACEOF |
| 3184 | /* end confdefs.h. */ |
| 3185 | #ifdef __STDC__ |
| 3186 | # include <limits.h> |
| 3187 | #else |
| 3188 | # include <assert.h> |
| 3189 | #endif |
| 3190 | Syntax error |
| 3191 | _ACEOF |
| 3192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3194 | ac_status=$? |
| 3195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3196 | rm -f conftest.er1 |
| 3197 | cat conftest.err >&5 |
| 3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3199 | (exit $ac_status); } >/dev/null; then |
| 3200 | if test -s conftest.err; then |
| 3201 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3203 | else |
| 3204 | ac_cpp_err= |
| 3205 | fi |
| 3206 | else |
| 3207 | ac_cpp_err=yes |
| 3208 | fi |
| 3209 | if test -z "$ac_cpp_err"; then |
| 3210 | : |
| 3211 | else |
| 3212 | echo "$as_me: failed program was:" >&5 |
| 3213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3214 | |
| 3215 | # Broken: fails on valid input. |
| 3216 | continue |
| 3217 | fi |
| 3218 | rm -f conftest.err conftest.$ac_ext |
| 3219 | |
| 3220 | # OK, works on sane cases. Now check whether non-existent headers |
| 3221 | # can be detected and how. |
| 3222 | cat >conftest.$ac_ext <<_ACEOF |
| 3223 | /* confdefs.h. */ |
| 3224 | _ACEOF |
| 3225 | cat confdefs.h >>conftest.$ac_ext |
| 3226 | cat >>conftest.$ac_ext <<_ACEOF |
| 3227 | /* end confdefs.h. */ |
| 3228 | #include <ac_nonexistent.h> |
| 3229 | _ACEOF |
| 3230 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3231 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3232 | ac_status=$? |
| 3233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3234 | rm -f conftest.er1 |
| 3235 | cat conftest.err >&5 |
| 3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3237 | (exit $ac_status); } >/dev/null; then |
| 3238 | if test -s conftest.err; then |
| 3239 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3240 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3241 | else |
| 3242 | ac_cpp_err= |
| 3243 | fi |
| 3244 | else |
| 3245 | ac_cpp_err=yes |
| 3246 | fi |
| 3247 | if test -z "$ac_cpp_err"; then |
| 3248 | # Broken: success on invalid input. |
| 3249 | continue |
| 3250 | else |
| 3251 | echo "$as_me: failed program was:" >&5 |
| 3252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3253 | |
| 3254 | # Passes both tests. |
| 3255 | ac_preproc_ok=: |
| 3256 | break |
| 3257 | fi |
| 3258 | rm -f conftest.err conftest.$ac_ext |
| 3259 | |
| 3260 | done |
| 3261 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3262 | rm -f conftest.err conftest.$ac_ext |
| 3263 | if $ac_preproc_ok; then |
| 3264 | : |
| 3265 | else |
| 3266 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3267 | See \`config.log' for more details." >&5 |
| 3268 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3269 | See \`config.log' for more details." >&2;} |
| 3270 | { (exit 1); exit 1; }; } |
| 3271 | fi |
| 3272 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3273 | ac_ext=c |
| 3274 | ac_cpp='$CPP $CPPFLAGS' |
| 3275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3278 | |
| 3279 | ac_ext=c |
| 3280 | ac_cpp='$CPP $CPPFLAGS' |
| 3281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3284 | if test -n "$ac_tool_prefix"; then |
| 3285 | for ac_prog in gcc |
| 3286 | do |
| 3287 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3288 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3291 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3293 | else |
| 3294 | if test -n "$CC"; then |
| 3295 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3296 | else |
| 3297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3298 | for as_dir in $PATH |
| 3299 | do |
| 3300 | IFS=$as_save_IFS |
| 3301 | test -z "$as_dir" && as_dir=. |
| 3302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3304 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3306 | break 2 |
| 3307 | fi |
| 3308 | done |
| 3309 | done |
| 3310 | |
| 3311 | fi |
| 3312 | fi |
| 3313 | CC=$ac_cv_prog_CC |
| 3314 | if test -n "$CC"; then |
| 3315 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3316 | echo "${ECHO_T}$CC" >&6 |
| 3317 | else |
| 3318 | echo "$as_me:$LINENO: result: no" >&5 |
| 3319 | echo "${ECHO_T}no" >&6 |
| 3320 | fi |
| 3321 | |
| 3322 | test -n "$CC" && break |
| 3323 | done |
| 3324 | fi |
| 3325 | if test -z "$CC"; then |
| 3326 | ac_ct_CC=$CC |
| 3327 | for ac_prog in gcc |
| 3328 | do |
| 3329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3330 | set dummy $ac_prog; ac_word=$2 |
| 3331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3333 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3335 | else |
| 3336 | if test -n "$ac_ct_CC"; then |
| 3337 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3338 | else |
| 3339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3340 | for as_dir in $PATH |
| 3341 | do |
| 3342 | IFS=$as_save_IFS |
| 3343 | test -z "$as_dir" && as_dir=. |
| 3344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3346 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3348 | break 2 |
| 3349 | fi |
| 3350 | done |
| 3351 | done |
| 3352 | |
| 3353 | fi |
| 3354 | fi |
| 3355 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3356 | if test -n "$ac_ct_CC"; then |
| 3357 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3358 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3359 | else |
| 3360 | echo "$as_me:$LINENO: result: no" >&5 |
| 3361 | echo "${ECHO_T}no" >&6 |
| 3362 | fi |
| 3363 | |
| 3364 | test -n "$ac_ct_CC" && break |
| 3365 | done |
| 3366 | |
| 3367 | CC=$ac_ct_CC |
| 3368 | fi |
| 3369 | |
| 3370 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3371 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3372 | See \`config.log' for more details." >&5 |
| 3373 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3374 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3375 | { (exit 1); exit 1; }; } |
| 3376 | |
| 3377 | # Provide some information about the compiler. |
| 3378 | echo "$as_me:$LINENO:" \ |
| 3379 | "checking for C compiler version" >&5 |
| 3380 | ac_compiler=`set X $ac_compile; echo $2` |
| 3381 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3382 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3383 | ac_status=$? |
| 3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3385 | (exit $ac_status); } |
| 3386 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3387 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3388 | ac_status=$? |
| 3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3390 | (exit $ac_status); } |
| 3391 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3392 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3393 | ac_status=$? |
| 3394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3395 | (exit $ac_status); } |
| 3396 | |
| 3397 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3398 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3399 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3401 | else |
| 3402 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3403 | /* confdefs.h. */ |
| 3404 | _ACEOF |
| 3405 | cat confdefs.h >>conftest.$ac_ext |
| 3406 | cat >>conftest.$ac_ext <<_ACEOF |
| 3407 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3408 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3409 | int |
| 3410 | main () |
| 3411 | { |
| 3412 | #ifndef __GNUC__ |
| 3413 | choke me |
| 3414 | #endif |
| 3415 | |
| 3416 | ; |
| 3417 | return 0; |
| 3418 | } |
| 3419 | _ACEOF |
| 3420 | rm -f conftest.$ac_objext |
| 3421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3422 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3423 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3425 | rm -f conftest.er1 |
| 3426 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3428 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3429 | { ac_try='test -z "$ac_c_werror_flag" |
| 3430 | || test ! -s conftest.err' |
| 3431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3432 | (eval $ac_try) 2>&5 |
| 3433 | ac_status=$? |
| 3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3435 | (exit $ac_status); }; } && |
| 3436 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3438 | (eval $ac_try) 2>&5 |
| 3439 | ac_status=$? |
| 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3441 | (exit $ac_status); }; }; then |
| 3442 | ac_compiler_gnu=yes |
| 3443 | else |
| 3444 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3446 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3447 | ac_compiler_gnu=no |
| 3448 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3450 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3451 | |
| 3452 | fi |
| 3453 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3454 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3455 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3456 | ac_test_CFLAGS=${CFLAGS+set} |
| 3457 | ac_save_CFLAGS=$CFLAGS |
| 3458 | CFLAGS="-g" |
| 3459 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3460 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3461 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3463 | else |
| 3464 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3465 | /* confdefs.h. */ |
| 3466 | _ACEOF |
| 3467 | cat confdefs.h >>conftest.$ac_ext |
| 3468 | cat >>conftest.$ac_ext <<_ACEOF |
| 3469 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3470 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3471 | int |
| 3472 | main () |
| 3473 | { |
| 3474 | |
| 3475 | ; |
| 3476 | return 0; |
| 3477 | } |
| 3478 | _ACEOF |
| 3479 | rm -f conftest.$ac_objext |
| 3480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3481 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3482 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3484 | rm -f conftest.er1 |
| 3485 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3487 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3488 | { ac_try='test -z "$ac_c_werror_flag" |
| 3489 | || test ! -s conftest.err' |
| 3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3491 | (eval $ac_try) 2>&5 |
| 3492 | ac_status=$? |
| 3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3494 | (exit $ac_status); }; } && |
| 3495 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3497 | (eval $ac_try) 2>&5 |
| 3498 | ac_status=$? |
| 3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3500 | (exit $ac_status); }; }; then |
| 3501 | ac_cv_prog_cc_g=yes |
| 3502 | else |
| 3503 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3505 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3506 | ac_cv_prog_cc_g=no |
| 3507 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3509 | fi |
| 3510 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3511 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3512 | if test "$ac_test_CFLAGS" = set; then |
| 3513 | CFLAGS=$ac_save_CFLAGS |
| 3514 | elif test $ac_cv_prog_cc_g = yes; then |
| 3515 | if test "$GCC" = yes; then |
| 3516 | CFLAGS="-g -O2" |
| 3517 | else |
| 3518 | CFLAGS="-g" |
| 3519 | fi |
| 3520 | else |
| 3521 | if test "$GCC" = yes; then |
| 3522 | CFLAGS="-O2" |
| 3523 | else |
| 3524 | CFLAGS= |
| 3525 | fi |
| 3526 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3527 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3528 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3529 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3531 | else |
| 3532 | ac_cv_prog_cc_stdc=no |
| 3533 | ac_save_CC=$CC |
| 3534 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3535 | /* confdefs.h. */ |
| 3536 | _ACEOF |
| 3537 | cat confdefs.h >>conftest.$ac_ext |
| 3538 | cat >>conftest.$ac_ext <<_ACEOF |
| 3539 | /* end confdefs.h. */ |
| 3540 | #include <stdarg.h> |
| 3541 | #include <stdio.h> |
| 3542 | #include <sys/types.h> |
| 3543 | #include <sys/stat.h> |
| 3544 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3545 | struct buf { int x; }; |
| 3546 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3547 | static char *e (p, i) |
| 3548 | char **p; |
| 3549 | int i; |
| 3550 | { |
| 3551 | return p[i]; |
| 3552 | } |
| 3553 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3554 | { |
| 3555 | char *s; |
| 3556 | va_list v; |
| 3557 | va_start (v,p); |
| 3558 | s = g (p, va_arg (v,int)); |
| 3559 | va_end (v); |
| 3560 | return s; |
| 3561 | } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3562 | |
| 3563 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3564 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3565 | These don't provoke an error unfortunately, instead are silently treated |
| 3566 | as 'x'. The following induces an error, until -std1 is added to get |
| 3567 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3568 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3569 | that's true only with -std1. */ |
| 3570 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3571 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3572 | int test (int i, double x); |
| 3573 | struct s1 {int (*f) (int a);}; |
| 3574 | struct s2 {int (*f) (double a);}; |
| 3575 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3576 | int argc; |
| 3577 | char **argv; |
| 3578 | int |
| 3579 | main () |
| 3580 | { |
| 3581 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3582 | ; |
| 3583 | return 0; |
| 3584 | } |
| 3585 | _ACEOF |
| 3586 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3587 | # breaks some systems' header files. |
| 3588 | # AIX -qlanglvl=ansi |
| 3589 | # Ultrix and OSF/1 -std1 |
| 3590 | # HP-UX 10.20 and later -Ae |
| 3591 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3592 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3593 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3594 | do |
| 3595 | CC="$ac_save_CC $ac_arg" |
| 3596 | rm -f conftest.$ac_objext |
| 3597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3598 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3599 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3601 | rm -f conftest.er1 |
| 3602 | cat conftest.err >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3605 | { ac_try='test -z "$ac_c_werror_flag" |
| 3606 | || test ! -s conftest.err' |
| 3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3608 | (eval $ac_try) 2>&5 |
| 3609 | ac_status=$? |
| 3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3611 | (exit $ac_status); }; } && |
| 3612 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3614 | (eval $ac_try) 2>&5 |
| 3615 | ac_status=$? |
| 3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3617 | (exit $ac_status); }; }; then |
| 3618 | ac_cv_prog_cc_stdc=$ac_arg |
| 3619 | break |
| 3620 | else |
| 3621 | echo "$as_me: failed program was:" >&5 |
| 3622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3623 | |
| 3624 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3625 | rm -f conftest.err conftest.$ac_objext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3626 | done |
| 3627 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3628 | CC=$ac_save_CC |
| 3629 | |
| 3630 | fi |
| 3631 | |
| 3632 | case "x$ac_cv_prog_cc_stdc" in |
| 3633 | x|xno) |
| 3634 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3635 | echo "${ECHO_T}none needed" >&6 ;; |
| 3636 | *) |
| 3637 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3638 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3639 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3640 | esac |
| 3641 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3642 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3643 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3644 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3645 | # the declaration of exit, since it's the most demanding environment. |
| 3646 | cat >conftest.$ac_ext <<_ACEOF |
| 3647 | #ifndef __cplusplus |
| 3648 | choke me |
| 3649 | #endif |
| 3650 | _ACEOF |
| 3651 | rm -f conftest.$ac_objext |
| 3652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3653 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3654 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3656 | rm -f conftest.er1 |
| 3657 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3659 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3660 | { ac_try='test -z "$ac_c_werror_flag" |
| 3661 | || test ! -s conftest.err' |
| 3662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3663 | (eval $ac_try) 2>&5 |
| 3664 | ac_status=$? |
| 3665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3666 | (exit $ac_status); }; } && |
| 3667 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3669 | (eval $ac_try) 2>&5 |
| 3670 | ac_status=$? |
| 3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3672 | (exit $ac_status); }; }; then |
| 3673 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3674 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3675 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3676 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3677 | 'extern "C" void exit (int) throw ();' \ |
| 3678 | 'extern "C" void exit (int);' \ |
| 3679 | 'void exit (int);' |
| 3680 | do |
| 3681 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3682 | /* confdefs.h. */ |
| 3683 | _ACEOF |
| 3684 | cat confdefs.h >>conftest.$ac_ext |
| 3685 | cat >>conftest.$ac_ext <<_ACEOF |
| 3686 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3687 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3688 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3689 | int |
| 3690 | main () |
| 3691 | { |
| 3692 | exit (42); |
| 3693 | ; |
| 3694 | return 0; |
| 3695 | } |
| 3696 | _ACEOF |
| 3697 | rm -f conftest.$ac_objext |
| 3698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3699 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3700 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3702 | rm -f conftest.er1 |
| 3703 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3705 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3706 | { ac_try='test -z "$ac_c_werror_flag" |
| 3707 | || test ! -s conftest.err' |
| 3708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3709 | (eval $ac_try) 2>&5 |
| 3710 | ac_status=$? |
| 3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3712 | (exit $ac_status); }; } && |
| 3713 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3715 | (eval $ac_try) 2>&5 |
| 3716 | ac_status=$? |
| 3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3718 | (exit $ac_status); }; }; then |
| 3719 | : |
| 3720 | else |
| 3721 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3723 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3724 | continue |
| 3725 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3727 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3728 | /* confdefs.h. */ |
| 3729 | _ACEOF |
| 3730 | cat confdefs.h >>conftest.$ac_ext |
| 3731 | cat >>conftest.$ac_ext <<_ACEOF |
| 3732 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3733 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3734 | int |
| 3735 | main () |
| 3736 | { |
| 3737 | exit (42); |
| 3738 | ; |
| 3739 | return 0; |
| 3740 | } |
| 3741 | _ACEOF |
| 3742 | rm -f conftest.$ac_objext |
| 3743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3744 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3745 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3747 | rm -f conftest.er1 |
| 3748 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3750 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3751 | { ac_try='test -z "$ac_c_werror_flag" |
| 3752 | || test ! -s conftest.err' |
| 3753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3754 | (eval $ac_try) 2>&5 |
| 3755 | ac_status=$? |
| 3756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3757 | (exit $ac_status); }; } && |
| 3758 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3760 | (eval $ac_try) 2>&5 |
| 3761 | ac_status=$? |
| 3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3763 | (exit $ac_status); }; }; then |
| 3764 | break |
| 3765 | else |
| 3766 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3769 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3771 | done |
| 3772 | rm -f conftest* |
| 3773 | if test -n "$ac_declaration"; then |
| 3774 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3775 | echo $ac_declaration >>confdefs.h |
| 3776 | echo '#endif' >>confdefs.h |
| 3777 | fi |
| 3778 | |
| 3779 | else |
| 3780 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3782 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3783 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3785 | ac_ext=c |
| 3786 | ac_cpp='$CPP $CPPFLAGS' |
| 3787 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3788 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3789 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3790 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3791 | ac_ext=cc |
| 3792 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3796 | if test -n "$ac_tool_prefix"; then |
| 3797 | for ac_prog in $CCC g++ |
| 3798 | do |
| 3799 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3800 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3803 | if test "${ac_cv_prog_CXX+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3805 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3806 | if test -n "$CXX"; then |
| 3807 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3808 | else |
| 3809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3810 | for as_dir in $PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3811 | do |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3812 | IFS=$as_save_IFS |
| 3813 | test -z "$as_dir" && as_dir=. |
| 3814 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3816 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3818 | break 2 |
| 3819 | fi |
| 3820 | done |
| 3821 | done |
| 3822 | |
| 3823 | fi |
| 3824 | fi |
| 3825 | CXX=$ac_cv_prog_CXX |
| 3826 | if test -n "$CXX"; then |
| 3827 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3828 | echo "${ECHO_T}$CXX" >&6 |
| 3829 | else |
| 3830 | echo "$as_me:$LINENO: result: no" >&5 |
| 3831 | echo "${ECHO_T}no" >&6 |
| 3832 | fi |
| 3833 | |
| 3834 | test -n "$CXX" && break |
| 3835 | done |
| 3836 | fi |
| 3837 | if test -z "$CXX"; then |
| 3838 | ac_ct_CXX=$CXX |
| 3839 | for ac_prog in $CCC g++ |
| 3840 | do |
| 3841 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3842 | set dummy $ac_prog; ac_word=$2 |
| 3843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3845 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3847 | else |
| 3848 | if test -n "$ac_ct_CXX"; then |
| 3849 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3850 | else |
| 3851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3852 | for as_dir in $PATH |
| 3853 | do |
| 3854 | IFS=$as_save_IFS |
| 3855 | test -z "$as_dir" && as_dir=. |
| 3856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3858 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3860 | break 2 |
| 3861 | fi |
| 3862 | done |
| 3863 | done |
| 3864 | |
| 3865 | fi |
| 3866 | fi |
| 3867 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3868 | if test -n "$ac_ct_CXX"; then |
| 3869 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3870 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3871 | else |
| 3872 | echo "$as_me:$LINENO: result: no" >&5 |
| 3873 | echo "${ECHO_T}no" >&6 |
| 3874 | fi |
| 3875 | |
| 3876 | test -n "$ac_ct_CXX" && break |
| 3877 | done |
| 3878 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3879 | |
| 3880 | CXX=$ac_ct_CXX |
| 3881 | fi |
| 3882 | |
| 3883 | |
| 3884 | # Provide some information about the compiler. |
| 3885 | echo "$as_me:$LINENO:" \ |
| 3886 | "checking for C++ compiler version" >&5 |
| 3887 | ac_compiler=`set X $ac_compile; echo $2` |
| 3888 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3889 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3890 | ac_status=$? |
| 3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3892 | (exit $ac_status); } |
| 3893 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3894 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3895 | ac_status=$? |
| 3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3897 | (exit $ac_status); } |
| 3898 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3899 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3900 | ac_status=$? |
| 3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3902 | (exit $ac_status); } |
| 3903 | |
| 3904 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3905 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3906 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3908 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3909 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3910 | /* confdefs.h. */ |
| 3911 | _ACEOF |
| 3912 | cat confdefs.h >>conftest.$ac_ext |
| 3913 | cat >>conftest.$ac_ext <<_ACEOF |
| 3914 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3915 | |
| 3916 | int |
| 3917 | main () |
| 3918 | { |
| 3919 | #ifndef __GNUC__ |
| 3920 | choke me |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3921 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3922 | |
| 3923 | ; |
| 3924 | return 0; |
| 3925 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3926 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3927 | rm -f conftest.$ac_objext |
| 3928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3929 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3930 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3931 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3932 | rm -f conftest.er1 |
| 3933 | cat conftest.err >&5 |
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3935 | (exit $ac_status); } && |
| 3936 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3937 | || test ! -s conftest.err' |
| 3938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3939 | (eval $ac_try) 2>&5 |
| 3940 | ac_status=$? |
| 3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3942 | (exit $ac_status); }; } && |
| 3943 | { ac_try='test -s conftest.$ac_objext' |
| 3944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3945 | (eval $ac_try) 2>&5 |
| 3946 | ac_status=$? |
| 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3948 | (exit $ac_status); }; }; then |
| 3949 | ac_compiler_gnu=yes |
| 3950 | else |
| 3951 | echo "$as_me: failed program was:" >&5 |
| 3952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3953 | |
| 3954 | ac_compiler_gnu=no |
| 3955 | fi |
| 3956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3957 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3958 | |
| 3959 | fi |
| 3960 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3961 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 3962 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3963 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3964 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3965 | CXXFLAGS="-g" |
| 3966 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3967 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 3968 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3970 | else |
| 3971 | cat >conftest.$ac_ext <<_ACEOF |
| 3972 | /* confdefs.h. */ |
| 3973 | _ACEOF |
| 3974 | cat confdefs.h >>conftest.$ac_ext |
| 3975 | cat >>conftest.$ac_ext <<_ACEOF |
| 3976 | /* end confdefs.h. */ |
| 3977 | |
| 3978 | int |
| 3979 | main () |
| 3980 | { |
| 3981 | |
| 3982 | ; |
| 3983 | return 0; |
| 3984 | } |
| 3985 | _ACEOF |
| 3986 | rm -f conftest.$ac_objext |
| 3987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3988 | (eval $ac_compile) 2>conftest.er1 |
| 3989 | ac_status=$? |
| 3990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3991 | rm -f conftest.er1 |
| 3992 | cat conftest.err >&5 |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); } && |
| 3995 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3996 | || test ! -s conftest.err' |
| 3997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3998 | (eval $ac_try) 2>&5 |
| 3999 | ac_status=$? |
| 4000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4001 | (exit $ac_status); }; } && |
| 4002 | { ac_try='test -s conftest.$ac_objext' |
| 4003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4004 | (eval $ac_try) 2>&5 |
| 4005 | ac_status=$? |
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); }; }; then |
| 4008 | ac_cv_prog_cxx_g=yes |
| 4009 | else |
| 4010 | echo "$as_me: failed program was:" >&5 |
| 4011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4012 | |
| 4013 | ac_cv_prog_cxx_g=no |
| 4014 | fi |
| 4015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4016 | fi |
| 4017 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4018 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4019 | if test "$ac_test_CXXFLAGS" = set; then |
| 4020 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4021 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4022 | if test "$GXX" = yes; then |
| 4023 | CXXFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4024 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4025 | CXXFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4026 | fi |
| 4027 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4028 | if test "$GXX" = yes; then |
| 4029 | CXXFLAGS="-O2" |
| 4030 | else |
| 4031 | CXXFLAGS= |
| 4032 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4033 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4034 | for ac_declaration in \ |
| 4035 | '' \ |
| 4036 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4037 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4038 | 'extern "C" void exit (int) throw ();' \ |
| 4039 | 'extern "C" void exit (int);' \ |
| 4040 | 'void exit (int);' |
| 4041 | do |
| 4042 | cat >conftest.$ac_ext <<_ACEOF |
| 4043 | /* confdefs.h. */ |
| 4044 | _ACEOF |
| 4045 | cat confdefs.h >>conftest.$ac_ext |
| 4046 | cat >>conftest.$ac_ext <<_ACEOF |
| 4047 | /* end confdefs.h. */ |
| 4048 | $ac_declaration |
| 4049 | #include <stdlib.h> |
| 4050 | int |
| 4051 | main () |
| 4052 | { |
| 4053 | exit (42); |
| 4054 | ; |
| 4055 | return 0; |
| 4056 | } |
| 4057 | _ACEOF |
| 4058 | rm -f conftest.$ac_objext |
| 4059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4060 | (eval $ac_compile) 2>conftest.er1 |
| 4061 | ac_status=$? |
| 4062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4063 | rm -f conftest.er1 |
| 4064 | cat conftest.err >&5 |
| 4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4066 | (exit $ac_status); } && |
| 4067 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4068 | || test ! -s conftest.err' |
| 4069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4070 | (eval $ac_try) 2>&5 |
| 4071 | ac_status=$? |
| 4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4073 | (exit $ac_status); }; } && |
| 4074 | { ac_try='test -s conftest.$ac_objext' |
| 4075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4076 | (eval $ac_try) 2>&5 |
| 4077 | ac_status=$? |
| 4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4079 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4080 | : |
| 4081 | else |
| 4082 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4084 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4085 | continue |
| 4086 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4088 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4089 | /* confdefs.h. */ |
| 4090 | _ACEOF |
| 4091 | cat confdefs.h >>conftest.$ac_ext |
| 4092 | cat >>conftest.$ac_ext <<_ACEOF |
| 4093 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4094 | $ac_declaration |
| 4095 | int |
| 4096 | main () |
| 4097 | { |
| 4098 | exit (42); |
| 4099 | ; |
| 4100 | return 0; |
| 4101 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4102 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4103 | rm -f conftest.$ac_objext |
| 4104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4105 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4106 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4107 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4108 | rm -f conftest.er1 |
| 4109 | cat conftest.err >&5 |
| 4110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4111 | (exit $ac_status); } && |
| 4112 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4113 | || test ! -s conftest.err' |
| 4114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4115 | (eval $ac_try) 2>&5 |
| 4116 | ac_status=$? |
| 4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4118 | (exit $ac_status); }; } && |
| 4119 | { ac_try='test -s conftest.$ac_objext' |
| 4120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4121 | (eval $ac_try) 2>&5 |
| 4122 | ac_status=$? |
| 4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4124 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4125 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4126 | else |
| 4127 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4129 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4130 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4132 | done |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4133 | rm -f conftest* |
| 4134 | if test -n "$ac_declaration"; then |
| 4135 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4136 | echo $ac_declaration >>confdefs.h |
| 4137 | echo '#endif' >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4138 | fi |
| 4139 | |
| 4140 | ac_ext=c |
| 4141 | ac_cpp='$CPP $CPPFLAGS' |
| 4142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4145 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4146 | echo "$as_me:$LINENO: checking " >&5 |
| 4147 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 4148 | if test "${ac_cv_has_flex+set}" = set; then |
| 4149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4150 | else |
| 4151 | for ac_prog in flex lex |
| 4152 | do |
| 4153 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4154 | set dummy $ac_prog; ac_word=$2 |
| 4155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4157 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4159 | else |
| 4160 | if test -n "$LEX"; then |
| 4161 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4162 | else |
| 4163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4164 | for as_dir in $PATH |
| 4165 | do |
| 4166 | IFS=$as_save_IFS |
| 4167 | test -z "$as_dir" && as_dir=. |
| 4168 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4170 | ac_cv_prog_LEX="$ac_prog" |
| 4171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4172 | break 2 |
| 4173 | fi |
| 4174 | done |
| 4175 | done |
| 4176 | |
| 4177 | fi |
| 4178 | fi |
| 4179 | LEX=$ac_cv_prog_LEX |
| 4180 | if test -n "$LEX"; then |
| 4181 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4182 | echo "${ECHO_T}$LEX" >&6 |
| 4183 | else |
| 4184 | echo "$as_me:$LINENO: result: no" >&5 |
| 4185 | echo "${ECHO_T}no" >&6 |
| 4186 | fi |
| 4187 | |
| 4188 | test -n "$LEX" && break |
| 4189 | done |
| 4190 | test -n "$LEX" || LEX=":" |
| 4191 | |
| 4192 | if test -z "$LEXLIB" |
| 4193 | then |
| 4194 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 4195 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4196 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4198 | else |
| 4199 | ac_check_lib_save_LIBS=$LIBS |
| 4200 | LIBS="-lfl $LIBS" |
| 4201 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4202 | /* confdefs.h. */ |
| 4203 | _ACEOF |
| 4204 | cat confdefs.h >>conftest.$ac_ext |
| 4205 | cat >>conftest.$ac_ext <<_ACEOF |
| 4206 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4207 | |
| 4208 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4209 | #ifdef __cplusplus |
| 4210 | extern "C" |
| 4211 | #endif |
| 4212 | /* We use char because int might match the return type of a gcc2 |
| 4213 | builtin and then its argument prototype would still apply. */ |
| 4214 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4215 | int |
| 4216 | main () |
| 4217 | { |
| 4218 | yywrap (); |
| 4219 | ; |
| 4220 | return 0; |
| 4221 | } |
| 4222 | _ACEOF |
| 4223 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4225 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4226 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4228 | rm -f conftest.er1 |
| 4229 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4231 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4232 | { ac_try='test -z "$ac_c_werror_flag" |
| 4233 | || test ! -s conftest.err' |
| 4234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4235 | (eval $ac_try) 2>&5 |
| 4236 | ac_status=$? |
| 4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4238 | (exit $ac_status); }; } && |
| 4239 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4241 | (eval $ac_try) 2>&5 |
| 4242 | ac_status=$? |
| 4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4244 | (exit $ac_status); }; }; then |
| 4245 | ac_cv_lib_fl_yywrap=yes |
| 4246 | else |
| 4247 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4249 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4250 | ac_cv_lib_fl_yywrap=no |
| 4251 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4252 | rm -f conftest.err conftest.$ac_objext \ |
| 4253 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4254 | LIBS=$ac_check_lib_save_LIBS |
| 4255 | fi |
| 4256 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 4257 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4258 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4259 | LEXLIB="-lfl" |
| 4260 | else |
| 4261 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 4262 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4263 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4265 | else |
| 4266 | ac_check_lib_save_LIBS=$LIBS |
| 4267 | LIBS="-ll $LIBS" |
| 4268 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4269 | /* confdefs.h. */ |
| 4270 | _ACEOF |
| 4271 | cat confdefs.h >>conftest.$ac_ext |
| 4272 | cat >>conftest.$ac_ext <<_ACEOF |
| 4273 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4274 | |
| 4275 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4276 | #ifdef __cplusplus |
| 4277 | extern "C" |
| 4278 | #endif |
| 4279 | /* We use char because int might match the return type of a gcc2 |
| 4280 | builtin and then its argument prototype would still apply. */ |
| 4281 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4282 | int |
| 4283 | main () |
| 4284 | { |
| 4285 | yywrap (); |
| 4286 | ; |
| 4287 | return 0; |
| 4288 | } |
| 4289 | _ACEOF |
| 4290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4292 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4293 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4295 | rm -f conftest.er1 |
| 4296 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4298 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4299 | { ac_try='test -z "$ac_c_werror_flag" |
| 4300 | || test ! -s conftest.err' |
| 4301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4302 | (eval $ac_try) 2>&5 |
| 4303 | ac_status=$? |
| 4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4305 | (exit $ac_status); }; } && |
| 4306 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4308 | (eval $ac_try) 2>&5 |
| 4309 | ac_status=$? |
| 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4311 | (exit $ac_status); }; }; then |
| 4312 | ac_cv_lib_l_yywrap=yes |
| 4313 | else |
| 4314 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4316 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4317 | ac_cv_lib_l_yywrap=no |
| 4318 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4319 | rm -f conftest.err conftest.$ac_objext \ |
| 4320 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4321 | LIBS=$ac_check_lib_save_LIBS |
| 4322 | fi |
| 4323 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 4324 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4325 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4326 | LEXLIB="-ll" |
| 4327 | fi |
| 4328 | |
| 4329 | fi |
| 4330 | |
| 4331 | fi |
| 4332 | |
| 4333 | if test "x$LEX" != "x:"; then |
| 4334 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 4335 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4336 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4338 | else |
| 4339 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4340 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 4341 | cat >conftest.l <<_ACEOF |
| 4342 | %% |
| 4343 | %% |
| 4344 | _ACEOF |
| 4345 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4346 | (eval $LEX conftest.l) 2>&5 |
| 4347 | ac_status=$? |
| 4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4349 | (exit $ac_status); } |
| 4350 | if test -f lex.yy.c; then |
| 4351 | ac_cv_prog_lex_root=lex.yy |
| 4352 | elif test -f lexyy.c; then |
| 4353 | ac_cv_prog_lex_root=lexyy |
| 4354 | else |
| 4355 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 4356 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4357 | { (exit 1); exit 1; }; } |
| 4358 | fi |
| 4359 | fi |
| 4360 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 4361 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 4362 | rm -f conftest.l |
| 4363 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4364 | |
| 4365 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 4366 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4367 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4369 | else |
| 4370 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4371 | # default is implementation-dependent. Figure out which it is, since |
| 4372 | # not all implementations provide the %pointer and %array declarations. |
| 4373 | ac_cv_prog_lex_yytext_pointer=no |
| 4374 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4375 | ac_save_LIBS=$LIBS |
| 4376 | LIBS="$LIBS $LEXLIB" |
| 4377 | cat >conftest.$ac_ext <<_ACEOF |
| 4378 | `cat $LEX_OUTPUT_ROOT.c` |
| 4379 | _ACEOF |
| 4380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4382 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4383 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4385 | rm -f conftest.er1 |
| 4386 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4388 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4389 | { ac_try='test -z "$ac_c_werror_flag" |
| 4390 | || test ! -s conftest.err' |
| 4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4392 | (eval $ac_try) 2>&5 |
| 4393 | ac_status=$? |
| 4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4395 | (exit $ac_status); }; } && |
| 4396 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4398 | (eval $ac_try) 2>&5 |
| 4399 | ac_status=$? |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); }; }; then |
| 4402 | ac_cv_prog_lex_yytext_pointer=yes |
| 4403 | else |
| 4404 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4407 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4408 | rm -f conftest.err conftest.$ac_objext \ |
| 4409 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4410 | LIBS=$ac_save_LIBS |
| 4411 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4412 | |
| 4413 | fi |
| 4414 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 4415 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4416 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4417 | |
| 4418 | cat >>confdefs.h <<\_ACEOF |
| 4419 | #define YYTEXT_POINTER 1 |
| 4420 | _ACEOF |
| 4421 | |
| 4422 | fi |
| 4423 | |
| 4424 | fi |
| 4425 | |
| 4426 | fi |
| 4427 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 4428 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 4429 | if test "$LEX" != "flex"; then |
| 4430 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 4431 | echo "$as_me: error: flex not found but required" >&2;} |
| 4432 | { (exit 1); exit 1; }; } |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4433 | else |
| 4434 | FLEX=flex |
| 4435 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4436 | fi |
| 4437 | |
| 4438 | echo "$as_me:$LINENO: checking " >&5 |
| 4439 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4440 | if test "${llvm_cv_has_bison+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4442 | else |
| 4443 | for ac_prog in 'bison -y' byacc |
| 4444 | do |
| 4445 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4446 | set dummy $ac_prog; ac_word=$2 |
| 4447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4449 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 4450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4451 | else |
| 4452 | if test -n "$YACC"; then |
| 4453 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4454 | else |
| 4455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4456 | for as_dir in $PATH |
| 4457 | do |
| 4458 | IFS=$as_save_IFS |
| 4459 | test -z "$as_dir" && as_dir=. |
| 4460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4462 | ac_cv_prog_YACC="$ac_prog" |
| 4463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4464 | break 2 |
| 4465 | fi |
| 4466 | done |
| 4467 | done |
| 4468 | |
| 4469 | fi |
| 4470 | fi |
| 4471 | YACC=$ac_cv_prog_YACC |
| 4472 | if test -n "$YACC"; then |
| 4473 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4474 | echo "${ECHO_T}$YACC" >&6 |
| 4475 | else |
| 4476 | echo "$as_me:$LINENO: result: no" >&5 |
| 4477 | echo "${ECHO_T}no" >&6 |
| 4478 | fi |
| 4479 | |
| 4480 | test -n "$YACC" && break |
| 4481 | done |
| 4482 | test -n "$YACC" || YACC="yacc" |
| 4483 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4484 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4485 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 4486 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4487 | if test "$YACC" != "bison -y"; then |
| 4488 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 4489 | echo "$as_me: error: bison not found but required" >&2;} |
| 4490 | { (exit 1); exit 1; }; } |
| 4491 | else |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4492 | BISON=bison |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4493 | |
| 4494 | fi |
| 4495 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4496 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 4497 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 4498 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4500 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4501 | llvm_cv_gnu_make_command='' |
| 4502 | for a in "$MAKE" make gmake gnumake ; do |
| 4503 | if test -z "$a" ; then continue ; fi ; |
| 4504 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 4505 | then |
| 4506 | llvm_cv_gnu_make_command=$a ; |
| 4507 | break; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4508 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4509 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4510 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4511 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 4512 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 |
| 4513 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 4514 | ifGNUmake='' ; |
| 4515 | else |
| 4516 | ifGNUmake='#' ; |
| 4517 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 4518 | echo "${ECHO_T}\"Not found\"" >&6; |
| 4519 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4520 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4521 | |
| 4522 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4523 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4524 | LN_S=$as_ln_s |
| 4525 | if test "$LN_S" = "ln -s"; then |
| 4526 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4527 | echo "${ECHO_T}yes" >&6 |
| 4528 | else |
| 4529 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4530 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4531 | fi |
| 4532 | |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 4533 | # Extract the first word of "cmp", so it can be a program name with args. |
| 4534 | set dummy cmp; ac_word=$2 |
| 4535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4537 | if test "${ac_cv_path_CMP+set}" = set; then |
| 4538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4539 | else |
| 4540 | case $CMP in |
| 4541 | [\\/]* | ?:[\\/]*) |
| 4542 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 4543 | ;; |
| 4544 | *) |
| 4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4546 | for as_dir in $PATH |
| 4547 | do |
| 4548 | IFS=$as_save_IFS |
| 4549 | test -z "$as_dir" && as_dir=. |
| 4550 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4551 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4552 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 4553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4554 | break 2 |
| 4555 | fi |
| 4556 | done |
| 4557 | done |
| 4558 | |
| 4559 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 4560 | ;; |
| 4561 | esac |
| 4562 | fi |
| 4563 | CMP=$ac_cv_path_CMP |
| 4564 | |
| 4565 | if test -n "$CMP"; then |
| 4566 | echo "$as_me:$LINENO: result: $CMP" >&5 |
| 4567 | echo "${ECHO_T}$CMP" >&6 |
| 4568 | else |
| 4569 | echo "$as_me:$LINENO: result: no" >&5 |
| 4570 | echo "${ECHO_T}no" >&6 |
| 4571 | fi |
| 4572 | |
| 4573 | # Extract the first word of "cp", so it can be a program name with args. |
| 4574 | set dummy cp; ac_word=$2 |
| 4575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4577 | if test "${ac_cv_path_CP+set}" = set; then |
| 4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4579 | else |
| 4580 | case $CP in |
| 4581 | [\\/]* | ?:[\\/]*) |
| 4582 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4583 | ;; |
| 4584 | *) |
| 4585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4586 | for as_dir in $PATH |
| 4587 | do |
| 4588 | IFS=$as_save_IFS |
| 4589 | test -z "$as_dir" && as_dir=. |
| 4590 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4591 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4592 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 4593 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4594 | break 2 |
| 4595 | fi |
| 4596 | done |
| 4597 | done |
| 4598 | |
| 4599 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4600 | ;; |
| 4601 | esac |
| 4602 | fi |
| 4603 | CP=$ac_cv_path_CP |
| 4604 | |
| 4605 | if test -n "$CP"; then |
| 4606 | echo "$as_me:$LINENO: result: $CP" >&5 |
| 4607 | echo "${ECHO_T}$CP" >&6 |
| 4608 | else |
| 4609 | echo "$as_me:$LINENO: result: no" >&5 |
| 4610 | echo "${ECHO_T}no" >&6 |
| 4611 | fi |
| 4612 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4613 | # Extract the first word of "date", so it can be a program name with args. |
| 4614 | set dummy date; ac_word=$2 |
| 4615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4617 | if test "${ac_cv_path_DATE+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4619 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4620 | case $DATE in |
| 4621 | [\\/]* | ?:[\\/]*) |
| 4622 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4623 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4624 | *) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4626 | for as_dir in $PATH |
| 4627 | do |
| 4628 | IFS=$as_save_IFS |
| 4629 | test -z "$as_dir" && as_dir=. |
| 4630 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4631 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4632 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 4633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4634 | break 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4635 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4636 | done |
| 4637 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4638 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4639 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4640 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4641 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4642 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4643 | DATE=$ac_cv_path_DATE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4644 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4645 | if test -n "$DATE"; then |
| 4646 | echo "$as_me:$LINENO: result: $DATE" >&5 |
| 4647 | echo "${ECHO_T}$DATE" >&6 |
| 4648 | else |
| 4649 | echo "$as_me:$LINENO: result: no" >&5 |
| 4650 | echo "${ECHO_T}no" >&6 |
| 4651 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4652 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4653 | # Extract the first word of "find", so it can be a program name with args. |
| 4654 | set dummy find; ac_word=$2 |
| 4655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4657 | if test "${ac_cv_path_FIND+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4659 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4660 | case $FIND in |
| 4661 | [\\/]* | ?:[\\/]*) |
| 4662 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 4663 | ;; |
| 4664 | *) |
| 4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4666 | for as_dir in $PATH |
| 4667 | do |
| 4668 | IFS=$as_save_IFS |
| 4669 | test -z "$as_dir" && as_dir=. |
| 4670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4672 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 4673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4674 | break 2 |
| 4675 | fi |
| 4676 | done |
| 4677 | done |
| 4678 | |
| 4679 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 4680 | ;; |
| 4681 | esac |
| 4682 | fi |
| 4683 | FIND=$ac_cv_path_FIND |
| 4684 | |
| 4685 | if test -n "$FIND"; then |
| 4686 | echo "$as_me:$LINENO: result: $FIND" >&5 |
| 4687 | echo "${ECHO_T}$FIND" >&6 |
| 4688 | else |
| 4689 | echo "$as_me:$LINENO: result: no" >&5 |
| 4690 | echo "${ECHO_T}no" >&6 |
| 4691 | fi |
| 4692 | |
| 4693 | # Extract the first word of "grep", so it can be a program name with args. |
| 4694 | set dummy grep; ac_word=$2 |
| 4695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4697 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4699 | else |
| 4700 | case $GREP in |
| 4701 | [\\/]* | ?:[\\/]*) |
| 4702 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 4703 | ;; |
| 4704 | *) |
| 4705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4706 | for as_dir in $PATH |
| 4707 | do |
| 4708 | IFS=$as_save_IFS |
| 4709 | test -z "$as_dir" && as_dir=. |
| 4710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4712 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 4713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4714 | break 2 |
| 4715 | fi |
| 4716 | done |
| 4717 | done |
| 4718 | |
| 4719 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 4720 | ;; |
| 4721 | esac |
| 4722 | fi |
| 4723 | GREP=$ac_cv_path_GREP |
| 4724 | |
| 4725 | if test -n "$GREP"; then |
| 4726 | echo "$as_me:$LINENO: result: $GREP" >&5 |
| 4727 | echo "${ECHO_T}$GREP" >&6 |
| 4728 | else |
| 4729 | echo "$as_me:$LINENO: result: no" >&5 |
| 4730 | echo "${ECHO_T}no" >&6 |
| 4731 | fi |
| 4732 | |
| 4733 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 4734 | set dummy mkdir; ac_word=$2 |
| 4735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4737 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 4738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4739 | else |
| 4740 | case $MKDIR in |
| 4741 | [\\/]* | ?:[\\/]*) |
| 4742 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 4743 | ;; |
| 4744 | *) |
| 4745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4746 | for as_dir in $PATH |
| 4747 | do |
| 4748 | IFS=$as_save_IFS |
| 4749 | test -z "$as_dir" && as_dir=. |
| 4750 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4751 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4752 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 4753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4754 | break 2 |
| 4755 | fi |
| 4756 | done |
| 4757 | done |
| 4758 | |
| 4759 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 4760 | ;; |
| 4761 | esac |
| 4762 | fi |
| 4763 | MKDIR=$ac_cv_path_MKDIR |
| 4764 | |
| 4765 | if test -n "$MKDIR"; then |
| 4766 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 4767 | echo "${ECHO_T}$MKDIR" >&6 |
| 4768 | else |
| 4769 | echo "$as_me:$LINENO: result: no" >&5 |
| 4770 | echo "${ECHO_T}no" >&6 |
| 4771 | fi |
| 4772 | |
| 4773 | # Extract the first word of "mv", so it can be a program name with args. |
| 4774 | set dummy mv; ac_word=$2 |
| 4775 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4777 | if test "${ac_cv_path_MV+set}" = set; then |
| 4778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4779 | else |
| 4780 | case $MV in |
| 4781 | [\\/]* | ?:[\\/]*) |
| 4782 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4783 | ;; |
| 4784 | *) |
| 4785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4786 | for as_dir in $PATH |
| 4787 | do |
| 4788 | IFS=$as_save_IFS |
| 4789 | test -z "$as_dir" && as_dir=. |
| 4790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4792 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 4793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4794 | break 2 |
| 4795 | fi |
| 4796 | done |
| 4797 | done |
| 4798 | |
| 4799 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4800 | ;; |
| 4801 | esac |
| 4802 | fi |
| 4803 | MV=$ac_cv_path_MV |
| 4804 | |
| 4805 | if test -n "$MV"; then |
| 4806 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 4807 | echo "${ECHO_T}$MV" >&6 |
| 4808 | else |
| 4809 | echo "$as_me:$LINENO: result: no" >&5 |
| 4810 | echo "${ECHO_T}no" >&6 |
| 4811 | fi |
| 4812 | |
| 4813 | # Extract the first word of "pax", so it can be a program name with args. |
| 4814 | set dummy pax; ac_word=$2 |
| 4815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4817 | if test "${ac_cv_path_PAX+set}" = set; then |
| 4818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4819 | else |
| 4820 | case $PAX in |
| 4821 | [\\/]* | ?:[\\/]*) |
| 4822 | ac_cv_path_PAX="$PAX" # Let the user override the test with a path. |
| 4823 | ;; |
| 4824 | *) |
| 4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4826 | for as_dir in $PATH |
| 4827 | do |
| 4828 | IFS=$as_save_IFS |
| 4829 | test -z "$as_dir" && as_dir=. |
| 4830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4832 | ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext" |
| 4833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4834 | break 2 |
| 4835 | fi |
| 4836 | done |
| 4837 | done |
| 4838 | |
| 4839 | test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax" |
| 4840 | ;; |
| 4841 | esac |
| 4842 | fi |
| 4843 | PAX=$ac_cv_path_PAX |
| 4844 | |
| 4845 | if test -n "$PAX"; then |
| 4846 | echo "$as_me:$LINENO: result: $PAX" >&5 |
| 4847 | echo "${ECHO_T}$PAX" >&6 |
| 4848 | else |
| 4849 | echo "$as_me:$LINENO: result: no" >&5 |
| 4850 | echo "${ECHO_T}no" >&6 |
| 4851 | fi |
| 4852 | |
| 4853 | if test -n "$ac_tool_prefix"; then |
| 4854 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4855 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4856 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4858 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4860 | else |
| 4861 | if test -n "$RANLIB"; then |
| 4862 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4863 | else |
| 4864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4865 | for as_dir in $PATH |
| 4866 | do |
| 4867 | IFS=$as_save_IFS |
| 4868 | test -z "$as_dir" && as_dir=. |
| 4869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4871 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4873 | break 2 |
| 4874 | fi |
| 4875 | done |
| 4876 | done |
| 4877 | |
| 4878 | fi |
| 4879 | fi |
| 4880 | RANLIB=$ac_cv_prog_RANLIB |
| 4881 | if test -n "$RANLIB"; then |
| 4882 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4883 | echo "${ECHO_T}$RANLIB" >&6 |
| 4884 | else |
| 4885 | echo "$as_me:$LINENO: result: no" >&5 |
| 4886 | echo "${ECHO_T}no" >&6 |
| 4887 | fi |
| 4888 | |
| 4889 | fi |
| 4890 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4891 | ac_ct_RANLIB=$RANLIB |
| 4892 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4893 | set dummy ranlib; ac_word=$2 |
| 4894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4896 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4898 | else |
| 4899 | if test -n "$ac_ct_RANLIB"; then |
| 4900 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4901 | else |
| 4902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4903 | for as_dir in $PATH |
| 4904 | do |
| 4905 | IFS=$as_save_IFS |
| 4906 | test -z "$as_dir" && as_dir=. |
| 4907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4909 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4911 | break 2 |
| 4912 | fi |
| 4913 | done |
| 4914 | done |
| 4915 | |
| 4916 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4917 | fi |
| 4918 | fi |
| 4919 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4920 | if test -n "$ac_ct_RANLIB"; then |
| 4921 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4922 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4923 | else |
| 4924 | echo "$as_me:$LINENO: result: no" >&5 |
| 4925 | echo "${ECHO_T}no" >&6 |
| 4926 | fi |
| 4927 | |
| 4928 | RANLIB=$ac_ct_RANLIB |
| 4929 | else |
| 4930 | RANLIB="$ac_cv_prog_RANLIB" |
| 4931 | fi |
| 4932 | |
| 4933 | # Extract the first word of "rm", so it can be a program name with args. |
| 4934 | set dummy rm; ac_word=$2 |
| 4935 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4937 | if test "${ac_cv_path_RM+set}" = set; then |
| 4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4939 | else |
| 4940 | case $RM in |
| 4941 | [\\/]* | ?:[\\/]*) |
| 4942 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4943 | ;; |
| 4944 | *) |
| 4945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4946 | for as_dir in $PATH |
| 4947 | do |
| 4948 | IFS=$as_save_IFS |
| 4949 | test -z "$as_dir" && as_dir=. |
| 4950 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4951 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4952 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 4953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4954 | break 2 |
| 4955 | fi |
| 4956 | done |
| 4957 | done |
| 4958 | |
| 4959 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4960 | ;; |
| 4961 | esac |
| 4962 | fi |
| 4963 | RM=$ac_cv_path_RM |
| 4964 | |
| 4965 | if test -n "$RM"; then |
| 4966 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 4967 | echo "${ECHO_T}$RM" >&6 |
| 4968 | else |
| 4969 | echo "$as_me:$LINENO: result: no" >&5 |
| 4970 | echo "${ECHO_T}no" >&6 |
| 4971 | fi |
| 4972 | |
| 4973 | # Extract the first word of "sed", so it can be a program name with args. |
| 4974 | set dummy sed; ac_word=$2 |
| 4975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4977 | if test "${ac_cv_path_SED+set}" = set; then |
| 4978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4979 | else |
| 4980 | case $SED in |
| 4981 | [\\/]* | ?:[\\/]*) |
| 4982 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4983 | ;; |
| 4984 | *) |
| 4985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4986 | for as_dir in $PATH |
| 4987 | do |
| 4988 | IFS=$as_save_IFS |
| 4989 | test -z "$as_dir" && as_dir=. |
| 4990 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4991 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4992 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 4993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4994 | break 2 |
| 4995 | fi |
| 4996 | done |
| 4997 | done |
| 4998 | |
| 4999 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 5000 | ;; |
| 5001 | esac |
| 5002 | fi |
| 5003 | SED=$ac_cv_path_SED |
| 5004 | |
| 5005 | if test -n "$SED"; then |
| 5006 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 5007 | echo "${ECHO_T}$SED" >&6 |
| 5008 | else |
| 5009 | echo "$as_me:$LINENO: result: no" >&5 |
| 5010 | echo "${ECHO_T}no" >&6 |
| 5011 | fi |
| 5012 | |
| 5013 | # Extract the first word of "tar", so it can be a program name with args. |
| 5014 | set dummy tar; ac_word=$2 |
| 5015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5017 | if test "${ac_cv_path_TAR+set}" = set; then |
| 5018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5019 | else |
| 5020 | case $TAR in |
| 5021 | [\\/]* | ?:[\\/]*) |
| 5022 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 5023 | ;; |
| 5024 | *) |
| 5025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5026 | for as_dir in $PATH |
| 5027 | do |
| 5028 | IFS=$as_save_IFS |
| 5029 | test -z "$as_dir" && as_dir=. |
| 5030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5032 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 5033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5034 | break 2 |
| 5035 | fi |
| 5036 | done |
| 5037 | done |
| 5038 | |
| 5039 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 5040 | ;; |
| 5041 | esac |
| 5042 | fi |
| 5043 | TAR=$ac_cv_path_TAR |
| 5044 | |
| 5045 | if test -n "$TAR"; then |
| 5046 | echo "$as_me:$LINENO: result: $TAR" >&5 |
| 5047 | echo "${ECHO_T}$TAR" >&6 |
| 5048 | else |
| 5049 | echo "$as_me:$LINENO: result: no" >&5 |
| 5050 | echo "${ECHO_T}no" >&6 |
| 5051 | fi |
| 5052 | |
| 5053 | |
| 5054 | # Find a good install program. We prefer a C program (faster), |
| 5055 | # so one script is as good as another. But avoid the broken or |
| 5056 | # incompatible versions: |
| 5057 | # SysV /etc/install, /usr/sbin/install |
| 5058 | # SunOS /usr/etc/install |
| 5059 | # IRIX /sbin/install |
| 5060 | # AIX /bin/install |
| 5061 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5062 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5063 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5064 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5065 | # OS/2's system install, which has a completely different semantic |
| 5066 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5067 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5068 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5069 | if test -z "$INSTALL"; then |
| 5070 | if test "${ac_cv_path_install+set}" = set; then |
| 5071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5072 | else |
| 5073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5074 | for as_dir in $PATH |
| 5075 | do |
| 5076 | IFS=$as_save_IFS |
| 5077 | test -z "$as_dir" && as_dir=. |
| 5078 | # Account for people who put trailing slashes in PATH elements. |
| 5079 | case $as_dir/ in |
| 5080 | ./ | .// | /cC/* | \ |
| 5081 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5082 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5083 | /usr/ucb/* ) ;; |
| 5084 | *) |
| 5085 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5086 | # Don't use installbsd from OSF since it installs stuff as root |
| 5087 | # by default. |
| 5088 | for ac_prog in ginstall scoinst install; do |
| 5089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5090 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5091 | if test $ac_prog = install && |
| 5092 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5093 | # AIX install. It has an incompatible calling convention. |
| 5094 | : |
| 5095 | elif test $ac_prog = install && |
| 5096 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5097 | # program-specific install script used by HP pwplus--don't use. |
| 5098 | : |
| 5099 | else |
| 5100 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5101 | break 3 |
| 5102 | fi |
| 5103 | fi |
| 5104 | done |
| 5105 | done |
| 5106 | ;; |
| 5107 | esac |
| 5108 | done |
| 5109 | |
| 5110 | |
| 5111 | fi |
| 5112 | if test "${ac_cv_path_install+set}" = set; then |
| 5113 | INSTALL=$ac_cv_path_install |
| 5114 | else |
| 5115 | # As a last resort, use the slow shell script. We don't cache a |
| 5116 | # path for INSTALL within a source directory, because that will |
| 5117 | # break other packages using the cache if that directory is |
| 5118 | # removed, or if the path is relative. |
| 5119 | INSTALL=$ac_install_sh |
| 5120 | fi |
| 5121 | fi |
| 5122 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5123 | echo "${ECHO_T}$INSTALL" >&6 |
| 5124 | |
| 5125 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5126 | # It thinks the first close brace ends the variable substitution. |
| 5127 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5128 | |
| 5129 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5130 | |
| 5131 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5132 | |
| 5133 | |
| 5134 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 5135 | set dummy bzip2; ac_word=$2 |
| 5136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5138 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 5139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5140 | else |
| 5141 | case $BZIP2 in |
| 5142 | [\\/]* | ?:[\\/]*) |
| 5143 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 5144 | ;; |
| 5145 | *) |
| 5146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5147 | for as_dir in $PATH |
| 5148 | do |
| 5149 | IFS=$as_save_IFS |
| 5150 | test -z "$as_dir" && as_dir=. |
| 5151 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5153 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 5154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5155 | break 2 |
| 5156 | fi |
| 5157 | done |
| 5158 | done |
| 5159 | |
| 5160 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2" |
| 5161 | ;; |
| 5162 | esac |
| 5163 | fi |
| 5164 | BZIP2=$ac_cv_path_BZIP2 |
| 5165 | |
| 5166 | if test -n "$BZIP2"; then |
| 5167 | echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 5168 | echo "${ECHO_T}$BZIP2" >&6 |
| 5169 | else |
| 5170 | echo "$as_me:$LINENO: result: no" >&5 |
| 5171 | echo "${ECHO_T}no" >&6 |
| 5172 | fi |
| 5173 | |
| 5174 | # Extract the first word of "dot", so it can be a program name with args. |
| 5175 | set dummy dot; ac_word=$2 |
| 5176 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5178 | if test "${ac_cv_path_DOT+set}" = set; then |
| 5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5180 | else |
| 5181 | case $DOT in |
| 5182 | [\\/]* | ?:[\\/]*) |
| 5183 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 5184 | ;; |
| 5185 | *) |
| 5186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5187 | for as_dir in $PATH |
| 5188 | do |
| 5189 | IFS=$as_save_IFS |
| 5190 | test -z "$as_dir" && as_dir=. |
| 5191 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5192 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5193 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 5194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5195 | break 2 |
| 5196 | fi |
| 5197 | done |
| 5198 | done |
| 5199 | |
| 5200 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" |
| 5201 | ;; |
| 5202 | esac |
| 5203 | fi |
| 5204 | DOT=$ac_cv_path_DOT |
| 5205 | |
| 5206 | if test -n "$DOT"; then |
| 5207 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 5208 | echo "${ECHO_T}$DOT" >&6 |
| 5209 | else |
| 5210 | echo "$as_me:$LINENO: result: no" >&5 |
| 5211 | echo "${ECHO_T}no" >&6 |
| 5212 | fi |
| 5213 | |
| 5214 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 5215 | set dummy doxygen; ac_word=$2 |
| 5216 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5217 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5218 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 5219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5220 | else |
| 5221 | case $DOXYGEN in |
| 5222 | [\\/]* | ?:[\\/]*) |
| 5223 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 5224 | ;; |
| 5225 | *) |
| 5226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5227 | for as_dir in $PATH |
| 5228 | do |
| 5229 | IFS=$as_save_IFS |
| 5230 | test -z "$as_dir" && as_dir=. |
| 5231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5232 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5233 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 5234 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5235 | break 2 |
| 5236 | fi |
| 5237 | done |
| 5238 | done |
| 5239 | |
| 5240 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen" |
| 5241 | ;; |
| 5242 | esac |
| 5243 | fi |
| 5244 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 5245 | |
| 5246 | if test -n "$DOXYGEN"; then |
| 5247 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 5248 | echo "${ECHO_T}$DOXYGEN" >&6 |
| 5249 | else |
| 5250 | echo "$as_me:$LINENO: result: no" >&5 |
| 5251 | echo "${ECHO_T}no" >&6 |
| 5252 | fi |
| 5253 | |
| 5254 | # Extract the first word of "etags", so it can be a program name with args. |
| 5255 | set dummy etags; ac_word=$2 |
| 5256 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5258 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 5259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5260 | else |
| 5261 | case $ETAGS in |
| 5262 | [\\/]* | ?:[\\/]*) |
| 5263 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 5264 | ;; |
| 5265 | *) |
| 5266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5267 | for as_dir in $PATH |
| 5268 | do |
| 5269 | IFS=$as_save_IFS |
| 5270 | test -z "$as_dir" && as_dir=. |
| 5271 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5273 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 5274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5275 | break 2 |
| 5276 | fi |
| 5277 | done |
| 5278 | done |
| 5279 | |
| 5280 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" |
| 5281 | ;; |
| 5282 | esac |
| 5283 | fi |
| 5284 | ETAGS=$ac_cv_path_ETAGS |
| 5285 | |
| 5286 | if test -n "$ETAGS"; then |
| 5287 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 5288 | echo "${ECHO_T}$ETAGS" >&6 |
| 5289 | else |
| 5290 | echo "$as_me:$LINENO: result: no" >&5 |
| 5291 | echo "${ECHO_T}no" >&6 |
| 5292 | fi |
| 5293 | |
| 5294 | # Extract the first word of "groff", so it can be a program name with args. |
| 5295 | set dummy groff; ac_word=$2 |
| 5296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5298 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 5299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5300 | else |
| 5301 | case $GROFF in |
| 5302 | [\\/]* | ?:[\\/]*) |
| 5303 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 5304 | ;; |
| 5305 | *) |
| 5306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5307 | for as_dir in $PATH |
| 5308 | do |
| 5309 | IFS=$as_save_IFS |
| 5310 | test -z "$as_dir" && as_dir=. |
| 5311 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5312 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5313 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 5314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5315 | break 2 |
| 5316 | fi |
| 5317 | done |
| 5318 | done |
| 5319 | |
| 5320 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff" |
| 5321 | ;; |
| 5322 | esac |
| 5323 | fi |
| 5324 | GROFF=$ac_cv_path_GROFF |
| 5325 | |
| 5326 | if test -n "$GROFF"; then |
| 5327 | echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 5328 | echo "${ECHO_T}$GROFF" >&6 |
| 5329 | else |
| 5330 | echo "$as_me:$LINENO: result: no" >&5 |
| 5331 | echo "${ECHO_T}no" >&6 |
| 5332 | fi |
| 5333 | |
| 5334 | # Extract the first word of "gzip", so it can be a program name with args. |
| 5335 | set dummy gzip; ac_word=$2 |
| 5336 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5338 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 5339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5340 | else |
| 5341 | case $GZIP in |
| 5342 | [\\/]* | ?:[\\/]*) |
| 5343 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 5344 | ;; |
| 5345 | *) |
| 5346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5347 | for as_dir in $PATH |
| 5348 | do |
| 5349 | IFS=$as_save_IFS |
| 5350 | test -z "$as_dir" && as_dir=. |
| 5351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5353 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 5354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5355 | break 2 |
| 5356 | fi |
| 5357 | done |
| 5358 | done |
| 5359 | |
| 5360 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip" |
| 5361 | ;; |
| 5362 | esac |
| 5363 | fi |
| 5364 | GZIP=$ac_cv_path_GZIP |
| 5365 | |
| 5366 | if test -n "$GZIP"; then |
| 5367 | echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 5368 | echo "${ECHO_T}$GZIP" >&6 |
| 5369 | else |
| 5370 | echo "$as_me:$LINENO: result: no" >&5 |
| 5371 | echo "${ECHO_T}no" >&6 |
| 5372 | fi |
| 5373 | |
| 5374 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 5375 | set dummy pod2html; ac_word=$2 |
| 5376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5378 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 5379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5380 | else |
| 5381 | case $POD2HTML in |
| 5382 | [\\/]* | ?:[\\/]*) |
| 5383 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 5384 | ;; |
| 5385 | *) |
| 5386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5387 | for as_dir in $PATH |
| 5388 | do |
| 5389 | IFS=$as_save_IFS |
| 5390 | test -z "$as_dir" && as_dir=. |
| 5391 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5393 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 5394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5395 | break 2 |
| 5396 | fi |
| 5397 | done |
| 5398 | done |
| 5399 | |
| 5400 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html" |
| 5401 | ;; |
| 5402 | esac |
| 5403 | fi |
| 5404 | POD2HTML=$ac_cv_path_POD2HTML |
| 5405 | |
| 5406 | if test -n "$POD2HTML"; then |
| 5407 | echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 5408 | echo "${ECHO_T}$POD2HTML" >&6 |
| 5409 | else |
| 5410 | echo "$as_me:$LINENO: result: no" >&5 |
| 5411 | echo "${ECHO_T}no" >&6 |
| 5412 | fi |
| 5413 | |
| 5414 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 5415 | set dummy pod2man; ac_word=$2 |
| 5416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5418 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5420 | else |
| 5421 | case $POD2MAN in |
| 5422 | [\\/]* | ?:[\\/]*) |
| 5423 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 5424 | ;; |
| 5425 | *) |
| 5426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5427 | for as_dir in $PATH |
| 5428 | do |
| 5429 | IFS=$as_save_IFS |
| 5430 | test -z "$as_dir" && as_dir=. |
| 5431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5433 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 5434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5435 | break 2 |
| 5436 | fi |
| 5437 | done |
| 5438 | done |
| 5439 | |
| 5440 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man" |
| 5441 | ;; |
| 5442 | esac |
| 5443 | fi |
| 5444 | POD2MAN=$ac_cv_path_POD2MAN |
| 5445 | |
| 5446 | if test -n "$POD2MAN"; then |
| 5447 | echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 5448 | echo "${ECHO_T}$POD2MAN" >&6 |
| 5449 | else |
| 5450 | echo "$as_me:$LINENO: result: no" >&5 |
| 5451 | echo "${ECHO_T}no" >&6 |
| 5452 | fi |
| 5453 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5454 | # Extract the first word of "runtest", so it can be a program name with args. |
| 5455 | set dummy runtest; ac_word=$2 |
| 5456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5458 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 5459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5460 | else |
| 5461 | case $RUNTEST in |
| 5462 | [\\/]* | ?:[\\/]*) |
| 5463 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 5464 | ;; |
| 5465 | *) |
| 5466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5467 | for as_dir in $PATH |
| 5468 | do |
| 5469 | IFS=$as_save_IFS |
| 5470 | test -z "$as_dir" && as_dir=. |
| 5471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5473 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 5474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5475 | break 2 |
| 5476 | fi |
| 5477 | done |
| 5478 | done |
| 5479 | |
| 5480 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" |
| 5481 | ;; |
| 5482 | esac |
| 5483 | fi |
| 5484 | RUNTEST=$ac_cv_path_RUNTEST |
| 5485 | |
| 5486 | if test -n "$RUNTEST"; then |
| 5487 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 5488 | echo "${ECHO_T}$RUNTEST" >&6 |
| 5489 | else |
| 5490 | echo "$as_me:$LINENO: result: no" >&5 |
| 5491 | echo "${ECHO_T}no" >&6 |
| 5492 | fi |
| 5493 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5494 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5495 | no_itcl=true |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5496 | echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 5497 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5498 | |
| 5499 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 5500 | if test "${with_tclinclude+set}" = set; then |
| 5501 | withval="$with_tclinclude" |
| 5502 | with_tclinclude=${withval} |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5503 | else |
| 5504 | with_tclinclude='' |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5505 | fi; |
| 5506 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5508 | else |
| 5509 | |
| 5510 | if test x"${with_tclinclude}" != x ; then |
| 5511 | if test -f ${with_tclinclude}/tclsh ; then |
| 5512 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 5513 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 5514 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 5515 | else |
| 5516 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 5517 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 5518 | { (exit 1); exit 1; }; } |
| 5519 | fi |
| 5520 | fi |
| 5521 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5522 | if test x"${ac_cv_path_tclsh}" = x ; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5523 | echo "$as_me:$LINENO: result: none" >&5 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5524 | echo "${ECHO_T}none" >&6 |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 5525 | for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5526 | do |
| 5527 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5528 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5531 | if test "${ac_cv_path_TCLSH+set}" = set; then |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5533 | else |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5534 | case $TCLSH in |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5535 | [\\/]* | ?:[\\/]*) |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5536 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5537 | ;; |
| 5538 | *) |
| 5539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5540 | for as_dir in $PATH |
| 5541 | do |
| 5542 | IFS=$as_save_IFS |
| 5543 | test -z "$as_dir" && as_dir=. |
| 5544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5546 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5548 | break 2 |
| 5549 | fi |
| 5550 | done |
| 5551 | done |
| 5552 | |
| 5553 | ;; |
| 5554 | esac |
| 5555 | fi |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5556 | TCLSH=$ac_cv_path_TCLSH |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5557 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5558 | if test -n "$TCLSH"; then |
| 5559 | echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 5560 | echo "${ECHO_T}$TCLSH" >&6 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5561 | else |
| 5562 | echo "$as_me:$LINENO: result: no" >&5 |
| 5563 | echo "${ECHO_T}no" >&6 |
| 5564 | fi |
| 5565 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5566 | test -n "$TCLSH" && break |
| 5567 | done |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5568 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5569 | if test x"${TCLSH}" = x ; then |
| 5570 | ac_cv_path_tclsh=''; |
| 5571 | else |
| 5572 | ac_cv_path_tclsh="${TCLSH}"; |
| 5573 | fi |
| 5574 | else |
| 5575 | echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 5576 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6 |
| 5577 | TCLSH="${ac_cv_path_tclsh}" |
| 5578 | |
| 5579 | fi |
| 5580 | |
| 5581 | fi |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5582 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5583 | # Extract the first word of "zip", so it can be a program name with args. |
| 5584 | set dummy zip; ac_word=$2 |
| 5585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5587 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 5588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5589 | else |
| 5590 | case $ZIP in |
| 5591 | [\\/]* | ?:[\\/]*) |
| 5592 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 5593 | ;; |
| 5594 | *) |
| 5595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5596 | for as_dir in $PATH |
| 5597 | do |
| 5598 | IFS=$as_save_IFS |
| 5599 | test -z "$as_dir" && as_dir=. |
| 5600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5601 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5602 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 5603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5604 | break 2 |
| 5605 | fi |
| 5606 | done |
| 5607 | done |
| 5608 | |
| 5609 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip" |
| 5610 | ;; |
| 5611 | esac |
| 5612 | fi |
| 5613 | ZIP=$ac_cv_path_ZIP |
| 5614 | |
| 5615 | if test -n "$ZIP"; then |
| 5616 | echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 5617 | echo "${ECHO_T}$ZIP" >&6 |
| 5618 | else |
| 5619 | echo "$as_me:$LINENO: result: no" >&5 |
| 5620 | echo "${ECHO_T}no" >&6 |
| 5621 | fi |
| 5622 | |
| 5623 | |
| 5624 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 5625 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 |
| 5626 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 5627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5628 | else |
| 5629 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5630 | ac_cpp='$CPP $CPPFLAGS' |
| 5631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5634 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5635 | oldcflags="$CFLAGS" |
| 5636 | CFLAGS="$CFLAGS -Wl,-R." |
| 5637 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5638 | /* confdefs.h. */ |
| 5639 | _ACEOF |
| 5640 | cat confdefs.h >>conftest.$ac_ext |
| 5641 | cat >>conftest.$ac_ext <<_ACEOF |
| 5642 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5643 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5644 | int |
| 5645 | main () |
| 5646 | { |
| 5647 | int main() { return 0; } |
| 5648 | ; |
| 5649 | return 0; |
| 5650 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5651 | _ACEOF |
| 5652 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5654 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5655 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5657 | rm -f conftest.er1 |
| 5658 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5660 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5661 | { ac_try='test -z "$ac_c_werror_flag" |
| 5662 | || test ! -s conftest.err' |
| 5663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5664 | (eval $ac_try) 2>&5 |
| 5665 | ac_status=$? |
| 5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5667 | (exit $ac_status); }; } && |
| 5668 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5670 | (eval $ac_try) 2>&5 |
| 5671 | ac_status=$? |
| 5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5673 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5674 | llvm_cv_link_use_r=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5675 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5676 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5678 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5679 | llvm_cv_link_use_r=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5680 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5681 | rm -f conftest.err conftest.$ac_objext \ |
| 5682 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5683 | CFLAGS="$oldcflags" |
| 5684 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5685 | ac_cpp='$CPP $CPPFLAGS' |
| 5686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5689 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5690 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5691 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5692 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 5693 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 |
| 5694 | if test "$llvm_cv_link_use_r" = yes ; then |
| 5695 | |
| 5696 | cat >>confdefs.h <<\_ACEOF |
| 5697 | #define HAVE_LINK_R 1 |
| 5698 | _ACEOF |
| 5699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5700 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5702 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5703 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5704 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5705 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5706 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 5707 | if test "${ac_cv_c_const+set}" = set; then |
| 5708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5709 | else |
| 5710 | cat >conftest.$ac_ext <<_ACEOF |
| 5711 | /* confdefs.h. */ |
| 5712 | _ACEOF |
| 5713 | cat confdefs.h >>conftest.$ac_ext |
| 5714 | cat >>conftest.$ac_ext <<_ACEOF |
| 5715 | /* end confdefs.h. */ |
| 5716 | |
| 5717 | int |
| 5718 | main () |
| 5719 | { |
| 5720 | /* FIXME: Include the comments suggested by Paul. */ |
| 5721 | #ifndef __cplusplus |
| 5722 | /* Ultrix mips cc rejects this. */ |
| 5723 | typedef int charset[2]; |
| 5724 | const charset x; |
| 5725 | /* SunOS 4.1.1 cc rejects this. */ |
| 5726 | char const *const *ccp; |
| 5727 | char **p; |
| 5728 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5729 | struct point {int x, y;}; |
| 5730 | static struct point const zero = {0,0}; |
| 5731 | /* AIX XL C 1.02.0.0 rejects this. |
| 5732 | It does not let you subtract one const X* pointer from another in |
| 5733 | an arm of an if-expression whose if-part is not a constant |
| 5734 | expression */ |
| 5735 | const char *g = "string"; |
| 5736 | ccp = &g + (g ? g-g : 0); |
| 5737 | /* HPUX 7.0 cc rejects these. */ |
| 5738 | ++ccp; |
| 5739 | p = (char**) ccp; |
| 5740 | ccp = (char const *const *) p; |
| 5741 | { /* SCO 3.2v4 cc rejects this. */ |
| 5742 | char *t; |
| 5743 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5744 | |
| 5745 | *t++ = 0; |
| 5746 | } |
| 5747 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5748 | int x[] = {25, 17}; |
| 5749 | const int *foo = &x[0]; |
| 5750 | ++foo; |
| 5751 | } |
| 5752 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5753 | typedef const int *iptr; |
| 5754 | iptr p = 0; |
| 5755 | ++p; |
| 5756 | } |
| 5757 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5758 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5759 | struct s { int j; const int *ap[3]; }; |
| 5760 | struct s *b; b->j = 5; |
| 5761 | } |
| 5762 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5763 | const int foo = 10; |
| 5764 | } |
| 5765 | #endif |
| 5766 | |
| 5767 | ; |
| 5768 | return 0; |
| 5769 | } |
| 5770 | _ACEOF |
| 5771 | rm -f conftest.$ac_objext |
| 5772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5773 | (eval $ac_compile) 2>conftest.er1 |
| 5774 | ac_status=$? |
| 5775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5776 | rm -f conftest.er1 |
| 5777 | cat conftest.err >&5 |
| 5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5779 | (exit $ac_status); } && |
| 5780 | { ac_try='test -z "$ac_c_werror_flag" |
| 5781 | || test ! -s conftest.err' |
| 5782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5783 | (eval $ac_try) 2>&5 |
| 5784 | ac_status=$? |
| 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5786 | (exit $ac_status); }; } && |
| 5787 | { ac_try='test -s conftest.$ac_objext' |
| 5788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5789 | (eval $ac_try) 2>&5 |
| 5790 | ac_status=$? |
| 5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5792 | (exit $ac_status); }; }; then |
| 5793 | ac_cv_c_const=yes |
| 5794 | else |
| 5795 | echo "$as_me: failed program was:" >&5 |
| 5796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5797 | |
| 5798 | ac_cv_c_const=no |
| 5799 | fi |
| 5800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5801 | fi |
| 5802 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5803 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 5804 | if test $ac_cv_c_const = no; then |
| 5805 | |
| 5806 | cat >>confdefs.h <<\_ACEOF |
| 5807 | #define const |
| 5808 | _ACEOF |
| 5809 | |
| 5810 | fi |
| 5811 | |
| 5812 | |
| 5813 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5814 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5815 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5817 | else |
| 5818 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5819 | then ac_cv_prog_egrep='grep -E' |
| 5820 | else ac_cv_prog_egrep='egrep' |
| 5821 | fi |
| 5822 | fi |
| 5823 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5824 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5825 | EGREP=$ac_cv_prog_egrep |
| 5826 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5827 | |
| 5828 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5829 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5830 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5832 | else |
| 5833 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5834 | /* confdefs.h. */ |
| 5835 | _ACEOF |
| 5836 | cat confdefs.h >>conftest.$ac_ext |
| 5837 | cat >>conftest.$ac_ext <<_ACEOF |
| 5838 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5839 | #include <stdlib.h> |
| 5840 | #include <stdarg.h> |
| 5841 | #include <string.h> |
| 5842 | #include <float.h> |
| 5843 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5844 | int |
| 5845 | main () |
| 5846 | { |
| 5847 | |
| 5848 | ; |
| 5849 | return 0; |
| 5850 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5851 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5852 | rm -f conftest.$ac_objext |
| 5853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5854 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5855 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5857 | rm -f conftest.er1 |
| 5858 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5860 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5861 | { ac_try='test -z "$ac_c_werror_flag" |
| 5862 | || test ! -s conftest.err' |
| 5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5864 | (eval $ac_try) 2>&5 |
| 5865 | ac_status=$? |
| 5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5867 | (exit $ac_status); }; } && |
| 5868 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5870 | (eval $ac_try) 2>&5 |
| 5871 | ac_status=$? |
| 5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5874 | ac_cv_header_stdc=yes |
| 5875 | else |
| 5876 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5878 | |
| 5879 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5880 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5882 | |
| 5883 | if test $ac_cv_header_stdc = yes; then |
| 5884 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5885 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5886 | /* confdefs.h. */ |
| 5887 | _ACEOF |
| 5888 | cat confdefs.h >>conftest.$ac_ext |
| 5889 | cat >>conftest.$ac_ext <<_ACEOF |
| 5890 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5891 | #include <string.h> |
| 5892 | |
| 5893 | _ACEOF |
| 5894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5895 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5896 | : |
| 5897 | else |
| 5898 | ac_cv_header_stdc=no |
| 5899 | fi |
| 5900 | rm -f conftest* |
| 5901 | |
| 5902 | fi |
| 5903 | |
| 5904 | if test $ac_cv_header_stdc = yes; then |
| 5905 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5906 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5907 | /* confdefs.h. */ |
| 5908 | _ACEOF |
| 5909 | cat confdefs.h >>conftest.$ac_ext |
| 5910 | cat >>conftest.$ac_ext <<_ACEOF |
| 5911 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5912 | #include <stdlib.h> |
| 5913 | |
| 5914 | _ACEOF |
| 5915 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5916 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5917 | : |
| 5918 | else |
| 5919 | ac_cv_header_stdc=no |
| 5920 | fi |
| 5921 | rm -f conftest* |
| 5922 | |
| 5923 | fi |
| 5924 | |
| 5925 | if test $ac_cv_header_stdc = yes; then |
| 5926 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5927 | if test "$cross_compiling" = yes; then |
| 5928 | : |
| 5929 | else |
| 5930 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5931 | /* confdefs.h. */ |
| 5932 | _ACEOF |
| 5933 | cat confdefs.h >>conftest.$ac_ext |
| 5934 | cat >>conftest.$ac_ext <<_ACEOF |
| 5935 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5936 | #include <ctype.h> |
| 5937 | #if ((' ' & 0x0FF) == 0x020) |
| 5938 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5939 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5940 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5941 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5942 | (('a' <= (c) && (c) <= 'i') \ |
| 5943 | || ('j' <= (c) && (c) <= 'r') \ |
| 5944 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5945 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5946 | #endif |
| 5947 | |
| 5948 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5949 | int |
| 5950 | main () |
| 5951 | { |
| 5952 | int i; |
| 5953 | for (i = 0; i < 256; i++) |
| 5954 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5955 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5956 | exit(2); |
| 5957 | exit (0); |
| 5958 | } |
| 5959 | _ACEOF |
| 5960 | rm -f conftest$ac_exeext |
| 5961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5962 | (eval $ac_link) 2>&5 |
| 5963 | ac_status=$? |
| 5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5967 | (eval $ac_try) 2>&5 |
| 5968 | ac_status=$? |
| 5969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5970 | (exit $ac_status); }; }; then |
| 5971 | : |
| 5972 | else |
| 5973 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5974 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5976 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5977 | ( exit $ac_status ) |
| 5978 | ac_cv_header_stdc=no |
| 5979 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5980 | 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] | 5981 | fi |
| 5982 | fi |
| 5983 | fi |
| 5984 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5985 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5986 | if test $ac_cv_header_stdc = yes; then |
| 5987 | |
| 5988 | cat >>confdefs.h <<\_ACEOF |
| 5989 | #define STDC_HEADERS 1 |
| 5990 | _ACEOF |
| 5991 | |
| 5992 | fi |
| 5993 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5994 | |
| 5995 | |
| 5996 | |
| 5997 | |
| 5998 | |
| 5999 | ac_header_dirent=no |
| 6000 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 6001 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6002 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6003 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 6004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6006 | else |
| 6007 | cat >conftest.$ac_ext <<_ACEOF |
| 6008 | /* confdefs.h. */ |
| 6009 | _ACEOF |
| 6010 | cat confdefs.h >>conftest.$ac_ext |
| 6011 | cat >>conftest.$ac_ext <<_ACEOF |
| 6012 | /* end confdefs.h. */ |
| 6013 | #include <sys/types.h> |
| 6014 | #include <$ac_hdr> |
| 6015 | |
| 6016 | int |
| 6017 | main () |
| 6018 | { |
| 6019 | if ((DIR *) 0) |
| 6020 | return 0; |
| 6021 | ; |
| 6022 | return 0; |
| 6023 | } |
| 6024 | _ACEOF |
| 6025 | rm -f conftest.$ac_objext |
| 6026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6027 | (eval $ac_compile) 2>conftest.er1 |
| 6028 | ac_status=$? |
| 6029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6030 | rm -f conftest.er1 |
| 6031 | cat conftest.err >&5 |
| 6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6033 | (exit $ac_status); } && |
| 6034 | { ac_try='test -z "$ac_c_werror_flag" |
| 6035 | || test ! -s conftest.err' |
| 6036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6037 | (eval $ac_try) 2>&5 |
| 6038 | ac_status=$? |
| 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6040 | (exit $ac_status); }; } && |
| 6041 | { ac_try='test -s conftest.$ac_objext' |
| 6042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6043 | (eval $ac_try) 2>&5 |
| 6044 | ac_status=$? |
| 6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6046 | (exit $ac_status); }; }; then |
| 6047 | eval "$as_ac_Header=yes" |
| 6048 | else |
| 6049 | echo "$as_me: failed program was:" >&5 |
| 6050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6051 | |
| 6052 | eval "$as_ac_Header=no" |
| 6053 | fi |
| 6054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6055 | fi |
| 6056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6059 | cat >>confdefs.h <<_ACEOF |
| 6060 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 6061 | _ACEOF |
| 6062 | |
| 6063 | ac_header_dirent=$ac_hdr; break |
| 6064 | fi |
| 6065 | |
| 6066 | done |
| 6067 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6068 | if test $ac_header_dirent = dirent.h; then |
| 6069 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6070 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6071 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6073 | else |
| 6074 | ac_func_search_save_LIBS=$LIBS |
| 6075 | ac_cv_search_opendir=no |
| 6076 | cat >conftest.$ac_ext <<_ACEOF |
| 6077 | /* confdefs.h. */ |
| 6078 | _ACEOF |
| 6079 | cat confdefs.h >>conftest.$ac_ext |
| 6080 | cat >>conftest.$ac_ext <<_ACEOF |
| 6081 | /* end confdefs.h. */ |
| 6082 | |
| 6083 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6084 | #ifdef __cplusplus |
| 6085 | extern "C" |
| 6086 | #endif |
| 6087 | /* We use char because int might match the return type of a gcc2 |
| 6088 | builtin and then its argument prototype would still apply. */ |
| 6089 | char opendir (); |
| 6090 | int |
| 6091 | main () |
| 6092 | { |
| 6093 | opendir (); |
| 6094 | ; |
| 6095 | return 0; |
| 6096 | } |
| 6097 | _ACEOF |
| 6098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6100 | (eval $ac_link) 2>conftest.er1 |
| 6101 | ac_status=$? |
| 6102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6103 | rm -f conftest.er1 |
| 6104 | cat conftest.err >&5 |
| 6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6106 | (exit $ac_status); } && |
| 6107 | { ac_try='test -z "$ac_c_werror_flag" |
| 6108 | || test ! -s conftest.err' |
| 6109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6110 | (eval $ac_try) 2>&5 |
| 6111 | ac_status=$? |
| 6112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6113 | (exit $ac_status); }; } && |
| 6114 | { ac_try='test -s conftest$ac_exeext' |
| 6115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6116 | (eval $ac_try) 2>&5 |
| 6117 | ac_status=$? |
| 6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6119 | (exit $ac_status); }; }; then |
| 6120 | ac_cv_search_opendir="none required" |
| 6121 | else |
| 6122 | echo "$as_me: failed program was:" >&5 |
| 6123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6124 | |
| 6125 | fi |
| 6126 | rm -f conftest.err conftest.$ac_objext \ |
| 6127 | conftest$ac_exeext conftest.$ac_ext |
| 6128 | if test "$ac_cv_search_opendir" = no; then |
| 6129 | for ac_lib in dir; do |
| 6130 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6131 | cat >conftest.$ac_ext <<_ACEOF |
| 6132 | /* confdefs.h. */ |
| 6133 | _ACEOF |
| 6134 | cat confdefs.h >>conftest.$ac_ext |
| 6135 | cat >>conftest.$ac_ext <<_ACEOF |
| 6136 | /* end confdefs.h. */ |
| 6137 | |
| 6138 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6139 | #ifdef __cplusplus |
| 6140 | extern "C" |
| 6141 | #endif |
| 6142 | /* We use char because int might match the return type of a gcc2 |
| 6143 | builtin and then its argument prototype would still apply. */ |
| 6144 | char opendir (); |
| 6145 | int |
| 6146 | main () |
| 6147 | { |
| 6148 | opendir (); |
| 6149 | ; |
| 6150 | return 0; |
| 6151 | } |
| 6152 | _ACEOF |
| 6153 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6155 | (eval $ac_link) 2>conftest.er1 |
| 6156 | ac_status=$? |
| 6157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6158 | rm -f conftest.er1 |
| 6159 | cat conftest.err >&5 |
| 6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6161 | (exit $ac_status); } && |
| 6162 | { ac_try='test -z "$ac_c_werror_flag" |
| 6163 | || test ! -s conftest.err' |
| 6164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6165 | (eval $ac_try) 2>&5 |
| 6166 | ac_status=$? |
| 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6168 | (exit $ac_status); }; } && |
| 6169 | { ac_try='test -s conftest$ac_exeext' |
| 6170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6171 | (eval $ac_try) 2>&5 |
| 6172 | ac_status=$? |
| 6173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6174 | (exit $ac_status); }; }; then |
| 6175 | ac_cv_search_opendir="-l$ac_lib" |
| 6176 | break |
| 6177 | else |
| 6178 | echo "$as_me: failed program was:" >&5 |
| 6179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6180 | |
| 6181 | fi |
| 6182 | rm -f conftest.err conftest.$ac_objext \ |
| 6183 | conftest$ac_exeext conftest.$ac_ext |
| 6184 | done |
| 6185 | fi |
| 6186 | LIBS=$ac_func_search_save_LIBS |
| 6187 | fi |
| 6188 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6189 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6190 | if test "$ac_cv_search_opendir" != no; then |
| 6191 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6192 | |
| 6193 | fi |
| 6194 | |
| 6195 | else |
| 6196 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6197 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6198 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6200 | else |
| 6201 | ac_func_search_save_LIBS=$LIBS |
| 6202 | ac_cv_search_opendir=no |
| 6203 | cat >conftest.$ac_ext <<_ACEOF |
| 6204 | /* confdefs.h. */ |
| 6205 | _ACEOF |
| 6206 | cat confdefs.h >>conftest.$ac_ext |
| 6207 | cat >>conftest.$ac_ext <<_ACEOF |
| 6208 | /* end confdefs.h. */ |
| 6209 | |
| 6210 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6211 | #ifdef __cplusplus |
| 6212 | extern "C" |
| 6213 | #endif |
| 6214 | /* We use char because int might match the return type of a gcc2 |
| 6215 | builtin and then its argument prototype would still apply. */ |
| 6216 | char opendir (); |
| 6217 | int |
| 6218 | main () |
| 6219 | { |
| 6220 | opendir (); |
| 6221 | ; |
| 6222 | return 0; |
| 6223 | } |
| 6224 | _ACEOF |
| 6225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6227 | (eval $ac_link) 2>conftest.er1 |
| 6228 | ac_status=$? |
| 6229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6230 | rm -f conftest.er1 |
| 6231 | cat conftest.err >&5 |
| 6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6233 | (exit $ac_status); } && |
| 6234 | { ac_try='test -z "$ac_c_werror_flag" |
| 6235 | || test ! -s conftest.err' |
| 6236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6237 | (eval $ac_try) 2>&5 |
| 6238 | ac_status=$? |
| 6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6240 | (exit $ac_status); }; } && |
| 6241 | { ac_try='test -s conftest$ac_exeext' |
| 6242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6243 | (eval $ac_try) 2>&5 |
| 6244 | ac_status=$? |
| 6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6246 | (exit $ac_status); }; }; then |
| 6247 | ac_cv_search_opendir="none required" |
| 6248 | else |
| 6249 | echo "$as_me: failed program was:" >&5 |
| 6250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6251 | |
| 6252 | fi |
| 6253 | rm -f conftest.err conftest.$ac_objext \ |
| 6254 | conftest$ac_exeext conftest.$ac_ext |
| 6255 | if test "$ac_cv_search_opendir" = no; then |
| 6256 | for ac_lib in x; do |
| 6257 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6258 | cat >conftest.$ac_ext <<_ACEOF |
| 6259 | /* confdefs.h. */ |
| 6260 | _ACEOF |
| 6261 | cat confdefs.h >>conftest.$ac_ext |
| 6262 | cat >>conftest.$ac_ext <<_ACEOF |
| 6263 | /* end confdefs.h. */ |
| 6264 | |
| 6265 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6266 | #ifdef __cplusplus |
| 6267 | extern "C" |
| 6268 | #endif |
| 6269 | /* We use char because int might match the return type of a gcc2 |
| 6270 | builtin and then its argument prototype would still apply. */ |
| 6271 | char opendir (); |
| 6272 | int |
| 6273 | main () |
| 6274 | { |
| 6275 | opendir (); |
| 6276 | ; |
| 6277 | return 0; |
| 6278 | } |
| 6279 | _ACEOF |
| 6280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6282 | (eval $ac_link) 2>conftest.er1 |
| 6283 | ac_status=$? |
| 6284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6285 | rm -f conftest.er1 |
| 6286 | cat conftest.err >&5 |
| 6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6288 | (exit $ac_status); } && |
| 6289 | { ac_try='test -z "$ac_c_werror_flag" |
| 6290 | || test ! -s conftest.err' |
| 6291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6292 | (eval $ac_try) 2>&5 |
| 6293 | ac_status=$? |
| 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6295 | (exit $ac_status); }; } && |
| 6296 | { ac_try='test -s conftest$ac_exeext' |
| 6297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6298 | (eval $ac_try) 2>&5 |
| 6299 | ac_status=$? |
| 6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6301 | (exit $ac_status); }; }; then |
| 6302 | ac_cv_search_opendir="-l$ac_lib" |
| 6303 | break |
| 6304 | else |
| 6305 | echo "$as_me: failed program was:" >&5 |
| 6306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6307 | |
| 6308 | fi |
| 6309 | rm -f conftest.err conftest.$ac_objext \ |
| 6310 | conftest$ac_exeext conftest.$ac_ext |
| 6311 | done |
| 6312 | fi |
| 6313 | LIBS=$ac_func_search_save_LIBS |
| 6314 | fi |
| 6315 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6316 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6317 | if test "$ac_cv_search_opendir" != no; then |
| 6318 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6319 | |
| 6320 | fi |
| 6321 | |
| 6322 | fi |
| 6323 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6324 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6325 | |
| 6326 | |
| 6327 | |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | 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] | 6335 | inttypes.h stdint.h unistd.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6336 | do |
| 6337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6342 | else |
| 6343 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6344 | /* confdefs.h. */ |
| 6345 | _ACEOF |
| 6346 | cat confdefs.h >>conftest.$ac_ext |
| 6347 | cat >>conftest.$ac_ext <<_ACEOF |
| 6348 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6349 | $ac_includes_default |
| 6350 | |
| 6351 | #include <$ac_header> |
| 6352 | _ACEOF |
| 6353 | rm -f conftest.$ac_objext |
| 6354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6355 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6356 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6358 | rm -f conftest.er1 |
| 6359 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6361 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6362 | { ac_try='test -z "$ac_c_werror_flag" |
| 6363 | || test ! -s conftest.err' |
| 6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6365 | (eval $ac_try) 2>&5 |
| 6366 | ac_status=$? |
| 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6368 | (exit $ac_status); }; } && |
| 6369 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6371 | (eval $ac_try) 2>&5 |
| 6372 | ac_status=$? |
| 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6374 | (exit $ac_status); }; }; then |
| 6375 | eval "$as_ac_Header=yes" |
| 6376 | else |
| 6377 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6379 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6380 | eval "$as_ac_Header=no" |
| 6381 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6383 | fi |
| 6384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6385 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6386 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6387 | cat >>confdefs.h <<_ACEOF |
| 6388 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6389 | _ACEOF |
| 6390 | |
| 6391 | fi |
| 6392 | |
| 6393 | done |
| 6394 | |
| 6395 | |
| 6396 | |
| 6397 | for ac_header in dlfcn.h |
| 6398 | do |
| 6399 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6400 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6401 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6405 | fi |
| 6406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6407 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6408 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6409 | # Is the header compilable? |
| 6410 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6411 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6412 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6413 | /* confdefs.h. */ |
| 6414 | _ACEOF |
| 6415 | cat confdefs.h >>conftest.$ac_ext |
| 6416 | cat >>conftest.$ac_ext <<_ACEOF |
| 6417 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6418 | $ac_includes_default |
| 6419 | #include <$ac_header> |
| 6420 | _ACEOF |
| 6421 | rm -f conftest.$ac_objext |
| 6422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6423 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6424 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6426 | rm -f conftest.er1 |
| 6427 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6429 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6430 | { ac_try='test -z "$ac_c_werror_flag" |
| 6431 | || test ! -s conftest.err' |
| 6432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6433 | (eval $ac_try) 2>&5 |
| 6434 | ac_status=$? |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); }; } && |
| 6437 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6439 | (eval $ac_try) 2>&5 |
| 6440 | ac_status=$? |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6443 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6444 | else |
| 6445 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6447 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6448 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6449 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6451 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6452 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6453 | |
| 6454 | # Is the header present? |
| 6455 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6456 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6457 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6458 | /* confdefs.h. */ |
| 6459 | _ACEOF |
| 6460 | cat confdefs.h >>conftest.$ac_ext |
| 6461 | cat >>conftest.$ac_ext <<_ACEOF |
| 6462 | /* end confdefs.h. */ |
| 6463 | #include <$ac_header> |
| 6464 | _ACEOF |
| 6465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6467 | ac_status=$? |
| 6468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6469 | rm -f conftest.er1 |
| 6470 | cat conftest.err >&5 |
| 6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6472 | (exit $ac_status); } >/dev/null; then |
| 6473 | if test -s conftest.err; then |
| 6474 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6475 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6476 | else |
| 6477 | ac_cpp_err= |
| 6478 | fi |
| 6479 | else |
| 6480 | ac_cpp_err=yes |
| 6481 | fi |
| 6482 | if test -z "$ac_cpp_err"; then |
| 6483 | ac_header_preproc=yes |
| 6484 | else |
| 6485 | echo "$as_me: failed program was:" >&5 |
| 6486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6487 | |
| 6488 | ac_header_preproc=no |
| 6489 | fi |
| 6490 | rm -f conftest.err conftest.$ac_ext |
| 6491 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6492 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6493 | |
| 6494 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6495 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6496 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6497 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6498 | 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] | 6499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6500 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6501 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6502 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6503 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6504 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6505 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6506 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6507 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6508 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6509 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6510 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6511 | 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] | 6512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6513 | 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] | 6514 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6515 | 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] | 6516 | ( |
| 6517 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6518 | ## ----------------------------------- ## |
| 6519 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 6520 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6521 | _ASBOX |
| 6522 | ) | |
| 6523 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6524 | ;; |
| 6525 | esac |
| 6526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6530 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6531 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6532 | fi |
| 6533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6535 | |
| 6536 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6537 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6538 | cat >>confdefs.h <<_ACEOF |
| 6539 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6540 | _ACEOF |
| 6541 | |
| 6542 | fi |
| 6543 | |
| 6544 | done |
| 6545 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6546 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. |
| 6547 | if test "${enable_ltdl_install+set}" = set; then |
| 6548 | enableval="$enable_ltdl_install" |
| 6549 | |
| 6550 | fi; |
| 6551 | |
| 6552 | |
| 6553 | |
| 6554 | if test x"${enable_ltdl_install-no}" != xno; then |
| 6555 | INSTALL_LTDL_TRUE= |
| 6556 | INSTALL_LTDL_FALSE='#' |
| 6557 | else |
| 6558 | INSTALL_LTDL_TRUE='#' |
| 6559 | INSTALL_LTDL_FALSE= |
| 6560 | fi |
| 6561 | |
| 6562 | |
| 6563 | |
| 6564 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 6565 | CONVENIENCE_LTDL_TRUE= |
| 6566 | CONVENIENCE_LTDL_FALSE='#' |
| 6567 | else |
| 6568 | CONVENIENCE_LTDL_TRUE='#' |
| 6569 | CONVENIENCE_LTDL_FALSE= |
| 6570 | fi |
| 6571 | |
| 6572 | |
| 6573 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6574 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6575 | library_names_spec= |
| 6576 | libname_spec='lib$name' |
| 6577 | soname_spec= |
| 6578 | shrext_cmds=".so" |
| 6579 | postinstall_cmds= |
| 6580 | postuninstall_cmds= |
| 6581 | finish_cmds= |
| 6582 | finish_eval= |
| 6583 | shlibpath_var= |
| 6584 | shlibpath_overrides_runpath=unknown |
| 6585 | version_type=none |
| 6586 | dynamic_linker="$host_os ld.so" |
| 6587 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6588 | if test "$GCC" = yes; then |
| 6589 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6590 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 6591 | # if the path contains ";" then we assume it to be the separator |
| 6592 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 6593 | # assumed that no part of a normal pathname contains ";" but that should |
| 6594 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 6595 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6596 | else |
| 6597 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6598 | fi |
| 6599 | else |
| 6600 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6601 | fi |
| 6602 | need_lib_prefix=unknown |
| 6603 | hardcode_into_libs=no |
| 6604 | |
| 6605 | # when you set need_version to no, make sure it does not cause -set_version |
| 6606 | # flags to be left without arguments |
| 6607 | need_version=unknown |
| 6608 | |
| 6609 | case $host_os in |
| 6610 | aix3*) |
| 6611 | version_type=linux |
| 6612 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 6613 | shlibpath_var=LIBPATH |
| 6614 | |
| 6615 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 6616 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6617 | ;; |
| 6618 | |
| 6619 | aix4* | aix5*) |
| 6620 | version_type=linux |
| 6621 | need_lib_prefix=no |
| 6622 | need_version=no |
| 6623 | hardcode_into_libs=yes |
| 6624 | if test "$host_cpu" = ia64; then |
| 6625 | # AIX 5 supports IA64 |
| 6626 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 6627 | shlibpath_var=LD_LIBRARY_PATH |
| 6628 | else |
| 6629 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6630 | # for dependence libraries. The import file would start with |
| 6631 | # the line `#! .'. This would cause the generated library to |
| 6632 | # depend on `.', always an invalid library. This was fixed in |
| 6633 | # development snapshots of GCC prior to 3.0. |
| 6634 | case $host_os in |
| 6635 | aix4 | aix4.[01] | aix4.[01].*) |
| 6636 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6637 | echo ' yes ' |
| 6638 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6639 | : |
| 6640 | else |
| 6641 | can_build_shared=no |
| 6642 | fi |
| 6643 | ;; |
| 6644 | esac |
| 6645 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 6646 | # soname into executable. Probably we can add versioning support to |
| 6647 | # collect2, so additional links can be useful in future. |
| 6648 | if test "$aix_use_runtimelinking" = yes; then |
| 6649 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6650 | # instead of lib<name>.a to let people know that these are not |
| 6651 | # typical AIX shared libraries. |
| 6652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6653 | else |
| 6654 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6655 | # and later when we are not doing run time linking. |
| 6656 | library_names_spec='${libname}${release}.a $libname.a' |
| 6657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6658 | fi |
| 6659 | shlibpath_var=LIBPATH |
| 6660 | fi |
| 6661 | ;; |
| 6662 | |
| 6663 | amigaos*) |
| 6664 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6665 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6666 | 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' |
| 6667 | ;; |
| 6668 | |
| 6669 | beos*) |
| 6670 | library_names_spec='${libname}${shared_ext}' |
| 6671 | dynamic_linker="$host_os ld.so" |
| 6672 | shlibpath_var=LIBRARY_PATH |
| 6673 | ;; |
| 6674 | |
| 6675 | bsdi[45]*) |
| 6676 | version_type=linux |
| 6677 | need_version=no |
| 6678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6679 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6680 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6681 | shlibpath_var=LD_LIBRARY_PATH |
| 6682 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6683 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6684 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6685 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6686 | # libtool to hard-code these into programs |
| 6687 | ;; |
| 6688 | |
| 6689 | cygwin* | mingw* | pw32*) |
| 6690 | version_type=windows |
| 6691 | shrext_cmds=".dll" |
| 6692 | need_version=no |
| 6693 | need_lib_prefix=no |
| 6694 | |
| 6695 | case $GCC,$host_os in |
| 6696 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 6697 | library_names_spec='$libname.dll.a' |
| 6698 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 6699 | postinstall_cmds='base_file=`basename \${file}`~ |
| 6700 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 6701 | dldir=$destdir/`dirname \$dlpath`~ |
| 6702 | test -d \$dldir || mkdir -p \$dldir~ |
| 6703 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 6704 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6705 | dlpath=$dir/\$dldll~ |
| 6706 | $rm \$dlpath' |
| 6707 | shlibpath_overrides_runpath=yes |
| 6708 | |
| 6709 | case $host_os in |
| 6710 | cygwin*) |
| 6711 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 6712 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6713 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 6714 | ;; |
| 6715 | mingw*) |
| 6716 | # MinGW DLLs use traditional 'lib' prefix |
| 6717 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6718 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6719 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 6720 | # It is most probably a Windows format PATH printed by |
| 6721 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 6722 | # path with ; separators, and with drive letters. We can handle the |
| 6723 | # drive letters (cygwin fileutils understands them), so leave them, |
| 6724 | # especially as we might pass files found there to a mingw objdump, |
| 6725 | # which wouldn't understand a cygwinified path. Ahh. |
| 6726 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6727 | else |
| 6728 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6729 | fi |
| 6730 | ;; |
| 6731 | pw32*) |
| 6732 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 6733 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 6734 | ;; |
| 6735 | esac |
| 6736 | ;; |
| 6737 | |
| 6738 | *) |
| 6739 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 6740 | ;; |
| 6741 | esac |
| 6742 | dynamic_linker='Win32 ld.exe' |
| 6743 | # FIXME: first we should search . and the directory the executable is in |
| 6744 | shlibpath_var=PATH |
| 6745 | ;; |
| 6746 | |
| 6747 | darwin* | rhapsody*) |
| 6748 | dynamic_linker="$host_os dyld" |
| 6749 | version_type=darwin |
| 6750 | need_lib_prefix=no |
| 6751 | need_version=no |
| 6752 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 6753 | soname_spec='${libname}${release}${major}$shared_ext' |
| 6754 | shlibpath_overrides_runpath=yes |
| 6755 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6756 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 6757 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 6758 | if test "$GCC" = yes; then |
| 6759 | 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"` |
| 6760 | else |
| 6761 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 6762 | fi |
| 6763 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 6764 | ;; |
| 6765 | |
| 6766 | dgux*) |
| 6767 | version_type=linux |
| 6768 | need_lib_prefix=no |
| 6769 | need_version=no |
| 6770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 6771 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6772 | shlibpath_var=LD_LIBRARY_PATH |
| 6773 | ;; |
| 6774 | |
| 6775 | freebsd1*) |
| 6776 | dynamic_linker=no |
| 6777 | ;; |
| 6778 | |
| 6779 | kfreebsd*-gnu) |
| 6780 | version_type=linux |
| 6781 | need_lib_prefix=no |
| 6782 | need_version=no |
| 6783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 6784 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6785 | shlibpath_var=LD_LIBRARY_PATH |
| 6786 | shlibpath_overrides_runpath=no |
| 6787 | hardcode_into_libs=yes |
| 6788 | dynamic_linker='GNU ld.so' |
| 6789 | ;; |
| 6790 | |
| 6791 | freebsd*) |
| 6792 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6793 | version_type=freebsd-$objformat |
| 6794 | case $version_type in |
| 6795 | freebsd-elf*) |
| 6796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 6797 | need_version=no |
| 6798 | need_lib_prefix=no |
| 6799 | ;; |
| 6800 | freebsd-*) |
| 6801 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 6802 | need_version=yes |
| 6803 | ;; |
| 6804 | esac |
| 6805 | shlibpath_var=LD_LIBRARY_PATH |
| 6806 | case $host_os in |
| 6807 | freebsd2*) |
| 6808 | shlibpath_overrides_runpath=yes |
| 6809 | ;; |
| 6810 | freebsd3.01* | freebsdelf3.01*) |
| 6811 | shlibpath_overrides_runpath=yes |
| 6812 | hardcode_into_libs=yes |
| 6813 | ;; |
| 6814 | *) # from 3.2 on |
| 6815 | shlibpath_overrides_runpath=no |
| 6816 | hardcode_into_libs=yes |
| 6817 | ;; |
| 6818 | esac |
| 6819 | ;; |
| 6820 | |
| 6821 | gnu*) |
| 6822 | version_type=linux |
| 6823 | need_lib_prefix=no |
| 6824 | need_version=no |
| 6825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 6826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6827 | shlibpath_var=LD_LIBRARY_PATH |
| 6828 | hardcode_into_libs=yes |
| 6829 | ;; |
| 6830 | |
| 6831 | hpux9* | hpux10* | hpux11*) |
| 6832 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6833 | # link against other versions. |
| 6834 | version_type=sunos |
| 6835 | need_lib_prefix=no |
| 6836 | need_version=no |
| 6837 | case "$host_cpu" in |
| 6838 | ia64*) |
| 6839 | shrext_cmds='.so' |
| 6840 | hardcode_into_libs=yes |
| 6841 | dynamic_linker="$host_os dld.so" |
| 6842 | shlibpath_var=LD_LIBRARY_PATH |
| 6843 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 6844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6845 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6846 | if test "X$HPUX_IA64_MODE" = X32; then |
| 6847 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 6848 | else |
| 6849 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 6850 | fi |
| 6851 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 6852 | ;; |
| 6853 | hppa*64*) |
| 6854 | shrext_cmds='.sl' |
| 6855 | hardcode_into_libs=yes |
| 6856 | dynamic_linker="$host_os dld.sl" |
| 6857 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 6858 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 6859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6860 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6861 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 6862 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 6863 | ;; |
| 6864 | *) |
| 6865 | shrext_cmds='.sl' |
| 6866 | dynamic_linker="$host_os dld.sl" |
| 6867 | shlibpath_var=SHLIB_PATH |
| 6868 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6871 | ;; |
| 6872 | esac |
| 6873 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6874 | postinstall_cmds='chmod 555 $lib' |
| 6875 | ;; |
| 6876 | |
| 6877 | irix5* | irix6* | nonstopux*) |
| 6878 | case $host_os in |
| 6879 | nonstopux*) version_type=nonstopux ;; |
| 6880 | *) |
| 6881 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6882 | version_type=linux |
| 6883 | else |
| 6884 | version_type=irix |
| 6885 | fi ;; |
| 6886 | esac |
| 6887 | need_lib_prefix=no |
| 6888 | need_version=no |
| 6889 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 6891 | case $host_os in |
| 6892 | irix5* | nonstopux*) |
| 6893 | libsuff= shlibsuff= |
| 6894 | ;; |
| 6895 | *) |
| 6896 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6897 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 6898 | libsuff= shlibsuff= libmagic=32-bit;; |
| 6899 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 6900 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6901 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 6902 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6903 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6904 | esac |
| 6905 | ;; |
| 6906 | esac |
| 6907 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6908 | shlibpath_overrides_runpath=no |
| 6909 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6910 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6911 | hardcode_into_libs=yes |
| 6912 | ;; |
| 6913 | |
| 6914 | # No shared lib support for Linux oldld, aout, or coff. |
| 6915 | linux*oldld* | linux*aout* | linux*coff*) |
| 6916 | dynamic_linker=no |
| 6917 | ;; |
| 6918 | |
| 6919 | # This must be Linux ELF. |
| 6920 | linux*) |
| 6921 | version_type=linux |
| 6922 | need_lib_prefix=no |
| 6923 | need_version=no |
| 6924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6925 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6926 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6927 | shlibpath_var=LD_LIBRARY_PATH |
| 6928 | shlibpath_overrides_runpath=no |
| 6929 | # This implies no fast_install, which is unacceptable. |
| 6930 | # Some rework will be needed to allow for fast_install |
| 6931 | # before this can be enabled. |
| 6932 | hardcode_into_libs=yes |
| 6933 | |
| 6934 | # Append ld.so.conf contents to the search path |
| 6935 | if test -f /etc/ld.so.conf; then |
| 6936 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 6937 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 6938 | fi |
| 6939 | |
| 6940 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6941 | # powerpc, because MkLinux only supported shared libraries with the |
| 6942 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6943 | # most powerpc-linux boxes support dynamic linking these days and |
| 6944 | # people can always --disable-shared, the test was removed, and we |
| 6945 | # assume the GNU/Linux dynamic linker is in use. |
| 6946 | dynamic_linker='GNU/Linux ld.so' |
| 6947 | ;; |
| 6948 | |
| 6949 | knetbsd*-gnu) |
| 6950 | version_type=linux |
| 6951 | need_lib_prefix=no |
| 6952 | need_version=no |
| 6953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 6954 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6955 | shlibpath_var=LD_LIBRARY_PATH |
| 6956 | shlibpath_overrides_runpath=no |
| 6957 | hardcode_into_libs=yes |
| 6958 | dynamic_linker='GNU ld.so' |
| 6959 | ;; |
| 6960 | |
| 6961 | netbsd*) |
| 6962 | version_type=sunos |
| 6963 | need_lib_prefix=no |
| 6964 | need_version=no |
| 6965 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 6967 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6968 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6969 | else |
| 6970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 6971 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6972 | dynamic_linker='NetBSD ld.elf_so' |
| 6973 | fi |
| 6974 | shlibpath_var=LD_LIBRARY_PATH |
| 6975 | shlibpath_overrides_runpath=yes |
| 6976 | hardcode_into_libs=yes |
| 6977 | ;; |
| 6978 | |
| 6979 | newsos6) |
| 6980 | version_type=linux |
| 6981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6982 | shlibpath_var=LD_LIBRARY_PATH |
| 6983 | shlibpath_overrides_runpath=yes |
| 6984 | ;; |
| 6985 | |
| 6986 | nto-qnx*) |
| 6987 | version_type=linux |
| 6988 | need_lib_prefix=no |
| 6989 | need_version=no |
| 6990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6991 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6992 | shlibpath_var=LD_LIBRARY_PATH |
| 6993 | shlibpath_overrides_runpath=yes |
| 6994 | ;; |
| 6995 | |
| 6996 | openbsd*) |
| 6997 | version_type=sunos |
| 6998 | need_lib_prefix=no |
| 6999 | need_version=no |
| 7000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7001 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7002 | shlibpath_var=LD_LIBRARY_PATH |
| 7003 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7004 | case $host_os in |
| 7005 | openbsd2.[89] | openbsd2.[89].*) |
| 7006 | shlibpath_overrides_runpath=no |
| 7007 | ;; |
| 7008 | *) |
| 7009 | shlibpath_overrides_runpath=yes |
| 7010 | ;; |
| 7011 | esac |
| 7012 | else |
| 7013 | shlibpath_overrides_runpath=yes |
| 7014 | fi |
| 7015 | ;; |
| 7016 | |
| 7017 | os2*) |
| 7018 | libname_spec='$name' |
| 7019 | shrext_cmds=".dll" |
| 7020 | need_lib_prefix=no |
| 7021 | library_names_spec='$libname${shared_ext} $libname.a' |
| 7022 | dynamic_linker='OS/2 ld.exe' |
| 7023 | shlibpath_var=LIBPATH |
| 7024 | ;; |
| 7025 | |
| 7026 | osf3* | osf4* | osf5*) |
| 7027 | version_type=osf |
| 7028 | need_lib_prefix=no |
| 7029 | need_version=no |
| 7030 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7032 | shlibpath_var=LD_LIBRARY_PATH |
| 7033 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7034 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7035 | ;; |
| 7036 | |
| 7037 | sco3.2v5*) |
| 7038 | version_type=osf |
| 7039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7041 | shlibpath_var=LD_LIBRARY_PATH |
| 7042 | ;; |
| 7043 | |
| 7044 | solaris*) |
| 7045 | version_type=linux |
| 7046 | need_lib_prefix=no |
| 7047 | need_version=no |
| 7048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7050 | shlibpath_var=LD_LIBRARY_PATH |
| 7051 | shlibpath_overrides_runpath=yes |
| 7052 | hardcode_into_libs=yes |
| 7053 | # ldd complains unless libraries are executable |
| 7054 | postinstall_cmds='chmod +x $lib' |
| 7055 | ;; |
| 7056 | |
| 7057 | sunos4*) |
| 7058 | version_type=sunos |
| 7059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7060 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7061 | shlibpath_var=LD_LIBRARY_PATH |
| 7062 | shlibpath_overrides_runpath=yes |
| 7063 | if test "$with_gnu_ld" = yes; then |
| 7064 | need_lib_prefix=no |
| 7065 | fi |
| 7066 | need_version=yes |
| 7067 | ;; |
| 7068 | |
| 7069 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7070 | version_type=linux |
| 7071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7072 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7073 | shlibpath_var=LD_LIBRARY_PATH |
| 7074 | case $host_vendor in |
| 7075 | sni) |
| 7076 | shlibpath_overrides_runpath=no |
| 7077 | need_lib_prefix=no |
| 7078 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7079 | runpath_var=LD_RUN_PATH |
| 7080 | ;; |
| 7081 | siemens) |
| 7082 | need_lib_prefix=no |
| 7083 | ;; |
| 7084 | motorola) |
| 7085 | need_lib_prefix=no |
| 7086 | need_version=no |
| 7087 | shlibpath_overrides_runpath=no |
| 7088 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7089 | ;; |
| 7090 | esac |
| 7091 | ;; |
| 7092 | |
| 7093 | sysv4*MP*) |
| 7094 | if test -d /usr/nec ;then |
| 7095 | version_type=linux |
| 7096 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7097 | soname_spec='$libname${shared_ext}.$major' |
| 7098 | shlibpath_var=LD_LIBRARY_PATH |
| 7099 | fi |
| 7100 | ;; |
| 7101 | |
| 7102 | uts4*) |
| 7103 | version_type=linux |
| 7104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7105 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7106 | shlibpath_var=LD_LIBRARY_PATH |
| 7107 | ;; |
| 7108 | |
| 7109 | *) |
| 7110 | dynamic_linker=no |
| 7111 | ;; |
| 7112 | esac |
| 7113 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 7114 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7115 | test "$dynamic_linker" = no && can_build_shared=no |
| 7116 | |
| 7117 | |
| 7118 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 7119 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 |
| 7120 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 7121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7122 | else |
| 7123 | |
| 7124 | module=yes |
| 7125 | eval libltdl_cv_shlibext=$shrext_cmds |
| 7126 | |
| 7127 | fi |
| 7128 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 7129 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 |
| 7130 | if test -n "$libltdl_cv_shlibext"; then |
| 7131 | |
| 7132 | cat >>confdefs.h <<_ACEOF |
| 7133 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 7134 | _ACEOF |
| 7135 | |
| 7136 | fi |
| 7137 | |
| 7138 | |
| 7139 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 7140 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 |
| 7141 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7143 | else |
| 7144 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 7145 | fi |
| 7146 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 7147 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 |
| 7148 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 7149 | |
| 7150 | cat >>confdefs.h <<_ACEOF |
| 7151 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 7152 | _ACEOF |
| 7153 | |
| 7154 | fi |
| 7155 | |
| 7156 | |
| 7157 | echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 7158 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 |
| 7159 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 7160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7161 | else |
| 7162 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 7163 | fi |
| 7164 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 7165 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 |
| 7166 | if test -n "$libltdl_cv_sys_search_path"; then |
| 7167 | sys_search_path= |
| 7168 | for dir in $libltdl_cv_sys_search_path; do |
| 7169 | if test -z "$sys_search_path"; then |
| 7170 | sys_search_path="$dir" |
| 7171 | else |
| 7172 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 7173 | fi |
| 7174 | done |
| 7175 | |
| 7176 | cat >>confdefs.h <<_ACEOF |
| 7177 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 7178 | _ACEOF |
| 7179 | |
| 7180 | fi |
| 7181 | |
| 7182 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 7183 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 7184 | if test "${libltdl_cv_objdir+set}" = set; then |
| 7185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7186 | else |
| 7187 | libltdl_cv_objdir="$objdir" |
| 7188 | if test -n "$objdir"; then |
| 7189 | : |
| 7190 | else |
| 7191 | rm -f .libs 2>/dev/null |
| 7192 | mkdir .libs 2>/dev/null |
| 7193 | if test -d .libs; then |
| 7194 | libltdl_cv_objdir=.libs |
| 7195 | else |
| 7196 | # MS-DOS does not allow filenames that begin with a dot. |
| 7197 | libltdl_cv_objdir=_libs |
| 7198 | fi |
| 7199 | rmdir .libs 2>/dev/null |
| 7200 | fi |
| 7201 | |
| 7202 | fi |
| 7203 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 7204 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 |
| 7205 | |
| 7206 | cat >>confdefs.h <<_ACEOF |
| 7207 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 7208 | _ACEOF |
| 7209 | |
| 7210 | |
| 7211 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 7212 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 7213 | if test "${lt_cv_path_NM+set}" = set; then |
| 7214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7215 | else |
| 7216 | if test -n "$NM"; then |
| 7217 | # Let the user override the test. |
| 7218 | lt_cv_path_NM="$NM" |
| 7219 | else |
| 7220 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7221 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 7222 | IFS="$lt_save_ifs" |
| 7223 | test -z "$ac_dir" && ac_dir=. |
| 7224 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 7225 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 7226 | # Check to see if the nm accepts a BSD-compat flag. |
| 7227 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 7228 | # nm: unknown option "B" ignored |
| 7229 | # Tru64's nm complains that /dev/null is an invalid object file |
| 7230 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 7231 | */dev/null* | *'Invalid file or object type'*) |
| 7232 | lt_cv_path_NM="$tmp_nm -B" |
| 7233 | break |
| 7234 | ;; |
| 7235 | *) |
| 7236 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 7237 | */dev/null*) |
| 7238 | lt_cv_path_NM="$tmp_nm -p" |
| 7239 | break |
| 7240 | ;; |
| 7241 | *) |
| 7242 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 7243 | continue # so that we can try to find one that supports BSD flags |
| 7244 | ;; |
| 7245 | esac |
| 7246 | esac |
| 7247 | fi |
| 7248 | done |
| 7249 | IFS="$lt_save_ifs" |
| 7250 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 7251 | fi |
| 7252 | fi |
| 7253 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 7254 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 7255 | NM="$lt_cv_path_NM" |
| 7256 | |
| 7257 | |
| 7258 | |
| 7259 | |
| 7260 | |
| 7261 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7262 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 7263 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 7264 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7266 | else |
| 7267 | |
| 7268 | # These are sane defaults that work on at least a few old systems. |
| 7269 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7270 | |
| 7271 | # Character class describing NM global symbol codes. |
| 7272 | symcode='[BCDEGRST]' |
| 7273 | |
| 7274 | # Regexp to match symbols that can be accessed directly from C. |
| 7275 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7276 | |
| 7277 | # Transform the above into a raw symbol and a C symbol. |
| 7278 | symxfrm='\1 \2\3 \3' |
| 7279 | |
| 7280 | # Transform an extracted symbol line into a proper C declaration |
| 7281 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 7282 | |
| 7283 | # Transform an extracted symbol line into symbol name and symbol address |
| 7284 | 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'" |
| 7285 | |
| 7286 | # Define system-specific variables. |
| 7287 | case $host_os in |
| 7288 | aix*) |
| 7289 | symcode='[BCDT]' |
| 7290 | ;; |
| 7291 | cygwin* | mingw* | pw32*) |
| 7292 | symcode='[ABCDGISTW]' |
| 7293 | ;; |
| 7294 | hpux*) # Its linker distinguishes data from code symbols |
| 7295 | if test "$host_cpu" = ia64; then |
| 7296 | symcode='[ABCDEGRST]' |
| 7297 | fi |
| 7298 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7299 | 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'" |
| 7300 | ;; |
| 7301 | linux*) |
| 7302 | if test "$host_cpu" = ia64; then |
| 7303 | symcode='[ABCDGIRSTW]' |
| 7304 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7305 | 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'" |
| 7306 | fi |
| 7307 | ;; |
| 7308 | irix* | nonstopux*) |
| 7309 | symcode='[BCDEGRST]' |
| 7310 | ;; |
| 7311 | osf*) |
| 7312 | symcode='[BCDEGQRST]' |
| 7313 | ;; |
| 7314 | solaris* | sysv5*) |
| 7315 | symcode='[BDRT]' |
| 7316 | ;; |
| 7317 | sysv4) |
| 7318 | symcode='[DFNSTU]' |
| 7319 | ;; |
| 7320 | esac |
| 7321 | |
| 7322 | # Handle CRLF in mingw tool chain |
| 7323 | opt_cr= |
| 7324 | case $build_os in |
| 7325 | mingw*) |
| 7326 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7327 | ;; |
| 7328 | esac |
| 7329 | |
| 7330 | # If we're using GNU nm, then use its standard symbol codes. |
| 7331 | case `$NM -V 2>&1` in |
| 7332 | *GNU* | *'with BFD'*) |
| 7333 | symcode='[ABCDGIRSTW]' ;; |
| 7334 | esac |
| 7335 | |
| 7336 | # Try without a prefix undercore, then with it. |
| 7337 | for ac_symprfx in "" "_"; do |
| 7338 | |
| 7339 | # Write the raw and C identifiers. |
| 7340 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 7341 | |
| 7342 | # Check to see that the pipe works correctly. |
| 7343 | pipe_works=no |
| 7344 | |
| 7345 | rm -f conftest* |
| 7346 | cat > conftest.$ac_ext <<EOF |
| 7347 | #ifdef __cplusplus |
| 7348 | extern "C" { |
| 7349 | #endif |
| 7350 | char nm_test_var; |
| 7351 | void nm_test_func(){} |
| 7352 | #ifdef __cplusplus |
| 7353 | } |
| 7354 | #endif |
| 7355 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7356 | EOF |
| 7357 | |
| 7358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7359 | (eval $ac_compile) 2>&5 |
| 7360 | ac_status=$? |
| 7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7362 | (exit $ac_status); }; then |
| 7363 | # Now try to grab the symbols. |
| 7364 | nlist=conftest.nm |
| 7365 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 7366 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 7367 | ac_status=$? |
| 7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7369 | (exit $ac_status); } && test -s "$nlist"; then |
| 7370 | # Try sorting and uniquifying the output. |
| 7371 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7372 | mv -f "$nlist"T "$nlist" |
| 7373 | else |
| 7374 | rm -f "$nlist"T |
| 7375 | fi |
| 7376 | |
| 7377 | # Make sure that we snagged all the symbols we need. |
| 7378 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 7379 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 7380 | cat <<EOF > conftest.$ac_ext |
| 7381 | #ifdef __cplusplus |
| 7382 | extern "C" { |
| 7383 | #endif |
| 7384 | |
| 7385 | EOF |
| 7386 | # Now generate the symbol file. |
| 7387 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 7388 | |
| 7389 | cat <<EOF >> conftest.$ac_ext |
| 7390 | #if defined (__STDC__) && __STDC__ |
| 7391 | # define lt_ptr_t void * |
| 7392 | #else |
| 7393 | # define lt_ptr_t char * |
| 7394 | # define const |
| 7395 | #endif |
| 7396 | |
| 7397 | /* The mapping between symbol names and symbols. */ |
| 7398 | const struct { |
| 7399 | const char *name; |
| 7400 | lt_ptr_t address; |
| 7401 | } |
| 7402 | lt_preloaded_symbols[] = |
| 7403 | { |
| 7404 | EOF |
| 7405 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 7406 | cat <<\EOF >> conftest.$ac_ext |
| 7407 | {0, (lt_ptr_t) 0} |
| 7408 | }; |
| 7409 | |
| 7410 | #ifdef __cplusplus |
| 7411 | } |
| 7412 | #endif |
| 7413 | EOF |
| 7414 | # Now try linking the two files. |
| 7415 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7416 | lt_save_LIBS="$LIBS" |
| 7417 | lt_save_CFLAGS="$CFLAGS" |
| 7418 | LIBS="conftstm.$ac_objext" |
| 7419 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7421 | (eval $ac_link) 2>&5 |
| 7422 | ac_status=$? |
| 7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7424 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 7425 | pipe_works=yes |
| 7426 | fi |
| 7427 | LIBS="$lt_save_LIBS" |
| 7428 | CFLAGS="$lt_save_CFLAGS" |
| 7429 | else |
| 7430 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7431 | fi |
| 7432 | else |
| 7433 | echo "cannot find nm_test_var in $nlist" >&5 |
| 7434 | fi |
| 7435 | else |
| 7436 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7437 | fi |
| 7438 | else |
| 7439 | echo "$progname: failed program was:" >&5 |
| 7440 | cat conftest.$ac_ext >&5 |
| 7441 | fi |
| 7442 | rm -f conftest* conftst* |
| 7443 | |
| 7444 | # Do not use the global_symbol_pipe unless it works. |
| 7445 | if test "$pipe_works" = yes; then |
| 7446 | break |
| 7447 | else |
| 7448 | lt_cv_sys_global_symbol_pipe= |
| 7449 | fi |
| 7450 | done |
| 7451 | |
| 7452 | fi |
| 7453 | |
| 7454 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7455 | lt_cv_sys_global_symbol_to_cdecl= |
| 7456 | fi |
| 7457 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7458 | echo "$as_me:$LINENO: result: failed" >&5 |
| 7459 | echo "${ECHO_T}failed" >&6 |
| 7460 | else |
| 7461 | echo "$as_me:$LINENO: result: ok" >&5 |
| 7462 | echo "${ECHO_T}ok" >&6 |
| 7463 | fi |
| 7464 | |
| 7465 | |
| 7466 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 7467 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 |
| 7468 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 7469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7470 | else |
| 7471 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 7472 | libltdl_cv_preloaded_symbols=yes |
| 7473 | else |
| 7474 | libltdl_cv_preloaded_symbols=no |
| 7475 | fi |
| 7476 | |
| 7477 | fi |
| 7478 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 7479 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 |
| 7480 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 7481 | |
| 7482 | cat >>confdefs.h <<\_ACEOF |
| 7483 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 7484 | _ACEOF |
| 7485 | |
| 7486 | fi |
| 7487 | |
| 7488 | LIBADD_DL= |
| 7489 | |
| 7490 | ac_ext=c |
| 7491 | ac_cpp='$CPP $CPPFLAGS' |
| 7492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7495 | |
| 7496 | |
| 7497 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 7498 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7499 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7501 | else |
| 7502 | cat >conftest.$ac_ext <<_ACEOF |
| 7503 | /* confdefs.h. */ |
| 7504 | _ACEOF |
| 7505 | cat confdefs.h >>conftest.$ac_ext |
| 7506 | cat >>conftest.$ac_ext <<_ACEOF |
| 7507 | /* end confdefs.h. */ |
| 7508 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 7509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7510 | #define shl_load innocuous_shl_load |
| 7511 | |
| 7512 | /* System header to define __stub macros and hopefully few prototypes, |
| 7513 | which can conflict with char shl_load (); below. |
| 7514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7515 | <limits.h> exists even on freestanding compilers. */ |
| 7516 | |
| 7517 | #ifdef __STDC__ |
| 7518 | # include <limits.h> |
| 7519 | #else |
| 7520 | # include <assert.h> |
| 7521 | #endif |
| 7522 | |
| 7523 | #undef shl_load |
| 7524 | |
| 7525 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7526 | #ifdef __cplusplus |
| 7527 | extern "C" |
| 7528 | { |
| 7529 | #endif |
| 7530 | /* We use char because int might match the return type of a gcc2 |
| 7531 | builtin and then its argument prototype would still apply. */ |
| 7532 | char shl_load (); |
| 7533 | /* The GNU C library defines this for functions which it implements |
| 7534 | to always fail with ENOSYS. Some functions are actually named |
| 7535 | something starting with __ and the normal name is an alias. */ |
| 7536 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7537 | choke me |
| 7538 | #else |
| 7539 | char (*f) () = shl_load; |
| 7540 | #endif |
| 7541 | #ifdef __cplusplus |
| 7542 | } |
| 7543 | #endif |
| 7544 | |
| 7545 | int |
| 7546 | main () |
| 7547 | { |
| 7548 | return f != shl_load; |
| 7549 | ; |
| 7550 | return 0; |
| 7551 | } |
| 7552 | _ACEOF |
| 7553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7555 | (eval $ac_link) 2>conftest.er1 |
| 7556 | ac_status=$? |
| 7557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7558 | rm -f conftest.er1 |
| 7559 | cat conftest.err >&5 |
| 7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7561 | (exit $ac_status); } && |
| 7562 | { ac_try='test -z "$ac_c_werror_flag" |
| 7563 | || test ! -s conftest.err' |
| 7564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7565 | (eval $ac_try) 2>&5 |
| 7566 | ac_status=$? |
| 7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7568 | (exit $ac_status); }; } && |
| 7569 | { ac_try='test -s conftest$ac_exeext' |
| 7570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7571 | (eval $ac_try) 2>&5 |
| 7572 | ac_status=$? |
| 7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7574 | (exit $ac_status); }; }; then |
| 7575 | ac_cv_func_shl_load=yes |
| 7576 | else |
| 7577 | echo "$as_me: failed program was:" >&5 |
| 7578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7579 | |
| 7580 | ac_cv_func_shl_load=no |
| 7581 | fi |
| 7582 | rm -f conftest.err conftest.$ac_objext \ |
| 7583 | conftest$ac_exeext conftest.$ac_ext |
| 7584 | fi |
| 7585 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 7586 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7587 | if test $ac_cv_func_shl_load = yes; then |
| 7588 | |
| 7589 | cat >>confdefs.h <<\_ACEOF |
| 7590 | #define HAVE_SHL_LOAD 1 |
| 7591 | _ACEOF |
| 7592 | |
| 7593 | else |
| 7594 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 7595 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7596 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7598 | else |
| 7599 | ac_check_lib_save_LIBS=$LIBS |
| 7600 | LIBS="-ldld $LIBS" |
| 7601 | cat >conftest.$ac_ext <<_ACEOF |
| 7602 | /* confdefs.h. */ |
| 7603 | _ACEOF |
| 7604 | cat confdefs.h >>conftest.$ac_ext |
| 7605 | cat >>conftest.$ac_ext <<_ACEOF |
| 7606 | /* end confdefs.h. */ |
| 7607 | |
| 7608 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7609 | #ifdef __cplusplus |
| 7610 | extern "C" |
| 7611 | #endif |
| 7612 | /* We use char because int might match the return type of a gcc2 |
| 7613 | builtin and then its argument prototype would still apply. */ |
| 7614 | char shl_load (); |
| 7615 | int |
| 7616 | main () |
| 7617 | { |
| 7618 | shl_load (); |
| 7619 | ; |
| 7620 | return 0; |
| 7621 | } |
| 7622 | _ACEOF |
| 7623 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7625 | (eval $ac_link) 2>conftest.er1 |
| 7626 | ac_status=$? |
| 7627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7628 | rm -f conftest.er1 |
| 7629 | cat conftest.err >&5 |
| 7630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7631 | (exit $ac_status); } && |
| 7632 | { ac_try='test -z "$ac_c_werror_flag" |
| 7633 | || test ! -s conftest.err' |
| 7634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7635 | (eval $ac_try) 2>&5 |
| 7636 | ac_status=$? |
| 7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7638 | (exit $ac_status); }; } && |
| 7639 | { ac_try='test -s conftest$ac_exeext' |
| 7640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7641 | (eval $ac_try) 2>&5 |
| 7642 | ac_status=$? |
| 7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7644 | (exit $ac_status); }; }; then |
| 7645 | ac_cv_lib_dld_shl_load=yes |
| 7646 | else |
| 7647 | echo "$as_me: failed program was:" >&5 |
| 7648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7649 | |
| 7650 | ac_cv_lib_dld_shl_load=no |
| 7651 | fi |
| 7652 | rm -f conftest.err conftest.$ac_objext \ |
| 7653 | conftest$ac_exeext conftest.$ac_ext |
| 7654 | LIBS=$ac_check_lib_save_LIBS |
| 7655 | fi |
| 7656 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7657 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7658 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7659 | |
| 7660 | cat >>confdefs.h <<\_ACEOF |
| 7661 | #define HAVE_SHL_LOAD 1 |
| 7662 | _ACEOF |
| 7663 | |
| 7664 | LIBADD_DL="$LIBADD_DL -ldld" |
| 7665 | else |
| 7666 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7667 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7668 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7670 | else |
| 7671 | ac_check_lib_save_LIBS=$LIBS |
| 7672 | LIBS="-ldl $LIBS" |
| 7673 | cat >conftest.$ac_ext <<_ACEOF |
| 7674 | /* confdefs.h. */ |
| 7675 | _ACEOF |
| 7676 | cat confdefs.h >>conftest.$ac_ext |
| 7677 | cat >>conftest.$ac_ext <<_ACEOF |
| 7678 | /* end confdefs.h. */ |
| 7679 | |
| 7680 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7681 | #ifdef __cplusplus |
| 7682 | extern "C" |
| 7683 | #endif |
| 7684 | /* We use char because int might match the return type of a gcc2 |
| 7685 | builtin and then its argument prototype would still apply. */ |
| 7686 | char dlopen (); |
| 7687 | int |
| 7688 | main () |
| 7689 | { |
| 7690 | dlopen (); |
| 7691 | ; |
| 7692 | return 0; |
| 7693 | } |
| 7694 | _ACEOF |
| 7695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7697 | (eval $ac_link) 2>conftest.er1 |
| 7698 | ac_status=$? |
| 7699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7700 | rm -f conftest.er1 |
| 7701 | cat conftest.err >&5 |
| 7702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7703 | (exit $ac_status); } && |
| 7704 | { ac_try='test -z "$ac_c_werror_flag" |
| 7705 | || test ! -s conftest.err' |
| 7706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7707 | (eval $ac_try) 2>&5 |
| 7708 | ac_status=$? |
| 7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7710 | (exit $ac_status); }; } && |
| 7711 | { ac_try='test -s conftest$ac_exeext' |
| 7712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7713 | (eval $ac_try) 2>&5 |
| 7714 | ac_status=$? |
| 7715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7716 | (exit $ac_status); }; }; then |
| 7717 | ac_cv_lib_dl_dlopen=yes |
| 7718 | else |
| 7719 | echo "$as_me: failed program was:" >&5 |
| 7720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7721 | |
| 7722 | ac_cv_lib_dl_dlopen=no |
| 7723 | fi |
| 7724 | rm -f conftest.err conftest.$ac_objext \ |
| 7725 | conftest$ac_exeext conftest.$ac_ext |
| 7726 | LIBS=$ac_check_lib_save_LIBS |
| 7727 | fi |
| 7728 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7729 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7730 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7731 | |
| 7732 | cat >>confdefs.h <<\_ACEOF |
| 7733 | #define HAVE_LIBDL 1 |
| 7734 | _ACEOF |
| 7735 | |
| 7736 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 7737 | else |
| 7738 | cat >conftest.$ac_ext <<_ACEOF |
| 7739 | /* confdefs.h. */ |
| 7740 | _ACEOF |
| 7741 | cat confdefs.h >>conftest.$ac_ext |
| 7742 | cat >>conftest.$ac_ext <<_ACEOF |
| 7743 | /* end confdefs.h. */ |
| 7744 | #if HAVE_DLFCN_H |
| 7745 | # include <dlfcn.h> |
| 7746 | #endif |
| 7747 | |
| 7748 | int |
| 7749 | main () |
| 7750 | { |
| 7751 | dlopen(0, 0); |
| 7752 | ; |
| 7753 | return 0; |
| 7754 | } |
| 7755 | _ACEOF |
| 7756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7758 | (eval $ac_link) 2>conftest.er1 |
| 7759 | ac_status=$? |
| 7760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7761 | rm -f conftest.er1 |
| 7762 | cat conftest.err >&5 |
| 7763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7764 | (exit $ac_status); } && |
| 7765 | { ac_try='test -z "$ac_c_werror_flag" |
| 7766 | || test ! -s conftest.err' |
| 7767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7768 | (eval $ac_try) 2>&5 |
| 7769 | ac_status=$? |
| 7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7771 | (exit $ac_status); }; } && |
| 7772 | { ac_try='test -s conftest$ac_exeext' |
| 7773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7774 | (eval $ac_try) 2>&5 |
| 7775 | ac_status=$? |
| 7776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7777 | (exit $ac_status); }; }; then |
| 7778 | |
| 7779 | cat >>confdefs.h <<\_ACEOF |
| 7780 | #define HAVE_LIBDL 1 |
| 7781 | _ACEOF |
| 7782 | libltdl_cv_func_dlopen="yes" |
| 7783 | else |
| 7784 | echo "$as_me: failed program was:" >&5 |
| 7785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7786 | |
| 7787 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 7788 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 7789 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 7790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7791 | else |
| 7792 | ac_check_lib_save_LIBS=$LIBS |
| 7793 | LIBS="-lsvld $LIBS" |
| 7794 | cat >conftest.$ac_ext <<_ACEOF |
| 7795 | /* confdefs.h. */ |
| 7796 | _ACEOF |
| 7797 | cat confdefs.h >>conftest.$ac_ext |
| 7798 | cat >>conftest.$ac_ext <<_ACEOF |
| 7799 | /* end confdefs.h. */ |
| 7800 | |
| 7801 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7802 | #ifdef __cplusplus |
| 7803 | extern "C" |
| 7804 | #endif |
| 7805 | /* We use char because int might match the return type of a gcc2 |
| 7806 | builtin and then its argument prototype would still apply. */ |
| 7807 | char dlopen (); |
| 7808 | int |
| 7809 | main () |
| 7810 | { |
| 7811 | dlopen (); |
| 7812 | ; |
| 7813 | return 0; |
| 7814 | } |
| 7815 | _ACEOF |
| 7816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7818 | (eval $ac_link) 2>conftest.er1 |
| 7819 | ac_status=$? |
| 7820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7821 | rm -f conftest.er1 |
| 7822 | cat conftest.err >&5 |
| 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7824 | (exit $ac_status); } && |
| 7825 | { ac_try='test -z "$ac_c_werror_flag" |
| 7826 | || test ! -s conftest.err' |
| 7827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7828 | (eval $ac_try) 2>&5 |
| 7829 | ac_status=$? |
| 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7831 | (exit $ac_status); }; } && |
| 7832 | { ac_try='test -s conftest$ac_exeext' |
| 7833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7834 | (eval $ac_try) 2>&5 |
| 7835 | ac_status=$? |
| 7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7837 | (exit $ac_status); }; }; then |
| 7838 | ac_cv_lib_svld_dlopen=yes |
| 7839 | else |
| 7840 | echo "$as_me: failed program was:" >&5 |
| 7841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7842 | |
| 7843 | ac_cv_lib_svld_dlopen=no |
| 7844 | fi |
| 7845 | rm -f conftest.err conftest.$ac_objext \ |
| 7846 | conftest$ac_exeext conftest.$ac_ext |
| 7847 | LIBS=$ac_check_lib_save_LIBS |
| 7848 | fi |
| 7849 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 7850 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 7851 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 7852 | |
| 7853 | cat >>confdefs.h <<\_ACEOF |
| 7854 | #define HAVE_LIBDL 1 |
| 7855 | _ACEOF |
| 7856 | |
| 7857 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 7858 | else |
| 7859 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 7860 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 7861 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 7862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7863 | else |
| 7864 | ac_check_lib_save_LIBS=$LIBS |
| 7865 | LIBS="-ldld $LIBS" |
| 7866 | cat >conftest.$ac_ext <<_ACEOF |
| 7867 | /* confdefs.h. */ |
| 7868 | _ACEOF |
| 7869 | cat confdefs.h >>conftest.$ac_ext |
| 7870 | cat >>conftest.$ac_ext <<_ACEOF |
| 7871 | /* end confdefs.h. */ |
| 7872 | |
| 7873 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7874 | #ifdef __cplusplus |
| 7875 | extern "C" |
| 7876 | #endif |
| 7877 | /* We use char because int might match the return type of a gcc2 |
| 7878 | builtin and then its argument prototype would still apply. */ |
| 7879 | char dld_link (); |
| 7880 | int |
| 7881 | main () |
| 7882 | { |
| 7883 | dld_link (); |
| 7884 | ; |
| 7885 | return 0; |
| 7886 | } |
| 7887 | _ACEOF |
| 7888 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7890 | (eval $ac_link) 2>conftest.er1 |
| 7891 | ac_status=$? |
| 7892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7893 | rm -f conftest.er1 |
| 7894 | cat conftest.err >&5 |
| 7895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7896 | (exit $ac_status); } && |
| 7897 | { ac_try='test -z "$ac_c_werror_flag" |
| 7898 | || test ! -s conftest.err' |
| 7899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7900 | (eval $ac_try) 2>&5 |
| 7901 | ac_status=$? |
| 7902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7903 | (exit $ac_status); }; } && |
| 7904 | { ac_try='test -s conftest$ac_exeext' |
| 7905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7906 | (eval $ac_try) 2>&5 |
| 7907 | ac_status=$? |
| 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7909 | (exit $ac_status); }; }; then |
| 7910 | ac_cv_lib_dld_dld_link=yes |
| 7911 | else |
| 7912 | echo "$as_me: failed program was:" >&5 |
| 7913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7914 | |
| 7915 | ac_cv_lib_dld_dld_link=no |
| 7916 | fi |
| 7917 | rm -f conftest.err conftest.$ac_objext \ |
| 7918 | conftest$ac_exeext conftest.$ac_ext |
| 7919 | LIBS=$ac_check_lib_save_LIBS |
| 7920 | fi |
| 7921 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 7922 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 7923 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 7924 | |
| 7925 | cat >>confdefs.h <<\_ACEOF |
| 7926 | #define HAVE_DLD 1 |
| 7927 | _ACEOF |
| 7928 | |
| 7929 | LIBADD_DL="$LIBADD_DL -ldld" |
| 7930 | else |
| 7931 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 7932 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 |
| 7933 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 7934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7935 | else |
| 7936 | cat >conftest.$ac_ext <<_ACEOF |
| 7937 | /* confdefs.h. */ |
| 7938 | _ACEOF |
| 7939 | cat confdefs.h >>conftest.$ac_ext |
| 7940 | cat >>conftest.$ac_ext <<_ACEOF |
| 7941 | /* end confdefs.h. */ |
| 7942 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 7943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7944 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 7945 | |
| 7946 | /* System header to define __stub macros and hopefully few prototypes, |
| 7947 | which can conflict with char _dyld_func_lookup (); below. |
| 7948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7949 | <limits.h> exists even on freestanding compilers. */ |
| 7950 | |
| 7951 | #ifdef __STDC__ |
| 7952 | # include <limits.h> |
| 7953 | #else |
| 7954 | # include <assert.h> |
| 7955 | #endif |
| 7956 | |
| 7957 | #undef _dyld_func_lookup |
| 7958 | |
| 7959 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7960 | #ifdef __cplusplus |
| 7961 | extern "C" |
| 7962 | { |
| 7963 | #endif |
| 7964 | /* We use char because int might match the return type of a gcc2 |
| 7965 | builtin and then its argument prototype would still apply. */ |
| 7966 | char _dyld_func_lookup (); |
| 7967 | /* The GNU C library defines this for functions which it implements |
| 7968 | to always fail with ENOSYS. Some functions are actually named |
| 7969 | something starting with __ and the normal name is an alias. */ |
| 7970 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) |
| 7971 | choke me |
| 7972 | #else |
| 7973 | char (*f) () = _dyld_func_lookup; |
| 7974 | #endif |
| 7975 | #ifdef __cplusplus |
| 7976 | } |
| 7977 | #endif |
| 7978 | |
| 7979 | int |
| 7980 | main () |
| 7981 | { |
| 7982 | return f != _dyld_func_lookup; |
| 7983 | ; |
| 7984 | return 0; |
| 7985 | } |
| 7986 | _ACEOF |
| 7987 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7989 | (eval $ac_link) 2>conftest.er1 |
| 7990 | ac_status=$? |
| 7991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7992 | rm -f conftest.er1 |
| 7993 | cat conftest.err >&5 |
| 7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7995 | (exit $ac_status); } && |
| 7996 | { ac_try='test -z "$ac_c_werror_flag" |
| 7997 | || test ! -s conftest.err' |
| 7998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7999 | (eval $ac_try) 2>&5 |
| 8000 | ac_status=$? |
| 8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8002 | (exit $ac_status); }; } && |
| 8003 | { ac_try='test -s conftest$ac_exeext' |
| 8004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8005 | (eval $ac_try) 2>&5 |
| 8006 | ac_status=$? |
| 8007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8008 | (exit $ac_status); }; }; then |
| 8009 | ac_cv_func__dyld_func_lookup=yes |
| 8010 | else |
| 8011 | echo "$as_me: failed program was:" >&5 |
| 8012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8013 | |
| 8014 | ac_cv_func__dyld_func_lookup=no |
| 8015 | fi |
| 8016 | rm -f conftest.err conftest.$ac_objext \ |
| 8017 | conftest$ac_exeext conftest.$ac_ext |
| 8018 | fi |
| 8019 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 8020 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 |
| 8021 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 8022 | |
| 8023 | cat >>confdefs.h <<\_ACEOF |
| 8024 | #define HAVE_DYLD 1 |
| 8025 | _ACEOF |
| 8026 | |
| 8027 | fi |
| 8028 | |
| 8029 | |
| 8030 | fi |
| 8031 | |
| 8032 | |
| 8033 | fi |
| 8034 | |
| 8035 | |
| 8036 | fi |
| 8037 | rm -f conftest.err conftest.$ac_objext \ |
| 8038 | conftest$ac_exeext conftest.$ac_ext |
| 8039 | |
| 8040 | fi |
| 8041 | |
| 8042 | |
| 8043 | fi |
| 8044 | |
| 8045 | |
| 8046 | fi |
| 8047 | |
| 8048 | |
| 8049 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 8050 | then |
| 8051 | lt_save_LIBS="$LIBS" |
| 8052 | LIBS="$LIBS $LIBADD_DL" |
| 8053 | |
| 8054 | for ac_func in dlerror |
| 8055 | do |
| 8056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8057 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8059 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8061 | else |
| 8062 | cat >conftest.$ac_ext <<_ACEOF |
| 8063 | /* confdefs.h. */ |
| 8064 | _ACEOF |
| 8065 | cat confdefs.h >>conftest.$ac_ext |
| 8066 | cat >>conftest.$ac_ext <<_ACEOF |
| 8067 | /* end confdefs.h. */ |
| 8068 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8070 | #define $ac_func innocuous_$ac_func |
| 8071 | |
| 8072 | /* System header to define __stub macros and hopefully few prototypes, |
| 8073 | which can conflict with char $ac_func (); below. |
| 8074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8075 | <limits.h> exists even on freestanding compilers. */ |
| 8076 | |
| 8077 | #ifdef __STDC__ |
| 8078 | # include <limits.h> |
| 8079 | #else |
| 8080 | # include <assert.h> |
| 8081 | #endif |
| 8082 | |
| 8083 | #undef $ac_func |
| 8084 | |
| 8085 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8086 | #ifdef __cplusplus |
| 8087 | extern "C" |
| 8088 | { |
| 8089 | #endif |
| 8090 | /* We use char because int might match the return type of a gcc2 |
| 8091 | builtin and then its argument prototype would still apply. */ |
| 8092 | char $ac_func (); |
| 8093 | /* The GNU C library defines this for functions which it implements |
| 8094 | to always fail with ENOSYS. Some functions are actually named |
| 8095 | something starting with __ and the normal name is an alias. */ |
| 8096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8097 | choke me |
| 8098 | #else |
| 8099 | char (*f) () = $ac_func; |
| 8100 | #endif |
| 8101 | #ifdef __cplusplus |
| 8102 | } |
| 8103 | #endif |
| 8104 | |
| 8105 | int |
| 8106 | main () |
| 8107 | { |
| 8108 | return f != $ac_func; |
| 8109 | ; |
| 8110 | return 0; |
| 8111 | } |
| 8112 | _ACEOF |
| 8113 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8115 | (eval $ac_link) 2>conftest.er1 |
| 8116 | ac_status=$? |
| 8117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8118 | rm -f conftest.er1 |
| 8119 | cat conftest.err >&5 |
| 8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8121 | (exit $ac_status); } && |
| 8122 | { ac_try='test -z "$ac_c_werror_flag" |
| 8123 | || test ! -s conftest.err' |
| 8124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8125 | (eval $ac_try) 2>&5 |
| 8126 | ac_status=$? |
| 8127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8128 | (exit $ac_status); }; } && |
| 8129 | { ac_try='test -s conftest$ac_exeext' |
| 8130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8131 | (eval $ac_try) 2>&5 |
| 8132 | ac_status=$? |
| 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8134 | (exit $ac_status); }; }; then |
| 8135 | eval "$as_ac_var=yes" |
| 8136 | else |
| 8137 | echo "$as_me: failed program was:" >&5 |
| 8138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8139 | |
| 8140 | eval "$as_ac_var=no" |
| 8141 | fi |
| 8142 | rm -f conftest.err conftest.$ac_objext \ |
| 8143 | conftest$ac_exeext conftest.$ac_ext |
| 8144 | fi |
| 8145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8146 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8147 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8148 | cat >>confdefs.h <<_ACEOF |
| 8149 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8150 | _ACEOF |
| 8151 | |
| 8152 | fi |
| 8153 | done |
| 8154 | |
| 8155 | LIBS="$lt_save_LIBS" |
| 8156 | fi |
| 8157 | ac_ext=c |
| 8158 | ac_cpp='$CPP $CPPFLAGS' |
| 8159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8162 | |
| 8163 | |
| 8164 | |
| 8165 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 8166 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 |
| 8167 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 8168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8169 | else |
| 8170 | ac_cv_sys_symbol_underscore=no |
| 8171 | cat > conftest.$ac_ext <<EOF |
| 8172 | void nm_test_func(){} |
| 8173 | int main(){nm_test_func;return 0;} |
| 8174 | EOF |
| 8175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8176 | (eval $ac_compile) 2>&5 |
| 8177 | ac_status=$? |
| 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8179 | (exit $ac_status); }; then |
| 8180 | # Now try to grab the symbols. |
| 8181 | ac_nlist=conftest.nm |
| 8182 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 8183 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 8184 | ac_status=$? |
| 8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8186 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 8187 | # See whether the symbols have a leading underscore. |
| 8188 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 8189 | ac_cv_sys_symbol_underscore=yes |
| 8190 | else |
| 8191 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 8192 | : |
| 8193 | else |
| 8194 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 8195 | fi |
| 8196 | fi |
| 8197 | else |
| 8198 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8199 | fi |
| 8200 | else |
| 8201 | echo "configure: failed program was:" >&5 |
| 8202 | cat conftest.c >&5 |
| 8203 | fi |
| 8204 | rm -rf conftest* |
| 8205 | |
| 8206 | fi |
| 8207 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 8208 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 |
| 8209 | |
| 8210 | |
| 8211 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 8212 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 8213 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 8214 | echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 8215 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 |
| 8216 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 8217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8218 | else |
| 8219 | libltdl_cv_need_uscore=unknown |
| 8220 | save_LIBS="$LIBS" |
| 8221 | LIBS="$LIBS $LIBADD_DL" |
| 8222 | if test "$cross_compiling" = yes; then : |
| 8223 | libltdl_cv_need_uscore=cross |
| 8224 | else |
| 8225 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8226 | lt_status=$lt_dlunknown |
| 8227 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 8228 | #line 8228 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8229 | #include "confdefs.h" |
| 8230 | |
| 8231 | #if HAVE_DLFCN_H |
| 8232 | #include <dlfcn.h> |
| 8233 | #endif |
| 8234 | |
| 8235 | #include <stdio.h> |
| 8236 | |
| 8237 | #ifdef RTLD_GLOBAL |
| 8238 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8239 | #else |
| 8240 | # ifdef DL_GLOBAL |
| 8241 | # define LT_DLGLOBAL DL_GLOBAL |
| 8242 | # else |
| 8243 | # define LT_DLGLOBAL 0 |
| 8244 | # endif |
| 8245 | #endif |
| 8246 | |
| 8247 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8248 | find out it does not work in some platform. */ |
| 8249 | #ifndef LT_DLLAZY_OR_NOW |
| 8250 | # ifdef RTLD_LAZY |
| 8251 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8252 | # else |
| 8253 | # ifdef DL_LAZY |
| 8254 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8255 | # else |
| 8256 | # ifdef RTLD_NOW |
| 8257 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8258 | # else |
| 8259 | # ifdef DL_NOW |
| 8260 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8261 | # else |
| 8262 | # define LT_DLLAZY_OR_NOW 0 |
| 8263 | # endif |
| 8264 | # endif |
| 8265 | # endif |
| 8266 | # endif |
| 8267 | #endif |
| 8268 | |
| 8269 | #ifdef __cplusplus |
| 8270 | extern "C" void exit (int); |
| 8271 | #endif |
| 8272 | |
| 8273 | void fnord() { int i=42;} |
| 8274 | int main () |
| 8275 | { |
| 8276 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8277 | int status = $lt_dlunknown; |
| 8278 | |
| 8279 | if (self) |
| 8280 | { |
| 8281 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8282 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8283 | /* dlclose (self); */ |
| 8284 | } |
| 8285 | |
| 8286 | exit (status); |
| 8287 | } |
| 8288 | EOF |
| 8289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8290 | (eval $ac_link) 2>&5 |
| 8291 | ac_status=$? |
| 8292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8293 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8294 | (./conftest; exit; ) 2>/dev/null |
| 8295 | lt_status=$? |
| 8296 | case x$lt_status in |
| 8297 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 8298 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 8299 | x$lt_unknown|x*) ;; |
| 8300 | esac |
| 8301 | else : |
| 8302 | # compilation failed |
| 8303 | |
| 8304 | fi |
| 8305 | fi |
| 8306 | rm -fr conftest* |
| 8307 | |
| 8308 | LIBS="$save_LIBS" |
| 8309 | |
| 8310 | fi |
| 8311 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 8312 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 |
| 8313 | fi |
| 8314 | fi |
| 8315 | |
| 8316 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 8317 | |
| 8318 | cat >>confdefs.h <<\_ACEOF |
| 8319 | #define NEED_USCORE 1 |
| 8320 | _ACEOF |
| 8321 | |
| 8322 | fi |
| 8323 | |
| 8324 | |
| 8325 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 8326 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 |
| 8327 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 8328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8329 | else |
| 8330 | # PORTME does your system automatically load deplibs for dlopen? |
| 8331 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 8332 | # For now, we just catch OSes we know something about -- in the |
| 8333 | # future, we'll try test this programmatically. |
| 8334 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8335 | case "$host_os" in |
| 8336 | aix3*|aix4.1.*|aix4.2.*) |
| 8337 | # Unknown whether this is true for these versions of AIX, but |
| 8338 | # we want this `case' here to explicitly catch those versions. |
| 8339 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8340 | ;; |
| 8341 | aix[45]*) |
| 8342 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8343 | ;; |
| 8344 | darwin*) |
| 8345 | # Assuming the user has installed a libdl from somewhere, this is true |
| 8346 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 8347 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8348 | ;; |
| 8349 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 8350 | # GNU and its variants, using gnu ld.so (Glibc) |
| 8351 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8352 | ;; |
| 8353 | hpux10*|hpux11*) |
| 8354 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8355 | ;; |
| 8356 | irix[12345]*|irix6.[01]*) |
| 8357 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 8358 | # know how it worked for any of those versions. |
| 8359 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8360 | ;; |
| 8361 | irix*) |
| 8362 | # The case above catches anything before 6.2, and it's known that |
| 8363 | # at 6.2 and later dlopen does load deplibs. |
| 8364 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8365 | ;; |
| 8366 | netbsd*) |
| 8367 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8368 | ;; |
| 8369 | openbsd*) |
| 8370 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8371 | ;; |
| 8372 | osf[1234]*) |
| 8373 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 8374 | # it did *not* use an RPATH in a shared library to find objects the |
| 8375 | # library depends on, so we explictly say `no'. |
| 8376 | libltdl_cv_sys_dlopen_deplibs=no |
| 8377 | ;; |
| 8378 | osf5.0|osf5.0a|osf5.1) |
| 8379 | # dlopen *does* load deplibs and with the right loader patch applied |
| 8380 | # it even uses RPATH in a shared library to search for shared objects |
| 8381 | # that the library depends on, but there's no easy way to know if that |
| 8382 | # patch is installed. Since this is the case, all we can really |
| 8383 | # say is unknown -- it depends on the patch being installed. If |
| 8384 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 8385 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8386 | ;; |
| 8387 | osf*) |
| 8388 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 8389 | # the comments above for what we know about them. |
| 8390 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 8391 | # is used to find them so we can finally say `yes'. |
| 8392 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8393 | ;; |
| 8394 | solaris*) |
| 8395 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8396 | ;; |
| 8397 | esac |
| 8398 | |
| 8399 | fi |
| 8400 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 8401 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 |
| 8402 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 8403 | |
| 8404 | cat >>confdefs.h <<\_ACEOF |
| 8405 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 8406 | _ACEOF |
| 8407 | |
| 8408 | fi |
| 8409 | |
| 8410 | |
| 8411 | for ac_header in argz.h |
| 8412 | do |
| 8413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8419 | fi |
| 8420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8422 | else |
| 8423 | # Is the header compilable? |
| 8424 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8425 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8426 | cat >conftest.$ac_ext <<_ACEOF |
| 8427 | /* confdefs.h. */ |
| 8428 | _ACEOF |
| 8429 | cat confdefs.h >>conftest.$ac_ext |
| 8430 | cat >>conftest.$ac_ext <<_ACEOF |
| 8431 | /* end confdefs.h. */ |
| 8432 | $ac_includes_default |
| 8433 | #include <$ac_header> |
| 8434 | _ACEOF |
| 8435 | rm -f conftest.$ac_objext |
| 8436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8437 | (eval $ac_compile) 2>conftest.er1 |
| 8438 | ac_status=$? |
| 8439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8440 | rm -f conftest.er1 |
| 8441 | cat conftest.err >&5 |
| 8442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8443 | (exit $ac_status); } && |
| 8444 | { ac_try='test -z "$ac_c_werror_flag" |
| 8445 | || test ! -s conftest.err' |
| 8446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8447 | (eval $ac_try) 2>&5 |
| 8448 | ac_status=$? |
| 8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8450 | (exit $ac_status); }; } && |
| 8451 | { ac_try='test -s conftest.$ac_objext' |
| 8452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8453 | (eval $ac_try) 2>&5 |
| 8454 | ac_status=$? |
| 8455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8456 | (exit $ac_status); }; }; then |
| 8457 | ac_header_compiler=yes |
| 8458 | else |
| 8459 | echo "$as_me: failed program was:" >&5 |
| 8460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8461 | |
| 8462 | ac_header_compiler=no |
| 8463 | fi |
| 8464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8466 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8467 | |
| 8468 | # Is the header present? |
| 8469 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8470 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8471 | cat >conftest.$ac_ext <<_ACEOF |
| 8472 | /* confdefs.h. */ |
| 8473 | _ACEOF |
| 8474 | cat confdefs.h >>conftest.$ac_ext |
| 8475 | cat >>conftest.$ac_ext <<_ACEOF |
| 8476 | /* end confdefs.h. */ |
| 8477 | #include <$ac_header> |
| 8478 | _ACEOF |
| 8479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8481 | ac_status=$? |
| 8482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8483 | rm -f conftest.er1 |
| 8484 | cat conftest.err >&5 |
| 8485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8486 | (exit $ac_status); } >/dev/null; then |
| 8487 | if test -s conftest.err; then |
| 8488 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8490 | else |
| 8491 | ac_cpp_err= |
| 8492 | fi |
| 8493 | else |
| 8494 | ac_cpp_err=yes |
| 8495 | fi |
| 8496 | if test -z "$ac_cpp_err"; then |
| 8497 | ac_header_preproc=yes |
| 8498 | else |
| 8499 | echo "$as_me: failed program was:" >&5 |
| 8500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8501 | |
| 8502 | ac_header_preproc=no |
| 8503 | fi |
| 8504 | rm -f conftest.err conftest.$ac_ext |
| 8505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8506 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8507 | |
| 8508 | # So? What about this header? |
| 8509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8510 | yes:no: ) |
| 8511 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8512 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8514 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8515 | ac_header_preproc=yes |
| 8516 | ;; |
| 8517 | no:yes:* ) |
| 8518 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8519 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8520 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8521 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8522 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8523 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8524 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8525 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8527 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8528 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8529 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8530 | ( |
| 8531 | cat <<\_ASBOX |
| 8532 | ## ----------------------------------- ## |
| 8533 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8534 | ## ----------------------------------- ## |
| 8535 | _ASBOX |
| 8536 | ) | |
| 8537 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8538 | ;; |
| 8539 | esac |
| 8540 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8544 | else |
| 8545 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8546 | fi |
| 8547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8549 | |
| 8550 | fi |
| 8551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8552 | cat >>confdefs.h <<_ACEOF |
| 8553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8554 | _ACEOF |
| 8555 | |
| 8556 | fi |
| 8557 | |
| 8558 | done |
| 8559 | |
| 8560 | |
| 8561 | echo "$as_me:$LINENO: checking for error_t" >&5 |
| 8562 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 |
| 8563 | if test "${ac_cv_type_error_t+set}" = set; then |
| 8564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8565 | else |
| 8566 | cat >conftest.$ac_ext <<_ACEOF |
| 8567 | /* confdefs.h. */ |
| 8568 | _ACEOF |
| 8569 | cat confdefs.h >>conftest.$ac_ext |
| 8570 | cat >>conftest.$ac_ext <<_ACEOF |
| 8571 | /* end confdefs.h. */ |
| 8572 | #if HAVE_ARGZ_H |
| 8573 | # include <argz.h> |
| 8574 | #endif |
| 8575 | |
| 8576 | int |
| 8577 | main () |
| 8578 | { |
| 8579 | if ((error_t *) 0) |
| 8580 | return 0; |
| 8581 | if (sizeof (error_t)) |
| 8582 | return 0; |
| 8583 | ; |
| 8584 | return 0; |
| 8585 | } |
| 8586 | _ACEOF |
| 8587 | rm -f conftest.$ac_objext |
| 8588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8589 | (eval $ac_compile) 2>conftest.er1 |
| 8590 | ac_status=$? |
| 8591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8592 | rm -f conftest.er1 |
| 8593 | cat conftest.err >&5 |
| 8594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8595 | (exit $ac_status); } && |
| 8596 | { ac_try='test -z "$ac_c_werror_flag" |
| 8597 | || test ! -s conftest.err' |
| 8598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8599 | (eval $ac_try) 2>&5 |
| 8600 | ac_status=$? |
| 8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8602 | (exit $ac_status); }; } && |
| 8603 | { ac_try='test -s conftest.$ac_objext' |
| 8604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8605 | (eval $ac_try) 2>&5 |
| 8606 | ac_status=$? |
| 8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8608 | (exit $ac_status); }; }; then |
| 8609 | ac_cv_type_error_t=yes |
| 8610 | else |
| 8611 | echo "$as_me: failed program was:" >&5 |
| 8612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8613 | |
| 8614 | ac_cv_type_error_t=no |
| 8615 | fi |
| 8616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8617 | fi |
| 8618 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 8619 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 |
| 8620 | if test $ac_cv_type_error_t = yes; then |
| 8621 | |
| 8622 | cat >>confdefs.h <<_ACEOF |
| 8623 | #define HAVE_ERROR_T 1 |
| 8624 | _ACEOF |
| 8625 | |
| 8626 | |
| 8627 | else |
| 8628 | |
| 8629 | cat >>confdefs.h <<\_ACEOF |
| 8630 | #define error_t int |
| 8631 | _ACEOF |
| 8632 | |
| 8633 | fi |
| 8634 | |
| 8635 | |
| 8636 | |
| 8637 | |
| 8638 | |
| 8639 | |
| 8640 | |
| 8641 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 8642 | do |
| 8643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8646 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8648 | else |
| 8649 | cat >conftest.$ac_ext <<_ACEOF |
| 8650 | /* confdefs.h. */ |
| 8651 | _ACEOF |
| 8652 | cat confdefs.h >>conftest.$ac_ext |
| 8653 | cat >>conftest.$ac_ext <<_ACEOF |
| 8654 | /* end confdefs.h. */ |
| 8655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8657 | #define $ac_func innocuous_$ac_func |
| 8658 | |
| 8659 | /* System header to define __stub macros and hopefully few prototypes, |
| 8660 | which can conflict with char $ac_func (); below. |
| 8661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8662 | <limits.h> exists even on freestanding compilers. */ |
| 8663 | |
| 8664 | #ifdef __STDC__ |
| 8665 | # include <limits.h> |
| 8666 | #else |
| 8667 | # include <assert.h> |
| 8668 | #endif |
| 8669 | |
| 8670 | #undef $ac_func |
| 8671 | |
| 8672 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8673 | #ifdef __cplusplus |
| 8674 | extern "C" |
| 8675 | { |
| 8676 | #endif |
| 8677 | /* We use char because int might match the return type of a gcc2 |
| 8678 | builtin and then its argument prototype would still apply. */ |
| 8679 | char $ac_func (); |
| 8680 | /* The GNU C library defines this for functions which it implements |
| 8681 | to always fail with ENOSYS. Some functions are actually named |
| 8682 | something starting with __ and the normal name is an alias. */ |
| 8683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8684 | choke me |
| 8685 | #else |
| 8686 | char (*f) () = $ac_func; |
| 8687 | #endif |
| 8688 | #ifdef __cplusplus |
| 8689 | } |
| 8690 | #endif |
| 8691 | |
| 8692 | int |
| 8693 | main () |
| 8694 | { |
| 8695 | return f != $ac_func; |
| 8696 | ; |
| 8697 | return 0; |
| 8698 | } |
| 8699 | _ACEOF |
| 8700 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8702 | (eval $ac_link) 2>conftest.er1 |
| 8703 | ac_status=$? |
| 8704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8705 | rm -f conftest.er1 |
| 8706 | cat conftest.err >&5 |
| 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8708 | (exit $ac_status); } && |
| 8709 | { ac_try='test -z "$ac_c_werror_flag" |
| 8710 | || test ! -s conftest.err' |
| 8711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8712 | (eval $ac_try) 2>&5 |
| 8713 | ac_status=$? |
| 8714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8715 | (exit $ac_status); }; } && |
| 8716 | { ac_try='test -s conftest$ac_exeext' |
| 8717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8718 | (eval $ac_try) 2>&5 |
| 8719 | ac_status=$? |
| 8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8721 | (exit $ac_status); }; }; then |
| 8722 | eval "$as_ac_var=yes" |
| 8723 | else |
| 8724 | echo "$as_me: failed program was:" >&5 |
| 8725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8726 | |
| 8727 | eval "$as_ac_var=no" |
| 8728 | fi |
| 8729 | rm -f conftest.err conftest.$ac_objext \ |
| 8730 | conftest$ac_exeext conftest.$ac_ext |
| 8731 | fi |
| 8732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8734 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8735 | cat >>confdefs.h <<_ACEOF |
| 8736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8737 | _ACEOF |
| 8738 | |
| 8739 | fi |
| 8740 | done |
| 8741 | |
| 8742 | |
| 8743 | |
| 8744 | |
| 8745 | |
| 8746 | |
| 8747 | |
| 8748 | |
| 8749 | |
| 8750 | |
| 8751 | |
| 8752 | |
| 8753 | |
| 8754 | |
| 8755 | |
| 8756 | |
| 8757 | |
| 8758 | |
| 8759 | |
| 8760 | |
| 8761 | |
| 8762 | |
| 8763 | |
| 8764 | |
| 8765 | |
| 8766 | |
| 8767 | |
| 8768 | |
| 8769 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 8770 | stdio.h unistd.h |
| 8771 | do |
| 8772 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8774 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8775 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8778 | fi |
| 8779 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8780 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8781 | else |
| 8782 | # Is the header compilable? |
| 8783 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8784 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8785 | cat >conftest.$ac_ext <<_ACEOF |
| 8786 | /* confdefs.h. */ |
| 8787 | _ACEOF |
| 8788 | cat confdefs.h >>conftest.$ac_ext |
| 8789 | cat >>conftest.$ac_ext <<_ACEOF |
| 8790 | /* end confdefs.h. */ |
| 8791 | $ac_includes_default |
| 8792 | #include <$ac_header> |
| 8793 | _ACEOF |
| 8794 | rm -f conftest.$ac_objext |
| 8795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8796 | (eval $ac_compile) 2>conftest.er1 |
| 8797 | ac_status=$? |
| 8798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8799 | rm -f conftest.er1 |
| 8800 | cat conftest.err >&5 |
| 8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8802 | (exit $ac_status); } && |
| 8803 | { ac_try='test -z "$ac_c_werror_flag" |
| 8804 | || test ! -s conftest.err' |
| 8805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8806 | (eval $ac_try) 2>&5 |
| 8807 | ac_status=$? |
| 8808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8809 | (exit $ac_status); }; } && |
| 8810 | { ac_try='test -s conftest.$ac_objext' |
| 8811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8812 | (eval $ac_try) 2>&5 |
| 8813 | ac_status=$? |
| 8814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8815 | (exit $ac_status); }; }; then |
| 8816 | ac_header_compiler=yes |
| 8817 | else |
| 8818 | echo "$as_me: failed program was:" >&5 |
| 8819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8820 | |
| 8821 | ac_header_compiler=no |
| 8822 | fi |
| 8823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8824 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8825 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8826 | |
| 8827 | # Is the header present? |
| 8828 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8829 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8830 | cat >conftest.$ac_ext <<_ACEOF |
| 8831 | /* confdefs.h. */ |
| 8832 | _ACEOF |
| 8833 | cat confdefs.h >>conftest.$ac_ext |
| 8834 | cat >>conftest.$ac_ext <<_ACEOF |
| 8835 | /* end confdefs.h. */ |
| 8836 | #include <$ac_header> |
| 8837 | _ACEOF |
| 8838 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8839 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8840 | ac_status=$? |
| 8841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8842 | rm -f conftest.er1 |
| 8843 | cat conftest.err >&5 |
| 8844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8845 | (exit $ac_status); } >/dev/null; then |
| 8846 | if test -s conftest.err; then |
| 8847 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8848 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8849 | else |
| 8850 | ac_cpp_err= |
| 8851 | fi |
| 8852 | else |
| 8853 | ac_cpp_err=yes |
| 8854 | fi |
| 8855 | if test -z "$ac_cpp_err"; then |
| 8856 | ac_header_preproc=yes |
| 8857 | else |
| 8858 | echo "$as_me: failed program was:" >&5 |
| 8859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8860 | |
| 8861 | ac_header_preproc=no |
| 8862 | fi |
| 8863 | rm -f conftest.err conftest.$ac_ext |
| 8864 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8865 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8866 | |
| 8867 | # So? What about this header? |
| 8868 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8869 | yes:no: ) |
| 8870 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8871 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8873 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8874 | ac_header_preproc=yes |
| 8875 | ;; |
| 8876 | no:yes:* ) |
| 8877 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8878 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8879 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8880 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8881 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8882 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8883 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8884 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8886 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8887 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8888 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8889 | ( |
| 8890 | cat <<\_ASBOX |
| 8891 | ## ----------------------------------- ## |
| 8892 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8893 | ## ----------------------------------- ## |
| 8894 | _ASBOX |
| 8895 | ) | |
| 8896 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8897 | ;; |
| 8898 | esac |
| 8899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8903 | else |
| 8904 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8905 | fi |
| 8906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8907 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8908 | |
| 8909 | fi |
| 8910 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8911 | cat >>confdefs.h <<_ACEOF |
| 8912 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8913 | _ACEOF |
| 8914 | |
| 8915 | fi |
| 8916 | |
| 8917 | done |
| 8918 | |
| 8919 | |
| 8920 | |
| 8921 | |
| 8922 | |
| 8923 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 8924 | do |
| 8925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8931 | fi |
| 8932 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8933 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8934 | else |
| 8935 | # Is the header compilable? |
| 8936 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8937 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8938 | cat >conftest.$ac_ext <<_ACEOF |
| 8939 | /* confdefs.h. */ |
| 8940 | _ACEOF |
| 8941 | cat confdefs.h >>conftest.$ac_ext |
| 8942 | cat >>conftest.$ac_ext <<_ACEOF |
| 8943 | /* end confdefs.h. */ |
| 8944 | $ac_includes_default |
| 8945 | #include <$ac_header> |
| 8946 | _ACEOF |
| 8947 | rm -f conftest.$ac_objext |
| 8948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8949 | (eval $ac_compile) 2>conftest.er1 |
| 8950 | ac_status=$? |
| 8951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8952 | rm -f conftest.er1 |
| 8953 | cat conftest.err >&5 |
| 8954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8955 | (exit $ac_status); } && |
| 8956 | { ac_try='test -z "$ac_c_werror_flag" |
| 8957 | || test ! -s conftest.err' |
| 8958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8959 | (eval $ac_try) 2>&5 |
| 8960 | ac_status=$? |
| 8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8962 | (exit $ac_status); }; } && |
| 8963 | { ac_try='test -s conftest.$ac_objext' |
| 8964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8965 | (eval $ac_try) 2>&5 |
| 8966 | ac_status=$? |
| 8967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8968 | (exit $ac_status); }; }; then |
| 8969 | ac_header_compiler=yes |
| 8970 | else |
| 8971 | echo "$as_me: failed program was:" >&5 |
| 8972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8973 | |
| 8974 | ac_header_compiler=no |
| 8975 | fi |
| 8976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8977 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8978 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8979 | |
| 8980 | # Is the header present? |
| 8981 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8982 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8983 | cat >conftest.$ac_ext <<_ACEOF |
| 8984 | /* confdefs.h. */ |
| 8985 | _ACEOF |
| 8986 | cat confdefs.h >>conftest.$ac_ext |
| 8987 | cat >>conftest.$ac_ext <<_ACEOF |
| 8988 | /* end confdefs.h. */ |
| 8989 | #include <$ac_header> |
| 8990 | _ACEOF |
| 8991 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8992 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8993 | ac_status=$? |
| 8994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8995 | rm -f conftest.er1 |
| 8996 | cat conftest.err >&5 |
| 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8998 | (exit $ac_status); } >/dev/null; then |
| 8999 | if test -s conftest.err; then |
| 9000 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9001 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9002 | else |
| 9003 | ac_cpp_err= |
| 9004 | fi |
| 9005 | else |
| 9006 | ac_cpp_err=yes |
| 9007 | fi |
| 9008 | if test -z "$ac_cpp_err"; then |
| 9009 | ac_header_preproc=yes |
| 9010 | else |
| 9011 | echo "$as_me: failed program was:" >&5 |
| 9012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9013 | |
| 9014 | ac_header_preproc=no |
| 9015 | fi |
| 9016 | rm -f conftest.err conftest.$ac_ext |
| 9017 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9018 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9019 | |
| 9020 | # So? What about this header? |
| 9021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9022 | yes:no: ) |
| 9023 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9024 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9025 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9026 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9027 | ac_header_preproc=yes |
| 9028 | ;; |
| 9029 | no:yes:* ) |
| 9030 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9031 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9032 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9033 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9034 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9035 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9036 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9037 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9040 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9041 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9042 | ( |
| 9043 | cat <<\_ASBOX |
| 9044 | ## ----------------------------------- ## |
| 9045 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9046 | ## ----------------------------------- ## |
| 9047 | _ASBOX |
| 9048 | ) | |
| 9049 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9050 | ;; |
| 9051 | esac |
| 9052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9056 | else |
| 9057 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9058 | fi |
| 9059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9060 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9061 | |
| 9062 | fi |
| 9063 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9064 | cat >>confdefs.h <<_ACEOF |
| 9065 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9066 | _ACEOF |
| 9067 | |
| 9068 | fi |
| 9069 | |
| 9070 | done |
| 9071 | |
| 9072 | |
| 9073 | |
| 9074 | for ac_header in string.h strings.h |
| 9075 | do |
| 9076 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9078 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9082 | fi |
| 9083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9084 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9085 | else |
| 9086 | # Is the header compilable? |
| 9087 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9088 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9089 | cat >conftest.$ac_ext <<_ACEOF |
| 9090 | /* confdefs.h. */ |
| 9091 | _ACEOF |
| 9092 | cat confdefs.h >>conftest.$ac_ext |
| 9093 | cat >>conftest.$ac_ext <<_ACEOF |
| 9094 | /* end confdefs.h. */ |
| 9095 | $ac_includes_default |
| 9096 | #include <$ac_header> |
| 9097 | _ACEOF |
| 9098 | rm -f conftest.$ac_objext |
| 9099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9100 | (eval $ac_compile) 2>conftest.er1 |
| 9101 | ac_status=$? |
| 9102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9103 | rm -f conftest.er1 |
| 9104 | cat conftest.err >&5 |
| 9105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9106 | (exit $ac_status); } && |
| 9107 | { ac_try='test -z "$ac_c_werror_flag" |
| 9108 | || test ! -s conftest.err' |
| 9109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9110 | (eval $ac_try) 2>&5 |
| 9111 | ac_status=$? |
| 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9113 | (exit $ac_status); }; } && |
| 9114 | { ac_try='test -s conftest.$ac_objext' |
| 9115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9116 | (eval $ac_try) 2>&5 |
| 9117 | ac_status=$? |
| 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9119 | (exit $ac_status); }; }; then |
| 9120 | ac_header_compiler=yes |
| 9121 | else |
| 9122 | echo "$as_me: failed program was:" >&5 |
| 9123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9124 | |
| 9125 | ac_header_compiler=no |
| 9126 | fi |
| 9127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9128 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9129 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9130 | |
| 9131 | # Is the header present? |
| 9132 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9133 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9134 | cat >conftest.$ac_ext <<_ACEOF |
| 9135 | /* confdefs.h. */ |
| 9136 | _ACEOF |
| 9137 | cat confdefs.h >>conftest.$ac_ext |
| 9138 | cat >>conftest.$ac_ext <<_ACEOF |
| 9139 | /* end confdefs.h. */ |
| 9140 | #include <$ac_header> |
| 9141 | _ACEOF |
| 9142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9144 | ac_status=$? |
| 9145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9146 | rm -f conftest.er1 |
| 9147 | cat conftest.err >&5 |
| 9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9149 | (exit $ac_status); } >/dev/null; then |
| 9150 | if test -s conftest.err; then |
| 9151 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9152 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9153 | else |
| 9154 | ac_cpp_err= |
| 9155 | fi |
| 9156 | else |
| 9157 | ac_cpp_err=yes |
| 9158 | fi |
| 9159 | if test -z "$ac_cpp_err"; then |
| 9160 | ac_header_preproc=yes |
| 9161 | else |
| 9162 | echo "$as_me: failed program was:" >&5 |
| 9163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9164 | |
| 9165 | ac_header_preproc=no |
| 9166 | fi |
| 9167 | rm -f conftest.err conftest.$ac_ext |
| 9168 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9169 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9170 | |
| 9171 | # So? What about this header? |
| 9172 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9173 | yes:no: ) |
| 9174 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9175 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9177 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9178 | ac_header_preproc=yes |
| 9179 | ;; |
| 9180 | no:yes:* ) |
| 9181 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9182 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9183 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9184 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9185 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9186 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9187 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9188 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9189 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9190 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9191 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9192 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9193 | ( |
| 9194 | cat <<\_ASBOX |
| 9195 | ## ----------------------------------- ## |
| 9196 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9197 | ## ----------------------------------- ## |
| 9198 | _ASBOX |
| 9199 | ) | |
| 9200 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9201 | ;; |
| 9202 | esac |
| 9203 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9207 | else |
| 9208 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9209 | fi |
| 9210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9212 | |
| 9213 | fi |
| 9214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9215 | cat >>confdefs.h <<_ACEOF |
| 9216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9217 | _ACEOF |
| 9218 | break |
| 9219 | fi |
| 9220 | |
| 9221 | done |
| 9222 | |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | for ac_func in strchr index |
| 9227 | do |
| 9228 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9229 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9231 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9233 | else |
| 9234 | cat >conftest.$ac_ext <<_ACEOF |
| 9235 | /* confdefs.h. */ |
| 9236 | _ACEOF |
| 9237 | cat confdefs.h >>conftest.$ac_ext |
| 9238 | cat >>conftest.$ac_ext <<_ACEOF |
| 9239 | /* end confdefs.h. */ |
| 9240 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9242 | #define $ac_func innocuous_$ac_func |
| 9243 | |
| 9244 | /* System header to define __stub macros and hopefully few prototypes, |
| 9245 | which can conflict with char $ac_func (); below. |
| 9246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9247 | <limits.h> exists even on freestanding compilers. */ |
| 9248 | |
| 9249 | #ifdef __STDC__ |
| 9250 | # include <limits.h> |
| 9251 | #else |
| 9252 | # include <assert.h> |
| 9253 | #endif |
| 9254 | |
| 9255 | #undef $ac_func |
| 9256 | |
| 9257 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9258 | #ifdef __cplusplus |
| 9259 | extern "C" |
| 9260 | { |
| 9261 | #endif |
| 9262 | /* We use char because int might match the return type of a gcc2 |
| 9263 | builtin and then its argument prototype would still apply. */ |
| 9264 | char $ac_func (); |
| 9265 | /* The GNU C library defines this for functions which it implements |
| 9266 | to always fail with ENOSYS. Some functions are actually named |
| 9267 | something starting with __ and the normal name is an alias. */ |
| 9268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9269 | choke me |
| 9270 | #else |
| 9271 | char (*f) () = $ac_func; |
| 9272 | #endif |
| 9273 | #ifdef __cplusplus |
| 9274 | } |
| 9275 | #endif |
| 9276 | |
| 9277 | int |
| 9278 | main () |
| 9279 | { |
| 9280 | return f != $ac_func; |
| 9281 | ; |
| 9282 | return 0; |
| 9283 | } |
| 9284 | _ACEOF |
| 9285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9287 | (eval $ac_link) 2>conftest.er1 |
| 9288 | ac_status=$? |
| 9289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9290 | rm -f conftest.er1 |
| 9291 | cat conftest.err >&5 |
| 9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9293 | (exit $ac_status); } && |
| 9294 | { ac_try='test -z "$ac_c_werror_flag" |
| 9295 | || test ! -s conftest.err' |
| 9296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9297 | (eval $ac_try) 2>&5 |
| 9298 | ac_status=$? |
| 9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9300 | (exit $ac_status); }; } && |
| 9301 | { ac_try='test -s conftest$ac_exeext' |
| 9302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9303 | (eval $ac_try) 2>&5 |
| 9304 | ac_status=$? |
| 9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9306 | (exit $ac_status); }; }; then |
| 9307 | eval "$as_ac_var=yes" |
| 9308 | else |
| 9309 | echo "$as_me: failed program was:" >&5 |
| 9310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9311 | |
| 9312 | eval "$as_ac_var=no" |
| 9313 | fi |
| 9314 | rm -f conftest.err conftest.$ac_objext \ |
| 9315 | conftest$ac_exeext conftest.$ac_ext |
| 9316 | fi |
| 9317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9318 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9319 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9320 | cat >>confdefs.h <<_ACEOF |
| 9321 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9322 | _ACEOF |
| 9323 | break |
| 9324 | fi |
| 9325 | done |
| 9326 | |
| 9327 | |
| 9328 | |
| 9329 | for ac_func in strrchr rindex |
| 9330 | do |
| 9331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9332 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9334 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9336 | else |
| 9337 | cat >conftest.$ac_ext <<_ACEOF |
| 9338 | /* confdefs.h. */ |
| 9339 | _ACEOF |
| 9340 | cat confdefs.h >>conftest.$ac_ext |
| 9341 | cat >>conftest.$ac_ext <<_ACEOF |
| 9342 | /* end confdefs.h. */ |
| 9343 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9345 | #define $ac_func innocuous_$ac_func |
| 9346 | |
| 9347 | /* System header to define __stub macros and hopefully few prototypes, |
| 9348 | which can conflict with char $ac_func (); below. |
| 9349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9350 | <limits.h> exists even on freestanding compilers. */ |
| 9351 | |
| 9352 | #ifdef __STDC__ |
| 9353 | # include <limits.h> |
| 9354 | #else |
| 9355 | # include <assert.h> |
| 9356 | #endif |
| 9357 | |
| 9358 | #undef $ac_func |
| 9359 | |
| 9360 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9361 | #ifdef __cplusplus |
| 9362 | extern "C" |
| 9363 | { |
| 9364 | #endif |
| 9365 | /* We use char because int might match the return type of a gcc2 |
| 9366 | builtin and then its argument prototype would still apply. */ |
| 9367 | char $ac_func (); |
| 9368 | /* The GNU C library defines this for functions which it implements |
| 9369 | to always fail with ENOSYS. Some functions are actually named |
| 9370 | something starting with __ and the normal name is an alias. */ |
| 9371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9372 | choke me |
| 9373 | #else |
| 9374 | char (*f) () = $ac_func; |
| 9375 | #endif |
| 9376 | #ifdef __cplusplus |
| 9377 | } |
| 9378 | #endif |
| 9379 | |
| 9380 | int |
| 9381 | main () |
| 9382 | { |
| 9383 | return f != $ac_func; |
| 9384 | ; |
| 9385 | return 0; |
| 9386 | } |
| 9387 | _ACEOF |
| 9388 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9390 | (eval $ac_link) 2>conftest.er1 |
| 9391 | ac_status=$? |
| 9392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9393 | rm -f conftest.er1 |
| 9394 | cat conftest.err >&5 |
| 9395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9396 | (exit $ac_status); } && |
| 9397 | { ac_try='test -z "$ac_c_werror_flag" |
| 9398 | || test ! -s conftest.err' |
| 9399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9400 | (eval $ac_try) 2>&5 |
| 9401 | ac_status=$? |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); }; } && |
| 9404 | { ac_try='test -s conftest$ac_exeext' |
| 9405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9406 | (eval $ac_try) 2>&5 |
| 9407 | ac_status=$? |
| 9408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9409 | (exit $ac_status); }; }; then |
| 9410 | eval "$as_ac_var=yes" |
| 9411 | else |
| 9412 | echo "$as_me: failed program was:" >&5 |
| 9413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9414 | |
| 9415 | eval "$as_ac_var=no" |
| 9416 | fi |
| 9417 | rm -f conftest.err conftest.$ac_objext \ |
| 9418 | conftest$ac_exeext conftest.$ac_ext |
| 9419 | fi |
| 9420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9421 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9422 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9423 | cat >>confdefs.h <<_ACEOF |
| 9424 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9425 | _ACEOF |
| 9426 | break |
| 9427 | fi |
| 9428 | done |
| 9429 | |
| 9430 | |
| 9431 | |
| 9432 | for ac_func in memcpy bcopy |
| 9433 | do |
| 9434 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9435 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9436 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9437 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9439 | else |
| 9440 | cat >conftest.$ac_ext <<_ACEOF |
| 9441 | /* confdefs.h. */ |
| 9442 | _ACEOF |
| 9443 | cat confdefs.h >>conftest.$ac_ext |
| 9444 | cat >>conftest.$ac_ext <<_ACEOF |
| 9445 | /* end confdefs.h. */ |
| 9446 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9447 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9448 | #define $ac_func innocuous_$ac_func |
| 9449 | |
| 9450 | /* System header to define __stub macros and hopefully few prototypes, |
| 9451 | which can conflict with char $ac_func (); below. |
| 9452 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9453 | <limits.h> exists even on freestanding compilers. */ |
| 9454 | |
| 9455 | #ifdef __STDC__ |
| 9456 | # include <limits.h> |
| 9457 | #else |
| 9458 | # include <assert.h> |
| 9459 | #endif |
| 9460 | |
| 9461 | #undef $ac_func |
| 9462 | |
| 9463 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9464 | #ifdef __cplusplus |
| 9465 | extern "C" |
| 9466 | { |
| 9467 | #endif |
| 9468 | /* We use char because int might match the return type of a gcc2 |
| 9469 | builtin and then its argument prototype would still apply. */ |
| 9470 | char $ac_func (); |
| 9471 | /* The GNU C library defines this for functions which it implements |
| 9472 | to always fail with ENOSYS. Some functions are actually named |
| 9473 | something starting with __ and the normal name is an alias. */ |
| 9474 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9475 | choke me |
| 9476 | #else |
| 9477 | char (*f) () = $ac_func; |
| 9478 | #endif |
| 9479 | #ifdef __cplusplus |
| 9480 | } |
| 9481 | #endif |
| 9482 | |
| 9483 | int |
| 9484 | main () |
| 9485 | { |
| 9486 | return f != $ac_func; |
| 9487 | ; |
| 9488 | return 0; |
| 9489 | } |
| 9490 | _ACEOF |
| 9491 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9493 | (eval $ac_link) 2>conftest.er1 |
| 9494 | ac_status=$? |
| 9495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9496 | rm -f conftest.er1 |
| 9497 | cat conftest.err >&5 |
| 9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9499 | (exit $ac_status); } && |
| 9500 | { ac_try='test -z "$ac_c_werror_flag" |
| 9501 | || test ! -s conftest.err' |
| 9502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9503 | (eval $ac_try) 2>&5 |
| 9504 | ac_status=$? |
| 9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9506 | (exit $ac_status); }; } && |
| 9507 | { ac_try='test -s conftest$ac_exeext' |
| 9508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9509 | (eval $ac_try) 2>&5 |
| 9510 | ac_status=$? |
| 9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9512 | (exit $ac_status); }; }; then |
| 9513 | eval "$as_ac_var=yes" |
| 9514 | else |
| 9515 | echo "$as_me: failed program was:" >&5 |
| 9516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9517 | |
| 9518 | eval "$as_ac_var=no" |
| 9519 | fi |
| 9520 | rm -f conftest.err conftest.$ac_objext \ |
| 9521 | conftest$ac_exeext conftest.$ac_ext |
| 9522 | fi |
| 9523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9524 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9525 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9526 | cat >>confdefs.h <<_ACEOF |
| 9527 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9528 | _ACEOF |
| 9529 | break |
| 9530 | fi |
| 9531 | done |
| 9532 | |
| 9533 | |
| 9534 | |
| 9535 | for ac_func in memmove strcmp |
| 9536 | do |
| 9537 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9538 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9539 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9540 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9542 | else |
| 9543 | cat >conftest.$ac_ext <<_ACEOF |
| 9544 | /* confdefs.h. */ |
| 9545 | _ACEOF |
| 9546 | cat confdefs.h >>conftest.$ac_ext |
| 9547 | cat >>conftest.$ac_ext <<_ACEOF |
| 9548 | /* end confdefs.h. */ |
| 9549 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9551 | #define $ac_func innocuous_$ac_func |
| 9552 | |
| 9553 | /* System header to define __stub macros and hopefully few prototypes, |
| 9554 | which can conflict with char $ac_func (); below. |
| 9555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9556 | <limits.h> exists even on freestanding compilers. */ |
| 9557 | |
| 9558 | #ifdef __STDC__ |
| 9559 | # include <limits.h> |
| 9560 | #else |
| 9561 | # include <assert.h> |
| 9562 | #endif |
| 9563 | |
| 9564 | #undef $ac_func |
| 9565 | |
| 9566 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9567 | #ifdef __cplusplus |
| 9568 | extern "C" |
| 9569 | { |
| 9570 | #endif |
| 9571 | /* We use char because int might match the return type of a gcc2 |
| 9572 | builtin and then its argument prototype would still apply. */ |
| 9573 | char $ac_func (); |
| 9574 | /* The GNU C library defines this for functions which it implements |
| 9575 | to always fail with ENOSYS. Some functions are actually named |
| 9576 | something starting with __ and the normal name is an alias. */ |
| 9577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9578 | choke me |
| 9579 | #else |
| 9580 | char (*f) () = $ac_func; |
| 9581 | #endif |
| 9582 | #ifdef __cplusplus |
| 9583 | } |
| 9584 | #endif |
| 9585 | |
| 9586 | int |
| 9587 | main () |
| 9588 | { |
| 9589 | return f != $ac_func; |
| 9590 | ; |
| 9591 | return 0; |
| 9592 | } |
| 9593 | _ACEOF |
| 9594 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9596 | (eval $ac_link) 2>conftest.er1 |
| 9597 | ac_status=$? |
| 9598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9599 | rm -f conftest.er1 |
| 9600 | cat conftest.err >&5 |
| 9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9602 | (exit $ac_status); } && |
| 9603 | { ac_try='test -z "$ac_c_werror_flag" |
| 9604 | || test ! -s conftest.err' |
| 9605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9606 | (eval $ac_try) 2>&5 |
| 9607 | ac_status=$? |
| 9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9609 | (exit $ac_status); }; } && |
| 9610 | { ac_try='test -s conftest$ac_exeext' |
| 9611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9612 | (eval $ac_try) 2>&5 |
| 9613 | ac_status=$? |
| 9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9615 | (exit $ac_status); }; }; then |
| 9616 | eval "$as_ac_var=yes" |
| 9617 | else |
| 9618 | echo "$as_me: failed program was:" >&5 |
| 9619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9620 | |
| 9621 | eval "$as_ac_var=no" |
| 9622 | fi |
| 9623 | rm -f conftest.err conftest.$ac_objext \ |
| 9624 | conftest$ac_exeext conftest.$ac_ext |
| 9625 | fi |
| 9626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9628 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9629 | cat >>confdefs.h <<_ACEOF |
| 9630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9631 | _ACEOF |
| 9632 | |
| 9633 | fi |
| 9634 | done |
| 9635 | |
| 9636 | |
| 9637 | |
| 9638 | |
| 9639 | for ac_func in closedir opendir readdir |
| 9640 | do |
| 9641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9642 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9644 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9646 | else |
| 9647 | cat >conftest.$ac_ext <<_ACEOF |
| 9648 | /* confdefs.h. */ |
| 9649 | _ACEOF |
| 9650 | cat confdefs.h >>conftest.$ac_ext |
| 9651 | cat >>conftest.$ac_ext <<_ACEOF |
| 9652 | /* end confdefs.h. */ |
| 9653 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9654 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9655 | #define $ac_func innocuous_$ac_func |
| 9656 | |
| 9657 | /* System header to define __stub macros and hopefully few prototypes, |
| 9658 | which can conflict with char $ac_func (); below. |
| 9659 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9660 | <limits.h> exists even on freestanding compilers. */ |
| 9661 | |
| 9662 | #ifdef __STDC__ |
| 9663 | # include <limits.h> |
| 9664 | #else |
| 9665 | # include <assert.h> |
| 9666 | #endif |
| 9667 | |
| 9668 | #undef $ac_func |
| 9669 | |
| 9670 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9671 | #ifdef __cplusplus |
| 9672 | extern "C" |
| 9673 | { |
| 9674 | #endif |
| 9675 | /* We use char because int might match the return type of a gcc2 |
| 9676 | builtin and then its argument prototype would still apply. */ |
| 9677 | char $ac_func (); |
| 9678 | /* The GNU C library defines this for functions which it implements |
| 9679 | to always fail with ENOSYS. Some functions are actually named |
| 9680 | something starting with __ and the normal name is an alias. */ |
| 9681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9682 | choke me |
| 9683 | #else |
| 9684 | char (*f) () = $ac_func; |
| 9685 | #endif |
| 9686 | #ifdef __cplusplus |
| 9687 | } |
| 9688 | #endif |
| 9689 | |
| 9690 | int |
| 9691 | main () |
| 9692 | { |
| 9693 | return f != $ac_func; |
| 9694 | ; |
| 9695 | return 0; |
| 9696 | } |
| 9697 | _ACEOF |
| 9698 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9700 | (eval $ac_link) 2>conftest.er1 |
| 9701 | ac_status=$? |
| 9702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9703 | rm -f conftest.er1 |
| 9704 | cat conftest.err >&5 |
| 9705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9706 | (exit $ac_status); } && |
| 9707 | { ac_try='test -z "$ac_c_werror_flag" |
| 9708 | || test ! -s conftest.err' |
| 9709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9710 | (eval $ac_try) 2>&5 |
| 9711 | ac_status=$? |
| 9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9713 | (exit $ac_status); }; } && |
| 9714 | { ac_try='test -s conftest$ac_exeext' |
| 9715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9716 | (eval $ac_try) 2>&5 |
| 9717 | ac_status=$? |
| 9718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9719 | (exit $ac_status); }; }; then |
| 9720 | eval "$as_ac_var=yes" |
| 9721 | else |
| 9722 | echo "$as_me: failed program was:" >&5 |
| 9723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9724 | |
| 9725 | eval "$as_ac_var=no" |
| 9726 | fi |
| 9727 | rm -f conftest.err conftest.$ac_objext \ |
| 9728 | conftest$ac_exeext conftest.$ac_ext |
| 9729 | fi |
| 9730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9731 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9732 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9733 | cat >>confdefs.h <<_ACEOF |
| 9734 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9735 | _ACEOF |
| 9736 | |
| 9737 | fi |
| 9738 | done |
| 9739 | |
| 9740 | |
| 9741 | # Check whether --enable-shared or --disable-shared was given. |
| 9742 | if test "${enable_shared+set}" = set; then |
| 9743 | enableval="$enable_shared" |
| 9744 | p=${PACKAGE-default} |
| 9745 | case $enableval in |
| 9746 | yes) enable_shared=yes ;; |
| 9747 | no) enable_shared=no ;; |
| 9748 | *) |
| 9749 | enable_shared=no |
| 9750 | # Look at the argument we got. We use all the common list separators. |
| 9751 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9752 | for pkg in $enableval; do |
| 9753 | IFS="$lt_save_ifs" |
| 9754 | if test "X$pkg" = "X$p"; then |
| 9755 | enable_shared=yes |
| 9756 | fi |
| 9757 | done |
| 9758 | IFS="$lt_save_ifs" |
| 9759 | ;; |
| 9760 | esac |
| 9761 | else |
| 9762 | enable_shared=yes |
| 9763 | fi; |
| 9764 | |
| 9765 | # Check whether --enable-static or --disable-static was given. |
| 9766 | if test "${enable_static+set}" = set; then |
| 9767 | enableval="$enable_static" |
| 9768 | p=${PACKAGE-default} |
| 9769 | case $enableval in |
| 9770 | yes) enable_static=yes ;; |
| 9771 | no) enable_static=no ;; |
| 9772 | *) |
| 9773 | enable_static=no |
| 9774 | # Look at the argument we got. We use all the common list separators. |
| 9775 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9776 | for pkg in $enableval; do |
| 9777 | IFS="$lt_save_ifs" |
| 9778 | if test "X$pkg" = "X$p"; then |
| 9779 | enable_static=yes |
| 9780 | fi |
| 9781 | done |
| 9782 | IFS="$lt_save_ifs" |
| 9783 | ;; |
| 9784 | esac |
| 9785 | else |
| 9786 | enable_static=yes |
| 9787 | fi; |
| 9788 | |
| 9789 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 9790 | if test "${enable_fast_install+set}" = set; then |
| 9791 | enableval="$enable_fast_install" |
| 9792 | p=${PACKAGE-default} |
| 9793 | case $enableval in |
| 9794 | yes) enable_fast_install=yes ;; |
| 9795 | no) enable_fast_install=no ;; |
| 9796 | *) |
| 9797 | enable_fast_install=no |
| 9798 | # Look at the argument we got. We use all the common list separators. |
| 9799 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9800 | for pkg in $enableval; do |
| 9801 | IFS="$lt_save_ifs" |
| 9802 | if test "X$pkg" = "X$p"; then |
| 9803 | enable_fast_install=yes |
| 9804 | fi |
| 9805 | done |
| 9806 | IFS="$lt_save_ifs" |
| 9807 | ;; |
| 9808 | esac |
| 9809 | else |
| 9810 | enable_fast_install=yes |
| 9811 | fi; |
| 9812 | |
| 9813 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 9814 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 9815 | if test "${lt_cv_path_SED+set}" = set; then |
| 9816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9817 | else |
| 9818 | # Loop through the user's path and test for sed and gsed. |
| 9819 | # Then use that list of sed's as ones to test for truncation. |
| 9820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9821 | for as_dir in $PATH |
| 9822 | do |
| 9823 | IFS=$as_save_IFS |
| 9824 | test -z "$as_dir" && as_dir=. |
| 9825 | for lt_ac_prog in sed gsed; do |
| 9826 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9827 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 9828 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 9829 | fi |
| 9830 | done |
| 9831 | done |
| 9832 | done |
| 9833 | lt_ac_max=0 |
| 9834 | lt_ac_count=0 |
| 9835 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 9836 | # along with /bin/sed that truncates output. |
| 9837 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 9838 | test ! -f $lt_ac_sed && break |
| 9839 | cat /dev/null > conftest.in |
| 9840 | lt_ac_count=0 |
| 9841 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 9842 | # Check for GNU sed and select it if it is found. |
| 9843 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 9844 | lt_cv_path_SED=$lt_ac_sed |
| 9845 | break |
| 9846 | fi |
| 9847 | while true; do |
| 9848 | cat conftest.in conftest.in >conftest.tmp |
| 9849 | mv conftest.tmp conftest.in |
| 9850 | cp conftest.in conftest.nl |
| 9851 | echo >>conftest.nl |
| 9852 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 9853 | cmp -s conftest.out conftest.nl || break |
| 9854 | # 10000 chars as input seems more than enough |
| 9855 | test $lt_ac_count -gt 10 && break |
| 9856 | lt_ac_count=`expr $lt_ac_count + 1` |
| 9857 | if test $lt_ac_count -gt $lt_ac_max; then |
| 9858 | lt_ac_max=$lt_ac_count |
| 9859 | lt_cv_path_SED=$lt_ac_sed |
| 9860 | fi |
| 9861 | done |
| 9862 | done |
| 9863 | |
| 9864 | fi |
| 9865 | |
| 9866 | SED=$lt_cv_path_SED |
| 9867 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 9868 | echo "${ECHO_T}$SED" >&6 |
| 9869 | |
| 9870 | |
| 9871 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9872 | if test "${with_gnu_ld+set}" = set; then |
| 9873 | withval="$with_gnu_ld" |
| 9874 | test "$withval" = no || with_gnu_ld=yes |
| 9875 | else |
| 9876 | with_gnu_ld=no |
| 9877 | fi; |
| 9878 | ac_prog=ld |
| 9879 | if test "$GCC" = yes; then |
| 9880 | # Check if gcc -print-prog-name=ld gives a path. |
| 9881 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 9882 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 9883 | case $host in |
| 9884 | *-*-mingw*) |
| 9885 | # gcc leaves a trailing carriage return which upsets mingw |
| 9886 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9887 | *) |
| 9888 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9889 | esac |
| 9890 | case $ac_prog in |
| 9891 | # Accept absolute paths. |
| 9892 | [\\/]* | ?:[\\/]*) |
| 9893 | re_direlt='/[^/][^/]*/\.\./' |
| 9894 | # Canonicalize the pathname of ld |
| 9895 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9896 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9897 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9898 | done |
| 9899 | test -z "$LD" && LD="$ac_prog" |
| 9900 | ;; |
| 9901 | "") |
| 9902 | # If it fails, then pretend we aren't using GCC. |
| 9903 | ac_prog=ld |
| 9904 | ;; |
| 9905 | *) |
| 9906 | # If it is relative, then search for the first ld in PATH. |
| 9907 | with_gnu_ld=unknown |
| 9908 | ;; |
| 9909 | esac |
| 9910 | elif test "$with_gnu_ld" = yes; then |
| 9911 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9912 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9913 | else |
| 9914 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9915 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9916 | fi |
| 9917 | if test "${lt_cv_path_LD+set}" = set; then |
| 9918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9919 | else |
| 9920 | if test -z "$LD"; then |
| 9921 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9922 | for ac_dir in $PATH; do |
| 9923 | IFS="$lt_save_ifs" |
| 9924 | test -z "$ac_dir" && ac_dir=. |
| 9925 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9926 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9927 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9928 | # but apparently some GNU ld's only accept -v. |
| 9929 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9930 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9931 | *GNU* | *'with BFD'*) |
| 9932 | test "$with_gnu_ld" != no && break |
| 9933 | ;; |
| 9934 | *) |
| 9935 | test "$with_gnu_ld" != yes && break |
| 9936 | ;; |
| 9937 | esac |
| 9938 | fi |
| 9939 | done |
| 9940 | IFS="$lt_save_ifs" |
| 9941 | else |
| 9942 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9943 | fi |
| 9944 | fi |
| 9945 | |
| 9946 | LD="$lt_cv_path_LD" |
| 9947 | if test -n "$LD"; then |
| 9948 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9949 | echo "${ECHO_T}$LD" >&6 |
| 9950 | else |
| 9951 | echo "$as_me:$LINENO: result: no" >&5 |
| 9952 | echo "${ECHO_T}no" >&6 |
| 9953 | fi |
| 9954 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9955 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9956 | { (exit 1); exit 1; }; } |
| 9957 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9958 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9959 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9961 | else |
| 9962 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9963 | case `$LD -v 2>&1 </dev/null` in |
| 9964 | *GNU* | *'with BFD'*) |
| 9965 | lt_cv_prog_gnu_ld=yes |
| 9966 | ;; |
| 9967 | *) |
| 9968 | lt_cv_prog_gnu_ld=no |
| 9969 | ;; |
| 9970 | esac |
| 9971 | fi |
| 9972 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9973 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9974 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9975 | |
| 9976 | |
| 9977 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 9978 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 9979 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 9980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9981 | else |
| 9982 | lt_cv_ld_reload_flag='-r' |
| 9983 | fi |
| 9984 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 9985 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 9986 | reload_flag=$lt_cv_ld_reload_flag |
| 9987 | case $reload_flag in |
| 9988 | "" | " "*) ;; |
| 9989 | *) reload_flag=" $reload_flag" ;; |
| 9990 | esac |
| 9991 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 9992 | case $host_os in |
| 9993 | darwin*) |
| 9994 | if test "$GCC" = yes; then |
| 9995 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
| 9996 | else |
| 9997 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 9998 | fi |
| 9999 | ;; |
| 10000 | esac |
| 10001 | |
| 10002 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 10003 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 10004 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 10005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10006 | else |
| 10007 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 10008 | lt_cv_file_magic_test_file= |
| 10009 | lt_cv_deplibs_check_method='unknown' |
| 10010 | # Need to set the preceding variable on all platforms that support |
| 10011 | # interlibrary dependencies. |
| 10012 | # 'none' -- dependencies not supported. |
| 10013 | # `unknown' -- same as none, but documents that we really don't know. |
| 10014 | # 'pass_all' -- all dependencies passed with no checks. |
| 10015 | # 'test_compile' -- check by making test program. |
| 10016 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 10017 | # which responds to the $file_magic_cmd with a given extended regex. |
| 10018 | # If you have `file' or equivalent on your system and you're not sure |
| 10019 | # whether `pass_all' will *always* work, you probably want this one. |
| 10020 | |
| 10021 | case $host_os in |
| 10022 | aix4* | aix5*) |
| 10023 | lt_cv_deplibs_check_method=pass_all |
| 10024 | ;; |
| 10025 | |
| 10026 | beos*) |
| 10027 | lt_cv_deplibs_check_method=pass_all |
| 10028 | ;; |
| 10029 | |
| 10030 | bsdi[45]*) |
| 10031 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 10032 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 10033 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 10034 | ;; |
| 10035 | |
| 10036 | cygwin*) |
| 10037 | # func_win32_libid is a shell function defined in ltmain.sh |
| 10038 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10039 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10040 | ;; |
| 10041 | |
| 10042 | mingw* | pw32*) |
| 10043 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 10044 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 10045 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 10046 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10047 | ;; |
| 10048 | |
| 10049 | darwin* | rhapsody*) |
| 10050 | lt_cv_deplibs_check_method=pass_all |
| 10051 | ;; |
| 10052 | |
| 10053 | freebsd* | kfreebsd*-gnu) |
| 10054 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10055 | case $host_cpu in |
| 10056 | i*86 ) |
| 10057 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 10058 | # Let's accept both of them until this is cleared up. |
| 10059 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 10060 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10061 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 10062 | ;; |
| 10063 | esac |
| 10064 | else |
| 10065 | lt_cv_deplibs_check_method=pass_all |
| 10066 | fi |
| 10067 | ;; |
| 10068 | |
| 10069 | gnu*) |
| 10070 | lt_cv_deplibs_check_method=pass_all |
| 10071 | ;; |
| 10072 | |
| 10073 | hpux10.20* | hpux11*) |
| 10074 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10075 | case "$host_cpu" in |
| 10076 | ia64*) |
| 10077 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 10078 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 10079 | ;; |
| 10080 | hppa*64*) |
| 10081 | 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]' |
| 10082 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 10083 | ;; |
| 10084 | *) |
| 10085 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 10086 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 10087 | ;; |
| 10088 | esac |
| 10089 | ;; |
| 10090 | |
| 10091 | irix5* | irix6* | nonstopux*) |
| 10092 | case $LD in |
| 10093 | *-32|*"-32 ") libmagic=32-bit;; |
| 10094 | *-n32|*"-n32 ") libmagic=N32;; |
| 10095 | *-64|*"-64 ") libmagic=64-bit;; |
| 10096 | *) libmagic=never-match;; |
| 10097 | esac |
| 10098 | lt_cv_deplibs_check_method=pass_all |
| 10099 | ;; |
| 10100 | |
| 10101 | # This must be Linux ELF. |
| 10102 | linux*) |
| 10103 | lt_cv_deplibs_check_method=pass_all |
| 10104 | ;; |
| 10105 | |
| 10106 | netbsd*) |
| 10107 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10108 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10109 | else |
| 10110 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 10111 | fi |
| 10112 | ;; |
| 10113 | |
| 10114 | newos6*) |
| 10115 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 10116 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10117 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 10118 | ;; |
| 10119 | |
| 10120 | nto-qnx*) |
| 10121 | lt_cv_deplibs_check_method=unknown |
| 10122 | ;; |
| 10123 | |
| 10124 | openbsd*) |
| 10125 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10126 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 10127 | else |
| 10128 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10129 | fi |
| 10130 | ;; |
| 10131 | |
| 10132 | osf3* | osf4* | osf5*) |
| 10133 | lt_cv_deplibs_check_method=pass_all |
| 10134 | ;; |
| 10135 | |
| 10136 | sco3.2v5*) |
| 10137 | lt_cv_deplibs_check_method=pass_all |
| 10138 | ;; |
| 10139 | |
| 10140 | solaris*) |
| 10141 | lt_cv_deplibs_check_method=pass_all |
| 10142 | ;; |
| 10143 | |
| 10144 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10145 | case $host_vendor in |
| 10146 | motorola) |
| 10147 | 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]' |
| 10148 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 10149 | ;; |
| 10150 | ncr) |
| 10151 | lt_cv_deplibs_check_method=pass_all |
| 10152 | ;; |
| 10153 | sequent) |
| 10154 | lt_cv_file_magic_cmd='/bin/file' |
| 10155 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 10156 | ;; |
| 10157 | sni) |
| 10158 | lt_cv_file_magic_cmd='/bin/file' |
| 10159 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 10160 | lt_cv_file_magic_test_file=/lib/libc.so |
| 10161 | ;; |
| 10162 | siemens) |
| 10163 | lt_cv_deplibs_check_method=pass_all |
| 10164 | ;; |
| 10165 | esac |
| 10166 | ;; |
| 10167 | |
| 10168 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 10169 | lt_cv_deplibs_check_method=pass_all |
| 10170 | ;; |
| 10171 | esac |
| 10172 | |
| 10173 | fi |
| 10174 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 10175 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 10176 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 10177 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 10178 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 10179 | |
| 10180 | |
| 10181 | |
| 10182 | # If no C compiler was specified, use CC. |
| 10183 | LTCC=${LTCC-"$CC"} |
| 10184 | |
| 10185 | # Allow CC to be a program name with arguments. |
| 10186 | compiler=$CC |
| 10187 | |
| 10188 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 10189 | if test "${enable_libtool_lock+set}" = set; then |
| 10190 | enableval="$enable_libtool_lock" |
| 10191 | |
| 10192 | fi; |
| 10193 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 10194 | |
| 10195 | # Some flags need to be propagated to the compiler or linker for good |
| 10196 | # libtool support. |
| 10197 | case $host in |
| 10198 | ia64-*-hpux*) |
| 10199 | # Find out which ABI we are using. |
| 10200 | echo 'int i;' > conftest.$ac_ext |
| 10201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10202 | (eval $ac_compile) 2>&5 |
| 10203 | ac_status=$? |
| 10204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10205 | (exit $ac_status); }; then |
| 10206 | case `/usr/bin/file conftest.$ac_objext` in |
| 10207 | *ELF-32*) |
| 10208 | HPUX_IA64_MODE="32" |
| 10209 | ;; |
| 10210 | *ELF-64*) |
| 10211 | HPUX_IA64_MODE="64" |
| 10212 | ;; |
| 10213 | esac |
| 10214 | fi |
| 10215 | rm -rf conftest* |
| 10216 | ;; |
| 10217 | *-*-irix6*) |
| 10218 | # Find out which ABI we are using. |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 10219 | echo '#line 10219 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10221 | (eval $ac_compile) 2>&5 |
| 10222 | ac_status=$? |
| 10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10224 | (exit $ac_status); }; then |
| 10225 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10226 | case `/usr/bin/file conftest.$ac_objext` in |
| 10227 | *32-bit*) |
| 10228 | LD="${LD-ld} -melf32bsmip" |
| 10229 | ;; |
| 10230 | *N32*) |
| 10231 | LD="${LD-ld} -melf32bmipn32" |
| 10232 | ;; |
| 10233 | *64-bit*) |
| 10234 | LD="${LD-ld} -melf64bmip" |
| 10235 | ;; |
| 10236 | esac |
| 10237 | else |
| 10238 | case `/usr/bin/file conftest.$ac_objext` in |
| 10239 | *32-bit*) |
| 10240 | LD="${LD-ld} -32" |
| 10241 | ;; |
| 10242 | *N32*) |
| 10243 | LD="${LD-ld} -n32" |
| 10244 | ;; |
| 10245 | *64-bit*) |
| 10246 | LD="${LD-ld} -64" |
| 10247 | ;; |
| 10248 | esac |
| 10249 | fi |
| 10250 | fi |
| 10251 | rm -rf conftest* |
| 10252 | ;; |
| 10253 | |
| 10254 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 10255 | # Find out which ABI we are using. |
| 10256 | echo 'int i;' > conftest.$ac_ext |
| 10257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10258 | (eval $ac_compile) 2>&5 |
| 10259 | ac_status=$? |
| 10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10261 | (exit $ac_status); }; then |
| 10262 | case "`/usr/bin/file conftest.o`" in |
| 10263 | *32-bit*) |
| 10264 | case $host in |
| 10265 | x86_64-*linux*) |
| 10266 | LD="${LD-ld} -m elf_i386" |
| 10267 | ;; |
| 10268 | ppc64-*linux*|powerpc64-*linux*) |
| 10269 | LD="${LD-ld} -m elf32ppclinux" |
| 10270 | ;; |
| 10271 | s390x-*linux*) |
| 10272 | LD="${LD-ld} -m elf_s390" |
| 10273 | ;; |
| 10274 | sparc64-*linux*) |
| 10275 | LD="${LD-ld} -m elf32_sparc" |
| 10276 | ;; |
| 10277 | esac |
| 10278 | ;; |
| 10279 | *64-bit*) |
| 10280 | case $host in |
| 10281 | x86_64-*linux*) |
| 10282 | LD="${LD-ld} -m elf_x86_64" |
| 10283 | ;; |
| 10284 | ppc*-*linux*|powerpc*-*linux*) |
| 10285 | LD="${LD-ld} -m elf64ppc" |
| 10286 | ;; |
| 10287 | s390*-*linux*) |
| 10288 | LD="${LD-ld} -m elf64_s390" |
| 10289 | ;; |
| 10290 | sparc*-*linux*) |
| 10291 | LD="${LD-ld} -m elf64_sparc" |
| 10292 | ;; |
| 10293 | esac |
| 10294 | ;; |
| 10295 | esac |
| 10296 | fi |
| 10297 | rm -rf conftest* |
| 10298 | ;; |
| 10299 | |
| 10300 | *-*-sco3.2v5*) |
| 10301 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 10302 | SAVE_CFLAGS="$CFLAGS" |
| 10303 | CFLAGS="$CFLAGS -belf" |
| 10304 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 10305 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 10306 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 10307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10308 | else |
| 10309 | ac_ext=c |
| 10310 | ac_cpp='$CPP $CPPFLAGS' |
| 10311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10314 | |
| 10315 | cat >conftest.$ac_ext <<_ACEOF |
| 10316 | /* confdefs.h. */ |
| 10317 | _ACEOF |
| 10318 | cat confdefs.h >>conftest.$ac_ext |
| 10319 | cat >>conftest.$ac_ext <<_ACEOF |
| 10320 | /* end confdefs.h. */ |
| 10321 | |
| 10322 | _ACEOF |
| 10323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10325 | (eval $ac_link) 2>conftest.er1 |
| 10326 | ac_status=$? |
| 10327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10328 | rm -f conftest.er1 |
| 10329 | cat conftest.err >&5 |
| 10330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10331 | (exit $ac_status); } && |
| 10332 | { ac_try='test -z "$ac_c_werror_flag" |
| 10333 | || test ! -s conftest.err' |
| 10334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10335 | (eval $ac_try) 2>&5 |
| 10336 | ac_status=$? |
| 10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10338 | (exit $ac_status); }; } && |
| 10339 | { ac_try='test -s conftest$ac_exeext' |
| 10340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10341 | (eval $ac_try) 2>&5 |
| 10342 | ac_status=$? |
| 10343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10344 | (exit $ac_status); }; }; then |
| 10345 | lt_cv_cc_needs_belf=yes |
| 10346 | else |
| 10347 | echo "$as_me: failed program was:" >&5 |
| 10348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10349 | |
| 10350 | lt_cv_cc_needs_belf=no |
| 10351 | fi |
| 10352 | rm -f conftest.err conftest.$ac_objext \ |
| 10353 | conftest$ac_exeext conftest.$ac_ext |
| 10354 | ac_ext=c |
| 10355 | ac_cpp='$CPP $CPPFLAGS' |
| 10356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10359 | |
| 10360 | fi |
| 10361 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 10362 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 10363 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 10364 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 10365 | CFLAGS="$SAVE_CFLAGS" |
| 10366 | fi |
| 10367 | ;; |
| 10368 | |
| 10369 | esac |
| 10370 | |
| 10371 | need_locks="$enable_libtool_lock" |
| 10372 | |
| 10373 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10374 | |
| 10375 | |
| 10376 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10377 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10378 | (test "X$CXX" != "Xg++"))) ; then |
| 10379 | ac_ext=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10380 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10381 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10382 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10383 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10384 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 10385 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 10386 | if test -z "$CXXCPP"; then |
| 10387 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10389 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10390 | # Double quotes because CXXCPP needs to be expanded |
| 10391 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 10392 | do |
| 10393 | ac_preproc_ok=false |
| 10394 | for ac_cxx_preproc_warn_flag in '' yes |
| 10395 | do |
| 10396 | # Use a header file that comes with gcc, so configuring glibc |
| 10397 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10398 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10399 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10400 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10401 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10402 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10403 | /* confdefs.h. */ |
| 10404 | _ACEOF |
| 10405 | cat confdefs.h >>conftest.$ac_ext |
| 10406 | cat >>conftest.$ac_ext <<_ACEOF |
| 10407 | /* end confdefs.h. */ |
| 10408 | #ifdef __STDC__ |
| 10409 | # include <limits.h> |
| 10410 | #else |
| 10411 | # include <assert.h> |
| 10412 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10413 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10414 | _ACEOF |
| 10415 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10416 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10417 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10418 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10419 | rm -f conftest.er1 |
| 10420 | cat conftest.err >&5 |
| 10421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10422 | (exit $ac_status); } >/dev/null; then |
| 10423 | if test -s conftest.err; then |
| 10424 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10425 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10426 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10427 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10428 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10429 | else |
| 10430 | ac_cpp_err=yes |
| 10431 | fi |
| 10432 | if test -z "$ac_cpp_err"; then |
| 10433 | : |
| 10434 | else |
| 10435 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10438 | # Broken: fails on valid input. |
| 10439 | continue |
| 10440 | fi |
| 10441 | rm -f conftest.err conftest.$ac_ext |
| 10442 | |
| 10443 | # OK, works on sane cases. Now check whether non-existent headers |
| 10444 | # can be detected and how. |
| 10445 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10446 | /* confdefs.h. */ |
| 10447 | _ACEOF |
| 10448 | cat confdefs.h >>conftest.$ac_ext |
| 10449 | cat >>conftest.$ac_ext <<_ACEOF |
| 10450 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10451 | #include <ac_nonexistent.h> |
| 10452 | _ACEOF |
| 10453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10455 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10456 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10457 | rm -f conftest.er1 |
| 10458 | cat conftest.err >&5 |
| 10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10460 | (exit $ac_status); } >/dev/null; then |
| 10461 | if test -s conftest.err; then |
| 10462 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10463 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10464 | else |
| 10465 | ac_cpp_err= |
| 10466 | fi |
| 10467 | else |
| 10468 | ac_cpp_err=yes |
| 10469 | fi |
| 10470 | if test -z "$ac_cpp_err"; then |
| 10471 | # Broken: success on invalid input. |
| 10472 | continue |
| 10473 | else |
| 10474 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10476 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10477 | # Passes both tests. |
| 10478 | ac_preproc_ok=: |
| 10479 | break |
| 10480 | fi |
| 10481 | rm -f conftest.err conftest.$ac_ext |
| 10482 | |
| 10483 | done |
| 10484 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10485 | rm -f conftest.err conftest.$ac_ext |
| 10486 | if $ac_preproc_ok; then |
| 10487 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10488 | fi |
| 10489 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10490 | done |
| 10491 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10492 | |
| 10493 | fi |
| 10494 | CXXCPP=$ac_cv_prog_CXXCPP |
| 10495 | else |
| 10496 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10497 | fi |
| 10498 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 10499 | echo "${ECHO_T}$CXXCPP" >&6 |
| 10500 | ac_preproc_ok=false |
| 10501 | for ac_cxx_preproc_warn_flag in '' yes |
| 10502 | do |
| 10503 | # Use a header file that comes with gcc, so configuring glibc |
| 10504 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10505 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10506 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10507 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10508 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10509 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10510 | /* confdefs.h. */ |
| 10511 | _ACEOF |
| 10512 | cat confdefs.h >>conftest.$ac_ext |
| 10513 | cat >>conftest.$ac_ext <<_ACEOF |
| 10514 | /* end confdefs.h. */ |
| 10515 | #ifdef __STDC__ |
| 10516 | # include <limits.h> |
| 10517 | #else |
| 10518 | # include <assert.h> |
| 10519 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10520 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10521 | _ACEOF |
| 10522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10524 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10525 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10526 | rm -f conftest.er1 |
| 10527 | cat conftest.err >&5 |
| 10528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10529 | (exit $ac_status); } >/dev/null; then |
| 10530 | if test -s conftest.err; then |
| 10531 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10532 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10533 | else |
| 10534 | ac_cpp_err= |
| 10535 | fi |
| 10536 | else |
| 10537 | ac_cpp_err=yes |
| 10538 | fi |
| 10539 | if test -z "$ac_cpp_err"; then |
| 10540 | : |
| 10541 | else |
| 10542 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10544 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10545 | # Broken: fails on valid input. |
| 10546 | continue |
| 10547 | fi |
| 10548 | rm -f conftest.err conftest.$ac_ext |
| 10549 | |
| 10550 | # OK, works on sane cases. Now check whether non-existent headers |
| 10551 | # can be detected and how. |
| 10552 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10553 | /* confdefs.h. */ |
| 10554 | _ACEOF |
| 10555 | cat confdefs.h >>conftest.$ac_ext |
| 10556 | cat >>conftest.$ac_ext <<_ACEOF |
| 10557 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10558 | #include <ac_nonexistent.h> |
| 10559 | _ACEOF |
| 10560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10562 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10563 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10564 | rm -f conftest.er1 |
| 10565 | cat conftest.err >&5 |
| 10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 | (exit $ac_status); } >/dev/null; then |
| 10568 | if test -s conftest.err; then |
| 10569 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10570 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10571 | else |
| 10572 | ac_cpp_err= |
| 10573 | fi |
| 10574 | else |
| 10575 | ac_cpp_err=yes |
| 10576 | fi |
| 10577 | if test -z "$ac_cpp_err"; then |
| 10578 | # Broken: success on invalid input. |
| 10579 | continue |
| 10580 | else |
| 10581 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10583 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10584 | # Passes both tests. |
| 10585 | ac_preproc_ok=: |
| 10586 | break |
| 10587 | fi |
| 10588 | rm -f conftest.err conftest.$ac_ext |
| 10589 | |
| 10590 | done |
| 10591 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10592 | rm -f conftest.err conftest.$ac_ext |
| 10593 | if $ac_preproc_ok; then |
| 10594 | : |
| 10595 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10596 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 10597 | See \`config.log' for more details." >&5 |
| 10598 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 10599 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10600 | { (exit 1); exit 1; }; } |
| 10601 | fi |
| 10602 | |
| 10603 | ac_ext=cc |
| 10604 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10605 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10606 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10607 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10608 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10609 | fi |
| 10610 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10611 | |
| 10612 | ac_ext=f |
| 10613 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 10614 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10615 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 10616 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10617 | 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] | 10618 | do |
| 10619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10623 | if test "${ac_cv_prog_F77+set}" = set; then |
| 10624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10625 | else |
| 10626 | if test -n "$F77"; then |
| 10627 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 10628 | else |
| 10629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10630 | for as_dir in $PATH |
| 10631 | do |
| 10632 | IFS=$as_save_IFS |
| 10633 | test -z "$as_dir" && as_dir=. |
| 10634 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10636 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 10637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10638 | break 2 |
| 10639 | fi |
| 10640 | done |
| 10641 | done |
| 10642 | |
| 10643 | fi |
| 10644 | fi |
| 10645 | F77=$ac_cv_prog_F77 |
| 10646 | if test -n "$F77"; then |
| 10647 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 10648 | echo "${ECHO_T}$F77" >&6 |
| 10649 | else |
| 10650 | echo "$as_me:$LINENO: result: no" >&5 |
| 10651 | echo "${ECHO_T}no" >&6 |
| 10652 | fi |
| 10653 | |
| 10654 | test -n "$F77" && break |
| 10655 | done |
| 10656 | fi |
| 10657 | if test -z "$F77"; then |
| 10658 | ac_ct_F77=$F77 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10659 | 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] | 10660 | do |
| 10661 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10662 | set dummy $ac_prog; ac_word=$2 |
| 10663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10665 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 10666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10667 | else |
| 10668 | if test -n "$ac_ct_F77"; then |
| 10669 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 10670 | else |
| 10671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10672 | for as_dir in $PATH |
| 10673 | do |
| 10674 | IFS=$as_save_IFS |
| 10675 | test -z "$as_dir" && as_dir=. |
| 10676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10678 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 10679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10680 | break 2 |
| 10681 | fi |
| 10682 | done |
| 10683 | done |
| 10684 | |
| 10685 | fi |
| 10686 | fi |
| 10687 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 10688 | if test -n "$ac_ct_F77"; then |
| 10689 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 10690 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 10691 | else |
| 10692 | echo "$as_me:$LINENO: result: no" >&5 |
| 10693 | echo "${ECHO_T}no" >&6 |
| 10694 | fi |
| 10695 | |
| 10696 | test -n "$ac_ct_F77" && break |
| 10697 | done |
| 10698 | |
| 10699 | F77=$ac_ct_F77 |
| 10700 | fi |
| 10701 | |
| 10702 | |
| 10703 | # Provide some information about the compiler. |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 10704 | echo "$as_me:10704:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10705 | "checking for Fortran 77 compiler version" >&5 |
| 10706 | ac_compiler=`set X $ac_compile; echo $2` |
| 10707 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 10708 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 10709 | ac_status=$? |
| 10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10711 | (exit $ac_status); } |
| 10712 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 10713 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 10714 | ac_status=$? |
| 10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10716 | (exit $ac_status); } |
| 10717 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 10718 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 10719 | ac_status=$? |
| 10720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10721 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10722 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10723 | |
| 10724 | # 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] | 10725 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10726 | ac_save_ext=$ac_ext |
| 10727 | ac_ext=F |
| 10728 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 10729 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 10730 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 10731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10732 | else |
| 10733 | cat >conftest.$ac_ext <<_ACEOF |
| 10734 | program main |
| 10735 | #ifndef __GNUC__ |
| 10736 | choke me |
| 10737 | #endif |
| 10738 | |
| 10739 | end |
| 10740 | _ACEOF |
| 10741 | rm -f conftest.$ac_objext |
| 10742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10743 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10744 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10746 | rm -f conftest.er1 |
| 10747 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10749 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10750 | { ac_try='test -z "$ac_f77_werror_flag" |
| 10751 | || test ! -s conftest.err' |
| 10752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10753 | (eval $ac_try) 2>&5 |
| 10754 | ac_status=$? |
| 10755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10756 | (exit $ac_status); }; } && |
| 10757 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10759 | (eval $ac_try) 2>&5 |
| 10760 | ac_status=$? |
| 10761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10762 | (exit $ac_status); }; }; then |
| 10763 | ac_compiler_gnu=yes |
| 10764 | else |
| 10765 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10767 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10768 | ac_compiler_gnu=no |
| 10769 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10771 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 10772 | |
| 10773 | fi |
| 10774 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 10775 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 10776 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10777 | ac_test_FFLAGS=${FFLAGS+set} |
| 10778 | ac_save_FFLAGS=$FFLAGS |
| 10779 | FFLAGS= |
| 10780 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 10781 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 10782 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 10783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10784 | else |
| 10785 | FFLAGS=-g |
| 10786 | cat >conftest.$ac_ext <<_ACEOF |
| 10787 | program main |
| 10788 | |
| 10789 | end |
| 10790 | _ACEOF |
| 10791 | rm -f conftest.$ac_objext |
| 10792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10793 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10794 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10796 | rm -f conftest.er1 |
| 10797 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10799 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10800 | { ac_try='test -z "$ac_f77_werror_flag" |
| 10801 | || test ! -s conftest.err' |
| 10802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10803 | (eval $ac_try) 2>&5 |
| 10804 | ac_status=$? |
| 10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10806 | (exit $ac_status); }; } && |
| 10807 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10809 | (eval $ac_try) 2>&5 |
| 10810 | ac_status=$? |
| 10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10812 | (exit $ac_status); }; }; then |
| 10813 | ac_cv_prog_f77_g=yes |
| 10814 | else |
| 10815 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10817 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10818 | ac_cv_prog_f77_g=no |
| 10819 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10821 | |
| 10822 | fi |
| 10823 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 10824 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 10825 | if test "$ac_test_FFLAGS" = set; then |
| 10826 | FFLAGS=$ac_save_FFLAGS |
| 10827 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10828 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10829 | FFLAGS="-g -O2" |
| 10830 | else |
| 10831 | FFLAGS="-g" |
| 10832 | fi |
| 10833 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10834 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10835 | FFLAGS="-O2" |
| 10836 | else |
| 10837 | FFLAGS= |
| 10838 | fi |
| 10839 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10840 | |
| 10841 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10842 | ac_ext=c |
| 10843 | ac_cpp='$CPP $CPPFLAGS' |
| 10844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10847 | |
| 10848 | |
| 10849 | |
| 10850 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 10851 | |
| 10852 | # find the maximum length of command line arguments |
| 10853 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 10854 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 10855 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 10856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10857 | else |
| 10858 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10859 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10860 | |
| 10861 | case $build_os in |
| 10862 | msdosdjgpp*) |
| 10863 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 10864 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 10865 | # during glob expansion). Even if it were fixed, the result of this |
| 10866 | # check would be larger than it should be. |
| 10867 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 10868 | ;; |
| 10869 | |
| 10870 | gnu*) |
| 10871 | # Under GNU Hurd, this test is not required because there is |
| 10872 | # no limit to the length of command line arguments. |
| 10873 | # Libtool will interpret -1 as no limit whatsoever |
| 10874 | lt_cv_sys_max_cmd_len=-1; |
| 10875 | ;; |
| 10876 | |
| 10877 | cygwin* | mingw*) |
| 10878 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 10879 | # about 5 minutes as the teststring grows exponentially. |
| 10880 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 10881 | # you end up with a "frozen" computer, even though with patience |
| 10882 | # the test eventually succeeds (with a max line length of 256k). |
| 10883 | # Instead, let's just punt: use the minimum linelength reported by |
| 10884 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 10885 | lt_cv_sys_max_cmd_len=8192; |
| 10886 | ;; |
| 10887 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10888 | amigaos*) |
| 10889 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 10890 | # So we just punt and use a minimum line length of 8192. |
| 10891 | lt_cv_sys_max_cmd_len=8192; |
| 10892 | ;; |
| 10893 | |
| 10894 | netbsd* | freebsd* | openbsd* | darwin* ) |
| 10895 | # This has been around since 386BSD, at least. Likely further. |
| 10896 | if test -x /sbin/sysctl; then |
| 10897 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 10898 | elif test -x /usr/sbin/sysctl; then |
| 10899 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 10900 | else |
| 10901 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
| 10902 | fi |
| 10903 | # And add a safety zone |
| 10904 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10905 | ;; |
| 10906 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10907 | *) |
| 10908 | # If test is not a shell built-in, we'll probably end up computing a |
| 10909 | # maximum length that is only half of the actual maximum length, but |
| 10910 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10911 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 10912 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 10913 | = "XX$teststring") >/dev/null 2>&1 && |
| 10914 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10915 | lt_cv_sys_max_cmd_len=$new_result && |
| 10916 | test $i != 17 # 1/2 MB should be enough |
| 10917 | do |
| 10918 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10919 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10920 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10921 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10922 | # Add a significant safety factor because C++ compilers can tack on massive |
| 10923 | # amounts of additional arguments before passing them to the linker. |
| 10924 | # It appears as though 1/2 is a usable value. |
| 10925 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 10926 | ;; |
| 10927 | esac |
| 10928 | |
| 10929 | fi |
| 10930 | |
| 10931 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 10932 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 10933 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 10934 | else |
| 10935 | echo "$as_me:$LINENO: result: none" >&5 |
| 10936 | echo "${ECHO_T}none" >&6 |
| 10937 | fi |
| 10938 | |
| 10939 | |
| 10940 | |
| 10941 | |
| 10942 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 10943 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10944 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 10945 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10947 | else |
| 10948 | |
| 10949 | # These are sane defaults that work on at least a few old systems. |
| 10950 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10951 | |
| 10952 | # Character class describing NM global symbol codes. |
| 10953 | symcode='[BCDEGRST]' |
| 10954 | |
| 10955 | # Regexp to match symbols that can be accessed directly from C. |
| 10956 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10957 | |
| 10958 | # Transform the above into a raw symbol and a C symbol. |
| 10959 | symxfrm='\1 \2\3 \3' |
| 10960 | |
| 10961 | # Transform an extracted symbol line into a proper C declaration |
| 10962 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10963 | |
| 10964 | # Transform an extracted symbol line into symbol name and symbol address |
| 10965 | 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'" |
| 10966 | |
| 10967 | # Define system-specific variables. |
| 10968 | case $host_os in |
| 10969 | aix*) |
| 10970 | symcode='[BCDT]' |
| 10971 | ;; |
| 10972 | cygwin* | mingw* | pw32*) |
| 10973 | symcode='[ABCDGISTW]' |
| 10974 | ;; |
| 10975 | hpux*) # Its linker distinguishes data from code symbols |
| 10976 | if test "$host_cpu" = ia64; then |
| 10977 | symcode='[ABCDEGRST]' |
| 10978 | fi |
| 10979 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10980 | 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'" |
| 10981 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10982 | linux*) |
| 10983 | if test "$host_cpu" = ia64; then |
| 10984 | symcode='[ABCDGIRSTW]' |
| 10985 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10986 | 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'" |
| 10987 | fi |
| 10988 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10989 | irix* | nonstopux*) |
| 10990 | symcode='[BCDEGRST]' |
| 10991 | ;; |
| 10992 | osf*) |
| 10993 | symcode='[BCDEGQRST]' |
| 10994 | ;; |
| 10995 | solaris* | sysv5*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10996 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10997 | ;; |
| 10998 | sysv4) |
| 10999 | symcode='[DFNSTU]' |
| 11000 | ;; |
| 11001 | esac |
| 11002 | |
| 11003 | # Handle CRLF in mingw tool chain |
| 11004 | opt_cr= |
| 11005 | case $build_os in |
| 11006 | mingw*) |
| 11007 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 11008 | ;; |
| 11009 | esac |
| 11010 | |
| 11011 | # If we're using GNU nm, then use its standard symbol codes. |
| 11012 | case `$NM -V 2>&1` in |
| 11013 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11014 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11015 | esac |
| 11016 | |
| 11017 | # Try without a prefix undercore, then with it. |
| 11018 | for ac_symprfx in "" "_"; do |
| 11019 | |
| 11020 | # Write the raw and C identifiers. |
| 11021 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 11022 | |
| 11023 | # Check to see that the pipe works correctly. |
| 11024 | pipe_works=no |
| 11025 | |
| 11026 | rm -f conftest* |
| 11027 | cat > conftest.$ac_ext <<EOF |
| 11028 | #ifdef __cplusplus |
| 11029 | extern "C" { |
| 11030 | #endif |
| 11031 | char nm_test_var; |
| 11032 | void nm_test_func(){} |
| 11033 | #ifdef __cplusplus |
| 11034 | } |
| 11035 | #endif |
| 11036 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 11037 | EOF |
| 11038 | |
| 11039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11040 | (eval $ac_compile) 2>&5 |
| 11041 | ac_status=$? |
| 11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11043 | (exit $ac_status); }; then |
| 11044 | # Now try to grab the symbols. |
| 11045 | nlist=conftest.nm |
| 11046 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 11047 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 11048 | ac_status=$? |
| 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11050 | (exit $ac_status); } && test -s "$nlist"; then |
| 11051 | # Try sorting and uniquifying the output. |
| 11052 | if sort "$nlist" | uniq > "$nlist"T; then |
| 11053 | mv -f "$nlist"T "$nlist" |
| 11054 | else |
| 11055 | rm -f "$nlist"T |
| 11056 | fi |
| 11057 | |
| 11058 | # Make sure that we snagged all the symbols we need. |
| 11059 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 11060 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 11061 | cat <<EOF > conftest.$ac_ext |
| 11062 | #ifdef __cplusplus |
| 11063 | extern "C" { |
| 11064 | #endif |
| 11065 | |
| 11066 | EOF |
| 11067 | # Now generate the symbol file. |
| 11068 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 11069 | |
| 11070 | cat <<EOF >> conftest.$ac_ext |
| 11071 | #if defined (__STDC__) && __STDC__ |
| 11072 | # define lt_ptr_t void * |
| 11073 | #else |
| 11074 | # define lt_ptr_t char * |
| 11075 | # define const |
| 11076 | #endif |
| 11077 | |
| 11078 | /* The mapping between symbol names and symbols. */ |
| 11079 | const struct { |
| 11080 | const char *name; |
| 11081 | lt_ptr_t address; |
| 11082 | } |
| 11083 | lt_preloaded_symbols[] = |
| 11084 | { |
| 11085 | EOF |
| 11086 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 11087 | cat <<\EOF >> conftest.$ac_ext |
| 11088 | {0, (lt_ptr_t) 0} |
| 11089 | }; |
| 11090 | |
| 11091 | #ifdef __cplusplus |
| 11092 | } |
| 11093 | #endif |
| 11094 | EOF |
| 11095 | # Now try linking the two files. |
| 11096 | mv conftest.$ac_objext conftstm.$ac_objext |
| 11097 | lt_save_LIBS="$LIBS" |
| 11098 | lt_save_CFLAGS="$CFLAGS" |
| 11099 | LIBS="conftstm.$ac_objext" |
| 11100 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 11101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11102 | (eval $ac_link) 2>&5 |
| 11103 | ac_status=$? |
| 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11105 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 11106 | pipe_works=yes |
| 11107 | fi |
| 11108 | LIBS="$lt_save_LIBS" |
| 11109 | CFLAGS="$lt_save_CFLAGS" |
| 11110 | else |
| 11111 | echo "cannot find nm_test_func in $nlist" >&5 |
| 11112 | fi |
| 11113 | else |
| 11114 | echo "cannot find nm_test_var in $nlist" >&5 |
| 11115 | fi |
| 11116 | else |
| 11117 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11118 | fi |
| 11119 | else |
| 11120 | echo "$progname: failed program was:" >&5 |
| 11121 | cat conftest.$ac_ext >&5 |
| 11122 | fi |
| 11123 | rm -f conftest* conftst* |
| 11124 | |
| 11125 | # Do not use the global_symbol_pipe unless it works. |
| 11126 | if test "$pipe_works" = yes; then |
| 11127 | break |
| 11128 | else |
| 11129 | lt_cv_sys_global_symbol_pipe= |
| 11130 | fi |
| 11131 | done |
| 11132 | |
| 11133 | fi |
| 11134 | |
| 11135 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 11136 | lt_cv_sys_global_symbol_to_cdecl= |
| 11137 | fi |
| 11138 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 11139 | echo "$as_me:$LINENO: result: failed" >&5 |
| 11140 | echo "${ECHO_T}failed" >&6 |
| 11141 | else |
| 11142 | echo "$as_me:$LINENO: result: ok" >&5 |
| 11143 | echo "${ECHO_T}ok" >&6 |
| 11144 | fi |
| 11145 | |
| 11146 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 11147 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 11148 | if test "${lt_cv_objdir+set}" = set; then |
| 11149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11150 | else |
| 11151 | rm -f .libs 2>/dev/null |
| 11152 | mkdir .libs 2>/dev/null |
| 11153 | if test -d .libs; then |
| 11154 | lt_cv_objdir=.libs |
| 11155 | else |
| 11156 | # MS-DOS does not allow filenames that begin with a dot. |
| 11157 | lt_cv_objdir=_libs |
| 11158 | fi |
| 11159 | rmdir .libs 2>/dev/null |
| 11160 | fi |
| 11161 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 11162 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 11163 | objdir=$lt_cv_objdir |
| 11164 | |
| 11165 | |
| 11166 | |
| 11167 | |
| 11168 | |
| 11169 | case $host_os in |
| 11170 | aix3*) |
| 11171 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11172 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11173 | # vanish in a puff of smoke. |
| 11174 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11175 | COLLECT_NAMES= |
| 11176 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11177 | fi |
| 11178 | ;; |
| 11179 | esac |
| 11180 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11181 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 11182 | # metacharacters that are still active within double-quoted strings. |
| 11183 | Xsed='sed -e s/^X//' |
| 11184 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 11185 | |
| 11186 | # Same as above, but do not quote variable references. |
| 11187 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 11188 | |
| 11189 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 11190 | # double_quote_subst'ed string. |
| 11191 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 11192 | |
| 11193 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 11194 | no_glob_subst='s/\*/\\\*/g' |
| 11195 | |
| 11196 | # Constants: |
| 11197 | rm="rm -f" |
| 11198 | |
| 11199 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 11200 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11201 | can_build_shared=yes |
| 11202 | |
| 11203 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 11204 | # which needs '.lib'). |
| 11205 | libext=a |
| 11206 | ltmain="$ac_aux_dir/ltmain.sh" |
| 11207 | ofile="$default_ofile" |
| 11208 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 11209 | |
| 11210 | if test -n "$ac_tool_prefix"; then |
| 11211 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 11212 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 11213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11215 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11217 | else |
| 11218 | if test -n "$AR"; then |
| 11219 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11220 | else |
| 11221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11222 | for as_dir in $PATH |
| 11223 | do |
| 11224 | IFS=$as_save_IFS |
| 11225 | test -z "$as_dir" && as_dir=. |
| 11226 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11228 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11230 | break 2 |
| 11231 | fi |
| 11232 | done |
| 11233 | done |
| 11234 | |
| 11235 | fi |
| 11236 | fi |
| 11237 | AR=$ac_cv_prog_AR |
| 11238 | if test -n "$AR"; then |
| 11239 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 11240 | echo "${ECHO_T}$AR" >&6 |
| 11241 | else |
| 11242 | echo "$as_me:$LINENO: result: no" >&5 |
| 11243 | echo "${ECHO_T}no" >&6 |
| 11244 | fi |
| 11245 | |
| 11246 | fi |
| 11247 | if test -z "$ac_cv_prog_AR"; then |
| 11248 | ac_ct_AR=$AR |
| 11249 | # Extract the first word of "ar", so it can be a program name with args. |
| 11250 | set dummy ar; ac_word=$2 |
| 11251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11253 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11255 | else |
| 11256 | if test -n "$ac_ct_AR"; then |
| 11257 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 11258 | else |
| 11259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11260 | for as_dir in $PATH |
| 11261 | do |
| 11262 | IFS=$as_save_IFS |
| 11263 | test -z "$as_dir" && as_dir=. |
| 11264 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11265 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11266 | ac_cv_prog_ac_ct_AR="ar" |
| 11267 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11268 | break 2 |
| 11269 | fi |
| 11270 | done |
| 11271 | done |
| 11272 | |
| 11273 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 11274 | fi |
| 11275 | fi |
| 11276 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11277 | if test -n "$ac_ct_AR"; then |
| 11278 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11279 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 11280 | else |
| 11281 | echo "$as_me:$LINENO: result: no" >&5 |
| 11282 | echo "${ECHO_T}no" >&6 |
| 11283 | fi |
| 11284 | |
| 11285 | AR=$ac_ct_AR |
| 11286 | else |
| 11287 | AR="$ac_cv_prog_AR" |
| 11288 | fi |
| 11289 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11290 | if test -n "$ac_tool_prefix"; then |
| 11291 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11292 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11295 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11297 | else |
| 11298 | if test -n "$RANLIB"; then |
| 11299 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11300 | else |
| 11301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11302 | for as_dir in $PATH |
| 11303 | do |
| 11304 | IFS=$as_save_IFS |
| 11305 | test -z "$as_dir" && as_dir=. |
| 11306 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11308 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11310 | break 2 |
| 11311 | fi |
| 11312 | done |
| 11313 | done |
| 11314 | |
| 11315 | fi |
| 11316 | fi |
| 11317 | RANLIB=$ac_cv_prog_RANLIB |
| 11318 | if test -n "$RANLIB"; then |
| 11319 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11320 | echo "${ECHO_T}$RANLIB" >&6 |
| 11321 | else |
| 11322 | echo "$as_me:$LINENO: result: no" >&5 |
| 11323 | echo "${ECHO_T}no" >&6 |
| 11324 | fi |
| 11325 | |
| 11326 | fi |
| 11327 | if test -z "$ac_cv_prog_RANLIB"; then |
| 11328 | ac_ct_RANLIB=$RANLIB |
| 11329 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11330 | set dummy ranlib; ac_word=$2 |
| 11331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11333 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11335 | else |
| 11336 | if test -n "$ac_ct_RANLIB"; then |
| 11337 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11338 | else |
| 11339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11340 | for as_dir in $PATH |
| 11341 | do |
| 11342 | IFS=$as_save_IFS |
| 11343 | test -z "$as_dir" && as_dir=. |
| 11344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11346 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11348 | break 2 |
| 11349 | fi |
| 11350 | done |
| 11351 | done |
| 11352 | |
| 11353 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 11354 | fi |
| 11355 | fi |
| 11356 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11357 | if test -n "$ac_ct_RANLIB"; then |
| 11358 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11359 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 11360 | else |
| 11361 | echo "$as_me:$LINENO: result: no" >&5 |
| 11362 | echo "${ECHO_T}no" >&6 |
| 11363 | fi |
| 11364 | |
| 11365 | RANLIB=$ac_ct_RANLIB |
| 11366 | else |
| 11367 | RANLIB="$ac_cv_prog_RANLIB" |
| 11368 | fi |
| 11369 | |
| 11370 | if test -n "$ac_tool_prefix"; then |
| 11371 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 11372 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 11373 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11375 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11377 | else |
| 11378 | if test -n "$STRIP"; then |
| 11379 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11380 | else |
| 11381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11382 | for as_dir in $PATH |
| 11383 | do |
| 11384 | IFS=$as_save_IFS |
| 11385 | test -z "$as_dir" && as_dir=. |
| 11386 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11387 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11388 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11390 | break 2 |
| 11391 | fi |
| 11392 | done |
| 11393 | done |
| 11394 | |
| 11395 | fi |
| 11396 | fi |
| 11397 | STRIP=$ac_cv_prog_STRIP |
| 11398 | if test -n "$STRIP"; then |
| 11399 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11400 | echo "${ECHO_T}$STRIP" >&6 |
| 11401 | else |
| 11402 | echo "$as_me:$LINENO: result: no" >&5 |
| 11403 | echo "${ECHO_T}no" >&6 |
| 11404 | fi |
| 11405 | |
| 11406 | fi |
| 11407 | if test -z "$ac_cv_prog_STRIP"; then |
| 11408 | ac_ct_STRIP=$STRIP |
| 11409 | # Extract the first word of "strip", so it can be a program name with args. |
| 11410 | set dummy strip; ac_word=$2 |
| 11411 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11413 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11415 | else |
| 11416 | if test -n "$ac_ct_STRIP"; then |
| 11417 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11418 | else |
| 11419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11420 | for as_dir in $PATH |
| 11421 | do |
| 11422 | IFS=$as_save_IFS |
| 11423 | test -z "$as_dir" && as_dir=. |
| 11424 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11425 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11426 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11428 | break 2 |
| 11429 | fi |
| 11430 | done |
| 11431 | done |
| 11432 | |
| 11433 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 11434 | fi |
| 11435 | fi |
| 11436 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11437 | if test -n "$ac_ct_STRIP"; then |
| 11438 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11439 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 11440 | else |
| 11441 | echo "$as_me:$LINENO: result: no" >&5 |
| 11442 | echo "${ECHO_T}no" >&6 |
| 11443 | fi |
| 11444 | |
| 11445 | STRIP=$ac_ct_STRIP |
| 11446 | else |
| 11447 | STRIP="$ac_cv_prog_STRIP" |
| 11448 | fi |
| 11449 | |
| 11450 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11451 | old_CC="$CC" |
| 11452 | old_CFLAGS="$CFLAGS" |
| 11453 | |
| 11454 | # Set sane defaults for various variables |
| 11455 | test -z "$AR" && AR=ar |
| 11456 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 11457 | test -z "$AS" && AS=as |
| 11458 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11459 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11460 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11461 | test -z "$LD" && LD=ld |
| 11462 | test -z "$LN_S" && LN_S="ln -s" |
| 11463 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 11464 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11465 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11466 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 11467 | test -z "$RANLIB" && RANLIB=: |
| 11468 | test -z "$STRIP" && STRIP=: |
| 11469 | test -z "$ac_objext" && ac_objext=o |
| 11470 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11471 | # Determine commands to create old-style static archives. |
| 11472 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 11473 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11474 | old_postuninstall_cmds= |
| 11475 | |
| 11476 | if test -n "$RANLIB"; then |
| 11477 | case $host_os in |
| 11478 | openbsd*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11479 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11480 | ;; |
| 11481 | *) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11482 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11483 | ;; |
| 11484 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11485 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11486 | fi |
| 11487 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11488 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 11489 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11490 | # Only perform the check for file, if the check method requires it |
| 11491 | case $deplibs_check_method in |
| 11492 | file_magic*) |
| 11493 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 11494 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 11495 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 11496 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 11497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11498 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11499 | case $MAGIC_CMD in |
| 11500 | [\\/*] | ?:[\\/]*) |
| 11501 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11502 | ;; |
| 11503 | *) |
| 11504 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11505 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11506 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11507 | for ac_dir in $ac_dummy; do |
| 11508 | IFS="$lt_save_ifs" |
| 11509 | test -z "$ac_dir" && ac_dir=. |
| 11510 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 11511 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 11512 | if test -n "$file_magic_test_file"; then |
| 11513 | case $deplibs_check_method in |
| 11514 | "file_magic "*) |
| 11515 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 11516 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11517 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11518 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11519 | : |
| 11520 | else |
| 11521 | cat <<EOF 1>&2 |
| 11522 | |
| 11523 | *** Warning: the command libtool uses to detect shared libraries, |
| 11524 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11525 | *** The result is that libtool may fail to recognize shared libraries |
| 11526 | *** as such. This will affect the creation of libtool libraries that |
| 11527 | *** depend on shared libraries, but programs linked with such libtool |
| 11528 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11529 | *** may want to report the problem to your system manager and/or to |
| 11530 | *** bug-libtool@gnu.org |
| 11531 | |
| 11532 | EOF |
| 11533 | fi ;; |
| 11534 | esac |
| 11535 | fi |
| 11536 | break |
| 11537 | fi |
| 11538 | done |
| 11539 | IFS="$lt_save_ifs" |
| 11540 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11541 | ;; |
| 11542 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11543 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11544 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11545 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11546 | if test -n "$MAGIC_CMD"; then |
| 11547 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 11548 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 11549 | else |
| 11550 | echo "$as_me:$LINENO: result: no" >&5 |
| 11551 | echo "${ECHO_T}no" >&6 |
| 11552 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11553 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11554 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 11555 | if test -n "$ac_tool_prefix"; then |
| 11556 | echo "$as_me:$LINENO: checking for file" >&5 |
| 11557 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 11558 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 11559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11560 | else |
| 11561 | case $MAGIC_CMD in |
| 11562 | [\\/*] | ?:[\\/]*) |
| 11563 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11564 | ;; |
| 11565 | *) |
| 11566 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11567 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11568 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11569 | for ac_dir in $ac_dummy; do |
| 11570 | IFS="$lt_save_ifs" |
| 11571 | test -z "$ac_dir" && ac_dir=. |
| 11572 | if test -f $ac_dir/file; then |
| 11573 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 11574 | if test -n "$file_magic_test_file"; then |
| 11575 | case $deplibs_check_method in |
| 11576 | "file_magic "*) |
| 11577 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 11578 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11579 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11580 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11581 | : |
| 11582 | else |
| 11583 | cat <<EOF 1>&2 |
| 11584 | |
| 11585 | *** Warning: the command libtool uses to detect shared libraries, |
| 11586 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11587 | *** The result is that libtool may fail to recognize shared libraries |
| 11588 | *** as such. This will affect the creation of libtool libraries that |
| 11589 | *** depend on shared libraries, but programs linked with such libtool |
| 11590 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11591 | *** may want to report the problem to your system manager and/or to |
| 11592 | *** bug-libtool@gnu.org |
| 11593 | |
| 11594 | EOF |
| 11595 | fi ;; |
| 11596 | esac |
| 11597 | fi |
| 11598 | break |
| 11599 | fi |
| 11600 | done |
| 11601 | IFS="$lt_save_ifs" |
| 11602 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11603 | ;; |
| 11604 | esac |
| 11605 | fi |
| 11606 | |
| 11607 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11608 | if test -n "$MAGIC_CMD"; then |
| 11609 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 11610 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 11611 | else |
| 11612 | echo "$as_me:$LINENO: result: no" >&5 |
| 11613 | echo "${ECHO_T}no" >&6 |
| 11614 | fi |
| 11615 | |
| 11616 | else |
| 11617 | MAGIC_CMD=: |
| 11618 | fi |
| 11619 | fi |
| 11620 | |
| 11621 | fi |
| 11622 | ;; |
| 11623 | esac |
| 11624 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 11625 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11626 | enable_win32_dll=no |
| 11627 | |
| 11628 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 11629 | if test "${enable_libtool_lock+set}" = set; then |
| 11630 | enableval="$enable_libtool_lock" |
| 11631 | |
| 11632 | fi; |
| 11633 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 11634 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11635 | |
| 11636 | # Check whether --with-pic or --without-pic was given. |
| 11637 | if test "${with_pic+set}" = set; then |
| 11638 | withval="$with_pic" |
| 11639 | pic_mode="$withval" |
| 11640 | else |
| 11641 | pic_mode=default |
| 11642 | fi; |
| 11643 | test -z "$pic_mode" && pic_mode=default |
| 11644 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11645 | # Use C for the default configuration in the libtool script |
| 11646 | tagname= |
| 11647 | lt_save_CC="$CC" |
| 11648 | ac_ext=c |
| 11649 | ac_cpp='$CPP $CPPFLAGS' |
| 11650 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11651 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11652 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11653 | |
| 11654 | |
| 11655 | # Source file extension for C test sources. |
| 11656 | ac_ext=c |
| 11657 | |
| 11658 | # Object file extension for compiled C test sources. |
| 11659 | objext=o |
| 11660 | objext=$objext |
| 11661 | |
| 11662 | # Code to be used in simple compile tests |
| 11663 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 11664 | |
| 11665 | # Code to be used in simple link tests |
| 11666 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 11667 | |
| 11668 | |
| 11669 | # If no C compiler was specified, use CC. |
| 11670 | LTCC=${LTCC-"$CC"} |
| 11671 | |
| 11672 | # Allow CC to be a program name with arguments. |
| 11673 | compiler=$CC |
| 11674 | |
| 11675 | |
| 11676 | # |
| 11677 | # Check for any special shared library compilation flags. |
| 11678 | # |
| 11679 | lt_prog_cc_shlib= |
| 11680 | if test "$GCC" = no; then |
| 11681 | case $host_os in |
| 11682 | sco3.2v5*) |
| 11683 | lt_prog_cc_shlib='-belf' |
| 11684 | ;; |
| 11685 | esac |
| 11686 | fi |
| 11687 | if test -n "$lt_prog_cc_shlib"; then |
| 11688 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 11689 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 11690 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 11691 | else |
| 11692 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 11693 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 11694 | lt_cv_prog_cc_can_build_shared=no |
| 11695 | fi |
| 11696 | fi |
| 11697 | |
| 11698 | |
| 11699 | # |
| 11700 | # Check to make sure the static flag actually works. |
| 11701 | # |
| 11702 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 11703 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 11704 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11706 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11707 | lt_prog_compiler_static_works=no |
| 11708 | save_LDFLAGS="$LDFLAGS" |
| 11709 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 11710 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11711 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11712 | # The compiler can only warn and ignore the option if not recognized |
| 11713 | # So say no if there are warnings |
| 11714 | if test -s conftest.err; then |
| 11715 | # Append any errors to the config.log. |
| 11716 | cat conftest.err 1>&5 |
| 11717 | else |
| 11718 | lt_prog_compiler_static_works=yes |
| 11719 | fi |
| 11720 | fi |
| 11721 | $rm conftest* |
| 11722 | LDFLAGS="$save_LDFLAGS" |
| 11723 | |
| 11724 | fi |
| 11725 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 11726 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 11727 | |
| 11728 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 11729 | : |
| 11730 | else |
| 11731 | lt_prog_compiler_static= |
| 11732 | fi |
| 11733 | |
| 11734 | |
| 11735 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11736 | |
| 11737 | lt_prog_compiler_no_builtin_flag= |
| 11738 | |
| 11739 | if test "$GCC" = yes; then |
| 11740 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 11741 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11742 | |
| 11743 | 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] | 11744 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 11745 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 11746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11747 | else |
| 11748 | lt_cv_prog_compiler_rtti_exceptions=no |
| 11749 | ac_outfile=conftest.$ac_objext |
| 11750 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11751 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 11752 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11753 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11754 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11755 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11756 | # The option is referenced via a variable to avoid confusing sed. |
| 11757 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11758 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11759 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11760 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 11761 | (eval echo "\"\$as_me:11761: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11762 | (eval "$lt_compile" 2>conftest.err) |
| 11763 | ac_status=$? |
| 11764 | cat conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 11765 | echo "$as_me:11765: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11766 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11767 | # The compiler can only warn and ignore the option if not recognized |
| 11768 | # So say no if there are warnings |
| 11769 | if test ! -s conftest.err; then |
| 11770 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 11771 | fi |
| 11772 | fi |
| 11773 | $rm conftest* |
| 11774 | |
| 11775 | fi |
| 11776 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 11777 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 11778 | |
| 11779 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 11780 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 11781 | else |
| 11782 | : |
| 11783 | fi |
| 11784 | |
| 11785 | fi |
| 11786 | |
| 11787 | lt_prog_compiler_wl= |
| 11788 | lt_prog_compiler_pic= |
| 11789 | lt_prog_compiler_static= |
| 11790 | |
| 11791 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 11792 | 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] | 11793 | |
| 11794 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11795 | lt_prog_compiler_wl='-Wl,' |
| 11796 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11797 | |
| 11798 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11799 | aix*) |
| 11800 | # All AIX code is PIC. |
| 11801 | if test "$host_cpu" = ia64; then |
| 11802 | # AIX 5 now supports IA64 processor |
| 11803 | lt_prog_compiler_static='-Bstatic' |
| 11804 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11805 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11806 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11807 | amigaos*) |
| 11808 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11809 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11810 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11811 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11812 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11813 | |
| 11814 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11815 | # PIC is the default for these OSes. |
| 11816 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11817 | |
| 11818 | mingw* | pw32* | os2*) |
| 11819 | # This hack is so that the source file can tell whether it is being |
| 11820 | # built for inclusion in a dll (and should export symbols for example). |
| 11821 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11822 | ;; |
| 11823 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11824 | darwin* | rhapsody*) |
| 11825 | # PIC is the default on this platform |
| 11826 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11827 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11828 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11829 | |
| 11830 | msdosdjgpp*) |
| 11831 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 11832 | # on systems that don't support them. |
| 11833 | lt_prog_compiler_can_build_shared=no |
| 11834 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11835 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11836 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11837 | sysv4*MP*) |
| 11838 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11839 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11840 | fi |
| 11841 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11842 | |
| 11843 | hpux*) |
| 11844 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11845 | # not for PA HP-UX. |
| 11846 | case "$host_cpu" in |
| 11847 | hppa*64*|ia64*) |
| 11848 | # +Z the default |
| 11849 | ;; |
| 11850 | *) |
| 11851 | lt_prog_compiler_pic='-fPIC' |
| 11852 | ;; |
| 11853 | esac |
| 11854 | ;; |
| 11855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11856 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11857 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11858 | ;; |
| 11859 | esac |
| 11860 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11861 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11862 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11863 | aix*) |
| 11864 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11865 | if test "$host_cpu" = ia64; then |
| 11866 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11867 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11868 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11869 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11870 | fi |
| 11871 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11872 | darwin*) |
| 11873 | # PIC is the default on this platform |
| 11874 | # Common symbols not allowed in MH_DYLIB files |
| 11875 | case "$cc_basename" in |
| 11876 | xlc*) |
| 11877 | lt_prog_compiler_pic='-qnocommon' |
| 11878 | lt_prog_compiler_wl='-Wl,' |
| 11879 | ;; |
| 11880 | esac |
| 11881 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11882 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11883 | mingw* | pw32* | os2*) |
| 11884 | # This hack is so that the source file can tell whether it is being |
| 11885 | # built for inclusion in a dll (and should export symbols for example). |
| 11886 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11887 | ;; |
| 11888 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11889 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11890 | lt_prog_compiler_wl='-Wl,' |
| 11891 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11892 | # not for PA HP-UX. |
| 11893 | case "$host_cpu" in |
| 11894 | hppa*64*|ia64*) |
| 11895 | # +Z the default |
| 11896 | ;; |
| 11897 | *) |
| 11898 | lt_prog_compiler_pic='+Z' |
| 11899 | ;; |
| 11900 | esac |
| 11901 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 11902 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11903 | ;; |
| 11904 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11905 | irix5* | irix6* | nonstopux*) |
| 11906 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11907 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11908 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11909 | ;; |
| 11910 | |
| 11911 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11912 | lt_prog_compiler_pic='-KPIC' |
| 11913 | lt_prog_compiler_static='-Bstatic' |
| 11914 | ;; |
| 11915 | |
| 11916 | linux*) |
| 11917 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11918 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11919 | lt_prog_compiler_wl='-Wl,' |
| 11920 | lt_prog_compiler_pic='-KPIC' |
| 11921 | lt_prog_compiler_static='-static' |
| 11922 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11923 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11924 | lt_prog_compiler_wl='-Wl,' |
| 11925 | # All Alpha code is PIC. |
| 11926 | lt_prog_compiler_static='-non_shared' |
| 11927 | ;; |
| 11928 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11929 | ;; |
| 11930 | |
| 11931 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11932 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11933 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11934 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11935 | ;; |
| 11936 | |
| 11937 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11938 | lt_prog_compiler_pic='-Kpic' |
| 11939 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11940 | ;; |
| 11941 | |
| 11942 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11943 | lt_prog_compiler_wl='-Wl,' |
| 11944 | lt_prog_compiler_pic='-KPIC' |
| 11945 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11946 | ;; |
| 11947 | |
| 11948 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11949 | lt_prog_compiler_wl='-Qoption ld ' |
| 11950 | lt_prog_compiler_pic='-PIC' |
| 11951 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11952 | ;; |
| 11953 | |
| 11954 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11955 | lt_prog_compiler_wl='-Wl,' |
| 11956 | lt_prog_compiler_pic='-KPIC' |
| 11957 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11958 | ;; |
| 11959 | |
| 11960 | sysv4*MP*) |
| 11961 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11962 | lt_prog_compiler_pic='-Kconform_pic' |
| 11963 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11964 | fi |
| 11965 | ;; |
| 11966 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11967 | uts4*) |
| 11968 | lt_prog_compiler_pic='-pic' |
| 11969 | lt_prog_compiler_static='-Bstatic' |
| 11970 | ;; |
| 11971 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11972 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11973 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11974 | ;; |
| 11975 | esac |
| 11976 | fi |
| 11977 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11978 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 11979 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11980 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11981 | # |
| 11982 | # Check to make sure the PIC flag actually works. |
| 11983 | # |
| 11984 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11985 | |
| 11986 | 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] | 11987 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 11988 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11990 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11991 | lt_prog_compiler_pic_works=no |
| 11992 | ac_outfile=conftest.$ac_objext |
| 11993 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11994 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 11995 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11996 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11997 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11998 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11999 | # The option is referenced via a variable to avoid confusing sed. |
| 12000 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12001 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12002 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12003 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 12004 | (eval echo "\"\$as_me:12004: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12005 | (eval "$lt_compile" 2>conftest.err) |
| 12006 | ac_status=$? |
| 12007 | cat conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 12008 | echo "$as_me:12008: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12009 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12010 | # The compiler can only warn and ignore the option if not recognized |
| 12011 | # So say no if there are warnings |
| 12012 | if test ! -s conftest.err; then |
| 12013 | lt_prog_compiler_pic_works=yes |
| 12014 | fi |
| 12015 | fi |
| 12016 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12017 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12018 | fi |
| 12019 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 12020 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12021 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12022 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 12023 | case $lt_prog_compiler_pic in |
| 12024 | "" | " "*) ;; |
| 12025 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 12026 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12027 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12028 | lt_prog_compiler_pic= |
| 12029 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12030 | fi |
| 12031 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12032 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12033 | case "$host_os" in |
| 12034 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12035 | *djgpp*) |
| 12036 | lt_prog_compiler_pic= |
| 12037 | ;; |
| 12038 | *) |
| 12039 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 12040 | ;; |
| 12041 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12042 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12043 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12044 | 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] | 12045 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12047 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12048 | lt_cv_prog_compiler_c_o=no |
| 12049 | $rm -r conftest 2>/dev/null |
| 12050 | mkdir conftest |
| 12051 | cd conftest |
| 12052 | mkdir out |
| 12053 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12054 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12055 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12056 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12057 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12058 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12059 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12060 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12061 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12062 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12063 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 12064 | (eval echo "\"\$as_me:12064: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12065 | (eval "$lt_compile" 2>out/conftest.err) |
| 12066 | ac_status=$? |
| 12067 | cat out/conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 12068 | echo "$as_me:12068: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12069 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12070 | then |
| 12071 | # The compiler can only warn and ignore the option if not recognized |
| 12072 | # So say no if there are warnings |
| 12073 | if test ! -s out/conftest.err; then |
| 12074 | lt_cv_prog_compiler_c_o=yes |
| 12075 | fi |
| 12076 | fi |
| 12077 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12078 | $rm conftest* |
| 12079 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12080 | # template instantiation |
| 12081 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12082 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12083 | cd .. |
| 12084 | rmdir conftest |
| 12085 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12086 | |
| 12087 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12088 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12089 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12090 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12091 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12092 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12093 | 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] | 12094 | # do not overwrite the value of need_locks provided by the user |
| 12095 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12096 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12097 | hard_links=yes |
| 12098 | $rm conftest* |
| 12099 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12100 | touch conftest.a |
| 12101 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12102 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12103 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12104 | echo "${ECHO_T}$hard_links" >&6 |
| 12105 | if test "$hard_links" = no; then |
| 12106 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12107 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12108 | need_locks=warn |
| 12109 | fi |
| 12110 | else |
| 12111 | need_locks=no |
| 12112 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12113 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12114 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12115 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12116 | |
| 12117 | runpath_var= |
| 12118 | allow_undefined_flag= |
| 12119 | enable_shared_with_static_runtimes=no |
| 12120 | archive_cmds= |
| 12121 | archive_expsym_cmds= |
| 12122 | old_archive_From_new_cmds= |
| 12123 | old_archive_from_expsyms_cmds= |
| 12124 | export_dynamic_flag_spec= |
| 12125 | whole_archive_flag_spec= |
| 12126 | thread_safe_flag_spec= |
| 12127 | hardcode_libdir_flag_spec= |
| 12128 | hardcode_libdir_flag_spec_ld= |
| 12129 | hardcode_libdir_separator= |
| 12130 | hardcode_direct=no |
| 12131 | hardcode_minus_L=no |
| 12132 | hardcode_shlibpath_var=unsupported |
| 12133 | link_all_deplibs=unknown |
| 12134 | hardcode_automatic=no |
| 12135 | module_cmds= |
| 12136 | module_expsym_cmds= |
| 12137 | always_export_symbols=no |
| 12138 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12139 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12140 | # included in the symbol list |
| 12141 | include_expsyms= |
| 12142 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12143 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12144 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12145 | # as well as any symbol that contains `d'. |
| 12146 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 12147 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12148 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12149 | # the symbol is explicitly referenced. Since portable code cannot |
| 12150 | # rely on this symbol name, it's probably fine to never include it in |
| 12151 | # preloaded symbol tables. |
| 12152 | extract_expsyms_cmds= |
| 12153 | |
| 12154 | case $host_os in |
| 12155 | cygwin* | mingw* | pw32*) |
| 12156 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12157 | # When not using gcc, we currently assume that we are using |
| 12158 | # Microsoft Visual C++. |
| 12159 | if test "$GCC" != yes; then |
| 12160 | with_gnu_ld=no |
| 12161 | fi |
| 12162 | ;; |
| 12163 | openbsd*) |
| 12164 | with_gnu_ld=no |
| 12165 | ;; |
| 12166 | esac |
| 12167 | |
| 12168 | ld_shlibs=yes |
| 12169 | if test "$with_gnu_ld" = yes; then |
| 12170 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12171 | wlarc='${wl}' |
| 12172 | |
| 12173 | # See if GNU ld supports shared libraries. |
| 12174 | case $host_os in |
| 12175 | aix3* | aix4* | aix5*) |
| 12176 | # On AIX/PPC, the GNU linker is very broken |
| 12177 | if test "$host_cpu" != ia64; then |
| 12178 | ld_shlibs=no |
| 12179 | cat <<EOF 1>&2 |
| 12180 | |
| 12181 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12182 | *** to be unable to reliably create shared libraries on AIX. |
| 12183 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12184 | *** really care for shared libraries, you may want to modify your PATH |
| 12185 | *** so that a non-GNU linker is found, and then restart. |
| 12186 | |
| 12187 | EOF |
| 12188 | fi |
| 12189 | ;; |
| 12190 | |
| 12191 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12192 | 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] | 12193 | hardcode_libdir_flag_spec='-L$libdir' |
| 12194 | hardcode_minus_L=yes |
| 12195 | |
| 12196 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12197 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12198 | # to version 4, is to share data among multiple programs linked |
| 12199 | # with the same dynamic library. Since this doesn't match the |
| 12200 | # behavior of shared libraries on other platforms, we can't use |
| 12201 | # them. |
| 12202 | ld_shlibs=no |
| 12203 | ;; |
| 12204 | |
| 12205 | beos*) |
| 12206 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12207 | allow_undefined_flag=unsupported |
| 12208 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12209 | # support --undefined. This deserves some investigation. FIXME |
| 12210 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12211 | else |
| 12212 | ld_shlibs=no |
| 12213 | fi |
| 12214 | ;; |
| 12215 | |
| 12216 | cygwin* | mingw* | pw32*) |
| 12217 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12218 | # as there is no search path for DLLs. |
| 12219 | hardcode_libdir_flag_spec='-L$libdir' |
| 12220 | allow_undefined_flag=unsupported |
| 12221 | always_export_symbols=no |
| 12222 | enable_shared_with_static_runtimes=yes |
| 12223 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12224 | |
| 12225 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12226 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12227 | # If the export-symbols file already is a .def file (1st line |
| 12228 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12229 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12230 | cp $export_symbols $output_objdir/$soname.def; |
| 12231 | else |
| 12232 | echo EXPORTS > $output_objdir/$soname.def; |
| 12233 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12234 | fi~ |
| 12235 | $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] | 12236 | else |
| 12237 | ld_shlibs=no |
| 12238 | fi |
| 12239 | ;; |
| 12240 | |
| 12241 | netbsd*) |
| 12242 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12243 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12244 | wlarc= |
| 12245 | else |
| 12246 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12247 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12248 | fi |
| 12249 | ;; |
| 12250 | |
| 12251 | solaris* | sysv5*) |
| 12252 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12253 | ld_shlibs=no |
| 12254 | cat <<EOF 1>&2 |
| 12255 | |
| 12256 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12257 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12258 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12259 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12260 | *** your PATH or compiler configuration so that the native linker is |
| 12261 | *** used, and then restart. |
| 12262 | |
| 12263 | EOF |
| 12264 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12265 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12266 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12267 | else |
| 12268 | ld_shlibs=no |
| 12269 | fi |
| 12270 | ;; |
| 12271 | |
| 12272 | sunos4*) |
| 12273 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12274 | wlarc= |
| 12275 | hardcode_direct=yes |
| 12276 | hardcode_shlibpath_var=no |
| 12277 | ;; |
| 12278 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12279 | linux*) |
| 12280 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12281 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12282 | archive_cmds="$tmp_archive_cmds" |
| 12283 | supports_anon_versioning=no |
| 12284 | case `$LD -v 2>/dev/null` in |
| 12285 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12286 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12287 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12288 | *\ 2.11.*) ;; # other 2.11 versions |
| 12289 | *) supports_anon_versioning=yes ;; |
| 12290 | esac |
| 12291 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12292 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 12293 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12294 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12295 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12296 | else |
| 12297 | archive_expsym_cmds="$tmp_archive_cmds" |
| 12298 | fi |
| 12299 | else |
| 12300 | ld_shlibs=no |
| 12301 | fi |
| 12302 | ;; |
| 12303 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12304 | *) |
| 12305 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12306 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12307 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12308 | else |
| 12309 | ld_shlibs=no |
| 12310 | fi |
| 12311 | ;; |
| 12312 | esac |
| 12313 | |
| 12314 | if test "$ld_shlibs" = yes; then |
| 12315 | runpath_var=LD_RUN_PATH |
| 12316 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 12317 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 12318 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12319 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12320 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12321 | else |
| 12322 | whole_archive_flag_spec= |
| 12323 | fi |
| 12324 | fi |
| 12325 | else |
| 12326 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12327 | case $host_os in |
| 12328 | aix3*) |
| 12329 | allow_undefined_flag=unsupported |
| 12330 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12331 | 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] | 12332 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12333 | # are no directories specified by -L. |
| 12334 | hardcode_minus_L=yes |
| 12335 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12336 | # Neither direct hardcoding nor static linking is supported with a |
| 12337 | # broken collect2. |
| 12338 | hardcode_direct=unsupported |
| 12339 | fi |
| 12340 | ;; |
| 12341 | |
| 12342 | aix4* | aix5*) |
| 12343 | if test "$host_cpu" = ia64; then |
| 12344 | # On IA64, the linker does run time linking by default, so we don't |
| 12345 | # have to do anything special. |
| 12346 | aix_use_runtimelinking=no |
| 12347 | exp_sym_flag='-Bexport' |
| 12348 | no_entry_flag="" |
| 12349 | else |
| 12350 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12351 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12352 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12353 | 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' |
| 12354 | else |
| 12355 | 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' |
| 12356 | fi |
| 12357 | aix_use_runtimelinking=no |
| 12358 | |
| 12359 | # Test if we are trying to use run time linking or normal |
| 12360 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12361 | # need to do runtime linking. |
| 12362 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 12363 | for ld_flag in $LDFLAGS; do |
| 12364 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 12365 | aix_use_runtimelinking=yes |
| 12366 | break |
| 12367 | fi |
| 12368 | done |
| 12369 | esac |
| 12370 | |
| 12371 | exp_sym_flag='-bexport' |
| 12372 | no_entry_flag='-bnoentry' |
| 12373 | fi |
| 12374 | |
| 12375 | # When large executables or shared objects are built, AIX ld can |
| 12376 | # have problems creating the table of contents. If linking a library |
| 12377 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12378 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12379 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12380 | |
| 12381 | archive_cmds='' |
| 12382 | hardcode_direct=yes |
| 12383 | hardcode_libdir_separator=':' |
| 12384 | link_all_deplibs=yes |
| 12385 | |
| 12386 | if test "$GCC" = yes; then |
| 12387 | case $host_os in aix4.012|aix4.012.*) |
| 12388 | # We only want to do this on AIX 4.2 and lower, the check |
| 12389 | # below for broken collect2 doesn't work under 4.3+ |
| 12390 | collect2name=`${CC} -print-prog-name=collect2` |
| 12391 | if test -f "$collect2name" && \ |
| 12392 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 12393 | then |
| 12394 | # We have reworked collect2 |
| 12395 | hardcode_direct=yes |
| 12396 | else |
| 12397 | # We have old collect2 |
| 12398 | hardcode_direct=unsupported |
| 12399 | # It fails to find uninstalled libraries when the uninstalled |
| 12400 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12401 | # to unsupported forces relinking |
| 12402 | hardcode_minus_L=yes |
| 12403 | hardcode_libdir_flag_spec='-L$libdir' |
| 12404 | hardcode_libdir_separator= |
| 12405 | fi |
| 12406 | esac |
| 12407 | shared_flag='-shared' |
| 12408 | else |
| 12409 | # not using gcc |
| 12410 | if test "$host_cpu" = ia64; then |
| 12411 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12412 | # chokes on -Wl,-G. The following line is correct: |
| 12413 | shared_flag='-G' |
| 12414 | else |
| 12415 | if test "$aix_use_runtimelinking" = yes; then |
| 12416 | shared_flag='${wl}-G' |
| 12417 | else |
| 12418 | shared_flag='${wl}-bM:SRE' |
| 12419 | fi |
| 12420 | fi |
| 12421 | fi |
| 12422 | |
| 12423 | # It seems that -bexpall does not export symbols beginning with |
| 12424 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12425 | always_export_symbols=yes |
| 12426 | if test "$aix_use_runtimelinking" = yes; then |
| 12427 | # Warning - without using the other runtime loading flags (-brtl), |
| 12428 | # -berok will link without error, but may produce a broken library. |
| 12429 | allow_undefined_flag='-berok' |
| 12430 | # Determine the default libpath from the value encoded in an empty executable. |
| 12431 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12432 | /* confdefs.h. */ |
| 12433 | _ACEOF |
| 12434 | cat confdefs.h >>conftest.$ac_ext |
| 12435 | cat >>conftest.$ac_ext <<_ACEOF |
| 12436 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12437 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12438 | int |
| 12439 | main () |
| 12440 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12442 | ; |
| 12443 | return 0; |
| 12444 | } |
| 12445 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12446 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12448 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12449 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12451 | rm -f conftest.er1 |
| 12452 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12454 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12455 | { ac_try='test -z "$ac_c_werror_flag" |
| 12456 | || test ! -s conftest.err' |
| 12457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12458 | (eval $ac_try) 2>&5 |
| 12459 | ac_status=$? |
| 12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12461 | (exit $ac_status); }; } && |
| 12462 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12464 | (eval $ac_try) 2>&5 |
| 12465 | ac_status=$? |
| 12466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12467 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12468 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12469 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12470 | }'` |
| 12471 | # Check for a 64-bit object if we didn't find anything. |
| 12472 | 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; } |
| 12473 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12474 | else |
| 12475 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12477 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12478 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12479 | rm -f conftest.err conftest.$ac_objext \ |
| 12480 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12481 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12482 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12483 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12484 | 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" |
| 12485 | else |
| 12486 | if test "$host_cpu" = ia64; then |
| 12487 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 12488 | allow_undefined_flag="-z nodefs" |
| 12489 | 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" |
| 12490 | else |
| 12491 | # Determine the default libpath from the value encoded in an empty executable. |
| 12492 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12493 | /* confdefs.h. */ |
| 12494 | _ACEOF |
| 12495 | cat confdefs.h >>conftest.$ac_ext |
| 12496 | cat >>conftest.$ac_ext <<_ACEOF |
| 12497 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12498 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12499 | int |
| 12500 | main () |
| 12501 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12502 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12503 | ; |
| 12504 | return 0; |
| 12505 | } |
| 12506 | _ACEOF |
| 12507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12509 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12510 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12512 | rm -f conftest.er1 |
| 12513 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12515 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12516 | { ac_try='test -z "$ac_c_werror_flag" |
| 12517 | || test ! -s conftest.err' |
| 12518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12519 | (eval $ac_try) 2>&5 |
| 12520 | ac_status=$? |
| 12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12522 | (exit $ac_status); }; } && |
| 12523 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12525 | (eval $ac_try) 2>&5 |
| 12526 | ac_status=$? |
| 12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12528 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12529 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12530 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12531 | }'` |
| 12532 | # Check for a 64-bit object if we didn't find anything. |
| 12533 | 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; } |
| 12534 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12535 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12536 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12538 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12539 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12540 | rm -f conftest.err conftest.$ac_objext \ |
| 12541 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12542 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12543 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12544 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12545 | # Warning - without using the other run time loading flags, |
| 12546 | # -berok will link without error, but may produce a broken library. |
| 12547 | no_undefined_flag=' ${wl}-bernotok' |
| 12548 | allow_undefined_flag=' ${wl}-berok' |
| 12549 | # -bexpall does not export symbols beginning with underscore (_) |
| 12550 | always_export_symbols=yes |
| 12551 | # Exported symbols can be pulled into shared objects from archives |
| 12552 | whole_archive_flag_spec=' ' |
| 12553 | archive_cmds_need_lc=yes |
| 12554 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12555 | 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] | 12556 | fi |
| 12557 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12558 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12559 | |
| 12560 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12561 | 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] | 12562 | hardcode_libdir_flag_spec='-L$libdir' |
| 12563 | hardcode_minus_L=yes |
| 12564 | # see comment about different semantics on the GNU ld section |
| 12565 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12566 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12567 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12568 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12569 | export_dynamic_flag_spec=-rdynamic |
| 12570 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12571 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12572 | cygwin* | mingw* | pw32*) |
| 12573 | # When not using gcc, we currently assume that we are using |
| 12574 | # Microsoft Visual C++. |
| 12575 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12576 | # no search path for DLLs. |
| 12577 | hardcode_libdir_flag_spec=' ' |
| 12578 | allow_undefined_flag=unsupported |
| 12579 | # Tell ltmain to make .lib files, not .a files. |
| 12580 | libext=lib |
| 12581 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12582 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12583 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12584 | 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] | 12585 | # The linker will automatically build a .lib file if we build a DLL. |
| 12586 | old_archive_From_new_cmds='true' |
| 12587 | # FIXME: Should let the user specify the lib program. |
| 12588 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 12589 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 12590 | enable_shared_with_static_runtimes=yes |
| 12591 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12592 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12593 | darwin* | rhapsody*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12594 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12595 | rhapsody* | darwin1.[012]) |
| 12596 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 12597 | ;; |
| 12598 | *) # Darwin 1.3 on |
| 12599 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 12600 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12601 | else |
| 12602 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 12603 | 10.[012]) |
| 12604 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12605 | ;; |
| 12606 | 10.*) |
| 12607 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 12608 | ;; |
| 12609 | esac |
| 12610 | fi |
| 12611 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12612 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12613 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12614 | hardcode_direct=no |
| 12615 | hardcode_automatic=yes |
| 12616 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12617 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12618 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12619 | if test "$GCC" = yes ; then |
| 12620 | output_verbose_link_cmd='echo' |
| 12621 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 12622 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12623 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12624 | 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}' |
| 12625 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12626 | else |
| 12627 | case "$cc_basename" in |
| 12628 | xlc*) |
| 12629 | output_verbose_link_cmd='echo' |
| 12630 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 12631 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12632 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12633 | 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}' |
| 12634 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12635 | ;; |
| 12636 | *) |
| 12637 | ld_shlibs=no |
| 12638 | ;; |
| 12639 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12640 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12641 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12642 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12643 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12644 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12645 | hardcode_libdir_flag_spec='-L$libdir' |
| 12646 | hardcode_shlibpath_var=no |
| 12647 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12648 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12649 | freebsd1*) |
| 12650 | ld_shlibs=no |
| 12651 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12652 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12653 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 12654 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 12655 | # does not break anything, and helps significantly (at the cost of a little |
| 12656 | # extra space). |
| 12657 | freebsd2.2*) |
| 12658 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 12659 | hardcode_libdir_flag_spec='-R$libdir' |
| 12660 | hardcode_direct=yes |
| 12661 | hardcode_shlibpath_var=no |
| 12662 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12663 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12664 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 12665 | freebsd2*) |
| 12666 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12667 | hardcode_direct=yes |
| 12668 | hardcode_minus_L=yes |
| 12669 | hardcode_shlibpath_var=no |
| 12670 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12671 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12672 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12673 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12674 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 12675 | hardcode_libdir_flag_spec='-R$libdir' |
| 12676 | hardcode_direct=yes |
| 12677 | hardcode_shlibpath_var=no |
| 12678 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12679 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12680 | hpux9*) |
| 12681 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12682 | 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] | 12683 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12684 | 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] | 12685 | fi |
| 12686 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12687 | hardcode_libdir_separator=: |
| 12688 | hardcode_direct=yes |
| 12689 | |
| 12690 | # hardcode_minus_L: Not really in the search PATH, |
| 12691 | # but as the default location of the library. |
| 12692 | hardcode_minus_L=yes |
| 12693 | export_dynamic_flag_spec='${wl}-E' |
| 12694 | ;; |
| 12695 | |
| 12696 | hpux10* | hpux11*) |
| 12697 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 12698 | case "$host_cpu" in |
| 12699 | hppa*64*|ia64*) |
| 12700 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12701 | ;; |
| 12702 | *) |
| 12703 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12704 | ;; |
| 12705 | esac |
| 12706 | else |
| 12707 | case "$host_cpu" in |
| 12708 | hppa*64*|ia64*) |
| 12709 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12710 | ;; |
| 12711 | *) |
| 12712 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12713 | ;; |
| 12714 | esac |
| 12715 | fi |
| 12716 | if test "$with_gnu_ld" = no; then |
| 12717 | case "$host_cpu" in |
| 12718 | hppa*64*) |
| 12719 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12720 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 12721 | hardcode_libdir_separator=: |
| 12722 | hardcode_direct=no |
| 12723 | hardcode_shlibpath_var=no |
| 12724 | ;; |
| 12725 | ia64*) |
| 12726 | hardcode_libdir_flag_spec='-L$libdir' |
| 12727 | hardcode_direct=no |
| 12728 | hardcode_shlibpath_var=no |
| 12729 | |
| 12730 | # hardcode_minus_L: Not really in the search PATH, |
| 12731 | # but as the default location of the library. |
| 12732 | hardcode_minus_L=yes |
| 12733 | ;; |
| 12734 | *) |
| 12735 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12736 | hardcode_libdir_separator=: |
| 12737 | hardcode_direct=yes |
| 12738 | export_dynamic_flag_spec='${wl}-E' |
| 12739 | |
| 12740 | # hardcode_minus_L: Not really in the search PATH, |
| 12741 | # but as the default location of the library. |
| 12742 | hardcode_minus_L=yes |
| 12743 | ;; |
| 12744 | esac |
| 12745 | fi |
| 12746 | ;; |
| 12747 | |
| 12748 | irix5* | irix6* | nonstopux*) |
| 12749 | if test "$GCC" = yes; then |
| 12750 | 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' |
| 12751 | else |
| 12752 | 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' |
| 12753 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 12754 | fi |
| 12755 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12756 | hardcode_libdir_separator=: |
| 12757 | link_all_deplibs=yes |
| 12758 | ;; |
| 12759 | |
| 12760 | netbsd*) |
| 12761 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12762 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12763 | else |
| 12764 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12765 | fi |
| 12766 | hardcode_libdir_flag_spec='-R$libdir' |
| 12767 | hardcode_direct=yes |
| 12768 | hardcode_shlibpath_var=no |
| 12769 | ;; |
| 12770 | |
| 12771 | newsos6) |
| 12772 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12773 | hardcode_direct=yes |
| 12774 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12775 | hardcode_libdir_separator=: |
| 12776 | hardcode_shlibpath_var=no |
| 12777 | ;; |
| 12778 | |
| 12779 | openbsd*) |
| 12780 | hardcode_direct=yes |
| 12781 | hardcode_shlibpath_var=no |
| 12782 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12783 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12784 | 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] | 12785 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12786 | export_dynamic_flag_spec='${wl}-E' |
| 12787 | else |
| 12788 | case $host_os in |
| 12789 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 12790 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12791 | hardcode_libdir_flag_spec='-R$libdir' |
| 12792 | ;; |
| 12793 | *) |
| 12794 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12795 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12796 | ;; |
| 12797 | esac |
| 12798 | fi |
| 12799 | ;; |
| 12800 | |
| 12801 | os2*) |
| 12802 | hardcode_libdir_flag_spec='-L$libdir' |
| 12803 | hardcode_minus_L=yes |
| 12804 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12805 | 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] | 12806 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 12807 | ;; |
| 12808 | |
| 12809 | osf3*) |
| 12810 | if test "$GCC" = yes; then |
| 12811 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12812 | 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' |
| 12813 | else |
| 12814 | allow_undefined_flag=' -expect_unresolved \*' |
| 12815 | 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' |
| 12816 | fi |
| 12817 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12818 | hardcode_libdir_separator=: |
| 12819 | ;; |
| 12820 | |
| 12821 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12822 | if test "$GCC" = yes; then |
| 12823 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12824 | 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' |
| 12825 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12826 | else |
| 12827 | allow_undefined_flag=' -expect_unresolved \*' |
| 12828 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12829 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 12830 | $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' |
| 12831 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12832 | # Both c and cxx compiler support -rpath directly |
| 12833 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 12834 | fi |
| 12835 | hardcode_libdir_separator=: |
| 12836 | ;; |
| 12837 | |
| 12838 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12839 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12840 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12841 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12842 | runpath_var=LD_RUN_PATH |
| 12843 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12844 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12845 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12846 | solaris*) |
| 12847 | no_undefined_flag=' -z text' |
| 12848 | if test "$GCC" = yes; then |
| 12849 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12850 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12851 | $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] | 12852 | else |
| 12853 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12854 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12855 | $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] | 12856 | fi |
| 12857 | hardcode_libdir_flag_spec='-R$libdir' |
| 12858 | hardcode_shlibpath_var=no |
| 12859 | case $host_os in |
| 12860 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12861 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12862 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 12863 | esac |
| 12864 | link_all_deplibs=yes |
| 12865 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12866 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12867 | sunos4*) |
| 12868 | if test "x$host_vendor" = xsequent; then |
| 12869 | # Use $CC to link under sequent, because it throws in some extra .o |
| 12870 | # files that make .init and .fini sections work. |
| 12871 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12872 | else |
| 12873 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12874 | fi |
| 12875 | hardcode_libdir_flag_spec='-L$libdir' |
| 12876 | hardcode_direct=yes |
| 12877 | hardcode_minus_L=yes |
| 12878 | hardcode_shlibpath_var=no |
| 12879 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12880 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12881 | sysv4) |
| 12882 | case $host_vendor in |
| 12883 | sni) |
| 12884 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12885 | hardcode_direct=yes # is this really true??? |
| 12886 | ;; |
| 12887 | siemens) |
| 12888 | ## LD is ld it makes a PLAMLIB |
| 12889 | ## CC just makes a GrossModule. |
| 12890 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12891 | reload_cmds='$CC -r -o $output$reload_objs' |
| 12892 | hardcode_direct=no |
| 12893 | ;; |
| 12894 | motorola) |
| 12895 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12896 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12897 | ;; |
| 12898 | esac |
| 12899 | runpath_var='LD_RUN_PATH' |
| 12900 | hardcode_shlibpath_var=no |
| 12901 | ;; |
| 12902 | |
| 12903 | sysv4.3*) |
| 12904 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12905 | hardcode_shlibpath_var=no |
| 12906 | export_dynamic_flag_spec='-Bexport' |
| 12907 | ;; |
| 12908 | |
| 12909 | sysv4*MP*) |
| 12910 | if test -d /usr/nec; then |
| 12911 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12912 | hardcode_shlibpath_var=no |
| 12913 | runpath_var=LD_RUN_PATH |
| 12914 | hardcode_runpath_var=yes |
| 12915 | ld_shlibs=yes |
| 12916 | fi |
| 12917 | ;; |
| 12918 | |
| 12919 | sysv4.2uw2*) |
| 12920 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12921 | hardcode_direct=yes |
| 12922 | hardcode_minus_L=no |
| 12923 | hardcode_shlibpath_var=no |
| 12924 | hardcode_runpath_var=yes |
| 12925 | runpath_var=LD_RUN_PATH |
| 12926 | ;; |
| 12927 | |
| 12928 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 12929 | no_undefined_flag='${wl}-z ${wl}text' |
| 12930 | if test "$GCC" = yes; then |
| 12931 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12932 | else |
| 12933 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12934 | fi |
| 12935 | runpath_var='LD_RUN_PATH' |
| 12936 | hardcode_shlibpath_var=no |
| 12937 | ;; |
| 12938 | |
| 12939 | sysv5*) |
| 12940 | no_undefined_flag=' -z text' |
| 12941 | # $CC -shared without GNU ld will not create a library from C++ |
| 12942 | # object files and a static libstdc++, better avoid it by now |
| 12943 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12944 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12945 | $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] | 12946 | hardcode_libdir_flag_spec= |
| 12947 | hardcode_shlibpath_var=no |
| 12948 | runpath_var='LD_RUN_PATH' |
| 12949 | ;; |
| 12950 | |
| 12951 | uts4*) |
| 12952 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12953 | hardcode_libdir_flag_spec='-L$libdir' |
| 12954 | hardcode_shlibpath_var=no |
| 12955 | ;; |
| 12956 | |
| 12957 | *) |
| 12958 | ld_shlibs=no |
| 12959 | ;; |
| 12960 | esac |
| 12961 | fi |
| 12962 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12963 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 12964 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 12965 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12966 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12967 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 12968 | if test "$GCC" = yes; then |
| 12969 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 12970 | fi |
| 12971 | |
| 12972 | # |
| 12973 | # Do we need to explicitly link libc? |
| 12974 | # |
| 12975 | case "x$archive_cmds_need_lc" in |
| 12976 | x|xyes) |
| 12977 | # Assume -lc should be added |
| 12978 | archive_cmds_need_lc=yes |
| 12979 | |
| 12980 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12981 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12982 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12983 | # FIXME: we may have to deal with multi-command sequences. |
| 12984 | ;; |
| 12985 | '$CC '*) |
| 12986 | # Test whether the compiler implicitly links with -lc since on some |
| 12987 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12988 | # to ld, don't add -lc before -lgcc. |
| 12989 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12990 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 12991 | $rm conftest* |
| 12992 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12993 | |
| 12994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12995 | (eval $ac_compile) 2>&5 |
| 12996 | ac_status=$? |
| 12997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12998 | (exit $ac_status); } 2>conftest.err; then |
| 12999 | soname=conftest |
| 13000 | lib=conftest |
| 13001 | libobjs=conftest.$ac_objext |
| 13002 | deplibs= |
| 13003 | wl=$lt_prog_compiler_wl |
| 13004 | compiler_flags=-v |
| 13005 | linker_flags=-v |
| 13006 | verstring= |
| 13007 | output_objdir=. |
| 13008 | libname=conftest |
| 13009 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13010 | allow_undefined_flag= |
| 13011 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13012 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13013 | ac_status=$? |
| 13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13015 | (exit $ac_status); } |
| 13016 | then |
| 13017 | archive_cmds_need_lc=no |
| 13018 | else |
| 13019 | archive_cmds_need_lc=yes |
| 13020 | fi |
| 13021 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13022 | else |
| 13023 | cat conftest.err 1>&5 |
| 13024 | fi |
| 13025 | $rm conftest* |
| 13026 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 13027 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 13028 | ;; |
| 13029 | esac |
| 13030 | fi |
| 13031 | ;; |
| 13032 | esac |
| 13033 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13034 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13035 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13036 | library_names_spec= |
| 13037 | libname_spec='lib$name' |
| 13038 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13039 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13040 | postinstall_cmds= |
| 13041 | postuninstall_cmds= |
| 13042 | finish_cmds= |
| 13043 | finish_eval= |
| 13044 | shlibpath_var= |
| 13045 | shlibpath_overrides_runpath=unknown |
| 13046 | version_type=none |
| 13047 | dynamic_linker="$host_os ld.so" |
| 13048 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13049 | if test "$GCC" = yes; then |
| 13050 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13051 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13052 | # if the path contains ";" then we assume it to be the separator |
| 13053 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13054 | # assumed that no part of a normal pathname contains ";" but that should |
| 13055 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13056 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13057 | else |
| 13058 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13059 | fi |
| 13060 | else |
| 13061 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13062 | fi |
| 13063 | need_lib_prefix=unknown |
| 13064 | hardcode_into_libs=no |
| 13065 | |
| 13066 | # when you set need_version to no, make sure it does not cause -set_version |
| 13067 | # flags to be left without arguments |
| 13068 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13069 | |
| 13070 | case $host_os in |
| 13071 | aix3*) |
| 13072 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13073 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13074 | shlibpath_var=LIBPATH |
| 13075 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13076 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13077 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13078 | ;; |
| 13079 | |
| 13080 | aix4* | aix5*) |
| 13081 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13082 | need_lib_prefix=no |
| 13083 | need_version=no |
| 13084 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13085 | if test "$host_cpu" = ia64; then |
| 13086 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13087 | 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] | 13088 | shlibpath_var=LD_LIBRARY_PATH |
| 13089 | else |
| 13090 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13091 | # for dependence libraries. The import file would start with |
| 13092 | # the line `#! .'. This would cause the generated library to |
| 13093 | # depend on `.', always an invalid library. This was fixed in |
| 13094 | # development snapshots of GCC prior to 3.0. |
| 13095 | case $host_os in |
| 13096 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13097 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13098 | echo ' yes ' |
| 13099 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13100 | : |
| 13101 | else |
| 13102 | can_build_shared=no |
| 13103 | fi |
| 13104 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13105 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13106 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13107 | # soname into executable. Probably we can add versioning support to |
| 13108 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13109 | if test "$aix_use_runtimelinking" = yes; then |
| 13110 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13111 | # instead of lib<name>.a to let people know that these are not |
| 13112 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13113 | 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] | 13114 | else |
| 13115 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13116 | # and later when we are not doing run time linking. |
| 13117 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13118 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13119 | fi |
| 13120 | shlibpath_var=LIBPATH |
| 13121 | fi |
| 13122 | ;; |
| 13123 | |
| 13124 | amigaos*) |
| 13125 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13126 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13127 | 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] | 13128 | ;; |
| 13129 | |
| 13130 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13131 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13132 | dynamic_linker="$host_os ld.so" |
| 13133 | shlibpath_var=LIBRARY_PATH |
| 13134 | ;; |
| 13135 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13136 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13137 | version_type=linux |
| 13138 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13140 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13141 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13142 | shlibpath_var=LD_LIBRARY_PATH |
| 13143 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13144 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13145 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13146 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13147 | # libtool to hard-code these into programs |
| 13148 | ;; |
| 13149 | |
| 13150 | cygwin* | mingw* | pw32*) |
| 13151 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13152 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13153 | need_version=no |
| 13154 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13155 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13156 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13157 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13158 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13159 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13160 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13161 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13162 | dldir=$destdir/`dirname \$dlpath`~ |
| 13163 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13164 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13165 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13166 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13167 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13168 | shlibpath_overrides_runpath=yes |
| 13169 | |
| 13170 | case $host_os in |
| 13171 | cygwin*) |
| 13172 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13173 | 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] | 13174 | 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] | 13175 | ;; |
| 13176 | mingw*) |
| 13177 | # MinGW DLLs use traditional 'lib' prefix |
| 13178 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13179 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13180 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13181 | # It is most probably a Windows format PATH printed by |
| 13182 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13183 | # path with ; separators, and with drive letters. We can handle the |
| 13184 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13185 | # especially as we might pass files found there to a mingw objdump, |
| 13186 | # which wouldn't understand a cygwinified path. Ahh. |
| 13187 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13188 | else |
| 13189 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13190 | fi |
| 13191 | ;; |
| 13192 | pw32*) |
| 13193 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13194 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13195 | ;; |
| 13196 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13197 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13198 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13199 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13200 | 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] | 13201 | ;; |
| 13202 | esac |
| 13203 | dynamic_linker='Win32 ld.exe' |
| 13204 | # FIXME: first we should search . and the directory the executable is in |
| 13205 | shlibpath_var=PATH |
| 13206 | ;; |
| 13207 | |
| 13208 | darwin* | rhapsody*) |
| 13209 | dynamic_linker="$host_os dyld" |
| 13210 | version_type=darwin |
| 13211 | need_lib_prefix=no |
| 13212 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13213 | 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] | 13214 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13215 | shlibpath_overrides_runpath=yes |
| 13216 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13217 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13218 | # 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] | 13219 | if test "$GCC" = yes; then |
| 13220 | 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"` |
| 13221 | else |
| 13222 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13223 | fi |
| 13224 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13225 | ;; |
| 13226 | |
| 13227 | dgux*) |
| 13228 | version_type=linux |
| 13229 | need_lib_prefix=no |
| 13230 | need_version=no |
| 13231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13233 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13234 | ;; |
| 13235 | |
| 13236 | freebsd1*) |
| 13237 | dynamic_linker=no |
| 13238 | ;; |
| 13239 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13240 | kfreebsd*-gnu) |
| 13241 | version_type=linux |
| 13242 | need_lib_prefix=no |
| 13243 | need_version=no |
| 13244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13245 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13246 | shlibpath_var=LD_LIBRARY_PATH |
| 13247 | shlibpath_overrides_runpath=no |
| 13248 | hardcode_into_libs=yes |
| 13249 | dynamic_linker='GNU ld.so' |
| 13250 | ;; |
| 13251 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13252 | freebsd*) |
| 13253 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13254 | version_type=freebsd-$objformat |
| 13255 | case $version_type in |
| 13256 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13257 | 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] | 13258 | need_version=no |
| 13259 | need_lib_prefix=no |
| 13260 | ;; |
| 13261 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13262 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13263 | need_version=yes |
| 13264 | ;; |
| 13265 | esac |
| 13266 | shlibpath_var=LD_LIBRARY_PATH |
| 13267 | case $host_os in |
| 13268 | freebsd2*) |
| 13269 | shlibpath_overrides_runpath=yes |
| 13270 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13271 | freebsd3.01* | freebsdelf3.01*) |
| 13272 | shlibpath_overrides_runpath=yes |
| 13273 | hardcode_into_libs=yes |
| 13274 | ;; |
| 13275 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13276 | shlibpath_overrides_runpath=no |
| 13277 | hardcode_into_libs=yes |
| 13278 | ;; |
| 13279 | esac |
| 13280 | ;; |
| 13281 | |
| 13282 | gnu*) |
| 13283 | version_type=linux |
| 13284 | need_lib_prefix=no |
| 13285 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13287 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13288 | shlibpath_var=LD_LIBRARY_PATH |
| 13289 | hardcode_into_libs=yes |
| 13290 | ;; |
| 13291 | |
| 13292 | hpux9* | hpux10* | hpux11*) |
| 13293 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13294 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13295 | version_type=sunos |
| 13296 | need_lib_prefix=no |
| 13297 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13298 | case "$host_cpu" in |
| 13299 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13300 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13301 | hardcode_into_libs=yes |
| 13302 | dynamic_linker="$host_os dld.so" |
| 13303 | shlibpath_var=LD_LIBRARY_PATH |
| 13304 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13306 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13307 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13308 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13309 | else |
| 13310 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13311 | fi |
| 13312 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13313 | ;; |
| 13314 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13315 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13316 | hardcode_into_libs=yes |
| 13317 | dynamic_linker="$host_os dld.sl" |
| 13318 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13319 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13321 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13322 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13323 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13324 | ;; |
| 13325 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13326 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13327 | dynamic_linker="$host_os dld.sl" |
| 13328 | shlibpath_var=SHLIB_PATH |
| 13329 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13331 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13332 | ;; |
| 13333 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13334 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13335 | postinstall_cmds='chmod 555 $lib' |
| 13336 | ;; |
| 13337 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13338 | irix5* | irix6* | nonstopux*) |
| 13339 | case $host_os in |
| 13340 | nonstopux*) version_type=nonstopux ;; |
| 13341 | *) |
| 13342 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13343 | version_type=linux |
| 13344 | else |
| 13345 | version_type=irix |
| 13346 | fi ;; |
| 13347 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13348 | need_lib_prefix=no |
| 13349 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13350 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13351 | 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] | 13352 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13353 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13354 | libsuff= shlibsuff= |
| 13355 | ;; |
| 13356 | *) |
| 13357 | 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] | 13358 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13359 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13360 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13361 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13362 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13363 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13364 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13365 | esac |
| 13366 | ;; |
| 13367 | esac |
| 13368 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13369 | shlibpath_overrides_runpath=no |
| 13370 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13371 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13372 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13373 | ;; |
| 13374 | |
| 13375 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13376 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13377 | dynamic_linker=no |
| 13378 | ;; |
| 13379 | |
| 13380 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13381 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13382 | version_type=linux |
| 13383 | need_lib_prefix=no |
| 13384 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13386 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13387 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13388 | shlibpath_var=LD_LIBRARY_PATH |
| 13389 | shlibpath_overrides_runpath=no |
| 13390 | # This implies no fast_install, which is unacceptable. |
| 13391 | # Some rework will be needed to allow for fast_install |
| 13392 | # before this can be enabled. |
| 13393 | hardcode_into_libs=yes |
| 13394 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13395 | # Append ld.so.conf contents to the search path |
| 13396 | if test -f /etc/ld.so.conf; then |
| 13397 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 13398 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13399 | fi |
| 13400 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13401 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13402 | # powerpc, because MkLinux only supported shared libraries with the |
| 13403 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13404 | # most powerpc-linux boxes support dynamic linking these days and |
| 13405 | # people can always --disable-shared, the test was removed, and we |
| 13406 | # assume the GNU/Linux dynamic linker is in use. |
| 13407 | dynamic_linker='GNU/Linux ld.so' |
| 13408 | ;; |
| 13409 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13410 | knetbsd*-gnu) |
| 13411 | version_type=linux |
| 13412 | need_lib_prefix=no |
| 13413 | need_version=no |
| 13414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13415 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13416 | shlibpath_var=LD_LIBRARY_PATH |
| 13417 | shlibpath_overrides_runpath=no |
| 13418 | hardcode_into_libs=yes |
| 13419 | dynamic_linker='GNU ld.so' |
| 13420 | ;; |
| 13421 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13422 | netbsd*) |
| 13423 | version_type=sunos |
| 13424 | need_lib_prefix=no |
| 13425 | need_version=no |
| 13426 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13428 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13429 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13430 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13431 | 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] | 13432 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13433 | dynamic_linker='NetBSD ld.elf_so' |
| 13434 | fi |
| 13435 | shlibpath_var=LD_LIBRARY_PATH |
| 13436 | shlibpath_overrides_runpath=yes |
| 13437 | hardcode_into_libs=yes |
| 13438 | ;; |
| 13439 | |
| 13440 | newsos6) |
| 13441 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13443 | shlibpath_var=LD_LIBRARY_PATH |
| 13444 | shlibpath_overrides_runpath=yes |
| 13445 | ;; |
| 13446 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13447 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13448 | version_type=linux |
| 13449 | need_lib_prefix=no |
| 13450 | need_version=no |
| 13451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13452 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13453 | shlibpath_var=LD_LIBRARY_PATH |
| 13454 | shlibpath_overrides_runpath=yes |
| 13455 | ;; |
| 13456 | |
| 13457 | openbsd*) |
| 13458 | version_type=sunos |
| 13459 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 13460 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13462 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13463 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13464 | 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] | 13465 | case $host_os in |
| 13466 | openbsd2.[89] | openbsd2.[89].*) |
| 13467 | shlibpath_overrides_runpath=no |
| 13468 | ;; |
| 13469 | *) |
| 13470 | shlibpath_overrides_runpath=yes |
| 13471 | ;; |
| 13472 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13473 | else |
| 13474 | shlibpath_overrides_runpath=yes |
| 13475 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13476 | ;; |
| 13477 | |
| 13478 | os2*) |
| 13479 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13480 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13481 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13482 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13483 | dynamic_linker='OS/2 ld.exe' |
| 13484 | shlibpath_var=LIBPATH |
| 13485 | ;; |
| 13486 | |
| 13487 | osf3* | osf4* | osf5*) |
| 13488 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13489 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13490 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13491 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13492 | 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] | 13493 | shlibpath_var=LD_LIBRARY_PATH |
| 13494 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13495 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13496 | ;; |
| 13497 | |
| 13498 | sco3.2v5*) |
| 13499 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13500 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13501 | 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] | 13502 | shlibpath_var=LD_LIBRARY_PATH |
| 13503 | ;; |
| 13504 | |
| 13505 | solaris*) |
| 13506 | version_type=linux |
| 13507 | need_lib_prefix=no |
| 13508 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13510 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13511 | shlibpath_var=LD_LIBRARY_PATH |
| 13512 | shlibpath_overrides_runpath=yes |
| 13513 | hardcode_into_libs=yes |
| 13514 | # ldd complains unless libraries are executable |
| 13515 | postinstall_cmds='chmod +x $lib' |
| 13516 | ;; |
| 13517 | |
| 13518 | sunos4*) |
| 13519 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13521 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13522 | shlibpath_var=LD_LIBRARY_PATH |
| 13523 | shlibpath_overrides_runpath=yes |
| 13524 | if test "$with_gnu_ld" = yes; then |
| 13525 | need_lib_prefix=no |
| 13526 | fi |
| 13527 | need_version=yes |
| 13528 | ;; |
| 13529 | |
| 13530 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13531 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13533 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13534 | shlibpath_var=LD_LIBRARY_PATH |
| 13535 | case $host_vendor in |
| 13536 | sni) |
| 13537 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13538 | need_lib_prefix=no |
| 13539 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13540 | runpath_var=LD_RUN_PATH |
| 13541 | ;; |
| 13542 | siemens) |
| 13543 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13544 | ;; |
| 13545 | motorola) |
| 13546 | need_lib_prefix=no |
| 13547 | need_version=no |
| 13548 | shlibpath_overrides_runpath=no |
| 13549 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13550 | ;; |
| 13551 | esac |
| 13552 | ;; |
| 13553 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13554 | sysv4*MP*) |
| 13555 | if test -d /usr/nec ;then |
| 13556 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13557 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13558 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13559 | shlibpath_var=LD_LIBRARY_PATH |
| 13560 | fi |
| 13561 | ;; |
| 13562 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13563 | uts4*) |
| 13564 | version_type=linux |
| 13565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13567 | shlibpath_var=LD_LIBRARY_PATH |
| 13568 | ;; |
| 13569 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13570 | *) |
| 13571 | dynamic_linker=no |
| 13572 | ;; |
| 13573 | esac |
| 13574 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13575 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 13576 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13577 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13578 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13579 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 13580 | hardcode_action= |
| 13581 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 13582 | test -n "$runpath_var" || \ |
| 13583 | test "X$hardcode_automatic" = "Xyes" ; then |
| 13584 | |
| 13585 | # We can hardcode non-existant directories. |
| 13586 | if test "$hardcode_direct" != no && |
| 13587 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13588 | # have to relink, otherwise we might link with an installed library |
| 13589 | # when we should be linking with a yet-to-be-installed one |
| 13590 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 13591 | test "$hardcode_minus_L" != no; then |
| 13592 | # Linking always hardcodes the temporary library directory. |
| 13593 | hardcode_action=relink |
| 13594 | else |
| 13595 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13596 | hardcode_action=immediate |
| 13597 | fi |
| 13598 | else |
| 13599 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13600 | # directories. |
| 13601 | hardcode_action=unsupported |
| 13602 | fi |
| 13603 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 13604 | echo "${ECHO_T}$hardcode_action" >&6 |
| 13605 | |
| 13606 | if test "$hardcode_action" = relink; then |
| 13607 | # Fast installation is not supported |
| 13608 | enable_fast_install=no |
| 13609 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13610 | test "$enable_shared" = no; then |
| 13611 | # Fast installation is not necessary |
| 13612 | enable_fast_install=needless |
| 13613 | fi |
| 13614 | |
| 13615 | striplib= |
| 13616 | old_striplib= |
| 13617 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 13618 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 13619 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 13620 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13621 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 13622 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13623 | echo "${ECHO_T}yes" >&6 |
| 13624 | else |
| 13625 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13626 | case $host_os in |
| 13627 | darwin*) |
| 13628 | if test -n "$STRIP" ; then |
| 13629 | striplib="$STRIP -x" |
| 13630 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13631 | echo "${ECHO_T}yes" >&6 |
| 13632 | else |
| 13633 | echo "$as_me:$LINENO: result: no" >&5 |
| 13634 | echo "${ECHO_T}no" >&6 |
| 13635 | fi |
| 13636 | ;; |
| 13637 | *) |
| 13638 | echo "$as_me:$LINENO: result: no" >&5 |
| 13639 | echo "${ECHO_T}no" >&6 |
| 13640 | ;; |
| 13641 | esac |
| 13642 | fi |
| 13643 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13644 | if test "x$enable_dlopen" != xyes; then |
| 13645 | enable_dlopen=unknown |
| 13646 | enable_dlopen_self=unknown |
| 13647 | enable_dlopen_self_static=unknown |
| 13648 | else |
| 13649 | lt_cv_dlopen=no |
| 13650 | lt_cv_dlopen_libs= |
| 13651 | |
| 13652 | case $host_os in |
| 13653 | beos*) |
| 13654 | lt_cv_dlopen="load_add_on" |
| 13655 | lt_cv_dlopen_libs= |
| 13656 | lt_cv_dlopen_self=yes |
| 13657 | ;; |
| 13658 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13659 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13660 | lt_cv_dlopen="LoadLibrary" |
| 13661 | lt_cv_dlopen_libs= |
| 13662 | ;; |
| 13663 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13664 | cygwin*) |
| 13665 | lt_cv_dlopen="dlopen" |
| 13666 | lt_cv_dlopen_libs= |
| 13667 | ;; |
| 13668 | |
| 13669 | darwin*) |
| 13670 | # if libdl is installed we need to link against it |
| 13671 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13672 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13673 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13675 | else |
| 13676 | ac_check_lib_save_LIBS=$LIBS |
| 13677 | LIBS="-ldl $LIBS" |
| 13678 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13679 | /* confdefs.h. */ |
| 13680 | _ACEOF |
| 13681 | cat confdefs.h >>conftest.$ac_ext |
| 13682 | cat >>conftest.$ac_ext <<_ACEOF |
| 13683 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13684 | |
| 13685 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13686 | #ifdef __cplusplus |
| 13687 | extern "C" |
| 13688 | #endif |
| 13689 | /* We use char because int might match the return type of a gcc2 |
| 13690 | builtin and then its argument prototype would still apply. */ |
| 13691 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13692 | int |
| 13693 | main () |
| 13694 | { |
| 13695 | dlopen (); |
| 13696 | ; |
| 13697 | return 0; |
| 13698 | } |
| 13699 | _ACEOF |
| 13700 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13702 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13703 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13705 | rm -f conftest.er1 |
| 13706 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13708 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13709 | { ac_try='test -z "$ac_c_werror_flag" |
| 13710 | || test ! -s conftest.err' |
| 13711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13712 | (eval $ac_try) 2>&5 |
| 13713 | ac_status=$? |
| 13714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13715 | (exit $ac_status); }; } && |
| 13716 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13718 | (eval $ac_try) 2>&5 |
| 13719 | ac_status=$? |
| 13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13721 | (exit $ac_status); }; }; then |
| 13722 | ac_cv_lib_dl_dlopen=yes |
| 13723 | else |
| 13724 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13726 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13727 | ac_cv_lib_dl_dlopen=no |
| 13728 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13729 | rm -f conftest.err conftest.$ac_objext \ |
| 13730 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13731 | LIBS=$ac_check_lib_save_LIBS |
| 13732 | fi |
| 13733 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13734 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13735 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13736 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 13737 | else |
| 13738 | |
| 13739 | lt_cv_dlopen="dyld" |
| 13740 | lt_cv_dlopen_libs= |
| 13741 | lt_cv_dlopen_self=yes |
| 13742 | |
| 13743 | fi |
| 13744 | |
| 13745 | ;; |
| 13746 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13747 | *) |
| 13748 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 13749 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 13750 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 13751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13752 | else |
| 13753 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13754 | /* confdefs.h. */ |
| 13755 | _ACEOF |
| 13756 | cat confdefs.h >>conftest.$ac_ext |
| 13757 | cat >>conftest.$ac_ext <<_ACEOF |
| 13758 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13759 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 13760 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13761 | #define shl_load innocuous_shl_load |
| 13762 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13763 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13764 | which can conflict with char shl_load (); below. |
| 13765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13766 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13767 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13768 | #ifdef __STDC__ |
| 13769 | # include <limits.h> |
| 13770 | #else |
| 13771 | # include <assert.h> |
| 13772 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13773 | |
| 13774 | #undef shl_load |
| 13775 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13776 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13777 | #ifdef __cplusplus |
| 13778 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13779 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13780 | #endif |
| 13781 | /* We use char because int might match the return type of a gcc2 |
| 13782 | builtin and then its argument prototype would still apply. */ |
| 13783 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13784 | /* The GNU C library defines this for functions which it implements |
| 13785 | to always fail with ENOSYS. Some functions are actually named |
| 13786 | something starting with __ and the normal name is an alias. */ |
| 13787 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 13788 | choke me |
| 13789 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13790 | char (*f) () = shl_load; |
| 13791 | #endif |
| 13792 | #ifdef __cplusplus |
| 13793 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13794 | #endif |
| 13795 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13796 | int |
| 13797 | main () |
| 13798 | { |
| 13799 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13800 | ; |
| 13801 | return 0; |
| 13802 | } |
| 13803 | _ACEOF |
| 13804 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13806 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13807 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13809 | rm -f conftest.er1 |
| 13810 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13812 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13813 | { ac_try='test -z "$ac_c_werror_flag" |
| 13814 | || test ! -s conftest.err' |
| 13815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13816 | (eval $ac_try) 2>&5 |
| 13817 | ac_status=$? |
| 13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13819 | (exit $ac_status); }; } && |
| 13820 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13822 | (eval $ac_try) 2>&5 |
| 13823 | ac_status=$? |
| 13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13825 | (exit $ac_status); }; }; then |
| 13826 | ac_cv_func_shl_load=yes |
| 13827 | else |
| 13828 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13831 | ac_cv_func_shl_load=no |
| 13832 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13833 | rm -f conftest.err conftest.$ac_objext \ |
| 13834 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13835 | fi |
| 13836 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 13837 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 13838 | if test $ac_cv_func_shl_load = yes; then |
| 13839 | lt_cv_dlopen="shl_load" |
| 13840 | else |
| 13841 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13842 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 13843 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 13844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13845 | else |
| 13846 | ac_check_lib_save_LIBS=$LIBS |
| 13847 | LIBS="-ldld $LIBS" |
| 13848 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13849 | /* confdefs.h. */ |
| 13850 | _ACEOF |
| 13851 | cat confdefs.h >>conftest.$ac_ext |
| 13852 | cat >>conftest.$ac_ext <<_ACEOF |
| 13853 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13854 | |
| 13855 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13856 | #ifdef __cplusplus |
| 13857 | extern "C" |
| 13858 | #endif |
| 13859 | /* We use char because int might match the return type of a gcc2 |
| 13860 | builtin and then its argument prototype would still apply. */ |
| 13861 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13862 | int |
| 13863 | main () |
| 13864 | { |
| 13865 | shl_load (); |
| 13866 | ; |
| 13867 | return 0; |
| 13868 | } |
| 13869 | _ACEOF |
| 13870 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13872 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13873 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13875 | rm -f conftest.er1 |
| 13876 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13878 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13879 | { ac_try='test -z "$ac_c_werror_flag" |
| 13880 | || test ! -s conftest.err' |
| 13881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13882 | (eval $ac_try) 2>&5 |
| 13883 | ac_status=$? |
| 13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13885 | (exit $ac_status); }; } && |
| 13886 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13888 | (eval $ac_try) 2>&5 |
| 13889 | ac_status=$? |
| 13890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13891 | (exit $ac_status); }; }; then |
| 13892 | ac_cv_lib_dld_shl_load=yes |
| 13893 | else |
| 13894 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13896 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13897 | ac_cv_lib_dld_shl_load=no |
| 13898 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13899 | rm -f conftest.err conftest.$ac_objext \ |
| 13900 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13901 | LIBS=$ac_check_lib_save_LIBS |
| 13902 | fi |
| 13903 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13904 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 13905 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 13906 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 13907 | else |
| 13908 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 13909 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 13910 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 13911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13912 | else |
| 13913 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13914 | /* confdefs.h. */ |
| 13915 | _ACEOF |
| 13916 | cat confdefs.h >>conftest.$ac_ext |
| 13917 | cat >>conftest.$ac_ext <<_ACEOF |
| 13918 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13919 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 13920 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13921 | #define dlopen innocuous_dlopen |
| 13922 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13923 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13924 | which can conflict with char dlopen (); below. |
| 13925 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13926 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13927 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13928 | #ifdef __STDC__ |
| 13929 | # include <limits.h> |
| 13930 | #else |
| 13931 | # include <assert.h> |
| 13932 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13933 | |
| 13934 | #undef dlopen |
| 13935 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13936 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13937 | #ifdef __cplusplus |
| 13938 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13939 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13940 | #endif |
| 13941 | /* We use char because int might match the return type of a gcc2 |
| 13942 | builtin and then its argument prototype would still apply. */ |
| 13943 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13944 | /* The GNU C library defines this for functions which it implements |
| 13945 | to always fail with ENOSYS. Some functions are actually named |
| 13946 | something starting with __ and the normal name is an alias. */ |
| 13947 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 13948 | choke me |
| 13949 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13950 | char (*f) () = dlopen; |
| 13951 | #endif |
| 13952 | #ifdef __cplusplus |
| 13953 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13954 | #endif |
| 13955 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13956 | int |
| 13957 | main () |
| 13958 | { |
| 13959 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13960 | ; |
| 13961 | return 0; |
| 13962 | } |
| 13963 | _ACEOF |
| 13964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13966 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13967 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13969 | rm -f conftest.er1 |
| 13970 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13972 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13973 | { ac_try='test -z "$ac_c_werror_flag" |
| 13974 | || test ! -s conftest.err' |
| 13975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13976 | (eval $ac_try) 2>&5 |
| 13977 | ac_status=$? |
| 13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13979 | (exit $ac_status); }; } && |
| 13980 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13982 | (eval $ac_try) 2>&5 |
| 13983 | ac_status=$? |
| 13984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13985 | (exit $ac_status); }; }; then |
| 13986 | ac_cv_func_dlopen=yes |
| 13987 | else |
| 13988 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13990 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13991 | ac_cv_func_dlopen=no |
| 13992 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13993 | rm -f conftest.err conftest.$ac_objext \ |
| 13994 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13995 | fi |
| 13996 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 13997 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 13998 | if test $ac_cv_func_dlopen = yes; then |
| 13999 | lt_cv_dlopen="dlopen" |
| 14000 | else |
| 14001 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14002 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 14003 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14005 | else |
| 14006 | ac_check_lib_save_LIBS=$LIBS |
| 14007 | LIBS="-ldl $LIBS" |
| 14008 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14009 | /* confdefs.h. */ |
| 14010 | _ACEOF |
| 14011 | cat confdefs.h >>conftest.$ac_ext |
| 14012 | cat >>conftest.$ac_ext <<_ACEOF |
| 14013 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14014 | |
| 14015 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14016 | #ifdef __cplusplus |
| 14017 | extern "C" |
| 14018 | #endif |
| 14019 | /* We use char because int might match the return type of a gcc2 |
| 14020 | builtin and then its argument prototype would still apply. */ |
| 14021 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14022 | int |
| 14023 | main () |
| 14024 | { |
| 14025 | dlopen (); |
| 14026 | ; |
| 14027 | return 0; |
| 14028 | } |
| 14029 | _ACEOF |
| 14030 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14032 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14033 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14035 | rm -f conftest.er1 |
| 14036 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14038 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14039 | { ac_try='test -z "$ac_c_werror_flag" |
| 14040 | || test ! -s conftest.err' |
| 14041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14042 | (eval $ac_try) 2>&5 |
| 14043 | ac_status=$? |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14045 | (exit $ac_status); }; } && |
| 14046 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14048 | (eval $ac_try) 2>&5 |
| 14049 | ac_status=$? |
| 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14051 | (exit $ac_status); }; }; then |
| 14052 | ac_cv_lib_dl_dlopen=yes |
| 14053 | else |
| 14054 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14056 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14057 | ac_cv_lib_dl_dlopen=no |
| 14058 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14059 | rm -f conftest.err conftest.$ac_objext \ |
| 14060 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14061 | LIBS=$ac_check_lib_save_LIBS |
| 14062 | fi |
| 14063 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14064 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 14065 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 14066 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14067 | else |
| 14068 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 14069 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 14070 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 14071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14072 | else |
| 14073 | ac_check_lib_save_LIBS=$LIBS |
| 14074 | LIBS="-lsvld $LIBS" |
| 14075 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14076 | /* confdefs.h. */ |
| 14077 | _ACEOF |
| 14078 | cat confdefs.h >>conftest.$ac_ext |
| 14079 | cat >>conftest.$ac_ext <<_ACEOF |
| 14080 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14081 | |
| 14082 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14083 | #ifdef __cplusplus |
| 14084 | extern "C" |
| 14085 | #endif |
| 14086 | /* We use char because int might match the return type of a gcc2 |
| 14087 | builtin and then its argument prototype would still apply. */ |
| 14088 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14089 | int |
| 14090 | main () |
| 14091 | { |
| 14092 | dlopen (); |
| 14093 | ; |
| 14094 | return 0; |
| 14095 | } |
| 14096 | _ACEOF |
| 14097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14099 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14100 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14102 | rm -f conftest.er1 |
| 14103 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14105 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14106 | { ac_try='test -z "$ac_c_werror_flag" |
| 14107 | || test ! -s conftest.err' |
| 14108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14109 | (eval $ac_try) 2>&5 |
| 14110 | ac_status=$? |
| 14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14112 | (exit $ac_status); }; } && |
| 14113 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14115 | (eval $ac_try) 2>&5 |
| 14116 | ac_status=$? |
| 14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14118 | (exit $ac_status); }; }; then |
| 14119 | ac_cv_lib_svld_dlopen=yes |
| 14120 | else |
| 14121 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14123 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14124 | ac_cv_lib_svld_dlopen=no |
| 14125 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14126 | rm -f conftest.err conftest.$ac_objext \ |
| 14127 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14128 | LIBS=$ac_check_lib_save_LIBS |
| 14129 | fi |
| 14130 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 14131 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 14132 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 14133 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 14134 | else |
| 14135 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 14136 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 14137 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 14138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14139 | else |
| 14140 | ac_check_lib_save_LIBS=$LIBS |
| 14141 | LIBS="-ldld $LIBS" |
| 14142 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14143 | /* confdefs.h. */ |
| 14144 | _ACEOF |
| 14145 | cat confdefs.h >>conftest.$ac_ext |
| 14146 | cat >>conftest.$ac_ext <<_ACEOF |
| 14147 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14148 | |
| 14149 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14150 | #ifdef __cplusplus |
| 14151 | extern "C" |
| 14152 | #endif |
| 14153 | /* We use char because int might match the return type of a gcc2 |
| 14154 | builtin and then its argument prototype would still apply. */ |
| 14155 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14156 | int |
| 14157 | main () |
| 14158 | { |
| 14159 | dld_link (); |
| 14160 | ; |
| 14161 | return 0; |
| 14162 | } |
| 14163 | _ACEOF |
| 14164 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14166 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14167 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14169 | rm -f conftest.er1 |
| 14170 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14172 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14173 | { ac_try='test -z "$ac_c_werror_flag" |
| 14174 | || test ! -s conftest.err' |
| 14175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14176 | (eval $ac_try) 2>&5 |
| 14177 | ac_status=$? |
| 14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14179 | (exit $ac_status); }; } && |
| 14180 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14182 | (eval $ac_try) 2>&5 |
| 14183 | ac_status=$? |
| 14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14185 | (exit $ac_status); }; }; then |
| 14186 | ac_cv_lib_dld_dld_link=yes |
| 14187 | else |
| 14188 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14190 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14191 | ac_cv_lib_dld_dld_link=no |
| 14192 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14193 | rm -f conftest.err conftest.$ac_objext \ |
| 14194 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14195 | LIBS=$ac_check_lib_save_LIBS |
| 14196 | fi |
| 14197 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 14198 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 14199 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 14200 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 14201 | fi |
| 14202 | |
| 14203 | |
| 14204 | fi |
| 14205 | |
| 14206 | |
| 14207 | fi |
| 14208 | |
| 14209 | |
| 14210 | fi |
| 14211 | |
| 14212 | |
| 14213 | fi |
| 14214 | |
| 14215 | |
| 14216 | fi |
| 14217 | |
| 14218 | ;; |
| 14219 | esac |
| 14220 | |
| 14221 | if test "x$lt_cv_dlopen" != xno; then |
| 14222 | enable_dlopen=yes |
| 14223 | else |
| 14224 | enable_dlopen=no |
| 14225 | fi |
| 14226 | |
| 14227 | case $lt_cv_dlopen in |
| 14228 | dlopen) |
| 14229 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14230 | 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] | 14231 | |
| 14232 | save_LDFLAGS="$LDFLAGS" |
| 14233 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14234 | |
| 14235 | save_LIBS="$LIBS" |
| 14236 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14237 | |
| 14238 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 14239 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 14240 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 14241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14242 | else |
| 14243 | if test "$cross_compiling" = yes; then : |
| 14244 | lt_cv_dlopen_self=cross |
| 14245 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14246 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14247 | lt_status=$lt_dlunknown |
| 14248 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 14249 | #line 14249 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14250 | #include "confdefs.h" |
| 14251 | |
| 14252 | #if HAVE_DLFCN_H |
| 14253 | #include <dlfcn.h> |
| 14254 | #endif |
| 14255 | |
| 14256 | #include <stdio.h> |
| 14257 | |
| 14258 | #ifdef RTLD_GLOBAL |
| 14259 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14260 | #else |
| 14261 | # ifdef DL_GLOBAL |
| 14262 | # define LT_DLGLOBAL DL_GLOBAL |
| 14263 | # else |
| 14264 | # define LT_DLGLOBAL 0 |
| 14265 | # endif |
| 14266 | #endif |
| 14267 | |
| 14268 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14269 | find out it does not work in some platform. */ |
| 14270 | #ifndef LT_DLLAZY_OR_NOW |
| 14271 | # ifdef RTLD_LAZY |
| 14272 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14273 | # else |
| 14274 | # ifdef DL_LAZY |
| 14275 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14276 | # else |
| 14277 | # ifdef RTLD_NOW |
| 14278 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14279 | # else |
| 14280 | # ifdef DL_NOW |
| 14281 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14282 | # else |
| 14283 | # define LT_DLLAZY_OR_NOW 0 |
| 14284 | # endif |
| 14285 | # endif |
| 14286 | # endif |
| 14287 | # endif |
| 14288 | #endif |
| 14289 | |
| 14290 | #ifdef __cplusplus |
| 14291 | extern "C" void exit (int); |
| 14292 | #endif |
| 14293 | |
| 14294 | void fnord() { int i=42;} |
| 14295 | int main () |
| 14296 | { |
| 14297 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14298 | int status = $lt_dlunknown; |
| 14299 | |
| 14300 | if (self) |
| 14301 | { |
| 14302 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14303 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14304 | /* dlclose (self); */ |
| 14305 | } |
| 14306 | |
| 14307 | exit (status); |
| 14308 | } |
| 14309 | EOF |
| 14310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14311 | (eval $ac_link) 2>&5 |
| 14312 | ac_status=$? |
| 14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14314 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14315 | (./conftest; exit; ) 2>/dev/null |
| 14316 | lt_status=$? |
| 14317 | case x$lt_status in |
| 14318 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14319 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14320 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 14321 | esac |
| 14322 | else : |
| 14323 | # compilation failed |
| 14324 | lt_cv_dlopen_self=no |
| 14325 | fi |
| 14326 | fi |
| 14327 | rm -fr conftest* |
| 14328 | |
| 14329 | |
| 14330 | fi |
| 14331 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 14332 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 14333 | |
| 14334 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 14335 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 14336 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 14337 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 14338 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 14339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14340 | else |
| 14341 | if test "$cross_compiling" = yes; then : |
| 14342 | lt_cv_dlopen_self_static=cross |
| 14343 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14344 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14345 | lt_status=$lt_dlunknown |
| 14346 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 14347 | #line 14347 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14348 | #include "confdefs.h" |
| 14349 | |
| 14350 | #if HAVE_DLFCN_H |
| 14351 | #include <dlfcn.h> |
| 14352 | #endif |
| 14353 | |
| 14354 | #include <stdio.h> |
| 14355 | |
| 14356 | #ifdef RTLD_GLOBAL |
| 14357 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14358 | #else |
| 14359 | # ifdef DL_GLOBAL |
| 14360 | # define LT_DLGLOBAL DL_GLOBAL |
| 14361 | # else |
| 14362 | # define LT_DLGLOBAL 0 |
| 14363 | # endif |
| 14364 | #endif |
| 14365 | |
| 14366 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14367 | find out it does not work in some platform. */ |
| 14368 | #ifndef LT_DLLAZY_OR_NOW |
| 14369 | # ifdef RTLD_LAZY |
| 14370 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14371 | # else |
| 14372 | # ifdef DL_LAZY |
| 14373 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14374 | # else |
| 14375 | # ifdef RTLD_NOW |
| 14376 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14377 | # else |
| 14378 | # ifdef DL_NOW |
| 14379 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14380 | # else |
| 14381 | # define LT_DLLAZY_OR_NOW 0 |
| 14382 | # endif |
| 14383 | # endif |
| 14384 | # endif |
| 14385 | # endif |
| 14386 | #endif |
| 14387 | |
| 14388 | #ifdef __cplusplus |
| 14389 | extern "C" void exit (int); |
| 14390 | #endif |
| 14391 | |
| 14392 | void fnord() { int i=42;} |
| 14393 | int main () |
| 14394 | { |
| 14395 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14396 | int status = $lt_dlunknown; |
| 14397 | |
| 14398 | if (self) |
| 14399 | { |
| 14400 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14401 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14402 | /* dlclose (self); */ |
| 14403 | } |
| 14404 | |
| 14405 | exit (status); |
| 14406 | } |
| 14407 | EOF |
| 14408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14409 | (eval $ac_link) 2>&5 |
| 14410 | ac_status=$? |
| 14411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14412 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14413 | (./conftest; exit; ) 2>/dev/null |
| 14414 | lt_status=$? |
| 14415 | case x$lt_status in |
| 14416 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14417 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14418 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14419 | esac |
| 14420 | else : |
| 14421 | # compilation failed |
| 14422 | lt_cv_dlopen_self_static=no |
| 14423 | fi |
| 14424 | fi |
| 14425 | rm -fr conftest* |
| 14426 | |
| 14427 | |
| 14428 | fi |
| 14429 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 14430 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 14431 | fi |
| 14432 | |
| 14433 | CPPFLAGS="$save_CPPFLAGS" |
| 14434 | LDFLAGS="$save_LDFLAGS" |
| 14435 | LIBS="$save_LIBS" |
| 14436 | ;; |
| 14437 | esac |
| 14438 | |
| 14439 | case $lt_cv_dlopen_self in |
| 14440 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14441 | *) enable_dlopen_self=unknown ;; |
| 14442 | esac |
| 14443 | |
| 14444 | case $lt_cv_dlopen_self_static in |
| 14445 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14446 | *) enable_dlopen_self_static=unknown ;; |
| 14447 | esac |
| 14448 | fi |
| 14449 | |
| 14450 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14451 | # Report which librarie types wil actually be built |
| 14452 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14453 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 14454 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14455 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14456 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14457 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14458 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 14459 | test "$can_build_shared" = "no" && enable_shared=no |
| 14460 | |
| 14461 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14462 | # are all built from PIC. |
| 14463 | case "$host_os" in |
| 14464 | aix3*) |
| 14465 | test "$enable_shared" = yes && enable_static=no |
| 14466 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14467 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14468 | postinstall_cmds='$RANLIB $lib' |
| 14469 | fi |
| 14470 | ;; |
| 14471 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14472 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14473 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14474 | test "$enable_shared" = yes && enable_static=no |
| 14475 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14476 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14477 | esac |
| 14478 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14479 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14480 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14481 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14482 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 14483 | # Make sure either enable_shared or enable_static is yes. |
| 14484 | test "$enable_shared" = yes || enable_static=yes |
| 14485 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14486 | echo "${ECHO_T}$enable_static" >&6 |
| 14487 | |
| 14488 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14489 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14490 | # with your package, and you will get complaints that there are |
| 14491 | # no rules to generate ltmain.sh. |
| 14492 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14493 | # See if we are running on zsh, and set the options which allow our commands through |
| 14494 | # without removal of \ escapes. |
| 14495 | if test -n "${ZSH_VERSION+set}" ; then |
| 14496 | setopt NO_GLOB_SUBST |
| 14497 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14498 | # Now quote all the things that may contain metacharacters while being |
| 14499 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14500 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14501 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 14502 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14503 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14504 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14505 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14506 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14507 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14508 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14509 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14510 | compiler \ |
| 14511 | CC \ |
| 14512 | LD \ |
| 14513 | lt_prog_compiler_wl \ |
| 14514 | lt_prog_compiler_pic \ |
| 14515 | lt_prog_compiler_static \ |
| 14516 | lt_prog_compiler_no_builtin_flag \ |
| 14517 | export_dynamic_flag_spec \ |
| 14518 | thread_safe_flag_spec \ |
| 14519 | whole_archive_flag_spec \ |
| 14520 | enable_shared_with_static_runtimes \ |
| 14521 | old_archive_cmds \ |
| 14522 | old_archive_from_new_cmds \ |
| 14523 | predep_objects \ |
| 14524 | postdep_objects \ |
| 14525 | predeps \ |
| 14526 | postdeps \ |
| 14527 | compiler_lib_search_path \ |
| 14528 | archive_cmds \ |
| 14529 | archive_expsym_cmds \ |
| 14530 | postinstall_cmds \ |
| 14531 | postuninstall_cmds \ |
| 14532 | old_archive_from_expsyms_cmds \ |
| 14533 | allow_undefined_flag \ |
| 14534 | no_undefined_flag \ |
| 14535 | export_symbols_cmds \ |
| 14536 | hardcode_libdir_flag_spec \ |
| 14537 | hardcode_libdir_flag_spec_ld \ |
| 14538 | hardcode_libdir_separator \ |
| 14539 | hardcode_automatic \ |
| 14540 | module_cmds \ |
| 14541 | module_expsym_cmds \ |
| 14542 | lt_cv_prog_compiler_c_o \ |
| 14543 | exclude_expsyms \ |
| 14544 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14545 | |
| 14546 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14547 | old_archive_cmds | \ |
| 14548 | old_archive_from_new_cmds | \ |
| 14549 | archive_cmds | \ |
| 14550 | archive_expsym_cmds | \ |
| 14551 | module_cmds | \ |
| 14552 | module_expsym_cmds | \ |
| 14553 | old_archive_from_expsyms_cmds | \ |
| 14554 | export_symbols_cmds | \ |
| 14555 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14556 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14557 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14558 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14559 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14560 | 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] | 14561 | ;; |
| 14562 | *) |
| 14563 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14564 | ;; |
| 14565 | esac |
| 14566 | done |
| 14567 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14568 | case $lt_echo in |
| 14569 | *'\$0 --fallback-echo"') |
| 14570 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14571 | ;; |
| 14572 | esac |
| 14573 | |
| 14574 | cfgfile="${ofile}T" |
| 14575 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 14576 | $rm -f "$cfgfile" |
| 14577 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 14578 | echo "$as_me: creating $ofile" >&6;} |
| 14579 | |
| 14580 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14581 | #! $SHELL |
| 14582 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14583 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14584 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 14585 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 14586 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14587 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 14588 | # Free Software Foundation, Inc. |
| 14589 | # |
| 14590 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14591 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 14592 | # |
| 14593 | # This program is free software; you can redistribute it and/or modify |
| 14594 | # it under the terms of the GNU General Public License as published by |
| 14595 | # the Free Software Foundation; either version 2 of the License, or |
| 14596 | # (at your option) any later version. |
| 14597 | # |
| 14598 | # This program is distributed in the hope that it will be useful, but |
| 14599 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14600 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14601 | # General Public License for more details. |
| 14602 | # |
| 14603 | # You should have received a copy of the GNU General Public License |
| 14604 | # along with this program; if not, write to the Free Software |
| 14605 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 14606 | # |
| 14607 | # As a special exception to the GNU General Public License, if you |
| 14608 | # distribute this file as part of a program that contains a |
| 14609 | # configuration script generated by Autoconf, you may include it under |
| 14610 | # the same distribution terms that you use for the rest of that program. |
| 14611 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14612 | # A sed program that does not truncate output. |
| 14613 | SED=$lt_SED |
| 14614 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14615 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14616 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14617 | |
| 14618 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 14619 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14620 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14621 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14622 | # The names of the tagged configurations supported by this script. |
| 14623 | available_tags= |
| 14624 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14625 | # ### BEGIN LIBTOOL CONFIG |
| 14626 | |
| 14627 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14628 | |
| 14629 | # Shell to use when invoking shell scripts. |
| 14630 | SHELL=$lt_SHELL |
| 14631 | |
| 14632 | # Whether or not to build shared libraries. |
| 14633 | build_libtool_libs=$enable_shared |
| 14634 | |
| 14635 | # Whether or not to build static libraries. |
| 14636 | build_old_libs=$enable_static |
| 14637 | |
| 14638 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14639 | build_libtool_need_lc=$archive_cmds_need_lc |
| 14640 | |
| 14641 | # Whether or not to disallow shared libs when runtime libs are static |
| 14642 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14643 | |
| 14644 | # Whether or not to optimize for fast installation. |
| 14645 | fast_install=$enable_fast_install |
| 14646 | |
| 14647 | # The host system. |
| 14648 | host_alias=$host_alias |
| 14649 | host=$host |
| 14650 | |
| 14651 | # An echo program that does not interpret backslashes. |
| 14652 | echo=$lt_echo |
| 14653 | |
| 14654 | # The archiver. |
| 14655 | AR=$lt_AR |
| 14656 | AR_FLAGS=$lt_AR_FLAGS |
| 14657 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14658 | # A C compiler. |
| 14659 | LTCC=$lt_LTCC |
| 14660 | |
| 14661 | # A language-specific compiler. |
| 14662 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14663 | |
| 14664 | # Is the compiler the GNU C compiler? |
| 14665 | with_gcc=$GCC |
| 14666 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14667 | # An ERE matcher. |
| 14668 | EGREP=$lt_EGREP |
| 14669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14670 | # The linker used to build libraries. |
| 14671 | LD=$lt_LD |
| 14672 | |
| 14673 | # Whether we need hard or soft links. |
| 14674 | LN_S=$lt_LN_S |
| 14675 | |
| 14676 | # A BSD-compatible nm program. |
| 14677 | NM=$lt_NM |
| 14678 | |
| 14679 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14680 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14681 | |
| 14682 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14683 | MAGIC_CMD=$MAGIC_CMD |
| 14684 | |
| 14685 | # Used on cygwin: DLL creation program. |
| 14686 | DLLTOOL="$DLLTOOL" |
| 14687 | |
| 14688 | # Used on cygwin: object dumper. |
| 14689 | OBJDUMP="$OBJDUMP" |
| 14690 | |
| 14691 | # Used on cygwin: assembler. |
| 14692 | AS="$AS" |
| 14693 | |
| 14694 | # The name of the directory that contains temporary libtool files. |
| 14695 | objdir=$objdir |
| 14696 | |
| 14697 | # How to create reloadable object files. |
| 14698 | reload_flag=$lt_reload_flag |
| 14699 | reload_cmds=$lt_reload_cmds |
| 14700 | |
| 14701 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14702 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14703 | |
| 14704 | # Object file suffix (normally "o"). |
| 14705 | objext="$ac_objext" |
| 14706 | |
| 14707 | # Old archive suffix (normally "a"). |
| 14708 | libext="$libext" |
| 14709 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14710 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14711 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14712 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14713 | # Executable file suffix (normally ""). |
| 14714 | exeext="$exeext" |
| 14715 | |
| 14716 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14717 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14718 | pic_mode=$pic_mode |
| 14719 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14720 | # What is the maximum length of a command? |
| 14721 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14723 | # Does compiler simultaneously support -c and -o options? |
| 14724 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14725 | |
| 14726 | # Must we lock files when doing compilation ? |
| 14727 | need_locks=$lt_need_locks |
| 14728 | |
| 14729 | # Do we need the lib prefix for modules? |
| 14730 | need_lib_prefix=$need_lib_prefix |
| 14731 | |
| 14732 | # Do we need a version for libraries? |
| 14733 | need_version=$need_version |
| 14734 | |
| 14735 | # Whether dlopen is supported. |
| 14736 | dlopen_support=$enable_dlopen |
| 14737 | |
| 14738 | # Whether dlopen of programs is supported. |
| 14739 | dlopen_self=$enable_dlopen_self |
| 14740 | |
| 14741 | # Whether dlopen of statically linked programs is supported. |
| 14742 | dlopen_self_static=$enable_dlopen_self_static |
| 14743 | |
| 14744 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14745 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14746 | |
| 14747 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14748 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14749 | |
| 14750 | # Compiler flag to allow reflexive dlopens. |
| 14751 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 14752 | |
| 14753 | # Compiler flag to generate shared objects directly from archives. |
| 14754 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 14755 | |
| 14756 | # Compiler flag to generate thread-safe objects. |
| 14757 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 14758 | |
| 14759 | # Library versioning type. |
| 14760 | version_type=$version_type |
| 14761 | |
| 14762 | # Format of library name prefix. |
| 14763 | libname_spec=$lt_libname_spec |
| 14764 | |
| 14765 | # List of archive names. First name is the real one, the rest are links. |
| 14766 | # The last name is the one that the linker finds with -lNAME. |
| 14767 | library_names_spec=$lt_library_names_spec |
| 14768 | |
| 14769 | # The coded name of the library, if different from the real name. |
| 14770 | soname_spec=$lt_soname_spec |
| 14771 | |
| 14772 | # Commands used to build and install an old-style archive. |
| 14773 | RANLIB=$lt_RANLIB |
| 14774 | old_archive_cmds=$lt_old_archive_cmds |
| 14775 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14776 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14777 | |
| 14778 | # Create an old-style archive from a shared archive. |
| 14779 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 14780 | |
| 14781 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14782 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 14783 | |
| 14784 | # Commands used to build and install a shared archive. |
| 14785 | archive_cmds=$lt_archive_cmds |
| 14786 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 14787 | postinstall_cmds=$lt_postinstall_cmds |
| 14788 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14789 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14790 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14791 | module_cmds=$lt_module_cmds |
| 14792 | module_expsym_cmds=$lt_module_expsym_cmds |
| 14793 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14794 | # Commands to strip libraries. |
| 14795 | old_striplib=$lt_old_striplib |
| 14796 | striplib=$lt_striplib |
| 14797 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14798 | # Dependencies to place before the objects being linked to create a |
| 14799 | # shared library. |
| 14800 | predep_objects=$lt_predep_objects |
| 14801 | |
| 14802 | # Dependencies to place after the objects being linked to create a |
| 14803 | # shared library. |
| 14804 | postdep_objects=$lt_postdep_objects |
| 14805 | |
| 14806 | # Dependencies to place before the objects being linked to create a |
| 14807 | # shared library. |
| 14808 | predeps=$lt_predeps |
| 14809 | |
| 14810 | # Dependencies to place after the objects being linked to create a |
| 14811 | # shared library. |
| 14812 | postdeps=$lt_postdeps |
| 14813 | |
| 14814 | # The library search path used internally by the compiler when linking |
| 14815 | # a shared library. |
| 14816 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 14817 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14818 | # Method to check whether dependent libraries are shared objects. |
| 14819 | deplibs_check_method=$lt_deplibs_check_method |
| 14820 | |
| 14821 | # Command to use when deplibs_check_method == file_magic. |
| 14822 | file_magic_cmd=$lt_file_magic_cmd |
| 14823 | |
| 14824 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14825 | allow_undefined_flag=$lt_allow_undefined_flag |
| 14826 | |
| 14827 | # Flag that forces no undefined symbols. |
| 14828 | no_undefined_flag=$lt_no_undefined_flag |
| 14829 | |
| 14830 | # Commands used to finish a libtool library installation in a directory. |
| 14831 | finish_cmds=$lt_finish_cmds |
| 14832 | |
| 14833 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14834 | finish_eval=$lt_finish_eval |
| 14835 | |
| 14836 | # 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] | 14837 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14838 | |
| 14839 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14840 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14841 | |
| 14842 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14843 | 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] | 14844 | |
| 14845 | # This is the shared library runtime path variable. |
| 14846 | runpath_var=$runpath_var |
| 14847 | |
| 14848 | # This is the shared library path variable. |
| 14849 | shlibpath_var=$shlibpath_var |
| 14850 | |
| 14851 | # Is shlibpath searched before the hard-coded library search path? |
| 14852 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14853 | |
| 14854 | # How to hardcode a shared library path into an executable. |
| 14855 | hardcode_action=$hardcode_action |
| 14856 | |
| 14857 | # Whether we should hardcode library paths into libraries. |
| 14858 | hardcode_into_libs=$hardcode_into_libs |
| 14859 | |
| 14860 | # Flag to hardcode \$libdir into a binary during linking. |
| 14861 | # This must work even if \$libdir does not exist. |
| 14862 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 14863 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14864 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14865 | # a binary during linking. This must work even if \$libdir does |
| 14866 | # not exist. |
| 14867 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 14868 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14869 | # Whether we need a single -rpath flag with a separated argument. |
| 14870 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 14871 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14872 | # 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] | 14873 | # resulting binary. |
| 14874 | hardcode_direct=$hardcode_direct |
| 14875 | |
| 14876 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14877 | # resulting binary. |
| 14878 | hardcode_minus_L=$hardcode_minus_L |
| 14879 | |
| 14880 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14881 | # the resulting binary. |
| 14882 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 14883 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14884 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14885 | # and all subsequent libraries and executables linked against it. |
| 14886 | hardcode_automatic=$hardcode_automatic |
| 14887 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14888 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14889 | # restored at relink time. |
| 14890 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14891 | |
| 14892 | # Whether libtool must link a program against all its dependency libraries. |
| 14893 | link_all_deplibs=$link_all_deplibs |
| 14894 | |
| 14895 | # Compile-time system search path for libraries |
| 14896 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14897 | |
| 14898 | # Run-time system search path for libraries |
| 14899 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14900 | |
| 14901 | # Fix the shell variable \$srcfile for the compiler. |
| 14902 | fix_srcfile_path="$fix_srcfile_path" |
| 14903 | |
| 14904 | # Set to yes if exported symbols are required. |
| 14905 | always_export_symbols=$always_export_symbols |
| 14906 | |
| 14907 | # The commands to list exported symbols. |
| 14908 | export_symbols_cmds=$lt_export_symbols_cmds |
| 14909 | |
| 14910 | # The commands to extract the exported symbol list from a shared archive. |
| 14911 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14912 | |
| 14913 | # Symbols that should not be listed in the preloaded symbols. |
| 14914 | exclude_expsyms=$lt_exclude_expsyms |
| 14915 | |
| 14916 | # Symbols that must always be exported. |
| 14917 | include_expsyms=$lt_include_expsyms |
| 14918 | |
| 14919 | # ### END LIBTOOL CONFIG |
| 14920 | |
| 14921 | __EOF__ |
| 14922 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14923 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14924 | case $host_os in |
| 14925 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14926 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14927 | |
| 14928 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14929 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14930 | # vanish in a puff of smoke. |
| 14931 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14932 | COLLECT_NAMES= |
| 14933 | export COLLECT_NAMES |
| 14934 | fi |
| 14935 | EOF |
| 14936 | ;; |
| 14937 | esac |
| 14938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14939 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 14940 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 14941 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 14942 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14943 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14945 | mv -f "$cfgfile" "$ofile" || \ |
| 14946 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14947 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14948 | |
| 14949 | else |
| 14950 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14951 | # `config.status --recheck' to rerun these tests and create the |
| 14952 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14953 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 14954 | if test -f "$ltmain_in"; then |
| 14955 | test -f Makefile && make "$ltmain" |
| 14956 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14957 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14958 | |
| 14959 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14960 | ac_ext=c |
| 14961 | ac_cpp='$CPP $CPPFLAGS' |
| 14962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14965 | |
| 14966 | CC="$lt_save_CC" |
| 14967 | |
| 14968 | |
| 14969 | # Check whether --with-tags or --without-tags was given. |
| 14970 | if test "${with_tags+set}" = set; then |
| 14971 | withval="$with_tags" |
| 14972 | tagnames="$withval" |
| 14973 | fi; |
| 14974 | |
| 14975 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 14976 | if test ! -f "${ofile}"; then |
| 14977 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 14978 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 14979 | fi |
| 14980 | |
| 14981 | if test -z "$LTCC"; then |
| 14982 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 14983 | if test -z "$LTCC"; then |
| 14984 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 14985 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 14986 | else |
| 14987 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 14988 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 14989 | fi |
| 14990 | fi |
| 14991 | |
| 14992 | # Extract list of available tagged configurations in $ofile. |
| 14993 | # Note that this assumes the entire list is on one line. |
| 14994 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 14995 | |
| 14996 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 14997 | for tagname in $tagnames; do |
| 14998 | IFS="$lt_save_ifs" |
| 14999 | # Check whether tagname contains only valid characters |
| 15000 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 15001 | "") ;; |
| 15002 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 15003 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 15004 | { (exit 1); exit 1; }; } |
| 15005 | ;; |
| 15006 | esac |
| 15007 | |
| 15008 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 15009 | then |
| 15010 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 15011 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 15012 | { (exit 1); exit 1; }; } |
| 15013 | fi |
| 15014 | |
| 15015 | # Update the list of available tags. |
| 15016 | if test -n "$tagname"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15017 | echo appending configuration tag "$tagname" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15018 | |
| 15019 | case $tagname in |
| 15020 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15021 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 15022 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 15023 | (test "X$CXX" != "Xg++"))) ; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15024 | ac_ext=cc |
| 15025 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15026 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15027 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15028 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15029 | |
| 15030 | |
| 15031 | |
| 15032 | |
| 15033 | archive_cmds_need_lc_CXX=no |
| 15034 | allow_undefined_flag_CXX= |
| 15035 | always_export_symbols_CXX=no |
| 15036 | archive_expsym_cmds_CXX= |
| 15037 | export_dynamic_flag_spec_CXX= |
| 15038 | hardcode_direct_CXX=no |
| 15039 | hardcode_libdir_flag_spec_CXX= |
| 15040 | hardcode_libdir_flag_spec_ld_CXX= |
| 15041 | hardcode_libdir_separator_CXX= |
| 15042 | hardcode_minus_L_CXX=no |
| 15043 | hardcode_automatic_CXX=no |
| 15044 | module_cmds_CXX= |
| 15045 | module_expsym_cmds_CXX= |
| 15046 | link_all_deplibs_CXX=unknown |
| 15047 | old_archive_cmds_CXX=$old_archive_cmds |
| 15048 | no_undefined_flag_CXX= |
| 15049 | whole_archive_flag_spec_CXX= |
| 15050 | enable_shared_with_static_runtimes_CXX=no |
| 15051 | |
| 15052 | # Dependencies to place before and after the object being linked: |
| 15053 | predep_objects_CXX= |
| 15054 | postdep_objects_CXX= |
| 15055 | predeps_CXX= |
| 15056 | postdeps_CXX= |
| 15057 | compiler_lib_search_path_CXX= |
| 15058 | |
| 15059 | # Source file extension for C++ test sources. |
| 15060 | ac_ext=cc |
| 15061 | |
| 15062 | # Object file extension for compiled C++ test sources. |
| 15063 | objext=o |
| 15064 | objext_CXX=$objext |
| 15065 | |
| 15066 | # Code to be used in simple compile tests |
| 15067 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 15068 | |
| 15069 | # Code to be used in simple link tests |
| 15070 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 15071 | |
| 15072 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15073 | |
| 15074 | # If no C compiler was specified, use CC. |
| 15075 | LTCC=${LTCC-"$CC"} |
| 15076 | |
| 15077 | # Allow CC to be a program name with arguments. |
| 15078 | compiler=$CC |
| 15079 | |
| 15080 | |
| 15081 | # Allow CC to be a program name with arguments. |
| 15082 | lt_save_CC=$CC |
| 15083 | lt_save_LD=$LD |
| 15084 | lt_save_GCC=$GCC |
| 15085 | GCC=$GXX |
| 15086 | lt_save_with_gnu_ld=$with_gnu_ld |
| 15087 | lt_save_path_LD=$lt_cv_path_LD |
| 15088 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 15089 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 15090 | else |
| 15091 | unset lt_cv_prog_gnu_ld |
| 15092 | fi |
| 15093 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 15094 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 15095 | else |
| 15096 | unset lt_cv_path_LD |
| 15097 | fi |
| 15098 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 15099 | CC=${CXX-"c++"} |
| 15100 | compiler=$CC |
| 15101 | compiler_CXX=$CC |
| 15102 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 15103 | |
| 15104 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 15105 | # no_builtin_flag separately |
| 15106 | if test "$GXX" = yes; then |
| 15107 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 15108 | else |
| 15109 | lt_prog_compiler_no_builtin_flag_CXX= |
| 15110 | fi |
| 15111 | |
| 15112 | if test "$GXX" = yes; then |
| 15113 | # Set up default GNU C++ configuration |
| 15114 | |
| 15115 | |
| 15116 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 15117 | if test "${with_gnu_ld+set}" = set; then |
| 15118 | withval="$with_gnu_ld" |
| 15119 | test "$withval" = no || with_gnu_ld=yes |
| 15120 | else |
| 15121 | with_gnu_ld=no |
| 15122 | fi; |
| 15123 | ac_prog=ld |
| 15124 | if test "$GCC" = yes; then |
| 15125 | # Check if gcc -print-prog-name=ld gives a path. |
| 15126 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 15127 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 15128 | case $host in |
| 15129 | *-*-mingw*) |
| 15130 | # gcc leaves a trailing carriage return which upsets mingw |
| 15131 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 15132 | *) |
| 15133 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 15134 | esac |
| 15135 | case $ac_prog in |
| 15136 | # Accept absolute paths. |
| 15137 | [\\/]* | ?:[\\/]*) |
| 15138 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15139 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15140 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 15141 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 15142 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 15143 | done |
| 15144 | test -z "$LD" && LD="$ac_prog" |
| 15145 | ;; |
| 15146 | "") |
| 15147 | # If it fails, then pretend we aren't using GCC. |
| 15148 | ac_prog=ld |
| 15149 | ;; |
| 15150 | *) |
| 15151 | # If it is relative, then search for the first ld in PATH. |
| 15152 | with_gnu_ld=unknown |
| 15153 | ;; |
| 15154 | esac |
| 15155 | elif test "$with_gnu_ld" = yes; then |
| 15156 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 15157 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 15158 | else |
| 15159 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 15160 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 15161 | fi |
| 15162 | if test "${lt_cv_path_LD+set}" = set; then |
| 15163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15164 | else |
| 15165 | if test -z "$LD"; then |
| 15166 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 15167 | for ac_dir in $PATH; do |
| 15168 | IFS="$lt_save_ifs" |
| 15169 | test -z "$ac_dir" && ac_dir=. |
| 15170 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 15171 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 15172 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 15173 | # but apparently some GNU ld's only accept -v. |
| 15174 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 15175 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 15176 | *GNU* | *'with BFD'*) |
| 15177 | test "$with_gnu_ld" != no && break |
| 15178 | ;; |
| 15179 | *) |
| 15180 | test "$with_gnu_ld" != yes && break |
| 15181 | ;; |
| 15182 | esac |
| 15183 | fi |
| 15184 | done |
| 15185 | IFS="$lt_save_ifs" |
| 15186 | else |
| 15187 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 15188 | fi |
| 15189 | fi |
| 15190 | |
| 15191 | LD="$lt_cv_path_LD" |
| 15192 | if test -n "$LD"; then |
| 15193 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 15194 | echo "${ECHO_T}$LD" >&6 |
| 15195 | else |
| 15196 | echo "$as_me:$LINENO: result: no" >&5 |
| 15197 | echo "${ECHO_T}no" >&6 |
| 15198 | fi |
| 15199 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 15200 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 15201 | { (exit 1); exit 1; }; } |
| 15202 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 15203 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 15204 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 15205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15206 | else |
| 15207 | # 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] | 15208 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15209 | *GNU* | *'with BFD'*) |
| 15210 | lt_cv_prog_gnu_ld=yes |
| 15211 | ;; |
| 15212 | *) |
| 15213 | lt_cv_prog_gnu_ld=no |
| 15214 | ;; |
| 15215 | esac |
| 15216 | fi |
| 15217 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 15218 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 15219 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 15220 | |
| 15221 | |
| 15222 | |
| 15223 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 15224 | # archiving commands below assume that GNU ld is being used. |
| 15225 | if test "$with_gnu_ld" = yes; then |
| 15226 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15227 | 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' |
| 15228 | |
| 15229 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 15230 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15231 | |
| 15232 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15233 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 15234 | # investigate it a little bit more. (MM) |
| 15235 | wlarc='${wl}' |
| 15236 | |
| 15237 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15238 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 15239 | grep 'no-whole-archive' > /dev/null; then |
| 15240 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15241 | else |
| 15242 | whole_archive_flag_spec_CXX= |
| 15243 | fi |
| 15244 | else |
| 15245 | with_gnu_ld=no |
| 15246 | wlarc= |
| 15247 | |
| 15248 | # A generic and very simple default shared library creation |
| 15249 | # command for GNU C++ for the case where it uses the native |
| 15250 | # linker, instead of GNU ld. If possible, this setting should |
| 15251 | # overridden to take advantage of the native linker features on |
| 15252 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15253 | 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] | 15254 | fi |
| 15255 | |
| 15256 | # Commands to make compiler produce verbose output that lists |
| 15257 | # what "hidden" libraries, object files and flags are used when |
| 15258 | # linking a shared library. |
| 15259 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15260 | |
| 15261 | else |
| 15262 | GXX=no |
| 15263 | with_gnu_ld=no |
| 15264 | wlarc= |
| 15265 | fi |
| 15266 | |
| 15267 | # PORTME: fill in a description of your system's C++ link characteristics |
| 15268 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15269 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15270 | ld_shlibs_CXX=yes |
| 15271 | case $host_os in |
| 15272 | aix3*) |
| 15273 | # FIXME: insert proper C++ library support |
| 15274 | ld_shlibs_CXX=no |
| 15275 | ;; |
| 15276 | aix4* | aix5*) |
| 15277 | if test "$host_cpu" = ia64; then |
| 15278 | # On IA64, the linker does run time linking by default, so we don't |
| 15279 | # have to do anything special. |
| 15280 | aix_use_runtimelinking=no |
| 15281 | exp_sym_flag='-Bexport' |
| 15282 | no_entry_flag="" |
| 15283 | else |
| 15284 | aix_use_runtimelinking=no |
| 15285 | |
| 15286 | # Test if we are trying to use run time linking or normal |
| 15287 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15288 | # need to do runtime linking. |
| 15289 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15290 | for ld_flag in $LDFLAGS; do |
| 15291 | case $ld_flag in |
| 15292 | *-brtl*) |
| 15293 | aix_use_runtimelinking=yes |
| 15294 | break |
| 15295 | ;; |
| 15296 | esac |
| 15297 | done |
| 15298 | esac |
| 15299 | |
| 15300 | exp_sym_flag='-bexport' |
| 15301 | no_entry_flag='-bnoentry' |
| 15302 | fi |
| 15303 | |
| 15304 | # When large executables or shared objects are built, AIX ld can |
| 15305 | # have problems creating the table of contents. If linking a library |
| 15306 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15307 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15308 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15309 | |
| 15310 | archive_cmds_CXX='' |
| 15311 | hardcode_direct_CXX=yes |
| 15312 | hardcode_libdir_separator_CXX=':' |
| 15313 | link_all_deplibs_CXX=yes |
| 15314 | |
| 15315 | if test "$GXX" = yes; then |
| 15316 | case $host_os in aix4.012|aix4.012.*) |
| 15317 | # We only want to do this on AIX 4.2 and lower, the check |
| 15318 | # below for broken collect2 doesn't work under 4.3+ |
| 15319 | collect2name=`${CC} -print-prog-name=collect2` |
| 15320 | if test -f "$collect2name" && \ |
| 15321 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15322 | then |
| 15323 | # We have reworked collect2 |
| 15324 | hardcode_direct_CXX=yes |
| 15325 | else |
| 15326 | # We have old collect2 |
| 15327 | hardcode_direct_CXX=unsupported |
| 15328 | # It fails to find uninstalled libraries when the uninstalled |
| 15329 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15330 | # to unsupported forces relinking |
| 15331 | hardcode_minus_L_CXX=yes |
| 15332 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15333 | hardcode_libdir_separator_CXX= |
| 15334 | fi |
| 15335 | esac |
| 15336 | shared_flag='-shared' |
| 15337 | else |
| 15338 | # not using gcc |
| 15339 | if test "$host_cpu" = ia64; then |
| 15340 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15341 | # chokes on -Wl,-G. The following line is correct: |
| 15342 | shared_flag='-G' |
| 15343 | else |
| 15344 | if test "$aix_use_runtimelinking" = yes; then |
| 15345 | shared_flag='${wl}-G' |
| 15346 | else |
| 15347 | shared_flag='${wl}-bM:SRE' |
| 15348 | fi |
| 15349 | fi |
| 15350 | fi |
| 15351 | |
| 15352 | # It seems that -bexpall does not export symbols beginning with |
| 15353 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15354 | always_export_symbols_CXX=yes |
| 15355 | if test "$aix_use_runtimelinking" = yes; then |
| 15356 | # Warning - without using the other runtime loading flags (-brtl), |
| 15357 | # -berok will link without error, but may produce a broken library. |
| 15358 | allow_undefined_flag_CXX='-berok' |
| 15359 | # Determine the default libpath from the value encoded in an empty executable. |
| 15360 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15361 | /* confdefs.h. */ |
| 15362 | _ACEOF |
| 15363 | cat confdefs.h >>conftest.$ac_ext |
| 15364 | cat >>conftest.$ac_ext <<_ACEOF |
| 15365 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15366 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15367 | int |
| 15368 | main () |
| 15369 | { |
| 15370 | |
| 15371 | ; |
| 15372 | return 0; |
| 15373 | } |
| 15374 | _ACEOF |
| 15375 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15377 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15378 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15380 | rm -f conftest.er1 |
| 15381 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15384 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 15385 | || test ! -s conftest.err' |
| 15386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15387 | (eval $ac_try) 2>&5 |
| 15388 | ac_status=$? |
| 15389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15390 | (exit $ac_status); }; } && |
| 15391 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15393 | (eval $ac_try) 2>&5 |
| 15394 | ac_status=$? |
| 15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15396 | (exit $ac_status); }; }; then |
| 15397 | |
| 15398 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15399 | }'` |
| 15400 | # Check for a 64-bit object if we didn't find anything. |
| 15401 | 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; } |
| 15402 | }'`; fi |
| 15403 | else |
| 15404 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15406 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15407 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15408 | rm -f conftest.err conftest.$ac_objext \ |
| 15409 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15410 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15411 | |
| 15412 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15413 | |
| 15414 | 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" |
| 15415 | else |
| 15416 | if test "$host_cpu" = ia64; then |
| 15417 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 15418 | allow_undefined_flag_CXX="-z nodefs" |
| 15419 | 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" |
| 15420 | else |
| 15421 | # Determine the default libpath from the value encoded in an empty executable. |
| 15422 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15423 | /* confdefs.h. */ |
| 15424 | _ACEOF |
| 15425 | cat confdefs.h >>conftest.$ac_ext |
| 15426 | cat >>conftest.$ac_ext <<_ACEOF |
| 15427 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15428 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15429 | int |
| 15430 | main () |
| 15431 | { |
| 15432 | |
| 15433 | ; |
| 15434 | return 0; |
| 15435 | } |
| 15436 | _ACEOF |
| 15437 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15439 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15440 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15442 | rm -f conftest.er1 |
| 15443 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15445 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15446 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 15447 | || test ! -s conftest.err' |
| 15448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15449 | (eval $ac_try) 2>&5 |
| 15450 | ac_status=$? |
| 15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15452 | (exit $ac_status); }; } && |
| 15453 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15455 | (eval $ac_try) 2>&5 |
| 15456 | ac_status=$? |
| 15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15458 | (exit $ac_status); }; }; then |
| 15459 | |
| 15460 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15461 | }'` |
| 15462 | # Check for a 64-bit object if we didn't find anything. |
| 15463 | 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; } |
| 15464 | }'`; fi |
| 15465 | else |
| 15466 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15468 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15469 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15470 | rm -f conftest.err conftest.$ac_objext \ |
| 15471 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15472 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15473 | |
| 15474 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15475 | # Warning - without using the other run time loading flags, |
| 15476 | # -berok will link without error, but may produce a broken library. |
| 15477 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 15478 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 15479 | # -bexpall does not export symbols beginning with underscore (_) |
| 15480 | always_export_symbols_CXX=yes |
| 15481 | # Exported symbols can be pulled into shared objects from archives |
| 15482 | whole_archive_flag_spec_CXX=' ' |
| 15483 | archive_cmds_need_lc_CXX=yes |
| 15484 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15485 | 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] | 15486 | fi |
| 15487 | fi |
| 15488 | ;; |
| 15489 | chorus*) |
| 15490 | case $cc_basename in |
| 15491 | *) |
| 15492 | # FIXME: insert proper C++ library support |
| 15493 | ld_shlibs_CXX=no |
| 15494 | ;; |
| 15495 | esac |
| 15496 | ;; |
| 15497 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15498 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15499 | cygwin* | mingw* | pw32*) |
| 15500 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 15501 | # as there is no search path for DLLs. |
| 15502 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15503 | allow_undefined_flag_CXX=unsupported |
| 15504 | always_export_symbols_CXX=no |
| 15505 | enable_shared_with_static_runtimes_CXX=yes |
| 15506 | |
| 15507 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15508 | 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' |
| 15509 | # If the export-symbols file already is a .def file (1st line |
| 15510 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15511 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15512 | cp $export_symbols $output_objdir/$soname.def; |
| 15513 | else |
| 15514 | echo EXPORTS > $output_objdir/$soname.def; |
| 15515 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15516 | fi~ |
| 15517 | $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] | 15518 | else |
| 15519 | ld_shlibs_CXX=no |
| 15520 | fi |
| 15521 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15522 | darwin* | rhapsody*) |
| 15523 | case "$host_os" in |
| 15524 | rhapsody* | darwin1.[012]) |
| 15525 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 15526 | ;; |
| 15527 | *) # Darwin 1.3 on |
| 15528 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15529 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15530 | else |
| 15531 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15532 | 10.[012]) |
| 15533 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15534 | ;; |
| 15535 | 10.*) |
| 15536 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 15537 | ;; |
| 15538 | esac |
| 15539 | fi |
| 15540 | ;; |
| 15541 | esac |
| 15542 | archive_cmds_need_lc_CXX=no |
| 15543 | hardcode_direct_CXX=no |
| 15544 | hardcode_automatic_CXX=yes |
| 15545 | hardcode_shlibpath_var_CXX=unsupported |
| 15546 | whole_archive_flag_spec_CXX='' |
| 15547 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15548 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15549 | if test "$GXX" = yes ; then |
| 15550 | lt_int_apple_cc_single_mod=no |
| 15551 | output_verbose_link_cmd='echo' |
| 15552 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 15553 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15554 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15555 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15556 | 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] | 15557 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15558 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15559 | fi |
| 15560 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15561 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15562 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15563 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15564 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15565 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15566 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15567 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15568 | else |
| 15569 | case "$cc_basename" in |
| 15570 | xlc*) |
| 15571 | output_verbose_link_cmd='echo' |
| 15572 | 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' |
| 15573 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15574 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15575 | 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}' |
| 15576 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15577 | ;; |
| 15578 | *) |
| 15579 | ld_shlibs_CXX=no |
| 15580 | ;; |
| 15581 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15582 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15583 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15584 | |
| 15585 | dgux*) |
| 15586 | case $cc_basename in |
| 15587 | ec++) |
| 15588 | # FIXME: insert proper C++ library support |
| 15589 | ld_shlibs_CXX=no |
| 15590 | ;; |
| 15591 | ghcx) |
| 15592 | # Green Hills C++ Compiler |
| 15593 | # FIXME: insert proper C++ library support |
| 15594 | ld_shlibs_CXX=no |
| 15595 | ;; |
| 15596 | *) |
| 15597 | # FIXME: insert proper C++ library support |
| 15598 | ld_shlibs_CXX=no |
| 15599 | ;; |
| 15600 | esac |
| 15601 | ;; |
| 15602 | freebsd12*) |
| 15603 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 15604 | ld_shlibs_CXX=no |
| 15605 | ;; |
| 15606 | freebsd-elf*) |
| 15607 | archive_cmds_need_lc_CXX=no |
| 15608 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15609 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15610 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 15611 | # conventions |
| 15612 | ld_shlibs_CXX=yes |
| 15613 | ;; |
| 15614 | gnu*) |
| 15615 | ;; |
| 15616 | hpux9*) |
| 15617 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15618 | hardcode_libdir_separator_CXX=: |
| 15619 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15620 | hardcode_direct_CXX=yes |
| 15621 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15622 | # but as the default |
| 15623 | # location of the library. |
| 15624 | |
| 15625 | case $cc_basename in |
| 15626 | CC) |
| 15627 | # FIXME: insert proper C++ library support |
| 15628 | ld_shlibs_CXX=no |
| 15629 | ;; |
| 15630 | aCC) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15631 | 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] | 15632 | # Commands to make compiler produce verbose output that lists |
| 15633 | # what "hidden" libraries, object files and flags are used when |
| 15634 | # linking a shared library. |
| 15635 | # |
| 15636 | # There doesn't appear to be a way to prevent this compiler from |
| 15637 | # explicitly linking system object files so we need to strip them |
| 15638 | # from the output so that they don't get included in the library |
| 15639 | # dependencies. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15640 | 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] | 15641 | ;; |
| 15642 | *) |
| 15643 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15644 | 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] | 15645 | else |
| 15646 | # FIXME: insert proper C++ library support |
| 15647 | ld_shlibs_CXX=no |
| 15648 | fi |
| 15649 | ;; |
| 15650 | esac |
| 15651 | ;; |
| 15652 | hpux10*|hpux11*) |
| 15653 | if test $with_gnu_ld = no; then |
| 15654 | case "$host_cpu" in |
| 15655 | hppa*64*) |
| 15656 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15657 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 15658 | hardcode_libdir_separator_CXX=: |
| 15659 | ;; |
| 15660 | ia64*) |
| 15661 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15662 | ;; |
| 15663 | *) |
| 15664 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15665 | hardcode_libdir_separator_CXX=: |
| 15666 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15667 | ;; |
| 15668 | esac |
| 15669 | fi |
| 15670 | case "$host_cpu" in |
| 15671 | hppa*64*) |
| 15672 | hardcode_direct_CXX=no |
| 15673 | hardcode_shlibpath_var_CXX=no |
| 15674 | ;; |
| 15675 | ia64*) |
| 15676 | hardcode_direct_CXX=no |
| 15677 | hardcode_shlibpath_var_CXX=no |
| 15678 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15679 | # but as the default |
| 15680 | # location of the library. |
| 15681 | ;; |
| 15682 | *) |
| 15683 | hardcode_direct_CXX=yes |
| 15684 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15685 | # but as the default |
| 15686 | # location of the library. |
| 15687 | ;; |
| 15688 | esac |
| 15689 | |
| 15690 | case $cc_basename in |
| 15691 | CC) |
| 15692 | # FIXME: insert proper C++ library support |
| 15693 | ld_shlibs_CXX=no |
| 15694 | ;; |
| 15695 | aCC) |
| 15696 | case "$host_cpu" in |
| 15697 | hppa*64*|ia64*) |
| 15698 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 15699 | ;; |
| 15700 | *) |
| 15701 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15702 | ;; |
| 15703 | esac |
| 15704 | # Commands to make compiler produce verbose output that lists |
| 15705 | # what "hidden" libraries, object files and flags are used when |
| 15706 | # linking a shared library. |
| 15707 | # |
| 15708 | # There doesn't appear to be a way to prevent this compiler from |
| 15709 | # explicitly linking system object files so we need to strip them |
| 15710 | # from the output so that they don't get included in the library |
| 15711 | # dependencies. |
| 15712 | 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' |
| 15713 | ;; |
| 15714 | *) |
| 15715 | if test "$GXX" = yes; then |
| 15716 | if test $with_gnu_ld = no; then |
| 15717 | case "$host_cpu" in |
| 15718 | ia64*|hppa*64*) |
| 15719 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 15720 | ;; |
| 15721 | *) |
| 15722 | 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' |
| 15723 | ;; |
| 15724 | esac |
| 15725 | fi |
| 15726 | else |
| 15727 | # FIXME: insert proper C++ library support |
| 15728 | ld_shlibs_CXX=no |
| 15729 | fi |
| 15730 | ;; |
| 15731 | esac |
| 15732 | ;; |
| 15733 | irix5* | irix6*) |
| 15734 | case $cc_basename in |
| 15735 | CC) |
| 15736 | # SGI C++ |
| 15737 | 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' |
| 15738 | |
| 15739 | # Archives containing C++ object files must be created using |
| 15740 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 15741 | # necessary to make sure instantiated templates are included |
| 15742 | # in the archive. |
| 15743 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 15744 | ;; |
| 15745 | *) |
| 15746 | if test "$GXX" = yes; then |
| 15747 | if test "$with_gnu_ld" = no; then |
| 15748 | 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' |
| 15749 | else |
| 15750 | 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' |
| 15751 | fi |
| 15752 | fi |
| 15753 | link_all_deplibs_CXX=yes |
| 15754 | ;; |
| 15755 | esac |
| 15756 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15757 | hardcode_libdir_separator_CXX=: |
| 15758 | ;; |
| 15759 | linux*) |
| 15760 | case $cc_basename in |
| 15761 | KCC) |
| 15762 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15763 | |
| 15764 | # KCC will only create a shared library if the output file |
| 15765 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15766 | # to its proper name (with version) after linking. |
| 15767 | 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' |
| 15768 | 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' |
| 15769 | # Commands to make compiler produce verbose output that lists |
| 15770 | # what "hidden" libraries, object files and flags are used when |
| 15771 | # linking a shared library. |
| 15772 | # |
| 15773 | # There doesn't appear to be a way to prevent this compiler from |
| 15774 | # explicitly linking system object files so we need to strip them |
| 15775 | # from the output so that they don't get included in the library |
| 15776 | # dependencies. |
| 15777 | 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' |
| 15778 | |
| 15779 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 15780 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15781 | |
| 15782 | # Archives containing C++ object files must be created using |
| 15783 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15784 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15785 | ;; |
| 15786 | icpc) |
| 15787 | # Intel C++ |
| 15788 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15789 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 15790 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 15791 | # earlier do not add the objects themselves. |
| 15792 | case `$CC -V 2>&1` in |
| 15793 | *"Version 7."*) |
| 15794 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15795 | 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' |
| 15796 | ;; |
| 15797 | *) # Version 8.0 or newer |
| 15798 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15799 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15800 | ;; |
| 15801 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15802 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15803 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15804 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15805 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 15806 | ;; |
| 15807 | cxx) |
| 15808 | # Compaq C++ |
| 15809 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15810 | 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' |
| 15811 | |
| 15812 | runpath_var=LD_RUN_PATH |
| 15813 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15814 | hardcode_libdir_separator_CXX=: |
| 15815 | |
| 15816 | # Commands to make compiler produce verbose output that lists |
| 15817 | # what "hidden" libraries, object files and flags are used when |
| 15818 | # linking a shared library. |
| 15819 | # |
| 15820 | # There doesn't appear to be a way to prevent this compiler from |
| 15821 | # explicitly linking system object files so we need to strip them |
| 15822 | # from the output so that they don't get included in the library |
| 15823 | # dependencies. |
| 15824 | 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' |
| 15825 | ;; |
| 15826 | esac |
| 15827 | ;; |
| 15828 | lynxos*) |
| 15829 | # FIXME: insert proper C++ library support |
| 15830 | ld_shlibs_CXX=no |
| 15831 | ;; |
| 15832 | m88k*) |
| 15833 | # FIXME: insert proper C++ library support |
| 15834 | ld_shlibs_CXX=no |
| 15835 | ;; |
| 15836 | mvs*) |
| 15837 | case $cc_basename in |
| 15838 | cxx) |
| 15839 | # FIXME: insert proper C++ library support |
| 15840 | ld_shlibs_CXX=no |
| 15841 | ;; |
| 15842 | *) |
| 15843 | # FIXME: insert proper C++ library support |
| 15844 | ld_shlibs_CXX=no |
| 15845 | ;; |
| 15846 | esac |
| 15847 | ;; |
| 15848 | netbsd*) |
| 15849 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15850 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 15851 | wlarc= |
| 15852 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15853 | hardcode_direct_CXX=yes |
| 15854 | hardcode_shlibpath_var_CXX=no |
| 15855 | fi |
| 15856 | # Workaround some broken pre-1.5 toolchains |
| 15857 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 15858 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15859 | openbsd2*) |
| 15860 | # C++ shared libraries are fairly broken |
| 15861 | ld_shlibs_CXX=no |
| 15862 | ;; |
| 15863 | openbsd*) |
| 15864 | hardcode_direct_CXX=yes |
| 15865 | hardcode_shlibpath_var_CXX=no |
| 15866 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 15867 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15868 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15869 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 15870 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15871 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15872 | fi |
| 15873 | output_verbose_link_cmd='echo' |
| 15874 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15875 | osf3*) |
| 15876 | case $cc_basename in |
| 15877 | KCC) |
| 15878 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15879 | |
| 15880 | # KCC will only create a shared library if the output file |
| 15881 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15882 | # to its proper name (with version) after linking. |
| 15883 | 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' |
| 15884 | |
| 15885 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15886 | hardcode_libdir_separator_CXX=: |
| 15887 | |
| 15888 | # Archives containing C++ object files must be created using |
| 15889 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15890 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15891 | |
| 15892 | ;; |
| 15893 | RCC) |
| 15894 | # Rational C++ 2.4.1 |
| 15895 | # FIXME: insert proper C++ library support |
| 15896 | ld_shlibs_CXX=no |
| 15897 | ;; |
| 15898 | cxx) |
| 15899 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15900 | 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' |
| 15901 | |
| 15902 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15903 | hardcode_libdir_separator_CXX=: |
| 15904 | |
| 15905 | # Commands to make compiler produce verbose output that lists |
| 15906 | # what "hidden" libraries, object files and flags are used when |
| 15907 | # linking a shared library. |
| 15908 | # |
| 15909 | # There doesn't appear to be a way to prevent this compiler from |
| 15910 | # explicitly linking system object files so we need to strip them |
| 15911 | # from the output so that they don't get included in the library |
| 15912 | # dependencies. |
| 15913 | 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' |
| 15914 | ;; |
| 15915 | *) |
| 15916 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15917 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15918 | 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' |
| 15919 | |
| 15920 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15921 | hardcode_libdir_separator_CXX=: |
| 15922 | |
| 15923 | # Commands to make compiler produce verbose output that lists |
| 15924 | # what "hidden" libraries, object files and flags are used when |
| 15925 | # linking a shared library. |
| 15926 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15927 | |
| 15928 | else |
| 15929 | # FIXME: insert proper C++ library support |
| 15930 | ld_shlibs_CXX=no |
| 15931 | fi |
| 15932 | ;; |
| 15933 | esac |
| 15934 | ;; |
| 15935 | osf4* | osf5*) |
| 15936 | case $cc_basename in |
| 15937 | KCC) |
| 15938 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15939 | |
| 15940 | # KCC will only create a shared library if the output file |
| 15941 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15942 | # to its proper name (with version) after linking. |
| 15943 | 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' |
| 15944 | |
| 15945 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15946 | hardcode_libdir_separator_CXX=: |
| 15947 | |
| 15948 | # Archives containing C++ object files must be created using |
| 15949 | # the KAI C++ compiler. |
| 15950 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 15951 | ;; |
| 15952 | RCC) |
| 15953 | # Rational C++ 2.4.1 |
| 15954 | # FIXME: insert proper C++ library support |
| 15955 | ld_shlibs_CXX=no |
| 15956 | ;; |
| 15957 | cxx) |
| 15958 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 15959 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15960 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 15961 | echo "-hidden">> $lib.exp~ |
| 15962 | $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~ |
| 15963 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15964 | |
| 15965 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15966 | hardcode_libdir_separator_CXX=: |
| 15967 | |
| 15968 | # Commands to make compiler produce verbose output that lists |
| 15969 | # what "hidden" libraries, object files and flags are used when |
| 15970 | # linking a shared library. |
| 15971 | # |
| 15972 | # There doesn't appear to be a way to prevent this compiler from |
| 15973 | # explicitly linking system object files so we need to strip them |
| 15974 | # from the output so that they don't get included in the library |
| 15975 | # dependencies. |
| 15976 | 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' |
| 15977 | ;; |
| 15978 | *) |
| 15979 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15980 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15981 | 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' |
| 15982 | |
| 15983 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15984 | hardcode_libdir_separator_CXX=: |
| 15985 | |
| 15986 | # Commands to make compiler produce verbose output that lists |
| 15987 | # what "hidden" libraries, object files and flags are used when |
| 15988 | # linking a shared library. |
| 15989 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15990 | |
| 15991 | else |
| 15992 | # FIXME: insert proper C++ library support |
| 15993 | ld_shlibs_CXX=no |
| 15994 | fi |
| 15995 | ;; |
| 15996 | esac |
| 15997 | ;; |
| 15998 | psos*) |
| 15999 | # FIXME: insert proper C++ library support |
| 16000 | ld_shlibs_CXX=no |
| 16001 | ;; |
| 16002 | sco*) |
| 16003 | archive_cmds_need_lc_CXX=no |
| 16004 | case $cc_basename in |
| 16005 | CC) |
| 16006 | # FIXME: insert proper C++ library support |
| 16007 | ld_shlibs_CXX=no |
| 16008 | ;; |
| 16009 | *) |
| 16010 | # FIXME: insert proper C++ library support |
| 16011 | ld_shlibs_CXX=no |
| 16012 | ;; |
| 16013 | esac |
| 16014 | ;; |
| 16015 | sunos4*) |
| 16016 | case $cc_basename in |
| 16017 | CC) |
| 16018 | # Sun C++ 4.x |
| 16019 | # FIXME: insert proper C++ library support |
| 16020 | ld_shlibs_CXX=no |
| 16021 | ;; |
| 16022 | lcc) |
| 16023 | # Lucid |
| 16024 | # FIXME: insert proper C++ library support |
| 16025 | ld_shlibs_CXX=no |
| 16026 | ;; |
| 16027 | *) |
| 16028 | # FIXME: insert proper C++ library support |
| 16029 | ld_shlibs_CXX=no |
| 16030 | ;; |
| 16031 | esac |
| 16032 | ;; |
| 16033 | solaris*) |
| 16034 | case $cc_basename in |
| 16035 | CC) |
| 16036 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16037 | no_undefined_flag_CXX=' -zdefs' |
| 16038 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16039 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16040 | $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] | 16041 | |
| 16042 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16043 | hardcode_shlibpath_var_CXX=no |
| 16044 | case $host_os in |
| 16045 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 16046 | *) |
| 16047 | # The C++ compiler is used as linker so we must use $wl |
| 16048 | # flag to pass the commands to the underlying system |
| 16049 | # linker. |
| 16050 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16051 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 16052 | ;; |
| 16053 | esac |
| 16054 | link_all_deplibs_CXX=yes |
| 16055 | |
| 16056 | # Commands to make compiler produce verbose output that lists |
| 16057 | # what "hidden" libraries, object files and flags are used when |
| 16058 | # linking a shared library. |
| 16059 | # |
| 16060 | # There doesn't appear to be a way to prevent this compiler from |
| 16061 | # explicitly linking system object files so we need to strip them |
| 16062 | # from the output so that they don't get included in the library |
| 16063 | # dependencies. |
| 16064 | 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' |
| 16065 | |
| 16066 | # Archives containing C++ object files must be created using |
| 16067 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 16068 | # necessary to make sure instantiated templates are included |
| 16069 | # in the archive. |
| 16070 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 16071 | ;; |
| 16072 | gcx) |
| 16073 | # Green Hills C++ Compiler |
| 16074 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 16075 | |
| 16076 | # The C++ compiler must be used to create the archive. |
| 16077 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 16078 | ;; |
| 16079 | *) |
| 16080 | # GNU C++ compiler with Solaris linker |
| 16081 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16082 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 16083 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16084 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16085 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16086 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 16087 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16088 | # Commands to make compiler produce verbose output that lists |
| 16089 | # what "hidden" libraries, object files and flags are used when |
| 16090 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16091 | 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] | 16092 | else |
| 16093 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 16094 | # platform. |
| 16095 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16096 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16097 | $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] | 16098 | |
| 16099 | # Commands to make compiler produce verbose output that lists |
| 16100 | # what "hidden" libraries, object files and flags are used when |
| 16101 | # linking a shared library. |
| 16102 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 16103 | fi |
| 16104 | |
| 16105 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 16106 | fi |
| 16107 | ;; |
| 16108 | esac |
| 16109 | ;; |
| 16110 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16111 | archive_cmds_need_lc_CXX=no |
| 16112 | ;; |
| 16113 | tandem*) |
| 16114 | case $cc_basename in |
| 16115 | NCC) |
| 16116 | # NonStop-UX NCC 3.20 |
| 16117 | # FIXME: insert proper C++ library support |
| 16118 | ld_shlibs_CXX=no |
| 16119 | ;; |
| 16120 | *) |
| 16121 | # FIXME: insert proper C++ library support |
| 16122 | ld_shlibs_CXX=no |
| 16123 | ;; |
| 16124 | esac |
| 16125 | ;; |
| 16126 | vxworks*) |
| 16127 | # FIXME: insert proper C++ library support |
| 16128 | ld_shlibs_CXX=no |
| 16129 | ;; |
| 16130 | *) |
| 16131 | # FIXME: insert proper C++ library support |
| 16132 | ld_shlibs_CXX=no |
| 16133 | ;; |
| 16134 | esac |
| 16135 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 16136 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 16137 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16138 | |
| 16139 | GCC_CXX="$GXX" |
| 16140 | LD_CXX="$LD" |
| 16141 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16142 | |
| 16143 | cat > conftest.$ac_ext <<EOF |
| 16144 | class Foo |
| 16145 | { |
| 16146 | public: |
| 16147 | Foo (void) { a = 0; } |
| 16148 | private: |
| 16149 | int a; |
| 16150 | }; |
| 16151 | EOF |
| 16152 | |
| 16153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16154 | (eval $ac_compile) 2>&5 |
| 16155 | ac_status=$? |
| 16156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16157 | (exit $ac_status); }; then |
| 16158 | # Parse the compiler output and extract the necessary |
| 16159 | # objects, libraries and library flags. |
| 16160 | |
| 16161 | # Sentinel used to keep track of whether or not we are before |
| 16162 | # the conftest object file. |
| 16163 | pre_test_object_deps_done=no |
| 16164 | |
| 16165 | # The `*' in the case matches for architectures that use `case' in |
| 16166 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 16167 | # eval without this substitution. |
| 16168 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 16169 | |
| 16170 | for p in `eval $output_verbose_link_cmd`; do |
| 16171 | case $p in |
| 16172 | |
| 16173 | -L* | -R* | -l*) |
| 16174 | # Some compilers place space between "-{L,R}" and the path. |
| 16175 | # Remove the space. |
| 16176 | if test $p = "-L" \ |
| 16177 | || test $p = "-R"; then |
| 16178 | prev=$p |
| 16179 | continue |
| 16180 | else |
| 16181 | prev= |
| 16182 | fi |
| 16183 | |
| 16184 | if test "$pre_test_object_deps_done" = no; then |
| 16185 | case $p in |
| 16186 | -L* | -R*) |
| 16187 | # Internal compiler library paths should come after those |
| 16188 | # provided the user. The postdeps already come after the |
| 16189 | # user supplied libs so there is no need to process them. |
| 16190 | if test -z "$compiler_lib_search_path_CXX"; then |
| 16191 | compiler_lib_search_path_CXX="${prev}${p}" |
| 16192 | else |
| 16193 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 16194 | fi |
| 16195 | ;; |
| 16196 | # The "-l" case would never come before the object being |
| 16197 | # linked, so don't bother handling this case. |
| 16198 | esac |
| 16199 | else |
| 16200 | if test -z "$postdeps_CXX"; then |
| 16201 | postdeps_CXX="${prev}${p}" |
| 16202 | else |
| 16203 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 16204 | fi |
| 16205 | fi |
| 16206 | ;; |
| 16207 | |
| 16208 | *.$objext) |
| 16209 | # This assumes that the test object file only shows up |
| 16210 | # once in the compiler output. |
| 16211 | if test "$p" = "conftest.$objext"; then |
| 16212 | pre_test_object_deps_done=yes |
| 16213 | continue |
| 16214 | fi |
| 16215 | |
| 16216 | if test "$pre_test_object_deps_done" = no; then |
| 16217 | if test -z "$predep_objects_CXX"; then |
| 16218 | predep_objects_CXX="$p" |
| 16219 | else |
| 16220 | predep_objects_CXX="$predep_objects_CXX $p" |
| 16221 | fi |
| 16222 | else |
| 16223 | if test -z "$postdep_objects_CXX"; then |
| 16224 | postdep_objects_CXX="$p" |
| 16225 | else |
| 16226 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 16227 | fi |
| 16228 | fi |
| 16229 | ;; |
| 16230 | |
| 16231 | *) ;; # Ignore the rest. |
| 16232 | |
| 16233 | esac |
| 16234 | done |
| 16235 | |
| 16236 | # Clean up. |
| 16237 | rm -f a.out a.exe |
| 16238 | else |
| 16239 | echo "libtool.m4: error: problem compiling CXX test program" |
| 16240 | fi |
| 16241 | |
| 16242 | $rm -f confest.$objext |
| 16243 | |
| 16244 | case " $postdeps_CXX " in |
| 16245 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 16246 | esac |
| 16247 | |
| 16248 | lt_prog_compiler_wl_CXX= |
| 16249 | lt_prog_compiler_pic_CXX= |
| 16250 | lt_prog_compiler_static_CXX= |
| 16251 | |
| 16252 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16253 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 16254 | |
| 16255 | # C++ specific cases for pic, static, wl, etc. |
| 16256 | if test "$GXX" = yes; then |
| 16257 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16258 | lt_prog_compiler_static_CXX='-static' |
| 16259 | |
| 16260 | case $host_os in |
| 16261 | aix*) |
| 16262 | # All AIX code is PIC. |
| 16263 | if test "$host_cpu" = ia64; then |
| 16264 | # AIX 5 now supports IA64 processor |
| 16265 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16266 | fi |
| 16267 | ;; |
| 16268 | amigaos*) |
| 16269 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16270 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16271 | # like `-m68040'. |
| 16272 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 16273 | ;; |
| 16274 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16275 | # PIC is the default for these OSes. |
| 16276 | ;; |
| 16277 | mingw* | os2* | pw32*) |
| 16278 | # This hack is so that the source file can tell whether it is being |
| 16279 | # built for inclusion in a dll (and should export symbols for example). |
| 16280 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16281 | ;; |
| 16282 | darwin* | rhapsody*) |
| 16283 | # PIC is the default on this platform |
| 16284 | # Common symbols not allowed in MH_DYLIB files |
| 16285 | lt_prog_compiler_pic_CXX='-fno-common' |
| 16286 | ;; |
| 16287 | *djgpp*) |
| 16288 | # DJGPP does not support shared libraries at all |
| 16289 | lt_prog_compiler_pic_CXX= |
| 16290 | ;; |
| 16291 | sysv4*MP*) |
| 16292 | if test -d /usr/nec; then |
| 16293 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 16294 | fi |
| 16295 | ;; |
| 16296 | hpux*) |
| 16297 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16298 | # not for PA HP-UX. |
| 16299 | case "$host_cpu" in |
| 16300 | hppa*64*|ia64*) |
| 16301 | ;; |
| 16302 | *) |
| 16303 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16304 | ;; |
| 16305 | esac |
| 16306 | ;; |
| 16307 | *) |
| 16308 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16309 | ;; |
| 16310 | esac |
| 16311 | else |
| 16312 | case $host_os in |
| 16313 | aix4* | aix5*) |
| 16314 | # All AIX code is PIC. |
| 16315 | if test "$host_cpu" = ia64; then |
| 16316 | # AIX 5 now supports IA64 processor |
| 16317 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16318 | else |
| 16319 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 16320 | fi |
| 16321 | ;; |
| 16322 | chorus*) |
| 16323 | case $cc_basename in |
| 16324 | cxch68) |
| 16325 | # Green Hills C++ Compiler |
| 16326 | # _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" |
| 16327 | ;; |
| 16328 | esac |
| 16329 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16330 | darwin*) |
| 16331 | # PIC is the default on this platform |
| 16332 | # Common symbols not allowed in MH_DYLIB files |
| 16333 | case "$cc_basename" in |
| 16334 | xlc*) |
| 16335 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 16336 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16337 | ;; |
| 16338 | esac |
| 16339 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16340 | dgux*) |
| 16341 | case $cc_basename in |
| 16342 | ec++) |
| 16343 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16344 | ;; |
| 16345 | ghcx) |
| 16346 | # Green Hills C++ Compiler |
| 16347 | lt_prog_compiler_pic_CXX='-pic' |
| 16348 | ;; |
| 16349 | *) |
| 16350 | ;; |
| 16351 | esac |
| 16352 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16353 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16354 | # FreeBSD uses GNU C++ |
| 16355 | ;; |
| 16356 | hpux9* | hpux10* | hpux11*) |
| 16357 | case $cc_basename in |
| 16358 | CC) |
| 16359 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16360 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16361 | if test "$host_cpu" != ia64; then |
| 16362 | lt_prog_compiler_pic_CXX='+Z' |
| 16363 | fi |
| 16364 | ;; |
| 16365 | aCC) |
| 16366 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16367 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16368 | case "$host_cpu" in |
| 16369 | hppa*64*|ia64*) |
| 16370 | # +Z the default |
| 16371 | ;; |
| 16372 | *) |
| 16373 | lt_prog_compiler_pic_CXX='+Z' |
| 16374 | ;; |
| 16375 | esac |
| 16376 | ;; |
| 16377 | *) |
| 16378 | ;; |
| 16379 | esac |
| 16380 | ;; |
| 16381 | irix5* | irix6* | nonstopux*) |
| 16382 | case $cc_basename in |
| 16383 | CC) |
| 16384 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16385 | lt_prog_compiler_static_CXX='-non_shared' |
| 16386 | # CC pic flag -KPIC is the default. |
| 16387 | ;; |
| 16388 | *) |
| 16389 | ;; |
| 16390 | esac |
| 16391 | ;; |
| 16392 | linux*) |
| 16393 | case $cc_basename in |
| 16394 | KCC) |
| 16395 | # KAI C++ Compiler |
| 16396 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16397 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16398 | ;; |
| 16399 | icpc) |
| 16400 | # Intel C++ |
| 16401 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16402 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16403 | lt_prog_compiler_static_CXX='-static' |
| 16404 | ;; |
| 16405 | cxx) |
| 16406 | # Compaq C++ |
| 16407 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16408 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16409 | lt_prog_compiler_pic_CXX= |
| 16410 | lt_prog_compiler_static_CXX='-non_shared' |
| 16411 | ;; |
| 16412 | *) |
| 16413 | ;; |
| 16414 | esac |
| 16415 | ;; |
| 16416 | lynxos*) |
| 16417 | ;; |
| 16418 | m88k*) |
| 16419 | ;; |
| 16420 | mvs*) |
| 16421 | case $cc_basename in |
| 16422 | cxx) |
| 16423 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16424 | ;; |
| 16425 | *) |
| 16426 | ;; |
| 16427 | esac |
| 16428 | ;; |
| 16429 | netbsd*) |
| 16430 | ;; |
| 16431 | osf3* | osf4* | osf5*) |
| 16432 | case $cc_basename in |
| 16433 | KCC) |
| 16434 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16435 | ;; |
| 16436 | RCC) |
| 16437 | # Rational C++ 2.4.1 |
| 16438 | lt_prog_compiler_pic_CXX='-pic' |
| 16439 | ;; |
| 16440 | cxx) |
| 16441 | # Digital/Compaq C++ |
| 16442 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16443 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16444 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16445 | lt_prog_compiler_pic_CXX= |
| 16446 | lt_prog_compiler_static_CXX='-non_shared' |
| 16447 | ;; |
| 16448 | *) |
| 16449 | ;; |
| 16450 | esac |
| 16451 | ;; |
| 16452 | psos*) |
| 16453 | ;; |
| 16454 | sco*) |
| 16455 | case $cc_basename in |
| 16456 | CC) |
| 16457 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16458 | ;; |
| 16459 | *) |
| 16460 | ;; |
| 16461 | esac |
| 16462 | ;; |
| 16463 | solaris*) |
| 16464 | case $cc_basename in |
| 16465 | CC) |
| 16466 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16467 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16468 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16469 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16470 | ;; |
| 16471 | gcx) |
| 16472 | # Green Hills C++ Compiler |
| 16473 | lt_prog_compiler_pic_CXX='-PIC' |
| 16474 | ;; |
| 16475 | *) |
| 16476 | ;; |
| 16477 | esac |
| 16478 | ;; |
| 16479 | sunos4*) |
| 16480 | case $cc_basename in |
| 16481 | CC) |
| 16482 | # Sun C++ 4.x |
| 16483 | lt_prog_compiler_pic_CXX='-pic' |
| 16484 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16485 | ;; |
| 16486 | lcc) |
| 16487 | # Lucid |
| 16488 | lt_prog_compiler_pic_CXX='-pic' |
| 16489 | ;; |
| 16490 | *) |
| 16491 | ;; |
| 16492 | esac |
| 16493 | ;; |
| 16494 | tandem*) |
| 16495 | case $cc_basename in |
| 16496 | NCC) |
| 16497 | # NonStop-UX NCC 3.20 |
| 16498 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16499 | ;; |
| 16500 | *) |
| 16501 | ;; |
| 16502 | esac |
| 16503 | ;; |
| 16504 | unixware*) |
| 16505 | ;; |
| 16506 | vxworks*) |
| 16507 | ;; |
| 16508 | *) |
| 16509 | lt_prog_compiler_can_build_shared_CXX=no |
| 16510 | ;; |
| 16511 | esac |
| 16512 | fi |
| 16513 | |
| 16514 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 16515 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 16516 | |
| 16517 | # |
| 16518 | # Check to make sure the PIC flag actually works. |
| 16519 | # |
| 16520 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16521 | |
| 16522 | 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] | 16523 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 16524 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 16525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16526 | else |
| 16527 | lt_prog_compiler_pic_works_CXX=no |
| 16528 | ac_outfile=conftest.$ac_objext |
| 16529 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16530 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 16531 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16532 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16533 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16534 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16535 | # The option is referenced via a variable to avoid confusing sed. |
| 16536 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16537 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16538 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16539 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 16540 | (eval echo "\"\$as_me:16540: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16541 | (eval "$lt_compile" 2>conftest.err) |
| 16542 | ac_status=$? |
| 16543 | cat conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 16544 | echo "$as_me:16544: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16545 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16546 | # The compiler can only warn and ignore the option if not recognized |
| 16547 | # So say no if there are warnings |
| 16548 | if test ! -s conftest.err; then |
| 16549 | lt_prog_compiler_pic_works_CXX=yes |
| 16550 | fi |
| 16551 | fi |
| 16552 | $rm conftest* |
| 16553 | |
| 16554 | fi |
| 16555 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 16556 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 16557 | |
| 16558 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 16559 | case $lt_prog_compiler_pic_CXX in |
| 16560 | "" | " "*) ;; |
| 16561 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 16562 | esac |
| 16563 | else |
| 16564 | lt_prog_compiler_pic_CXX= |
| 16565 | lt_prog_compiler_can_build_shared_CXX=no |
| 16566 | fi |
| 16567 | |
| 16568 | fi |
| 16569 | case "$host_os" in |
| 16570 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16571 | *djgpp*) |
| 16572 | lt_prog_compiler_pic_CXX= |
| 16573 | ;; |
| 16574 | *) |
| 16575 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 16576 | ;; |
| 16577 | esac |
| 16578 | |
| 16579 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16580 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 16581 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 16582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16583 | else |
| 16584 | lt_cv_prog_compiler_c_o_CXX=no |
| 16585 | $rm -r conftest 2>/dev/null |
| 16586 | mkdir conftest |
| 16587 | cd conftest |
| 16588 | mkdir out |
| 16589 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16590 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16591 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16592 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16593 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16594 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16595 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16596 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16597 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16598 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16599 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 16600 | (eval echo "\"\$as_me:16600: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16601 | (eval "$lt_compile" 2>out/conftest.err) |
| 16602 | ac_status=$? |
| 16603 | cat out/conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 16604 | echo "$as_me:16604: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16605 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16606 | then |
| 16607 | # The compiler can only warn and ignore the option if not recognized |
| 16608 | # So say no if there are warnings |
| 16609 | if test ! -s out/conftest.err; then |
| 16610 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16611 | fi |
| 16612 | fi |
| 16613 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16614 | $rm conftest* |
| 16615 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16616 | # template instantiation |
| 16617 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 16618 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16619 | cd .. |
| 16620 | rmdir conftest |
| 16621 | $rm conftest* |
| 16622 | |
| 16623 | fi |
| 16624 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 16625 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 16626 | |
| 16627 | |
| 16628 | hard_links="nottested" |
| 16629 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 16630 | # do not overwrite the value of need_locks provided by the user |
| 16631 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 16632 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 16633 | hard_links=yes |
| 16634 | $rm conftest* |
| 16635 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16636 | touch conftest.a |
| 16637 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16638 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16639 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 16640 | echo "${ECHO_T}$hard_links" >&6 |
| 16641 | if test "$hard_links" = no; then |
| 16642 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 16643 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16644 | need_locks=warn |
| 16645 | fi |
| 16646 | else |
| 16647 | need_locks=no |
| 16648 | fi |
| 16649 | |
| 16650 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16651 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 16652 | |
| 16653 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16654 | case $host_os in |
| 16655 | aix4* | aix5*) |
| 16656 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16657 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16658 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16659 | 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' |
| 16660 | else |
| 16661 | 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' |
| 16662 | fi |
| 16663 | ;; |
| 16664 | pw32*) |
| 16665 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 16666 | ;; |
| 16667 | cygwin* | mingw*) |
| 16668 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 16669 | ;; |
| 16670 | *) |
| 16671 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16672 | ;; |
| 16673 | esac |
| 16674 | |
| 16675 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 16676 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 16677 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16678 | |
| 16679 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16680 | if test "$GCC" = yes; then |
| 16681 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16682 | fi |
| 16683 | |
| 16684 | # |
| 16685 | # Do we need to explicitly link libc? |
| 16686 | # |
| 16687 | case "x$archive_cmds_need_lc_CXX" in |
| 16688 | x|xyes) |
| 16689 | # Assume -lc should be added |
| 16690 | archive_cmds_need_lc_CXX=yes |
| 16691 | |
| 16692 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16693 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16694 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16695 | # FIXME: we may have to deal with multi-command sequences. |
| 16696 | ;; |
| 16697 | '$CC '*) |
| 16698 | # Test whether the compiler implicitly links with -lc since on some |
| 16699 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16700 | # to ld, don't add -lc before -lgcc. |
| 16701 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16702 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16703 | $rm conftest* |
| 16704 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16705 | |
| 16706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16707 | (eval $ac_compile) 2>&5 |
| 16708 | ac_status=$? |
| 16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16710 | (exit $ac_status); } 2>conftest.err; then |
| 16711 | soname=conftest |
| 16712 | lib=conftest |
| 16713 | libobjs=conftest.$ac_objext |
| 16714 | deplibs= |
| 16715 | wl=$lt_prog_compiler_wl_CXX |
| 16716 | compiler_flags=-v |
| 16717 | linker_flags=-v |
| 16718 | verstring= |
| 16719 | output_objdir=. |
| 16720 | libname=conftest |
| 16721 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 16722 | allow_undefined_flag_CXX= |
| 16723 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16724 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16725 | ac_status=$? |
| 16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16727 | (exit $ac_status); } |
| 16728 | then |
| 16729 | archive_cmds_need_lc_CXX=no |
| 16730 | else |
| 16731 | archive_cmds_need_lc_CXX=yes |
| 16732 | fi |
| 16733 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 16734 | else |
| 16735 | cat conftest.err 1>&5 |
| 16736 | fi |
| 16737 | $rm conftest* |
| 16738 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 16739 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 16740 | ;; |
| 16741 | esac |
| 16742 | fi |
| 16743 | ;; |
| 16744 | esac |
| 16745 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16746 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16747 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16748 | library_names_spec= |
| 16749 | libname_spec='lib$name' |
| 16750 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16751 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16752 | postinstall_cmds= |
| 16753 | postuninstall_cmds= |
| 16754 | finish_cmds= |
| 16755 | finish_eval= |
| 16756 | shlibpath_var= |
| 16757 | shlibpath_overrides_runpath=unknown |
| 16758 | version_type=none |
| 16759 | dynamic_linker="$host_os ld.so" |
| 16760 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16761 | if test "$GCC" = yes; then |
| 16762 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16763 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16764 | # if the path contains ";" then we assume it to be the separator |
| 16765 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16766 | # assumed that no part of a normal pathname contains ";" but that should |
| 16767 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16768 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16769 | else |
| 16770 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16771 | fi |
| 16772 | else |
| 16773 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16774 | fi |
| 16775 | need_lib_prefix=unknown |
| 16776 | hardcode_into_libs=no |
| 16777 | |
| 16778 | # when you set need_version to no, make sure it does not cause -set_version |
| 16779 | # flags to be left without arguments |
| 16780 | need_version=unknown |
| 16781 | |
| 16782 | case $host_os in |
| 16783 | aix3*) |
| 16784 | version_type=linux |
| 16785 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16786 | shlibpath_var=LIBPATH |
| 16787 | |
| 16788 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16790 | ;; |
| 16791 | |
| 16792 | aix4* | aix5*) |
| 16793 | version_type=linux |
| 16794 | need_lib_prefix=no |
| 16795 | need_version=no |
| 16796 | hardcode_into_libs=yes |
| 16797 | if test "$host_cpu" = ia64; then |
| 16798 | # AIX 5 supports IA64 |
| 16799 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16800 | shlibpath_var=LD_LIBRARY_PATH |
| 16801 | else |
| 16802 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16803 | # for dependence libraries. The import file would start with |
| 16804 | # the line `#! .'. This would cause the generated library to |
| 16805 | # depend on `.', always an invalid library. This was fixed in |
| 16806 | # development snapshots of GCC prior to 3.0. |
| 16807 | case $host_os in |
| 16808 | aix4 | aix4.[01] | aix4.[01].*) |
| 16809 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16810 | echo ' yes ' |
| 16811 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16812 | : |
| 16813 | else |
| 16814 | can_build_shared=no |
| 16815 | fi |
| 16816 | ;; |
| 16817 | esac |
| 16818 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16819 | # soname into executable. Probably we can add versioning support to |
| 16820 | # collect2, so additional links can be useful in future. |
| 16821 | if test "$aix_use_runtimelinking" = yes; then |
| 16822 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16823 | # instead of lib<name>.a to let people know that these are not |
| 16824 | # typical AIX shared libraries. |
| 16825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16826 | else |
| 16827 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16828 | # and later when we are not doing run time linking. |
| 16829 | library_names_spec='${libname}${release}.a $libname.a' |
| 16830 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16831 | fi |
| 16832 | shlibpath_var=LIBPATH |
| 16833 | fi |
| 16834 | ;; |
| 16835 | |
| 16836 | amigaos*) |
| 16837 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16838 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16839 | 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] | 16840 | ;; |
| 16841 | |
| 16842 | beos*) |
| 16843 | library_names_spec='${libname}${shared_ext}' |
| 16844 | dynamic_linker="$host_os ld.so" |
| 16845 | shlibpath_var=LIBRARY_PATH |
| 16846 | ;; |
| 16847 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16848 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16849 | version_type=linux |
| 16850 | need_version=no |
| 16851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16852 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16853 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16854 | shlibpath_var=LD_LIBRARY_PATH |
| 16855 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16856 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16857 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16858 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16859 | # libtool to hard-code these into programs |
| 16860 | ;; |
| 16861 | |
| 16862 | cygwin* | mingw* | pw32*) |
| 16863 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16864 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16865 | need_version=no |
| 16866 | need_lib_prefix=no |
| 16867 | |
| 16868 | case $GCC,$host_os in |
| 16869 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16870 | library_names_spec='$libname.dll.a' |
| 16871 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16872 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16873 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16874 | dldir=$destdir/`dirname \$dlpath`~ |
| 16875 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16876 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16877 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16878 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16879 | $rm \$dlpath' |
| 16880 | shlibpath_overrides_runpath=yes |
| 16881 | |
| 16882 | case $host_os in |
| 16883 | cygwin*) |
| 16884 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16885 | 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] | 16886 | 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] | 16887 | ;; |
| 16888 | mingw*) |
| 16889 | # MinGW DLLs use traditional 'lib' prefix |
| 16890 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16891 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16892 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16893 | # It is most probably a Windows format PATH printed by |
| 16894 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16895 | # path with ; separators, and with drive letters. We can handle the |
| 16896 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16897 | # especially as we might pass files found there to a mingw objdump, |
| 16898 | # which wouldn't understand a cygwinified path. Ahh. |
| 16899 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16900 | else |
| 16901 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16902 | fi |
| 16903 | ;; |
| 16904 | pw32*) |
| 16905 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16906 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16907 | ;; |
| 16908 | esac |
| 16909 | ;; |
| 16910 | |
| 16911 | *) |
| 16912 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16913 | ;; |
| 16914 | esac |
| 16915 | dynamic_linker='Win32 ld.exe' |
| 16916 | # FIXME: first we should search . and the directory the executable is in |
| 16917 | shlibpath_var=PATH |
| 16918 | ;; |
| 16919 | |
| 16920 | darwin* | rhapsody*) |
| 16921 | dynamic_linker="$host_os dyld" |
| 16922 | version_type=darwin |
| 16923 | need_lib_prefix=no |
| 16924 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16925 | 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] | 16926 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16927 | shlibpath_overrides_runpath=yes |
| 16928 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16929 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16930 | # 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] | 16931 | if test "$GCC" = yes; then |
| 16932 | 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"` |
| 16933 | else |
| 16934 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16935 | fi |
| 16936 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16937 | ;; |
| 16938 | |
| 16939 | dgux*) |
| 16940 | version_type=linux |
| 16941 | need_lib_prefix=no |
| 16942 | need_version=no |
| 16943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16944 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16945 | shlibpath_var=LD_LIBRARY_PATH |
| 16946 | ;; |
| 16947 | |
| 16948 | freebsd1*) |
| 16949 | dynamic_linker=no |
| 16950 | ;; |
| 16951 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16952 | kfreebsd*-gnu) |
| 16953 | version_type=linux |
| 16954 | need_lib_prefix=no |
| 16955 | need_version=no |
| 16956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16957 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16958 | shlibpath_var=LD_LIBRARY_PATH |
| 16959 | shlibpath_overrides_runpath=no |
| 16960 | hardcode_into_libs=yes |
| 16961 | dynamic_linker='GNU ld.so' |
| 16962 | ;; |
| 16963 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16964 | freebsd*) |
| 16965 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16966 | version_type=freebsd-$objformat |
| 16967 | case $version_type in |
| 16968 | freebsd-elf*) |
| 16969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16970 | need_version=no |
| 16971 | need_lib_prefix=no |
| 16972 | ;; |
| 16973 | freebsd-*) |
| 16974 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16975 | need_version=yes |
| 16976 | ;; |
| 16977 | esac |
| 16978 | shlibpath_var=LD_LIBRARY_PATH |
| 16979 | case $host_os in |
| 16980 | freebsd2*) |
| 16981 | shlibpath_overrides_runpath=yes |
| 16982 | ;; |
| 16983 | freebsd3.01* | freebsdelf3.01*) |
| 16984 | shlibpath_overrides_runpath=yes |
| 16985 | hardcode_into_libs=yes |
| 16986 | ;; |
| 16987 | *) # from 3.2 on |
| 16988 | shlibpath_overrides_runpath=no |
| 16989 | hardcode_into_libs=yes |
| 16990 | ;; |
| 16991 | esac |
| 16992 | ;; |
| 16993 | |
| 16994 | gnu*) |
| 16995 | version_type=linux |
| 16996 | need_lib_prefix=no |
| 16997 | need_version=no |
| 16998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16999 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17000 | shlibpath_var=LD_LIBRARY_PATH |
| 17001 | hardcode_into_libs=yes |
| 17002 | ;; |
| 17003 | |
| 17004 | hpux9* | hpux10* | hpux11*) |
| 17005 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17006 | # link against other versions. |
| 17007 | version_type=sunos |
| 17008 | need_lib_prefix=no |
| 17009 | need_version=no |
| 17010 | case "$host_cpu" in |
| 17011 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17012 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17013 | hardcode_into_libs=yes |
| 17014 | dynamic_linker="$host_os dld.so" |
| 17015 | shlibpath_var=LD_LIBRARY_PATH |
| 17016 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17018 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17019 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17020 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17021 | else |
| 17022 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17023 | fi |
| 17024 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17025 | ;; |
| 17026 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17027 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17028 | hardcode_into_libs=yes |
| 17029 | dynamic_linker="$host_os dld.sl" |
| 17030 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17031 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17033 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17034 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17035 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17036 | ;; |
| 17037 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17038 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17039 | dynamic_linker="$host_os dld.sl" |
| 17040 | shlibpath_var=SHLIB_PATH |
| 17041 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17043 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17044 | ;; |
| 17045 | esac |
| 17046 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17047 | postinstall_cmds='chmod 555 $lib' |
| 17048 | ;; |
| 17049 | |
| 17050 | irix5* | irix6* | nonstopux*) |
| 17051 | case $host_os in |
| 17052 | nonstopux*) version_type=nonstopux ;; |
| 17053 | *) |
| 17054 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17055 | version_type=linux |
| 17056 | else |
| 17057 | version_type=irix |
| 17058 | fi ;; |
| 17059 | esac |
| 17060 | need_lib_prefix=no |
| 17061 | need_version=no |
| 17062 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17064 | case $host_os in |
| 17065 | irix5* | nonstopux*) |
| 17066 | libsuff= shlibsuff= |
| 17067 | ;; |
| 17068 | *) |
| 17069 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17070 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17071 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17072 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17073 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17074 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17075 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17076 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17077 | esac |
| 17078 | ;; |
| 17079 | esac |
| 17080 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17081 | shlibpath_overrides_runpath=no |
| 17082 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17083 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17084 | hardcode_into_libs=yes |
| 17085 | ;; |
| 17086 | |
| 17087 | # No shared lib support for Linux oldld, aout, or coff. |
| 17088 | linux*oldld* | linux*aout* | linux*coff*) |
| 17089 | dynamic_linker=no |
| 17090 | ;; |
| 17091 | |
| 17092 | # This must be Linux ELF. |
| 17093 | linux*) |
| 17094 | version_type=linux |
| 17095 | need_lib_prefix=no |
| 17096 | need_version=no |
| 17097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17099 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17100 | shlibpath_var=LD_LIBRARY_PATH |
| 17101 | shlibpath_overrides_runpath=no |
| 17102 | # This implies no fast_install, which is unacceptable. |
| 17103 | # Some rework will be needed to allow for fast_install |
| 17104 | # before this can be enabled. |
| 17105 | hardcode_into_libs=yes |
| 17106 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17107 | # Append ld.so.conf contents to the search path |
| 17108 | if test -f /etc/ld.so.conf; then |
| 17109 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 17110 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17111 | fi |
| 17112 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17113 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17114 | # powerpc, because MkLinux only supported shared libraries with the |
| 17115 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17116 | # most powerpc-linux boxes support dynamic linking these days and |
| 17117 | # people can always --disable-shared, the test was removed, and we |
| 17118 | # assume the GNU/Linux dynamic linker is in use. |
| 17119 | dynamic_linker='GNU/Linux ld.so' |
| 17120 | ;; |
| 17121 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17122 | knetbsd*-gnu) |
| 17123 | version_type=linux |
| 17124 | need_lib_prefix=no |
| 17125 | need_version=no |
| 17126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17127 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17128 | shlibpath_var=LD_LIBRARY_PATH |
| 17129 | shlibpath_overrides_runpath=no |
| 17130 | hardcode_into_libs=yes |
| 17131 | dynamic_linker='GNU ld.so' |
| 17132 | ;; |
| 17133 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17134 | netbsd*) |
| 17135 | version_type=sunos |
| 17136 | need_lib_prefix=no |
| 17137 | need_version=no |
| 17138 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17140 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17141 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17142 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17143 | 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] | 17144 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17145 | dynamic_linker='NetBSD ld.elf_so' |
| 17146 | fi |
| 17147 | shlibpath_var=LD_LIBRARY_PATH |
| 17148 | shlibpath_overrides_runpath=yes |
| 17149 | hardcode_into_libs=yes |
| 17150 | ;; |
| 17151 | |
| 17152 | newsos6) |
| 17153 | version_type=linux |
| 17154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17155 | shlibpath_var=LD_LIBRARY_PATH |
| 17156 | shlibpath_overrides_runpath=yes |
| 17157 | ;; |
| 17158 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17159 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17160 | version_type=linux |
| 17161 | need_lib_prefix=no |
| 17162 | need_version=no |
| 17163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17164 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17165 | shlibpath_var=LD_LIBRARY_PATH |
| 17166 | shlibpath_overrides_runpath=yes |
| 17167 | ;; |
| 17168 | |
| 17169 | openbsd*) |
| 17170 | version_type=sunos |
| 17171 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17172 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17174 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17175 | shlibpath_var=LD_LIBRARY_PATH |
| 17176 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17177 | case $host_os in |
| 17178 | openbsd2.[89] | openbsd2.[89].*) |
| 17179 | shlibpath_overrides_runpath=no |
| 17180 | ;; |
| 17181 | *) |
| 17182 | shlibpath_overrides_runpath=yes |
| 17183 | ;; |
| 17184 | esac |
| 17185 | else |
| 17186 | shlibpath_overrides_runpath=yes |
| 17187 | fi |
| 17188 | ;; |
| 17189 | |
| 17190 | os2*) |
| 17191 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17192 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17193 | need_lib_prefix=no |
| 17194 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17195 | dynamic_linker='OS/2 ld.exe' |
| 17196 | shlibpath_var=LIBPATH |
| 17197 | ;; |
| 17198 | |
| 17199 | osf3* | osf4* | osf5*) |
| 17200 | version_type=osf |
| 17201 | need_lib_prefix=no |
| 17202 | need_version=no |
| 17203 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17205 | shlibpath_var=LD_LIBRARY_PATH |
| 17206 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17207 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17208 | ;; |
| 17209 | |
| 17210 | sco3.2v5*) |
| 17211 | version_type=osf |
| 17212 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17214 | shlibpath_var=LD_LIBRARY_PATH |
| 17215 | ;; |
| 17216 | |
| 17217 | solaris*) |
| 17218 | version_type=linux |
| 17219 | need_lib_prefix=no |
| 17220 | need_version=no |
| 17221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17223 | shlibpath_var=LD_LIBRARY_PATH |
| 17224 | shlibpath_overrides_runpath=yes |
| 17225 | hardcode_into_libs=yes |
| 17226 | # ldd complains unless libraries are executable |
| 17227 | postinstall_cmds='chmod +x $lib' |
| 17228 | ;; |
| 17229 | |
| 17230 | sunos4*) |
| 17231 | version_type=sunos |
| 17232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17233 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17234 | shlibpath_var=LD_LIBRARY_PATH |
| 17235 | shlibpath_overrides_runpath=yes |
| 17236 | if test "$with_gnu_ld" = yes; then |
| 17237 | need_lib_prefix=no |
| 17238 | fi |
| 17239 | need_version=yes |
| 17240 | ;; |
| 17241 | |
| 17242 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17243 | version_type=linux |
| 17244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17245 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17246 | shlibpath_var=LD_LIBRARY_PATH |
| 17247 | case $host_vendor in |
| 17248 | sni) |
| 17249 | shlibpath_overrides_runpath=no |
| 17250 | need_lib_prefix=no |
| 17251 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17252 | runpath_var=LD_RUN_PATH |
| 17253 | ;; |
| 17254 | siemens) |
| 17255 | need_lib_prefix=no |
| 17256 | ;; |
| 17257 | motorola) |
| 17258 | need_lib_prefix=no |
| 17259 | need_version=no |
| 17260 | shlibpath_overrides_runpath=no |
| 17261 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17262 | ;; |
| 17263 | esac |
| 17264 | ;; |
| 17265 | |
| 17266 | sysv4*MP*) |
| 17267 | if test -d /usr/nec ;then |
| 17268 | version_type=linux |
| 17269 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17270 | soname_spec='$libname${shared_ext}.$major' |
| 17271 | shlibpath_var=LD_LIBRARY_PATH |
| 17272 | fi |
| 17273 | ;; |
| 17274 | |
| 17275 | uts4*) |
| 17276 | version_type=linux |
| 17277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17278 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17279 | shlibpath_var=LD_LIBRARY_PATH |
| 17280 | ;; |
| 17281 | |
| 17282 | *) |
| 17283 | dynamic_linker=no |
| 17284 | ;; |
| 17285 | esac |
| 17286 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17287 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17288 | test "$dynamic_linker" = no && can_build_shared=no |
| 17289 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17290 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17291 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17292 | hardcode_action_CXX= |
| 17293 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 17294 | test -n "$runpath_var_CXX" || \ |
| 17295 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 17296 | |
| 17297 | # We can hardcode non-existant directories. |
| 17298 | if test "$hardcode_direct_CXX" != no && |
| 17299 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17300 | # have to relink, otherwise we might link with an installed library |
| 17301 | # when we should be linking with a yet-to-be-installed one |
| 17302 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 17303 | test "$hardcode_minus_L_CXX" != no; then |
| 17304 | # Linking always hardcodes the temporary library directory. |
| 17305 | hardcode_action_CXX=relink |
| 17306 | else |
| 17307 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17308 | hardcode_action_CXX=immediate |
| 17309 | fi |
| 17310 | else |
| 17311 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17312 | # directories. |
| 17313 | hardcode_action_CXX=unsupported |
| 17314 | fi |
| 17315 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 17316 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 17317 | |
| 17318 | if test "$hardcode_action_CXX" = relink; then |
| 17319 | # Fast installation is not supported |
| 17320 | enable_fast_install=no |
| 17321 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17322 | test "$enable_shared" = no; then |
| 17323 | # Fast installation is not necessary |
| 17324 | enable_fast_install=needless |
| 17325 | fi |
| 17326 | |
| 17327 | striplib= |
| 17328 | old_striplib= |
| 17329 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17330 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 17331 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17332 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17333 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17334 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17335 | echo "${ECHO_T}yes" >&6 |
| 17336 | else |
| 17337 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17338 | case $host_os in |
| 17339 | darwin*) |
| 17340 | if test -n "$STRIP" ; then |
| 17341 | striplib="$STRIP -x" |
| 17342 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17343 | echo "${ECHO_T}yes" >&6 |
| 17344 | else |
| 17345 | echo "$as_me:$LINENO: result: no" >&5 |
| 17346 | echo "${ECHO_T}no" >&6 |
| 17347 | fi |
| 17348 | ;; |
| 17349 | *) |
| 17350 | echo "$as_me:$LINENO: result: no" >&5 |
| 17351 | echo "${ECHO_T}no" >&6 |
| 17352 | ;; |
| 17353 | esac |
| 17354 | fi |
| 17355 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17356 | if test "x$enable_dlopen" != xyes; then |
| 17357 | enable_dlopen=unknown |
| 17358 | enable_dlopen_self=unknown |
| 17359 | enable_dlopen_self_static=unknown |
| 17360 | else |
| 17361 | lt_cv_dlopen=no |
| 17362 | lt_cv_dlopen_libs= |
| 17363 | |
| 17364 | case $host_os in |
| 17365 | beos*) |
| 17366 | lt_cv_dlopen="load_add_on" |
| 17367 | lt_cv_dlopen_libs= |
| 17368 | lt_cv_dlopen_self=yes |
| 17369 | ;; |
| 17370 | |
| 17371 | mingw* | pw32*) |
| 17372 | lt_cv_dlopen="LoadLibrary" |
| 17373 | lt_cv_dlopen_libs= |
| 17374 | ;; |
| 17375 | |
| 17376 | cygwin*) |
| 17377 | lt_cv_dlopen="dlopen" |
| 17378 | lt_cv_dlopen_libs= |
| 17379 | ;; |
| 17380 | |
| 17381 | darwin*) |
| 17382 | # if libdl is installed we need to link against it |
| 17383 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17384 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17385 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17387 | else |
| 17388 | ac_check_lib_save_LIBS=$LIBS |
| 17389 | LIBS="-ldl $LIBS" |
| 17390 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17391 | /* confdefs.h. */ |
| 17392 | _ACEOF |
| 17393 | cat confdefs.h >>conftest.$ac_ext |
| 17394 | cat >>conftest.$ac_ext <<_ACEOF |
| 17395 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17396 | |
| 17397 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17398 | #ifdef __cplusplus |
| 17399 | extern "C" |
| 17400 | #endif |
| 17401 | /* We use char because int might match the return type of a gcc2 |
| 17402 | builtin and then its argument prototype would still apply. */ |
| 17403 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17404 | int |
| 17405 | main () |
| 17406 | { |
| 17407 | dlopen (); |
| 17408 | ; |
| 17409 | return 0; |
| 17410 | } |
| 17411 | _ACEOF |
| 17412 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17414 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17415 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17417 | rm -f conftest.er1 |
| 17418 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17420 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17421 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17422 | || test ! -s conftest.err' |
| 17423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17424 | (eval $ac_try) 2>&5 |
| 17425 | ac_status=$? |
| 17426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17427 | (exit $ac_status); }; } && |
| 17428 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17430 | (eval $ac_try) 2>&5 |
| 17431 | ac_status=$? |
| 17432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17433 | (exit $ac_status); }; }; then |
| 17434 | ac_cv_lib_dl_dlopen=yes |
| 17435 | else |
| 17436 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17438 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17439 | ac_cv_lib_dl_dlopen=no |
| 17440 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17441 | rm -f conftest.err conftest.$ac_objext \ |
| 17442 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17443 | LIBS=$ac_check_lib_save_LIBS |
| 17444 | fi |
| 17445 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17446 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17447 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17448 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17449 | else |
| 17450 | |
| 17451 | lt_cv_dlopen="dyld" |
| 17452 | lt_cv_dlopen_libs= |
| 17453 | lt_cv_dlopen_self=yes |
| 17454 | |
| 17455 | fi |
| 17456 | |
| 17457 | ;; |
| 17458 | |
| 17459 | *) |
| 17460 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17461 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 17462 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17464 | else |
| 17465 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17466 | /* confdefs.h. */ |
| 17467 | _ACEOF |
| 17468 | cat confdefs.h >>conftest.$ac_ext |
| 17469 | cat >>conftest.$ac_ext <<_ACEOF |
| 17470 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17471 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17472 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17473 | #define shl_load innocuous_shl_load |
| 17474 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17475 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17476 | which can conflict with char shl_load (); below. |
| 17477 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17478 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17479 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17480 | #ifdef __STDC__ |
| 17481 | # include <limits.h> |
| 17482 | #else |
| 17483 | # include <assert.h> |
| 17484 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17485 | |
| 17486 | #undef shl_load |
| 17487 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17488 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17489 | #ifdef __cplusplus |
| 17490 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17491 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17492 | #endif |
| 17493 | /* We use char because int might match the return type of a gcc2 |
| 17494 | builtin and then its argument prototype would still apply. */ |
| 17495 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17496 | /* The GNU C library defines this for functions which it implements |
| 17497 | to always fail with ENOSYS. Some functions are actually named |
| 17498 | something starting with __ and the normal name is an alias. */ |
| 17499 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 17500 | choke me |
| 17501 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17502 | char (*f) () = shl_load; |
| 17503 | #endif |
| 17504 | #ifdef __cplusplus |
| 17505 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17506 | #endif |
| 17507 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17508 | int |
| 17509 | main () |
| 17510 | { |
| 17511 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17512 | ; |
| 17513 | return 0; |
| 17514 | } |
| 17515 | _ACEOF |
| 17516 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17518 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17519 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17521 | rm -f conftest.er1 |
| 17522 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17524 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17525 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17526 | || test ! -s conftest.err' |
| 17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17528 | (eval $ac_try) 2>&5 |
| 17529 | ac_status=$? |
| 17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17531 | (exit $ac_status); }; } && |
| 17532 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17534 | (eval $ac_try) 2>&5 |
| 17535 | ac_status=$? |
| 17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17537 | (exit $ac_status); }; }; then |
| 17538 | ac_cv_func_shl_load=yes |
| 17539 | else |
| 17540 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17542 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17543 | ac_cv_func_shl_load=no |
| 17544 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17545 | rm -f conftest.err conftest.$ac_objext \ |
| 17546 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17547 | fi |
| 17548 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17549 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 17550 | if test $ac_cv_func_shl_load = yes; then |
| 17551 | lt_cv_dlopen="shl_load" |
| 17552 | else |
| 17553 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17554 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 17555 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17557 | else |
| 17558 | ac_check_lib_save_LIBS=$LIBS |
| 17559 | LIBS="-ldld $LIBS" |
| 17560 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17561 | /* confdefs.h. */ |
| 17562 | _ACEOF |
| 17563 | cat confdefs.h >>conftest.$ac_ext |
| 17564 | cat >>conftest.$ac_ext <<_ACEOF |
| 17565 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17566 | |
| 17567 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17568 | #ifdef __cplusplus |
| 17569 | extern "C" |
| 17570 | #endif |
| 17571 | /* We use char because int might match the return type of a gcc2 |
| 17572 | builtin and then its argument prototype would still apply. */ |
| 17573 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17574 | int |
| 17575 | main () |
| 17576 | { |
| 17577 | shl_load (); |
| 17578 | ; |
| 17579 | return 0; |
| 17580 | } |
| 17581 | _ACEOF |
| 17582 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17584 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17585 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17587 | rm -f conftest.er1 |
| 17588 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17590 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17591 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17592 | || test ! -s conftest.err' |
| 17593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17594 | (eval $ac_try) 2>&5 |
| 17595 | ac_status=$? |
| 17596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17597 | (exit $ac_status); }; } && |
| 17598 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17600 | (eval $ac_try) 2>&5 |
| 17601 | ac_status=$? |
| 17602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17603 | (exit $ac_status); }; }; then |
| 17604 | ac_cv_lib_dld_shl_load=yes |
| 17605 | else |
| 17606 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17608 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17609 | ac_cv_lib_dld_shl_load=no |
| 17610 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17611 | rm -f conftest.err conftest.$ac_objext \ |
| 17612 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17613 | LIBS=$ac_check_lib_save_LIBS |
| 17614 | fi |
| 17615 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17616 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 17617 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17618 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17619 | else |
| 17620 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17621 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 17622 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17624 | else |
| 17625 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17626 | /* confdefs.h. */ |
| 17627 | _ACEOF |
| 17628 | cat confdefs.h >>conftest.$ac_ext |
| 17629 | cat >>conftest.$ac_ext <<_ACEOF |
| 17630 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17631 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17632 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17633 | #define dlopen innocuous_dlopen |
| 17634 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17635 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17636 | which can conflict with char dlopen (); below. |
| 17637 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17638 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17639 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17640 | #ifdef __STDC__ |
| 17641 | # include <limits.h> |
| 17642 | #else |
| 17643 | # include <assert.h> |
| 17644 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17645 | |
| 17646 | #undef dlopen |
| 17647 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17648 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17649 | #ifdef __cplusplus |
| 17650 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17651 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17652 | #endif |
| 17653 | /* We use char because int might match the return type of a gcc2 |
| 17654 | builtin and then its argument prototype would still apply. */ |
| 17655 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17656 | /* The GNU C library defines this for functions which it implements |
| 17657 | to always fail with ENOSYS. Some functions are actually named |
| 17658 | something starting with __ and the normal name is an alias. */ |
| 17659 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 17660 | choke me |
| 17661 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17662 | char (*f) () = dlopen; |
| 17663 | #endif |
| 17664 | #ifdef __cplusplus |
| 17665 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17666 | #endif |
| 17667 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17668 | int |
| 17669 | main () |
| 17670 | { |
| 17671 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17672 | ; |
| 17673 | return 0; |
| 17674 | } |
| 17675 | _ACEOF |
| 17676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17678 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17679 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17681 | rm -f conftest.er1 |
| 17682 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17684 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17685 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17686 | || test ! -s conftest.err' |
| 17687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17688 | (eval $ac_try) 2>&5 |
| 17689 | ac_status=$? |
| 17690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17691 | (exit $ac_status); }; } && |
| 17692 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17694 | (eval $ac_try) 2>&5 |
| 17695 | ac_status=$? |
| 17696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17697 | (exit $ac_status); }; }; then |
| 17698 | ac_cv_func_dlopen=yes |
| 17699 | else |
| 17700 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17702 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17703 | ac_cv_func_dlopen=no |
| 17704 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17705 | rm -f conftest.err conftest.$ac_objext \ |
| 17706 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17707 | fi |
| 17708 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17709 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 17710 | if test $ac_cv_func_dlopen = yes; then |
| 17711 | lt_cv_dlopen="dlopen" |
| 17712 | else |
| 17713 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17714 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17715 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17717 | else |
| 17718 | ac_check_lib_save_LIBS=$LIBS |
| 17719 | LIBS="-ldl $LIBS" |
| 17720 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17721 | /* confdefs.h. */ |
| 17722 | _ACEOF |
| 17723 | cat confdefs.h >>conftest.$ac_ext |
| 17724 | cat >>conftest.$ac_ext <<_ACEOF |
| 17725 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17726 | |
| 17727 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17728 | #ifdef __cplusplus |
| 17729 | extern "C" |
| 17730 | #endif |
| 17731 | /* We use char because int might match the return type of a gcc2 |
| 17732 | builtin and then its argument prototype would still apply. */ |
| 17733 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17734 | int |
| 17735 | main () |
| 17736 | { |
| 17737 | dlopen (); |
| 17738 | ; |
| 17739 | return 0; |
| 17740 | } |
| 17741 | _ACEOF |
| 17742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17744 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17745 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17747 | rm -f conftest.er1 |
| 17748 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17750 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17751 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17752 | || test ! -s conftest.err' |
| 17753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17754 | (eval $ac_try) 2>&5 |
| 17755 | ac_status=$? |
| 17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17757 | (exit $ac_status); }; } && |
| 17758 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17760 | (eval $ac_try) 2>&5 |
| 17761 | ac_status=$? |
| 17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17763 | (exit $ac_status); }; }; then |
| 17764 | ac_cv_lib_dl_dlopen=yes |
| 17765 | else |
| 17766 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17768 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17769 | ac_cv_lib_dl_dlopen=no |
| 17770 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17771 | rm -f conftest.err conftest.$ac_objext \ |
| 17772 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17773 | LIBS=$ac_check_lib_save_LIBS |
| 17774 | fi |
| 17775 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17776 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17777 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17778 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17779 | else |
| 17780 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17781 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17782 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17784 | else |
| 17785 | ac_check_lib_save_LIBS=$LIBS |
| 17786 | LIBS="-lsvld $LIBS" |
| 17787 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17788 | /* confdefs.h. */ |
| 17789 | _ACEOF |
| 17790 | cat confdefs.h >>conftest.$ac_ext |
| 17791 | cat >>conftest.$ac_ext <<_ACEOF |
| 17792 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17793 | |
| 17794 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17795 | #ifdef __cplusplus |
| 17796 | extern "C" |
| 17797 | #endif |
| 17798 | /* We use char because int might match the return type of a gcc2 |
| 17799 | builtin and then its argument prototype would still apply. */ |
| 17800 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17801 | int |
| 17802 | main () |
| 17803 | { |
| 17804 | dlopen (); |
| 17805 | ; |
| 17806 | return 0; |
| 17807 | } |
| 17808 | _ACEOF |
| 17809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17811 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17812 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17814 | rm -f conftest.er1 |
| 17815 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17817 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17818 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17819 | || test ! -s conftest.err' |
| 17820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17821 | (eval $ac_try) 2>&5 |
| 17822 | ac_status=$? |
| 17823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17824 | (exit $ac_status); }; } && |
| 17825 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17827 | (eval $ac_try) 2>&5 |
| 17828 | ac_status=$? |
| 17829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17830 | (exit $ac_status); }; }; then |
| 17831 | ac_cv_lib_svld_dlopen=yes |
| 17832 | else |
| 17833 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17835 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17836 | ac_cv_lib_svld_dlopen=no |
| 17837 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17838 | rm -f conftest.err conftest.$ac_objext \ |
| 17839 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17840 | LIBS=$ac_check_lib_save_LIBS |
| 17841 | fi |
| 17842 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17843 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17844 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17845 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17846 | else |
| 17847 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17848 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17849 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17851 | else |
| 17852 | ac_check_lib_save_LIBS=$LIBS |
| 17853 | LIBS="-ldld $LIBS" |
| 17854 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17855 | /* confdefs.h. */ |
| 17856 | _ACEOF |
| 17857 | cat confdefs.h >>conftest.$ac_ext |
| 17858 | cat >>conftest.$ac_ext <<_ACEOF |
| 17859 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17860 | |
| 17861 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17862 | #ifdef __cplusplus |
| 17863 | extern "C" |
| 17864 | #endif |
| 17865 | /* We use char because int might match the return type of a gcc2 |
| 17866 | builtin and then its argument prototype would still apply. */ |
| 17867 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17868 | int |
| 17869 | main () |
| 17870 | { |
| 17871 | dld_link (); |
| 17872 | ; |
| 17873 | return 0; |
| 17874 | } |
| 17875 | _ACEOF |
| 17876 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17878 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17879 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17881 | rm -f conftest.er1 |
| 17882 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17884 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17885 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17886 | || test ! -s conftest.err' |
| 17887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17888 | (eval $ac_try) 2>&5 |
| 17889 | ac_status=$? |
| 17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17891 | (exit $ac_status); }; } && |
| 17892 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17894 | (eval $ac_try) 2>&5 |
| 17895 | ac_status=$? |
| 17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17897 | (exit $ac_status); }; }; then |
| 17898 | ac_cv_lib_dld_dld_link=yes |
| 17899 | else |
| 17900 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17902 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17903 | ac_cv_lib_dld_dld_link=no |
| 17904 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17905 | rm -f conftest.err conftest.$ac_objext \ |
| 17906 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17907 | LIBS=$ac_check_lib_save_LIBS |
| 17908 | fi |
| 17909 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17910 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17911 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17912 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17913 | fi |
| 17914 | |
| 17915 | |
| 17916 | fi |
| 17917 | |
| 17918 | |
| 17919 | fi |
| 17920 | |
| 17921 | |
| 17922 | fi |
| 17923 | |
| 17924 | |
| 17925 | fi |
| 17926 | |
| 17927 | |
| 17928 | fi |
| 17929 | |
| 17930 | ;; |
| 17931 | esac |
| 17932 | |
| 17933 | if test "x$lt_cv_dlopen" != xno; then |
| 17934 | enable_dlopen=yes |
| 17935 | else |
| 17936 | enable_dlopen=no |
| 17937 | fi |
| 17938 | |
| 17939 | case $lt_cv_dlopen in |
| 17940 | dlopen) |
| 17941 | save_CPPFLAGS="$CPPFLAGS" |
| 17942 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17943 | |
| 17944 | save_LDFLAGS="$LDFLAGS" |
| 17945 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17946 | |
| 17947 | save_LIBS="$LIBS" |
| 17948 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17949 | |
| 17950 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17951 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17952 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17954 | else |
| 17955 | if test "$cross_compiling" = yes; then : |
| 17956 | lt_cv_dlopen_self=cross |
| 17957 | else |
| 17958 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17959 | lt_status=$lt_dlunknown |
| 17960 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 17961 | #line 17961 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17962 | #include "confdefs.h" |
| 17963 | |
| 17964 | #if HAVE_DLFCN_H |
| 17965 | #include <dlfcn.h> |
| 17966 | #endif |
| 17967 | |
| 17968 | #include <stdio.h> |
| 17969 | |
| 17970 | #ifdef RTLD_GLOBAL |
| 17971 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17972 | #else |
| 17973 | # ifdef DL_GLOBAL |
| 17974 | # define LT_DLGLOBAL DL_GLOBAL |
| 17975 | # else |
| 17976 | # define LT_DLGLOBAL 0 |
| 17977 | # endif |
| 17978 | #endif |
| 17979 | |
| 17980 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17981 | find out it does not work in some platform. */ |
| 17982 | #ifndef LT_DLLAZY_OR_NOW |
| 17983 | # ifdef RTLD_LAZY |
| 17984 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17985 | # else |
| 17986 | # ifdef DL_LAZY |
| 17987 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17988 | # else |
| 17989 | # ifdef RTLD_NOW |
| 17990 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17991 | # else |
| 17992 | # ifdef DL_NOW |
| 17993 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17994 | # else |
| 17995 | # define LT_DLLAZY_OR_NOW 0 |
| 17996 | # endif |
| 17997 | # endif |
| 17998 | # endif |
| 17999 | # endif |
| 18000 | #endif |
| 18001 | |
| 18002 | #ifdef __cplusplus |
| 18003 | extern "C" void exit (int); |
| 18004 | #endif |
| 18005 | |
| 18006 | void fnord() { int i=42;} |
| 18007 | int main () |
| 18008 | { |
| 18009 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18010 | int status = $lt_dlunknown; |
| 18011 | |
| 18012 | if (self) |
| 18013 | { |
| 18014 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18015 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18016 | /* dlclose (self); */ |
| 18017 | } |
| 18018 | |
| 18019 | exit (status); |
| 18020 | } |
| 18021 | EOF |
| 18022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18023 | (eval $ac_link) 2>&5 |
| 18024 | ac_status=$? |
| 18025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18026 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18027 | (./conftest; exit; ) 2>/dev/null |
| 18028 | lt_status=$? |
| 18029 | case x$lt_status in |
| 18030 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18031 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18032 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 18033 | esac |
| 18034 | else : |
| 18035 | # compilation failed |
| 18036 | lt_cv_dlopen_self=no |
| 18037 | fi |
| 18038 | fi |
| 18039 | rm -fr conftest* |
| 18040 | |
| 18041 | |
| 18042 | fi |
| 18043 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 18044 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 18045 | |
| 18046 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 18047 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 18048 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 18049 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 18050 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 18051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18052 | else |
| 18053 | if test "$cross_compiling" = yes; then : |
| 18054 | lt_cv_dlopen_self_static=cross |
| 18055 | else |
| 18056 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18057 | lt_status=$lt_dlunknown |
| 18058 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 18059 | #line 18059 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18060 | #include "confdefs.h" |
| 18061 | |
| 18062 | #if HAVE_DLFCN_H |
| 18063 | #include <dlfcn.h> |
| 18064 | #endif |
| 18065 | |
| 18066 | #include <stdio.h> |
| 18067 | |
| 18068 | #ifdef RTLD_GLOBAL |
| 18069 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18070 | #else |
| 18071 | # ifdef DL_GLOBAL |
| 18072 | # define LT_DLGLOBAL DL_GLOBAL |
| 18073 | # else |
| 18074 | # define LT_DLGLOBAL 0 |
| 18075 | # endif |
| 18076 | #endif |
| 18077 | |
| 18078 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18079 | find out it does not work in some platform. */ |
| 18080 | #ifndef LT_DLLAZY_OR_NOW |
| 18081 | # ifdef RTLD_LAZY |
| 18082 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18083 | # else |
| 18084 | # ifdef DL_LAZY |
| 18085 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18086 | # else |
| 18087 | # ifdef RTLD_NOW |
| 18088 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18089 | # else |
| 18090 | # ifdef DL_NOW |
| 18091 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18092 | # else |
| 18093 | # define LT_DLLAZY_OR_NOW 0 |
| 18094 | # endif |
| 18095 | # endif |
| 18096 | # endif |
| 18097 | # endif |
| 18098 | #endif |
| 18099 | |
| 18100 | #ifdef __cplusplus |
| 18101 | extern "C" void exit (int); |
| 18102 | #endif |
| 18103 | |
| 18104 | void fnord() { int i=42;} |
| 18105 | int main () |
| 18106 | { |
| 18107 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18108 | int status = $lt_dlunknown; |
| 18109 | |
| 18110 | if (self) |
| 18111 | { |
| 18112 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18113 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18114 | /* dlclose (self); */ |
| 18115 | } |
| 18116 | |
| 18117 | exit (status); |
| 18118 | } |
| 18119 | EOF |
| 18120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18121 | (eval $ac_link) 2>&5 |
| 18122 | ac_status=$? |
| 18123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18124 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18125 | (./conftest; exit; ) 2>/dev/null |
| 18126 | lt_status=$? |
| 18127 | case x$lt_status in |
| 18128 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18129 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18130 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18131 | esac |
| 18132 | else : |
| 18133 | # compilation failed |
| 18134 | lt_cv_dlopen_self_static=no |
| 18135 | fi |
| 18136 | fi |
| 18137 | rm -fr conftest* |
| 18138 | |
| 18139 | |
| 18140 | fi |
| 18141 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 18142 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 18143 | fi |
| 18144 | |
| 18145 | CPPFLAGS="$save_CPPFLAGS" |
| 18146 | LDFLAGS="$save_LDFLAGS" |
| 18147 | LIBS="$save_LIBS" |
| 18148 | ;; |
| 18149 | esac |
| 18150 | |
| 18151 | case $lt_cv_dlopen_self in |
| 18152 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18153 | *) enable_dlopen_self=unknown ;; |
| 18154 | esac |
| 18155 | |
| 18156 | case $lt_cv_dlopen_self_static in |
| 18157 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18158 | *) enable_dlopen_self_static=unknown ;; |
| 18159 | esac |
| 18160 | fi |
| 18161 | |
| 18162 | |
| 18163 | # The else clause should only fire when bootstrapping the |
| 18164 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18165 | # with your package, and you will get complaints that there are |
| 18166 | # no rules to generate ltmain.sh. |
| 18167 | if test -f "$ltmain"; then |
| 18168 | # See if we are running on zsh, and set the options which allow our commands through |
| 18169 | # without removal of \ escapes. |
| 18170 | if test -n "${ZSH_VERSION+set}" ; then |
| 18171 | setopt NO_GLOB_SUBST |
| 18172 | fi |
| 18173 | # Now quote all the things that may contain metacharacters while being |
| 18174 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18175 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18176 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18177 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18178 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18179 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18180 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18181 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18182 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18183 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18184 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18185 | compiler_CXX \ |
| 18186 | CC_CXX \ |
| 18187 | LD_CXX \ |
| 18188 | lt_prog_compiler_wl_CXX \ |
| 18189 | lt_prog_compiler_pic_CXX \ |
| 18190 | lt_prog_compiler_static_CXX \ |
| 18191 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 18192 | export_dynamic_flag_spec_CXX \ |
| 18193 | thread_safe_flag_spec_CXX \ |
| 18194 | whole_archive_flag_spec_CXX \ |
| 18195 | enable_shared_with_static_runtimes_CXX \ |
| 18196 | old_archive_cmds_CXX \ |
| 18197 | old_archive_from_new_cmds_CXX \ |
| 18198 | predep_objects_CXX \ |
| 18199 | postdep_objects_CXX \ |
| 18200 | predeps_CXX \ |
| 18201 | postdeps_CXX \ |
| 18202 | compiler_lib_search_path_CXX \ |
| 18203 | archive_cmds_CXX \ |
| 18204 | archive_expsym_cmds_CXX \ |
| 18205 | postinstall_cmds_CXX \ |
| 18206 | postuninstall_cmds_CXX \ |
| 18207 | old_archive_from_expsyms_cmds_CXX \ |
| 18208 | allow_undefined_flag_CXX \ |
| 18209 | no_undefined_flag_CXX \ |
| 18210 | export_symbols_cmds_CXX \ |
| 18211 | hardcode_libdir_flag_spec_CXX \ |
| 18212 | hardcode_libdir_flag_spec_ld_CXX \ |
| 18213 | hardcode_libdir_separator_CXX \ |
| 18214 | hardcode_automatic_CXX \ |
| 18215 | module_cmds_CXX \ |
| 18216 | module_expsym_cmds_CXX \ |
| 18217 | lt_cv_prog_compiler_c_o_CXX \ |
| 18218 | exclude_expsyms_CXX \ |
| 18219 | include_expsyms_CXX; do |
| 18220 | |
| 18221 | case $var in |
| 18222 | old_archive_cmds_CXX | \ |
| 18223 | old_archive_from_new_cmds_CXX | \ |
| 18224 | archive_cmds_CXX | \ |
| 18225 | archive_expsym_cmds_CXX | \ |
| 18226 | module_cmds_CXX | \ |
| 18227 | module_expsym_cmds_CXX | \ |
| 18228 | old_archive_from_expsyms_cmds_CXX | \ |
| 18229 | export_symbols_cmds_CXX | \ |
| 18230 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18231 | postinstall_cmds | postuninstall_cmds | \ |
| 18232 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18233 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18234 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18235 | 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] | 18236 | ;; |
| 18237 | *) |
| 18238 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18239 | ;; |
| 18240 | esac |
| 18241 | done |
| 18242 | |
| 18243 | case $lt_echo in |
| 18244 | *'\$0 --fallback-echo"') |
| 18245 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18246 | ;; |
| 18247 | esac |
| 18248 | |
| 18249 | cfgfile="$ofile" |
| 18250 | |
| 18251 | cat <<__EOF__ >> "$cfgfile" |
| 18252 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18253 | |
| 18254 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18255 | |
| 18256 | # Shell to use when invoking shell scripts. |
| 18257 | SHELL=$lt_SHELL |
| 18258 | |
| 18259 | # Whether or not to build shared libraries. |
| 18260 | build_libtool_libs=$enable_shared |
| 18261 | |
| 18262 | # Whether or not to build static libraries. |
| 18263 | build_old_libs=$enable_static |
| 18264 | |
| 18265 | # Whether or not to add -lc for building shared libraries. |
| 18266 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 18267 | |
| 18268 | # Whether or not to disallow shared libs when runtime libs are static |
| 18269 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 18270 | |
| 18271 | # Whether or not to optimize for fast installation. |
| 18272 | fast_install=$enable_fast_install |
| 18273 | |
| 18274 | # The host system. |
| 18275 | host_alias=$host_alias |
| 18276 | host=$host |
| 18277 | |
| 18278 | # An echo program that does not interpret backslashes. |
| 18279 | echo=$lt_echo |
| 18280 | |
| 18281 | # The archiver. |
| 18282 | AR=$lt_AR |
| 18283 | AR_FLAGS=$lt_AR_FLAGS |
| 18284 | |
| 18285 | # A C compiler. |
| 18286 | LTCC=$lt_LTCC |
| 18287 | |
| 18288 | # A language-specific compiler. |
| 18289 | CC=$lt_compiler_CXX |
| 18290 | |
| 18291 | # Is the compiler the GNU C compiler? |
| 18292 | with_gcc=$GCC_CXX |
| 18293 | |
| 18294 | # An ERE matcher. |
| 18295 | EGREP=$lt_EGREP |
| 18296 | |
| 18297 | # The linker used to build libraries. |
| 18298 | LD=$lt_LD_CXX |
| 18299 | |
| 18300 | # Whether we need hard or soft links. |
| 18301 | LN_S=$lt_LN_S |
| 18302 | |
| 18303 | # A BSD-compatible nm program. |
| 18304 | NM=$lt_NM |
| 18305 | |
| 18306 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18307 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18308 | |
| 18309 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18310 | MAGIC_CMD=$MAGIC_CMD |
| 18311 | |
| 18312 | # Used on cygwin: DLL creation program. |
| 18313 | DLLTOOL="$DLLTOOL" |
| 18314 | |
| 18315 | # Used on cygwin: object dumper. |
| 18316 | OBJDUMP="$OBJDUMP" |
| 18317 | |
| 18318 | # Used on cygwin: assembler. |
| 18319 | AS="$AS" |
| 18320 | |
| 18321 | # The name of the directory that contains temporary libtool files. |
| 18322 | objdir=$objdir |
| 18323 | |
| 18324 | # How to create reloadable object files. |
| 18325 | reload_flag=$lt_reload_flag |
| 18326 | reload_cmds=$lt_reload_cmds |
| 18327 | |
| 18328 | # How to pass a linker flag through the compiler. |
| 18329 | wl=$lt_lt_prog_compiler_wl_CXX |
| 18330 | |
| 18331 | # Object file suffix (normally "o"). |
| 18332 | objext="$ac_objext" |
| 18333 | |
| 18334 | # Old archive suffix (normally "a"). |
| 18335 | libext="$libext" |
| 18336 | |
| 18337 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18338 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18339 | |
| 18340 | # Executable file suffix (normally ""). |
| 18341 | exeext="$exeext" |
| 18342 | |
| 18343 | # Additional compiler flags for building library objects. |
| 18344 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 18345 | pic_mode=$pic_mode |
| 18346 | |
| 18347 | # What is the maximum length of a command? |
| 18348 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18349 | |
| 18350 | # Does compiler simultaneously support -c and -o options? |
| 18351 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 18352 | |
| 18353 | # Must we lock files when doing compilation ? |
| 18354 | need_locks=$lt_need_locks |
| 18355 | |
| 18356 | # Do we need the lib prefix for modules? |
| 18357 | need_lib_prefix=$need_lib_prefix |
| 18358 | |
| 18359 | # Do we need a version for libraries? |
| 18360 | need_version=$need_version |
| 18361 | |
| 18362 | # Whether dlopen is supported. |
| 18363 | dlopen_support=$enable_dlopen |
| 18364 | |
| 18365 | # Whether dlopen of programs is supported. |
| 18366 | dlopen_self=$enable_dlopen_self |
| 18367 | |
| 18368 | # Whether dlopen of statically linked programs is supported. |
| 18369 | dlopen_self_static=$enable_dlopen_self_static |
| 18370 | |
| 18371 | # Compiler flag to prevent dynamic linking. |
| 18372 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 18373 | |
| 18374 | # Compiler flag to turn off builtin functions. |
| 18375 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 18376 | |
| 18377 | # Compiler flag to allow reflexive dlopens. |
| 18378 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 18379 | |
| 18380 | # Compiler flag to generate shared objects directly from archives. |
| 18381 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 18382 | |
| 18383 | # Compiler flag to generate thread-safe objects. |
| 18384 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 18385 | |
| 18386 | # Library versioning type. |
| 18387 | version_type=$version_type |
| 18388 | |
| 18389 | # Format of library name prefix. |
| 18390 | libname_spec=$lt_libname_spec |
| 18391 | |
| 18392 | # List of archive names. First name is the real one, the rest are links. |
| 18393 | # The last name is the one that the linker finds with -lNAME. |
| 18394 | library_names_spec=$lt_library_names_spec |
| 18395 | |
| 18396 | # The coded name of the library, if different from the real name. |
| 18397 | soname_spec=$lt_soname_spec |
| 18398 | |
| 18399 | # Commands used to build and install an old-style archive. |
| 18400 | RANLIB=$lt_RANLIB |
| 18401 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 18402 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18403 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18404 | |
| 18405 | # Create an old-style archive from a shared archive. |
| 18406 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 18407 | |
| 18408 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18409 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 18410 | |
| 18411 | # Commands used to build and install a shared archive. |
| 18412 | archive_cmds=$lt_archive_cmds_CXX |
| 18413 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 18414 | postinstall_cmds=$lt_postinstall_cmds |
| 18415 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18416 | |
| 18417 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18418 | module_cmds=$lt_module_cmds_CXX |
| 18419 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 18420 | |
| 18421 | # Commands to strip libraries. |
| 18422 | old_striplib=$lt_old_striplib |
| 18423 | striplib=$lt_striplib |
| 18424 | |
| 18425 | # Dependencies to place before the objects being linked to create a |
| 18426 | # shared library. |
| 18427 | predep_objects=$lt_predep_objects_CXX |
| 18428 | |
| 18429 | # Dependencies to place after the objects being linked to create a |
| 18430 | # shared library. |
| 18431 | postdep_objects=$lt_postdep_objects_CXX |
| 18432 | |
| 18433 | # Dependencies to place before the objects being linked to create a |
| 18434 | # shared library. |
| 18435 | predeps=$lt_predeps_CXX |
| 18436 | |
| 18437 | # Dependencies to place after the objects being linked to create a |
| 18438 | # shared library. |
| 18439 | postdeps=$lt_postdeps_CXX |
| 18440 | |
| 18441 | # The library search path used internally by the compiler when linking |
| 18442 | # a shared library. |
| 18443 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 18444 | |
| 18445 | # Method to check whether dependent libraries are shared objects. |
| 18446 | deplibs_check_method=$lt_deplibs_check_method |
| 18447 | |
| 18448 | # Command to use when deplibs_check_method == file_magic. |
| 18449 | file_magic_cmd=$lt_file_magic_cmd |
| 18450 | |
| 18451 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18452 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 18453 | |
| 18454 | # Flag that forces no undefined symbols. |
| 18455 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 18456 | |
| 18457 | # Commands used to finish a libtool library installation in a directory. |
| 18458 | finish_cmds=$lt_finish_cmds |
| 18459 | |
| 18460 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18461 | finish_eval=$lt_finish_eval |
| 18462 | |
| 18463 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18464 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18465 | |
| 18466 | # Transform the output of nm in a proper C declaration |
| 18467 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18468 | |
| 18469 | # Transform the output of nm in a C name address pair |
| 18470 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18471 | |
| 18472 | # This is the shared library runtime path variable. |
| 18473 | runpath_var=$runpath_var |
| 18474 | |
| 18475 | # This is the shared library path variable. |
| 18476 | shlibpath_var=$shlibpath_var |
| 18477 | |
| 18478 | # Is shlibpath searched before the hard-coded library search path? |
| 18479 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18480 | |
| 18481 | # How to hardcode a shared library path into an executable. |
| 18482 | hardcode_action=$hardcode_action_CXX |
| 18483 | |
| 18484 | # Whether we should hardcode library paths into libraries. |
| 18485 | hardcode_into_libs=$hardcode_into_libs |
| 18486 | |
| 18487 | # Flag to hardcode \$libdir into a binary during linking. |
| 18488 | # This must work even if \$libdir does not exist. |
| 18489 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 18490 | |
| 18491 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18492 | # a binary during linking. This must work even if \$libdir does |
| 18493 | # not exist. |
| 18494 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 18495 | |
| 18496 | # Whether we need a single -rpath flag with a separated argument. |
| 18497 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 18498 | |
| 18499 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18500 | # resulting binary. |
| 18501 | hardcode_direct=$hardcode_direct_CXX |
| 18502 | |
| 18503 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18504 | # resulting binary. |
| 18505 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 18506 | |
| 18507 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18508 | # the resulting binary. |
| 18509 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 18510 | |
| 18511 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18512 | # and all subsequent libraries and executables linked against it. |
| 18513 | hardcode_automatic=$hardcode_automatic_CXX |
| 18514 | |
| 18515 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18516 | # restored at relink time. |
| 18517 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18518 | |
| 18519 | # Whether libtool must link a program against all its dependency libraries. |
| 18520 | link_all_deplibs=$link_all_deplibs_CXX |
| 18521 | |
| 18522 | # Compile-time system search path for libraries |
| 18523 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18524 | |
| 18525 | # Run-time system search path for libraries |
| 18526 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18527 | |
| 18528 | # Fix the shell variable \$srcfile for the compiler. |
| 18529 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 18530 | |
| 18531 | # Set to yes if exported symbols are required. |
| 18532 | always_export_symbols=$always_export_symbols_CXX |
| 18533 | |
| 18534 | # The commands to list exported symbols. |
| 18535 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 18536 | |
| 18537 | # The commands to extract the exported symbol list from a shared archive. |
| 18538 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18539 | |
| 18540 | # Symbols that should not be listed in the preloaded symbols. |
| 18541 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 18542 | |
| 18543 | # Symbols that must always be exported. |
| 18544 | include_expsyms=$lt_include_expsyms_CXX |
| 18545 | |
| 18546 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18547 | |
| 18548 | __EOF__ |
| 18549 | |
| 18550 | |
| 18551 | else |
| 18552 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18553 | # `config.status --recheck' to rerun these tests and create the |
| 18554 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18555 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18556 | if test -f "$ltmain_in"; then |
| 18557 | test -f Makefile && make "$ltmain" |
| 18558 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18559 | fi |
| 18560 | |
| 18561 | |
| 18562 | ac_ext=c |
| 18563 | ac_cpp='$CPP $CPPFLAGS' |
| 18564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18567 | |
| 18568 | CC=$lt_save_CC |
| 18569 | LDCXX=$LD |
| 18570 | LD=$lt_save_LD |
| 18571 | GCC=$lt_save_GCC |
| 18572 | with_gnu_ldcxx=$with_gnu_ld |
| 18573 | with_gnu_ld=$lt_save_with_gnu_ld |
| 18574 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 18575 | lt_cv_path_LD=$lt_save_path_LD |
| 18576 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 18577 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 18578 | |
| 18579 | else |
| 18580 | tagname="" |
| 18581 | fi |
| 18582 | ;; |
| 18583 | |
| 18584 | F77) |
| 18585 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 18586 | |
| 18587 | ac_ext=f |
| 18588 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 18589 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18590 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 18591 | |
| 18592 | |
| 18593 | archive_cmds_need_lc_F77=no |
| 18594 | allow_undefined_flag_F77= |
| 18595 | always_export_symbols_F77=no |
| 18596 | archive_expsym_cmds_F77= |
| 18597 | export_dynamic_flag_spec_F77= |
| 18598 | hardcode_direct_F77=no |
| 18599 | hardcode_libdir_flag_spec_F77= |
| 18600 | hardcode_libdir_flag_spec_ld_F77= |
| 18601 | hardcode_libdir_separator_F77= |
| 18602 | hardcode_minus_L_F77=no |
| 18603 | hardcode_automatic_F77=no |
| 18604 | module_cmds_F77= |
| 18605 | module_expsym_cmds_F77= |
| 18606 | link_all_deplibs_F77=unknown |
| 18607 | old_archive_cmds_F77=$old_archive_cmds |
| 18608 | no_undefined_flag_F77= |
| 18609 | whole_archive_flag_spec_F77= |
| 18610 | enable_shared_with_static_runtimes_F77=no |
| 18611 | |
| 18612 | # Source file extension for f77 test sources. |
| 18613 | ac_ext=f |
| 18614 | |
| 18615 | # Object file extension for compiled f77 test sources. |
| 18616 | objext=o |
| 18617 | objext_F77=$objext |
| 18618 | |
| 18619 | # Code to be used in simple compile tests |
| 18620 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 18621 | |
| 18622 | # Code to be used in simple link tests |
| 18623 | lt_simple_link_test_code=" program t\n end\n" |
| 18624 | |
| 18625 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18626 | |
| 18627 | # If no C compiler was specified, use CC. |
| 18628 | LTCC=${LTCC-"$CC"} |
| 18629 | |
| 18630 | # Allow CC to be a program name with arguments. |
| 18631 | compiler=$CC |
| 18632 | |
| 18633 | |
| 18634 | # Allow CC to be a program name with arguments. |
| 18635 | lt_save_CC="$CC" |
| 18636 | CC=${F77-"f77"} |
| 18637 | compiler=$CC |
| 18638 | compiler_F77=$CC |
| 18639 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 18640 | |
| 18641 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 18642 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 18643 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 18644 | echo "${ECHO_T}$can_build_shared" >&6 |
| 18645 | |
| 18646 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 18647 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 18648 | test "$can_build_shared" = "no" && enable_shared=no |
| 18649 | |
| 18650 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 18651 | # are all built from PIC. |
| 18652 | case "$host_os" in |
| 18653 | aix3*) |
| 18654 | test "$enable_shared" = yes && enable_static=no |
| 18655 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18656 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18657 | postinstall_cmds='$RANLIB $lib' |
| 18658 | fi |
| 18659 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18660 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18661 | test "$enable_shared" = yes && enable_static=no |
| 18662 | ;; |
| 18663 | esac |
| 18664 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 18665 | echo "${ECHO_T}$enable_shared" >&6 |
| 18666 | |
| 18667 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 18668 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 18669 | # Make sure either enable_shared or enable_static is yes. |
| 18670 | test "$enable_shared" = yes || enable_static=yes |
| 18671 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 18672 | echo "${ECHO_T}$enable_static" >&6 |
| 18673 | |
| 18674 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 18675 | |
| 18676 | GCC_F77="$G77" |
| 18677 | LD_F77="$LD" |
| 18678 | |
| 18679 | lt_prog_compiler_wl_F77= |
| 18680 | lt_prog_compiler_pic_F77= |
| 18681 | lt_prog_compiler_static_F77= |
| 18682 | |
| 18683 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 18684 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 18685 | |
| 18686 | if test "$GCC" = yes; then |
| 18687 | lt_prog_compiler_wl_F77='-Wl,' |
| 18688 | lt_prog_compiler_static_F77='-static' |
| 18689 | |
| 18690 | case $host_os in |
| 18691 | aix*) |
| 18692 | # All AIX code is PIC. |
| 18693 | if test "$host_cpu" = ia64; then |
| 18694 | # AIX 5 now supports IA64 processor |
| 18695 | lt_prog_compiler_static_F77='-Bstatic' |
| 18696 | fi |
| 18697 | ;; |
| 18698 | |
| 18699 | amigaos*) |
| 18700 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 18701 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 18702 | # like `-m68040'. |
| 18703 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 18704 | ;; |
| 18705 | |
| 18706 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 18707 | # PIC is the default for these OSes. |
| 18708 | ;; |
| 18709 | |
| 18710 | mingw* | pw32* | os2*) |
| 18711 | # This hack is so that the source file can tell whether it is being |
| 18712 | # built for inclusion in a dll (and should export symbols for example). |
| 18713 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 18714 | ;; |
| 18715 | |
| 18716 | darwin* | rhapsody*) |
| 18717 | # PIC is the default on this platform |
| 18718 | # Common symbols not allowed in MH_DYLIB files |
| 18719 | lt_prog_compiler_pic_F77='-fno-common' |
| 18720 | ;; |
| 18721 | |
| 18722 | msdosdjgpp*) |
| 18723 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 18724 | # on systems that don't support them. |
| 18725 | lt_prog_compiler_can_build_shared_F77=no |
| 18726 | enable_shared=no |
| 18727 | ;; |
| 18728 | |
| 18729 | sysv4*MP*) |
| 18730 | if test -d /usr/nec; then |
| 18731 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 18732 | fi |
| 18733 | ;; |
| 18734 | |
| 18735 | hpux*) |
| 18736 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 18737 | # not for PA HP-UX. |
| 18738 | case "$host_cpu" in |
| 18739 | hppa*64*|ia64*) |
| 18740 | # +Z the default |
| 18741 | ;; |
| 18742 | *) |
| 18743 | lt_prog_compiler_pic_F77='-fPIC' |
| 18744 | ;; |
| 18745 | esac |
| 18746 | ;; |
| 18747 | |
| 18748 | *) |
| 18749 | lt_prog_compiler_pic_F77='-fPIC' |
| 18750 | ;; |
| 18751 | esac |
| 18752 | else |
| 18753 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 18754 | case $host_os in |
| 18755 | aix*) |
| 18756 | lt_prog_compiler_wl_F77='-Wl,' |
| 18757 | if test "$host_cpu" = ia64; then |
| 18758 | # AIX 5 now supports IA64 processor |
| 18759 | lt_prog_compiler_static_F77='-Bstatic' |
| 18760 | else |
| 18761 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 18762 | fi |
| 18763 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18764 | darwin*) |
| 18765 | # PIC is the default on this platform |
| 18766 | # Common symbols not allowed in MH_DYLIB files |
| 18767 | case "$cc_basename" in |
| 18768 | xlc*) |
| 18769 | lt_prog_compiler_pic_F77='-qnocommon' |
| 18770 | lt_prog_compiler_wl_F77='-Wl,' |
| 18771 | ;; |
| 18772 | esac |
| 18773 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18774 | |
| 18775 | mingw* | pw32* | os2*) |
| 18776 | # This hack is so that the source file can tell whether it is being |
| 18777 | # built for inclusion in a dll (and should export symbols for example). |
| 18778 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 18779 | ;; |
| 18780 | |
| 18781 | hpux9* | hpux10* | hpux11*) |
| 18782 | lt_prog_compiler_wl_F77='-Wl,' |
| 18783 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 18784 | # not for PA HP-UX. |
| 18785 | case "$host_cpu" in |
| 18786 | hppa*64*|ia64*) |
| 18787 | # +Z the default |
| 18788 | ;; |
| 18789 | *) |
| 18790 | lt_prog_compiler_pic_F77='+Z' |
| 18791 | ;; |
| 18792 | esac |
| 18793 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 18794 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 18795 | ;; |
| 18796 | |
| 18797 | irix5* | irix6* | nonstopux*) |
| 18798 | lt_prog_compiler_wl_F77='-Wl,' |
| 18799 | # PIC (with -KPIC) is the default. |
| 18800 | lt_prog_compiler_static_F77='-non_shared' |
| 18801 | ;; |
| 18802 | |
| 18803 | newsos6) |
| 18804 | lt_prog_compiler_pic_F77='-KPIC' |
| 18805 | lt_prog_compiler_static_F77='-Bstatic' |
| 18806 | ;; |
| 18807 | |
| 18808 | linux*) |
| 18809 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18810 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18811 | lt_prog_compiler_wl_F77='-Wl,' |
| 18812 | lt_prog_compiler_pic_F77='-KPIC' |
| 18813 | lt_prog_compiler_static_F77='-static' |
| 18814 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18815 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18816 | lt_prog_compiler_wl_F77='-Wl,' |
| 18817 | # All Alpha code is PIC. |
| 18818 | lt_prog_compiler_static_F77='-non_shared' |
| 18819 | ;; |
| 18820 | esac |
| 18821 | ;; |
| 18822 | |
| 18823 | osf3* | osf4* | osf5*) |
| 18824 | lt_prog_compiler_wl_F77='-Wl,' |
| 18825 | # All OSF/1 code is PIC. |
| 18826 | lt_prog_compiler_static_F77='-non_shared' |
| 18827 | ;; |
| 18828 | |
| 18829 | sco3.2v5*) |
| 18830 | lt_prog_compiler_pic_F77='-Kpic' |
| 18831 | lt_prog_compiler_static_F77='-dn' |
| 18832 | ;; |
| 18833 | |
| 18834 | solaris*) |
| 18835 | lt_prog_compiler_wl_F77='-Wl,' |
| 18836 | lt_prog_compiler_pic_F77='-KPIC' |
| 18837 | lt_prog_compiler_static_F77='-Bstatic' |
| 18838 | ;; |
| 18839 | |
| 18840 | sunos4*) |
| 18841 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 18842 | lt_prog_compiler_pic_F77='-PIC' |
| 18843 | lt_prog_compiler_static_F77='-Bstatic' |
| 18844 | ;; |
| 18845 | |
| 18846 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 18847 | lt_prog_compiler_wl_F77='-Wl,' |
| 18848 | lt_prog_compiler_pic_F77='-KPIC' |
| 18849 | lt_prog_compiler_static_F77='-Bstatic' |
| 18850 | ;; |
| 18851 | |
| 18852 | sysv4*MP*) |
| 18853 | if test -d /usr/nec ;then |
| 18854 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 18855 | lt_prog_compiler_static_F77='-Bstatic' |
| 18856 | fi |
| 18857 | ;; |
| 18858 | |
| 18859 | uts4*) |
| 18860 | lt_prog_compiler_pic_F77='-pic' |
| 18861 | lt_prog_compiler_static_F77='-Bstatic' |
| 18862 | ;; |
| 18863 | |
| 18864 | *) |
| 18865 | lt_prog_compiler_can_build_shared_F77=no |
| 18866 | ;; |
| 18867 | esac |
| 18868 | fi |
| 18869 | |
| 18870 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 18871 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 18872 | |
| 18873 | # |
| 18874 | # Check to make sure the PIC flag actually works. |
| 18875 | # |
| 18876 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18877 | |
| 18878 | 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] | 18879 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 18880 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 18881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18882 | else |
| 18883 | lt_prog_compiler_pic_works_F77=no |
| 18884 | ac_outfile=conftest.$ac_objext |
| 18885 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18886 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 18887 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18888 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18889 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18890 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18891 | # The option is referenced via a variable to avoid confusing sed. |
| 18892 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18893 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 18894 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18895 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 18896 | (eval echo "\"\$as_me:18896: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18897 | (eval "$lt_compile" 2>conftest.err) |
| 18898 | ac_status=$? |
| 18899 | cat conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 18900 | echo "$as_me:18900: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18901 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 18902 | # The compiler can only warn and ignore the option if not recognized |
| 18903 | # So say no if there are warnings |
| 18904 | if test ! -s conftest.err; then |
| 18905 | lt_prog_compiler_pic_works_F77=yes |
| 18906 | fi |
| 18907 | fi |
| 18908 | $rm conftest* |
| 18909 | |
| 18910 | fi |
| 18911 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 18912 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 18913 | |
| 18914 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 18915 | case $lt_prog_compiler_pic_F77 in |
| 18916 | "" | " "*) ;; |
| 18917 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 18918 | esac |
| 18919 | else |
| 18920 | lt_prog_compiler_pic_F77= |
| 18921 | lt_prog_compiler_can_build_shared_F77=no |
| 18922 | fi |
| 18923 | |
| 18924 | fi |
| 18925 | case "$host_os" in |
| 18926 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 18927 | *djgpp*) |
| 18928 | lt_prog_compiler_pic_F77= |
| 18929 | ;; |
| 18930 | *) |
| 18931 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 18932 | ;; |
| 18933 | esac |
| 18934 | |
| 18935 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18936 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 18937 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 18938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18939 | else |
| 18940 | lt_cv_prog_compiler_c_o_F77=no |
| 18941 | $rm -r conftest 2>/dev/null |
| 18942 | mkdir conftest |
| 18943 | cd conftest |
| 18944 | mkdir out |
| 18945 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18946 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18947 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18948 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18949 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18950 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18951 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18952 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18953 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 18954 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18955 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 18956 | (eval echo "\"\$as_me:18956: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18957 | (eval "$lt_compile" 2>out/conftest.err) |
| 18958 | ac_status=$? |
| 18959 | cat out/conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 18960 | echo "$as_me:18960: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18961 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18962 | then |
| 18963 | # The compiler can only warn and ignore the option if not recognized |
| 18964 | # So say no if there are warnings |
| 18965 | if test ! -s out/conftest.err; then |
| 18966 | lt_cv_prog_compiler_c_o_F77=yes |
| 18967 | fi |
| 18968 | fi |
| 18969 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18970 | $rm conftest* |
| 18971 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18972 | # template instantiation |
| 18973 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 18974 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18975 | cd .. |
| 18976 | rmdir conftest |
| 18977 | $rm conftest* |
| 18978 | |
| 18979 | fi |
| 18980 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 18981 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 18982 | |
| 18983 | |
| 18984 | hard_links="nottested" |
| 18985 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 18986 | # do not overwrite the value of need_locks provided by the user |
| 18987 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 18988 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 18989 | hard_links=yes |
| 18990 | $rm conftest* |
| 18991 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18992 | touch conftest.a |
| 18993 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 18994 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18995 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 18996 | echo "${ECHO_T}$hard_links" >&6 |
| 18997 | if test "$hard_links" = no; then |
| 18998 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 18999 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19000 | need_locks=warn |
| 19001 | fi |
| 19002 | else |
| 19003 | need_locks=no |
| 19004 | fi |
| 19005 | |
| 19006 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19007 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 19008 | |
| 19009 | runpath_var= |
| 19010 | allow_undefined_flag_F77= |
| 19011 | enable_shared_with_static_runtimes_F77=no |
| 19012 | archive_cmds_F77= |
| 19013 | archive_expsym_cmds_F77= |
| 19014 | old_archive_From_new_cmds_F77= |
| 19015 | old_archive_from_expsyms_cmds_F77= |
| 19016 | export_dynamic_flag_spec_F77= |
| 19017 | whole_archive_flag_spec_F77= |
| 19018 | thread_safe_flag_spec_F77= |
| 19019 | hardcode_libdir_flag_spec_F77= |
| 19020 | hardcode_libdir_flag_spec_ld_F77= |
| 19021 | hardcode_libdir_separator_F77= |
| 19022 | hardcode_direct_F77=no |
| 19023 | hardcode_minus_L_F77=no |
| 19024 | hardcode_shlibpath_var_F77=unsupported |
| 19025 | link_all_deplibs_F77=unknown |
| 19026 | hardcode_automatic_F77=no |
| 19027 | module_cmds_F77= |
| 19028 | module_expsym_cmds_F77= |
| 19029 | always_export_symbols_F77=no |
| 19030 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19031 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 19032 | # included in the symbol list |
| 19033 | include_expsyms_F77= |
| 19034 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 19035 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 19036 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 19037 | # as well as any symbol that contains `d'. |
| 19038 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 19039 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 19040 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 19041 | # the symbol is explicitly referenced. Since portable code cannot |
| 19042 | # rely on this symbol name, it's probably fine to never include it in |
| 19043 | # preloaded symbol tables. |
| 19044 | extract_expsyms_cmds= |
| 19045 | |
| 19046 | case $host_os in |
| 19047 | cygwin* | mingw* | pw32*) |
| 19048 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 19049 | # When not using gcc, we currently assume that we are using |
| 19050 | # Microsoft Visual C++. |
| 19051 | if test "$GCC" != yes; then |
| 19052 | with_gnu_ld=no |
| 19053 | fi |
| 19054 | ;; |
| 19055 | openbsd*) |
| 19056 | with_gnu_ld=no |
| 19057 | ;; |
| 19058 | esac |
| 19059 | |
| 19060 | ld_shlibs_F77=yes |
| 19061 | if test "$with_gnu_ld" = yes; then |
| 19062 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 19063 | wlarc='${wl}' |
| 19064 | |
| 19065 | # See if GNU ld supports shared libraries. |
| 19066 | case $host_os in |
| 19067 | aix3* | aix4* | aix5*) |
| 19068 | # On AIX/PPC, the GNU linker is very broken |
| 19069 | if test "$host_cpu" != ia64; then |
| 19070 | ld_shlibs_F77=no |
| 19071 | cat <<EOF 1>&2 |
| 19072 | |
| 19073 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 19074 | *** to be unable to reliably create shared libraries on AIX. |
| 19075 | *** Therefore, libtool is disabling shared libraries support. If you |
| 19076 | *** really care for shared libraries, you may want to modify your PATH |
| 19077 | *** so that a non-GNU linker is found, and then restart. |
| 19078 | |
| 19079 | EOF |
| 19080 | fi |
| 19081 | ;; |
| 19082 | |
| 19083 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19084 | 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] | 19085 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19086 | hardcode_minus_L_F77=yes |
| 19087 | |
| 19088 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 19089 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 19090 | # to version 4, is to share data among multiple programs linked |
| 19091 | # with the same dynamic library. Since this doesn't match the |
| 19092 | # behavior of shared libraries on other platforms, we can't use |
| 19093 | # them. |
| 19094 | ld_shlibs_F77=no |
| 19095 | ;; |
| 19096 | |
| 19097 | beos*) |
| 19098 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19099 | allow_undefined_flag_F77=unsupported |
| 19100 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 19101 | # support --undefined. This deserves some investigation. FIXME |
| 19102 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19103 | else |
| 19104 | ld_shlibs_F77=no |
| 19105 | fi |
| 19106 | ;; |
| 19107 | |
| 19108 | cygwin* | mingw* | pw32*) |
| 19109 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 19110 | # as there is no search path for DLLs. |
| 19111 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19112 | allow_undefined_flag_F77=unsupported |
| 19113 | always_export_symbols_F77=no |
| 19114 | enable_shared_with_static_runtimes_F77=yes |
| 19115 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 19116 | |
| 19117 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 19118 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 19119 | # If the export-symbols file already is a .def file (1st line |
| 19120 | # is EXPORTS), use it as is; otherwise, prepend... |
| 19121 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 19122 | cp $export_symbols $output_objdir/$soname.def; |
| 19123 | else |
| 19124 | echo EXPORTS > $output_objdir/$soname.def; |
| 19125 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19126 | fi~ |
| 19127 | $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] | 19128 | else |
| 19129 | ld_shlibs=no |
| 19130 | fi |
| 19131 | ;; |
| 19132 | |
| 19133 | netbsd*) |
| 19134 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19135 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 19136 | wlarc= |
| 19137 | else |
| 19138 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19139 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19140 | fi |
| 19141 | ;; |
| 19142 | |
| 19143 | solaris* | sysv5*) |
| 19144 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 19145 | ld_shlibs_F77=no |
| 19146 | cat <<EOF 1>&2 |
| 19147 | |
| 19148 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 19149 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 19150 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 19151 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 19152 | *** your PATH or compiler configuration so that the native linker is |
| 19153 | *** used, and then restart. |
| 19154 | |
| 19155 | EOF |
| 19156 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19157 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19158 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19159 | else |
| 19160 | ld_shlibs_F77=no |
| 19161 | fi |
| 19162 | ;; |
| 19163 | |
| 19164 | sunos4*) |
| 19165 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19166 | wlarc= |
| 19167 | hardcode_direct_F77=yes |
| 19168 | hardcode_shlibpath_var_F77=no |
| 19169 | ;; |
| 19170 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19171 | linux*) |
| 19172 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19173 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19174 | archive_cmds_F77="$tmp_archive_cmds" |
| 19175 | supports_anon_versioning=no |
| 19176 | case `$LD -v 2>/dev/null` in |
| 19177 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 19178 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 19179 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 19180 | *\ 2.11.*) ;; # other 2.11 versions |
| 19181 | *) supports_anon_versioning=yes ;; |
| 19182 | esac |
| 19183 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19184 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 19185 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 19186 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19187 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 19188 | else |
| 19189 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 19190 | fi |
| 19191 | else |
| 19192 | ld_shlibs_F77=no |
| 19193 | fi |
| 19194 | ;; |
| 19195 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19196 | *) |
| 19197 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19198 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19199 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19200 | else |
| 19201 | ld_shlibs_F77=no |
| 19202 | fi |
| 19203 | ;; |
| 19204 | esac |
| 19205 | |
| 19206 | if test "$ld_shlibs_F77" = yes; then |
| 19207 | runpath_var=LD_RUN_PATH |
| 19208 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 19209 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 19210 | # ancient GNU ld didn't support --whole-archive et. al. |
| 19211 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 19212 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19213 | else |
| 19214 | whole_archive_flag_spec_F77= |
| 19215 | fi |
| 19216 | fi |
| 19217 | else |
| 19218 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 19219 | case $host_os in |
| 19220 | aix3*) |
| 19221 | allow_undefined_flag_F77=unsupported |
| 19222 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19223 | 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] | 19224 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 19225 | # are no directories specified by -L. |
| 19226 | hardcode_minus_L_F77=yes |
| 19227 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 19228 | # Neither direct hardcoding nor static linking is supported with a |
| 19229 | # broken collect2. |
| 19230 | hardcode_direct_F77=unsupported |
| 19231 | fi |
| 19232 | ;; |
| 19233 | |
| 19234 | aix4* | aix5*) |
| 19235 | if test "$host_cpu" = ia64; then |
| 19236 | # On IA64, the linker does run time linking by default, so we don't |
| 19237 | # have to do anything special. |
| 19238 | aix_use_runtimelinking=no |
| 19239 | exp_sym_flag='-Bexport' |
| 19240 | no_entry_flag="" |
| 19241 | else |
| 19242 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19243 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19244 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19245 | 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' |
| 19246 | else |
| 19247 | 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' |
| 19248 | fi |
| 19249 | aix_use_runtimelinking=no |
| 19250 | |
| 19251 | # Test if we are trying to use run time linking or normal |
| 19252 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 19253 | # need to do runtime linking. |
| 19254 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 19255 | for ld_flag in $LDFLAGS; do |
| 19256 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 19257 | aix_use_runtimelinking=yes |
| 19258 | break |
| 19259 | fi |
| 19260 | done |
| 19261 | esac |
| 19262 | |
| 19263 | exp_sym_flag='-bexport' |
| 19264 | no_entry_flag='-bnoentry' |
| 19265 | fi |
| 19266 | |
| 19267 | # When large executables or shared objects are built, AIX ld can |
| 19268 | # have problems creating the table of contents. If linking a library |
| 19269 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 19270 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 19271 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 19272 | |
| 19273 | archive_cmds_F77='' |
| 19274 | hardcode_direct_F77=yes |
| 19275 | hardcode_libdir_separator_F77=':' |
| 19276 | link_all_deplibs_F77=yes |
| 19277 | |
| 19278 | if test "$GCC" = yes; then |
| 19279 | case $host_os in aix4.012|aix4.012.*) |
| 19280 | # We only want to do this on AIX 4.2 and lower, the check |
| 19281 | # below for broken collect2 doesn't work under 4.3+ |
| 19282 | collect2name=`${CC} -print-prog-name=collect2` |
| 19283 | if test -f "$collect2name" && \ |
| 19284 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 19285 | then |
| 19286 | # We have reworked collect2 |
| 19287 | hardcode_direct_F77=yes |
| 19288 | else |
| 19289 | # We have old collect2 |
| 19290 | hardcode_direct_F77=unsupported |
| 19291 | # It fails to find uninstalled libraries when the uninstalled |
| 19292 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 19293 | # to unsupported forces relinking |
| 19294 | hardcode_minus_L_F77=yes |
| 19295 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19296 | hardcode_libdir_separator_F77= |
| 19297 | fi |
| 19298 | esac |
| 19299 | shared_flag='-shared' |
| 19300 | else |
| 19301 | # not using gcc |
| 19302 | if test "$host_cpu" = ia64; then |
| 19303 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 19304 | # chokes on -Wl,-G. The following line is correct: |
| 19305 | shared_flag='-G' |
| 19306 | else |
| 19307 | if test "$aix_use_runtimelinking" = yes; then |
| 19308 | shared_flag='${wl}-G' |
| 19309 | else |
| 19310 | shared_flag='${wl}-bM:SRE' |
| 19311 | fi |
| 19312 | fi |
| 19313 | fi |
| 19314 | |
| 19315 | # It seems that -bexpall does not export symbols beginning with |
| 19316 | # underscore (_), so it is better to generate a list of symbols to export. |
| 19317 | always_export_symbols_F77=yes |
| 19318 | if test "$aix_use_runtimelinking" = yes; then |
| 19319 | # Warning - without using the other runtime loading flags (-brtl), |
| 19320 | # -berok will link without error, but may produce a broken library. |
| 19321 | allow_undefined_flag_F77='-berok' |
| 19322 | # Determine the default libpath from the value encoded in an empty executable. |
| 19323 | cat >conftest.$ac_ext <<_ACEOF |
| 19324 | program main |
| 19325 | |
| 19326 | end |
| 19327 | _ACEOF |
| 19328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19330 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19331 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19333 | rm -f conftest.er1 |
| 19334 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19336 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19337 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19338 | || test ! -s conftest.err' |
| 19339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19340 | (eval $ac_try) 2>&5 |
| 19341 | ac_status=$? |
| 19342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19343 | (exit $ac_status); }; } && |
| 19344 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19346 | (eval $ac_try) 2>&5 |
| 19347 | ac_status=$? |
| 19348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19349 | (exit $ac_status); }; }; then |
| 19350 | |
| 19351 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19352 | }'` |
| 19353 | # Check for a 64-bit object if we didn't find anything. |
| 19354 | 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; } |
| 19355 | }'`; fi |
| 19356 | else |
| 19357 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19359 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19360 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19361 | rm -f conftest.err conftest.$ac_objext \ |
| 19362 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19363 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19364 | |
| 19365 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19366 | 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" |
| 19367 | else |
| 19368 | if test "$host_cpu" = ia64; then |
| 19369 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 19370 | allow_undefined_flag_F77="-z nodefs" |
| 19371 | 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" |
| 19372 | else |
| 19373 | # Determine the default libpath from the value encoded in an empty executable. |
| 19374 | cat >conftest.$ac_ext <<_ACEOF |
| 19375 | program main |
| 19376 | |
| 19377 | end |
| 19378 | _ACEOF |
| 19379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19381 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19382 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19384 | rm -f conftest.er1 |
| 19385 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19387 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19388 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19389 | || test ! -s conftest.err' |
| 19390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19391 | (eval $ac_try) 2>&5 |
| 19392 | ac_status=$? |
| 19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19394 | (exit $ac_status); }; } && |
| 19395 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19397 | (eval $ac_try) 2>&5 |
| 19398 | ac_status=$? |
| 19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19400 | (exit $ac_status); }; }; then |
| 19401 | |
| 19402 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19403 | }'` |
| 19404 | # Check for a 64-bit object if we didn't find anything. |
| 19405 | 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; } |
| 19406 | }'`; fi |
| 19407 | else |
| 19408 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19411 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19412 | rm -f conftest.err conftest.$ac_objext \ |
| 19413 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19414 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19415 | |
| 19416 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19417 | # Warning - without using the other run time loading flags, |
| 19418 | # -berok will link without error, but may produce a broken library. |
| 19419 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 19420 | allow_undefined_flag_F77=' ${wl}-berok' |
| 19421 | # -bexpall does not export symbols beginning with underscore (_) |
| 19422 | always_export_symbols_F77=yes |
| 19423 | # Exported symbols can be pulled into shared objects from archives |
| 19424 | whole_archive_flag_spec_F77=' ' |
| 19425 | archive_cmds_need_lc_F77=yes |
| 19426 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19427 | 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] | 19428 | fi |
| 19429 | fi |
| 19430 | ;; |
| 19431 | |
| 19432 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19433 | 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] | 19434 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19435 | hardcode_minus_L_F77=yes |
| 19436 | # see comment about different semantics on the GNU ld section |
| 19437 | ld_shlibs_F77=no |
| 19438 | ;; |
| 19439 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19440 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19441 | export_dynamic_flag_spec_F77=-rdynamic |
| 19442 | ;; |
| 19443 | |
| 19444 | cygwin* | mingw* | pw32*) |
| 19445 | # When not using gcc, we currently assume that we are using |
| 19446 | # Microsoft Visual C++. |
| 19447 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 19448 | # no search path for DLLs. |
| 19449 | hardcode_libdir_flag_spec_F77=' ' |
| 19450 | allow_undefined_flag_F77=unsupported |
| 19451 | # Tell ltmain to make .lib files, not .a files. |
| 19452 | libext=lib |
| 19453 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19454 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19455 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19456 | 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] | 19457 | # The linker will automatically build a .lib file if we build a DLL. |
| 19458 | old_archive_From_new_cmds_F77='true' |
| 19459 | # FIXME: Should let the user specify the lib program. |
| 19460 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 19461 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 19462 | enable_shared_with_static_runtimes_F77=yes |
| 19463 | ;; |
| 19464 | |
| 19465 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19466 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19467 | rhapsody* | darwin1.[012]) |
| 19468 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 19469 | ;; |
| 19470 | *) # Darwin 1.3 on |
| 19471 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 19472 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19473 | else |
| 19474 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 19475 | 10.[012]) |
| 19476 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19477 | ;; |
| 19478 | 10.*) |
| 19479 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 19480 | ;; |
| 19481 | esac |
| 19482 | fi |
| 19483 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19484 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19485 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19486 | hardcode_direct_F77=no |
| 19487 | hardcode_automatic_F77=yes |
| 19488 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19489 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19490 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19491 | if test "$GCC" = yes ; then |
| 19492 | output_verbose_link_cmd='echo' |
| 19493 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 19494 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 19495 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19496 | 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}' |
| 19497 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19498 | else |
| 19499 | case "$cc_basename" in |
| 19500 | xlc*) |
| 19501 | output_verbose_link_cmd='echo' |
| 19502 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 19503 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 19504 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19505 | 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}' |
| 19506 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19507 | ;; |
| 19508 | *) |
| 19509 | ld_shlibs_F77=no |
| 19510 | ;; |
| 19511 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19512 | fi |
| 19513 | ;; |
| 19514 | |
| 19515 | dgux*) |
| 19516 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19517 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19518 | hardcode_shlibpath_var_F77=no |
| 19519 | ;; |
| 19520 | |
| 19521 | freebsd1*) |
| 19522 | ld_shlibs_F77=no |
| 19523 | ;; |
| 19524 | |
| 19525 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 19526 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 19527 | # does not break anything, and helps significantly (at the cost of a little |
| 19528 | # extra space). |
| 19529 | freebsd2.2*) |
| 19530 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 19531 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19532 | hardcode_direct_F77=yes |
| 19533 | hardcode_shlibpath_var_F77=no |
| 19534 | ;; |
| 19535 | |
| 19536 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 19537 | freebsd2*) |
| 19538 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19539 | hardcode_direct_F77=yes |
| 19540 | hardcode_minus_L_F77=yes |
| 19541 | hardcode_shlibpath_var_F77=no |
| 19542 | ;; |
| 19543 | |
| 19544 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19545 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19546 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 19547 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19548 | hardcode_direct_F77=yes |
| 19549 | hardcode_shlibpath_var_F77=no |
| 19550 | ;; |
| 19551 | |
| 19552 | hpux9*) |
| 19553 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19554 | 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] | 19555 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19556 | 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] | 19557 | fi |
| 19558 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19559 | hardcode_libdir_separator_F77=: |
| 19560 | hardcode_direct_F77=yes |
| 19561 | |
| 19562 | # hardcode_minus_L: Not really in the search PATH, |
| 19563 | # but as the default location of the library. |
| 19564 | hardcode_minus_L_F77=yes |
| 19565 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19566 | ;; |
| 19567 | |
| 19568 | hpux10* | hpux11*) |
| 19569 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 19570 | case "$host_cpu" in |
| 19571 | hppa*64*|ia64*) |
| 19572 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19573 | ;; |
| 19574 | *) |
| 19575 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 19576 | ;; |
| 19577 | esac |
| 19578 | else |
| 19579 | case "$host_cpu" in |
| 19580 | hppa*64*|ia64*) |
| 19581 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19582 | ;; |
| 19583 | *) |
| 19584 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 19585 | ;; |
| 19586 | esac |
| 19587 | fi |
| 19588 | if test "$with_gnu_ld" = no; then |
| 19589 | case "$host_cpu" in |
| 19590 | hppa*64*) |
| 19591 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19592 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 19593 | hardcode_libdir_separator_F77=: |
| 19594 | hardcode_direct_F77=no |
| 19595 | hardcode_shlibpath_var_F77=no |
| 19596 | ;; |
| 19597 | ia64*) |
| 19598 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19599 | hardcode_direct_F77=no |
| 19600 | hardcode_shlibpath_var_F77=no |
| 19601 | |
| 19602 | # hardcode_minus_L: Not really in the search PATH, |
| 19603 | # but as the default location of the library. |
| 19604 | hardcode_minus_L_F77=yes |
| 19605 | ;; |
| 19606 | *) |
| 19607 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19608 | hardcode_libdir_separator_F77=: |
| 19609 | hardcode_direct_F77=yes |
| 19610 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19611 | |
| 19612 | # hardcode_minus_L: Not really in the search PATH, |
| 19613 | # but as the default location of the library. |
| 19614 | hardcode_minus_L_F77=yes |
| 19615 | ;; |
| 19616 | esac |
| 19617 | fi |
| 19618 | ;; |
| 19619 | |
| 19620 | irix5* | irix6* | nonstopux*) |
| 19621 | if test "$GCC" = yes; then |
| 19622 | 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' |
| 19623 | else |
| 19624 | 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' |
| 19625 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 19626 | fi |
| 19627 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19628 | hardcode_libdir_separator_F77=: |
| 19629 | link_all_deplibs_F77=yes |
| 19630 | ;; |
| 19631 | |
| 19632 | netbsd*) |
| 19633 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19634 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 19635 | else |
| 19636 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 19637 | fi |
| 19638 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19639 | hardcode_direct_F77=yes |
| 19640 | hardcode_shlibpath_var_F77=no |
| 19641 | ;; |
| 19642 | |
| 19643 | newsos6) |
| 19644 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19645 | hardcode_direct_F77=yes |
| 19646 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19647 | hardcode_libdir_separator_F77=: |
| 19648 | hardcode_shlibpath_var_F77=no |
| 19649 | ;; |
| 19650 | |
| 19651 | openbsd*) |
| 19652 | hardcode_direct_F77=yes |
| 19653 | hardcode_shlibpath_var_F77=no |
| 19654 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19655 | 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] | 19656 | 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] | 19657 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 19658 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19659 | else |
| 19660 | case $host_os in |
| 19661 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 19662 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19663 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19664 | ;; |
| 19665 | *) |
| 19666 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 19667 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 19668 | ;; |
| 19669 | esac |
| 19670 | fi |
| 19671 | ;; |
| 19672 | |
| 19673 | os2*) |
| 19674 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19675 | hardcode_minus_L_F77=yes |
| 19676 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19677 | 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] | 19678 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 19679 | ;; |
| 19680 | |
| 19681 | osf3*) |
| 19682 | if test "$GCC" = yes; then |
| 19683 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 19684 | 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' |
| 19685 | else |
| 19686 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 19687 | 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' |
| 19688 | fi |
| 19689 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19690 | hardcode_libdir_separator_F77=: |
| 19691 | ;; |
| 19692 | |
| 19693 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 19694 | if test "$GCC" = yes; then |
| 19695 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 19696 | 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' |
| 19697 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19698 | else |
| 19699 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 19700 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19701 | 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~ |
| 19702 | $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' |
| 19703 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19704 | # Both c and cxx compiler support -rpath directly |
| 19705 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 19706 | fi |
| 19707 | hardcode_libdir_separator_F77=: |
| 19708 | ;; |
| 19709 | |
| 19710 | sco3.2v5*) |
| 19711 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19712 | hardcode_shlibpath_var_F77=no |
| 19713 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 19714 | runpath_var=LD_RUN_PATH |
| 19715 | hardcode_runpath_var=yes |
| 19716 | ;; |
| 19717 | |
| 19718 | solaris*) |
| 19719 | no_undefined_flag_F77=' -z text' |
| 19720 | if test "$GCC" = yes; then |
| 19721 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19722 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19723 | $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] | 19724 | else |
| 19725 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19726 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19727 | $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] | 19728 | fi |
| 19729 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19730 | hardcode_shlibpath_var_F77=no |
| 19731 | case $host_os in |
| 19732 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 19733 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 19734 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 19735 | esac |
| 19736 | link_all_deplibs_F77=yes |
| 19737 | ;; |
| 19738 | |
| 19739 | sunos4*) |
| 19740 | if test "x$host_vendor" = xsequent; then |
| 19741 | # Use $CC to link under sequent, because it throws in some extra .o |
| 19742 | # files that make .init and .fini sections work. |
| 19743 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19744 | else |
| 19745 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 19746 | fi |
| 19747 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19748 | hardcode_direct_F77=yes |
| 19749 | hardcode_minus_L_F77=yes |
| 19750 | hardcode_shlibpath_var_F77=no |
| 19751 | ;; |
| 19752 | |
| 19753 | sysv4) |
| 19754 | case $host_vendor in |
| 19755 | sni) |
| 19756 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19757 | hardcode_direct_F77=yes # is this really true??? |
| 19758 | ;; |
| 19759 | siemens) |
| 19760 | ## LD is ld it makes a PLAMLIB |
| 19761 | ## CC just makes a GrossModule. |
| 19762 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 19763 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 19764 | hardcode_direct_F77=no |
| 19765 | ;; |
| 19766 | motorola) |
| 19767 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19768 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 19769 | ;; |
| 19770 | esac |
| 19771 | runpath_var='LD_RUN_PATH' |
| 19772 | hardcode_shlibpath_var_F77=no |
| 19773 | ;; |
| 19774 | |
| 19775 | sysv4.3*) |
| 19776 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19777 | hardcode_shlibpath_var_F77=no |
| 19778 | export_dynamic_flag_spec_F77='-Bexport' |
| 19779 | ;; |
| 19780 | |
| 19781 | sysv4*MP*) |
| 19782 | if test -d /usr/nec; then |
| 19783 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19784 | hardcode_shlibpath_var_F77=no |
| 19785 | runpath_var=LD_RUN_PATH |
| 19786 | hardcode_runpath_var=yes |
| 19787 | ld_shlibs_F77=yes |
| 19788 | fi |
| 19789 | ;; |
| 19790 | |
| 19791 | sysv4.2uw2*) |
| 19792 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 19793 | hardcode_direct_F77=yes |
| 19794 | hardcode_minus_L_F77=no |
| 19795 | hardcode_shlibpath_var_F77=no |
| 19796 | hardcode_runpath_var=yes |
| 19797 | runpath_var=LD_RUN_PATH |
| 19798 | ;; |
| 19799 | |
| 19800 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 19801 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 19802 | if test "$GCC" = yes; then |
| 19803 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19804 | else |
| 19805 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19806 | fi |
| 19807 | runpath_var='LD_RUN_PATH' |
| 19808 | hardcode_shlibpath_var_F77=no |
| 19809 | ;; |
| 19810 | |
| 19811 | sysv5*) |
| 19812 | no_undefined_flag_F77=' -z text' |
| 19813 | # $CC -shared without GNU ld will not create a library from C++ |
| 19814 | # object files and a static libstdc++, better avoid it by now |
| 19815 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19816 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19817 | $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] | 19818 | hardcode_libdir_flag_spec_F77= |
| 19819 | hardcode_shlibpath_var_F77=no |
| 19820 | runpath_var='LD_RUN_PATH' |
| 19821 | ;; |
| 19822 | |
| 19823 | uts4*) |
| 19824 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19825 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19826 | hardcode_shlibpath_var_F77=no |
| 19827 | ;; |
| 19828 | |
| 19829 | *) |
| 19830 | ld_shlibs_F77=no |
| 19831 | ;; |
| 19832 | esac |
| 19833 | fi |
| 19834 | |
| 19835 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 19836 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 19837 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 19838 | |
| 19839 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 19840 | if test "$GCC" = yes; then |
| 19841 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 19842 | fi |
| 19843 | |
| 19844 | # |
| 19845 | # Do we need to explicitly link libc? |
| 19846 | # |
| 19847 | case "x$archive_cmds_need_lc_F77" in |
| 19848 | x|xyes) |
| 19849 | # Assume -lc should be added |
| 19850 | archive_cmds_need_lc_F77=yes |
| 19851 | |
| 19852 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19853 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19854 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19855 | # FIXME: we may have to deal with multi-command sequences. |
| 19856 | ;; |
| 19857 | '$CC '*) |
| 19858 | # Test whether the compiler implicitly links with -lc since on some |
| 19859 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19860 | # to ld, don't add -lc before -lgcc. |
| 19861 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19862 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 19863 | $rm conftest* |
| 19864 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19865 | |
| 19866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19867 | (eval $ac_compile) 2>&5 |
| 19868 | ac_status=$? |
| 19869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19870 | (exit $ac_status); } 2>conftest.err; then |
| 19871 | soname=conftest |
| 19872 | lib=conftest |
| 19873 | libobjs=conftest.$ac_objext |
| 19874 | deplibs= |
| 19875 | wl=$lt_prog_compiler_wl_F77 |
| 19876 | compiler_flags=-v |
| 19877 | linker_flags=-v |
| 19878 | verstring= |
| 19879 | output_objdir=. |
| 19880 | libname=conftest |
| 19881 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 19882 | allow_undefined_flag_F77= |
| 19883 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19884 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19885 | ac_status=$? |
| 19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19887 | (exit $ac_status); } |
| 19888 | then |
| 19889 | archive_cmds_need_lc_F77=no |
| 19890 | else |
| 19891 | archive_cmds_need_lc_F77=yes |
| 19892 | fi |
| 19893 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 19894 | else |
| 19895 | cat conftest.err 1>&5 |
| 19896 | fi |
| 19897 | $rm conftest* |
| 19898 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 19899 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 19900 | ;; |
| 19901 | esac |
| 19902 | fi |
| 19903 | ;; |
| 19904 | esac |
| 19905 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19906 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19907 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 19908 | library_names_spec= |
| 19909 | libname_spec='lib$name' |
| 19910 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19911 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19912 | postinstall_cmds= |
| 19913 | postuninstall_cmds= |
| 19914 | finish_cmds= |
| 19915 | finish_eval= |
| 19916 | shlibpath_var= |
| 19917 | shlibpath_overrides_runpath=unknown |
| 19918 | version_type=none |
| 19919 | dynamic_linker="$host_os ld.so" |
| 19920 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19921 | if test "$GCC" = yes; then |
| 19922 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19923 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19924 | # if the path contains ";" then we assume it to be the separator |
| 19925 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19926 | # assumed that no part of a normal pathname contains ";" but that should |
| 19927 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19928 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19929 | else |
| 19930 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19931 | fi |
| 19932 | else |
| 19933 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19934 | fi |
| 19935 | need_lib_prefix=unknown |
| 19936 | hardcode_into_libs=no |
| 19937 | |
| 19938 | # when you set need_version to no, make sure it does not cause -set_version |
| 19939 | # flags to be left without arguments |
| 19940 | need_version=unknown |
| 19941 | |
| 19942 | case $host_os in |
| 19943 | aix3*) |
| 19944 | version_type=linux |
| 19945 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19946 | shlibpath_var=LIBPATH |
| 19947 | |
| 19948 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19949 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19950 | ;; |
| 19951 | |
| 19952 | aix4* | aix5*) |
| 19953 | version_type=linux |
| 19954 | need_lib_prefix=no |
| 19955 | need_version=no |
| 19956 | hardcode_into_libs=yes |
| 19957 | if test "$host_cpu" = ia64; then |
| 19958 | # AIX 5 supports IA64 |
| 19959 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19960 | shlibpath_var=LD_LIBRARY_PATH |
| 19961 | else |
| 19962 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19963 | # for dependence libraries. The import file would start with |
| 19964 | # the line `#! .'. This would cause the generated library to |
| 19965 | # depend on `.', always an invalid library. This was fixed in |
| 19966 | # development snapshots of GCC prior to 3.0. |
| 19967 | case $host_os in |
| 19968 | aix4 | aix4.[01] | aix4.[01].*) |
| 19969 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19970 | echo ' yes ' |
| 19971 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19972 | : |
| 19973 | else |
| 19974 | can_build_shared=no |
| 19975 | fi |
| 19976 | ;; |
| 19977 | esac |
| 19978 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19979 | # soname into executable. Probably we can add versioning support to |
| 19980 | # collect2, so additional links can be useful in future. |
| 19981 | if test "$aix_use_runtimelinking" = yes; then |
| 19982 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19983 | # instead of lib<name>.a to let people know that these are not |
| 19984 | # typical AIX shared libraries. |
| 19985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19986 | else |
| 19987 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19988 | # and later when we are not doing run time linking. |
| 19989 | library_names_spec='${libname}${release}.a $libname.a' |
| 19990 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19991 | fi |
| 19992 | shlibpath_var=LIBPATH |
| 19993 | fi |
| 19994 | ;; |
| 19995 | |
| 19996 | amigaos*) |
| 19997 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19998 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19999 | 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] | 20000 | ;; |
| 20001 | |
| 20002 | beos*) |
| 20003 | library_names_spec='${libname}${shared_ext}' |
| 20004 | dynamic_linker="$host_os ld.so" |
| 20005 | shlibpath_var=LIBRARY_PATH |
| 20006 | ;; |
| 20007 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20008 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20009 | version_type=linux |
| 20010 | need_version=no |
| 20011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20012 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20013 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20014 | shlibpath_var=LD_LIBRARY_PATH |
| 20015 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20016 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20017 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20018 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20019 | # libtool to hard-code these into programs |
| 20020 | ;; |
| 20021 | |
| 20022 | cygwin* | mingw* | pw32*) |
| 20023 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20024 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20025 | need_version=no |
| 20026 | need_lib_prefix=no |
| 20027 | |
| 20028 | case $GCC,$host_os in |
| 20029 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20030 | library_names_spec='$libname.dll.a' |
| 20031 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20032 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20033 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20034 | dldir=$destdir/`dirname \$dlpath`~ |
| 20035 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20036 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20037 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20038 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20039 | $rm \$dlpath' |
| 20040 | shlibpath_overrides_runpath=yes |
| 20041 | |
| 20042 | case $host_os in |
| 20043 | cygwin*) |
| 20044 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20045 | 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] | 20046 | 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] | 20047 | ;; |
| 20048 | mingw*) |
| 20049 | # MinGW DLLs use traditional 'lib' prefix |
| 20050 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20051 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20052 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20053 | # It is most probably a Windows format PATH printed by |
| 20054 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20055 | # path with ; separators, and with drive letters. We can handle the |
| 20056 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20057 | # especially as we might pass files found there to a mingw objdump, |
| 20058 | # which wouldn't understand a cygwinified path. Ahh. |
| 20059 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20060 | else |
| 20061 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20062 | fi |
| 20063 | ;; |
| 20064 | pw32*) |
| 20065 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 20066 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 20067 | ;; |
| 20068 | esac |
| 20069 | ;; |
| 20070 | |
| 20071 | *) |
| 20072 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20073 | ;; |
| 20074 | esac |
| 20075 | dynamic_linker='Win32 ld.exe' |
| 20076 | # FIXME: first we should search . and the directory the executable is in |
| 20077 | shlibpath_var=PATH |
| 20078 | ;; |
| 20079 | |
| 20080 | darwin* | rhapsody*) |
| 20081 | dynamic_linker="$host_os dyld" |
| 20082 | version_type=darwin |
| 20083 | need_lib_prefix=no |
| 20084 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20085 | 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] | 20086 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20087 | shlibpath_overrides_runpath=yes |
| 20088 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20089 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20090 | # 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] | 20091 | if test "$GCC" = yes; then |
| 20092 | 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"` |
| 20093 | else |
| 20094 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20095 | fi |
| 20096 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20097 | ;; |
| 20098 | |
| 20099 | dgux*) |
| 20100 | version_type=linux |
| 20101 | need_lib_prefix=no |
| 20102 | need_version=no |
| 20103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20104 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20105 | shlibpath_var=LD_LIBRARY_PATH |
| 20106 | ;; |
| 20107 | |
| 20108 | freebsd1*) |
| 20109 | dynamic_linker=no |
| 20110 | ;; |
| 20111 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20112 | kfreebsd*-gnu) |
| 20113 | version_type=linux |
| 20114 | need_lib_prefix=no |
| 20115 | need_version=no |
| 20116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20117 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20118 | shlibpath_var=LD_LIBRARY_PATH |
| 20119 | shlibpath_overrides_runpath=no |
| 20120 | hardcode_into_libs=yes |
| 20121 | dynamic_linker='GNU ld.so' |
| 20122 | ;; |
| 20123 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20124 | freebsd*) |
| 20125 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 20126 | version_type=freebsd-$objformat |
| 20127 | case $version_type in |
| 20128 | freebsd-elf*) |
| 20129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20130 | need_version=no |
| 20131 | need_lib_prefix=no |
| 20132 | ;; |
| 20133 | freebsd-*) |
| 20134 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20135 | need_version=yes |
| 20136 | ;; |
| 20137 | esac |
| 20138 | shlibpath_var=LD_LIBRARY_PATH |
| 20139 | case $host_os in |
| 20140 | freebsd2*) |
| 20141 | shlibpath_overrides_runpath=yes |
| 20142 | ;; |
| 20143 | freebsd3.01* | freebsdelf3.01*) |
| 20144 | shlibpath_overrides_runpath=yes |
| 20145 | hardcode_into_libs=yes |
| 20146 | ;; |
| 20147 | *) # from 3.2 on |
| 20148 | shlibpath_overrides_runpath=no |
| 20149 | hardcode_into_libs=yes |
| 20150 | ;; |
| 20151 | esac |
| 20152 | ;; |
| 20153 | |
| 20154 | gnu*) |
| 20155 | version_type=linux |
| 20156 | need_lib_prefix=no |
| 20157 | need_version=no |
| 20158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20159 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20160 | shlibpath_var=LD_LIBRARY_PATH |
| 20161 | hardcode_into_libs=yes |
| 20162 | ;; |
| 20163 | |
| 20164 | hpux9* | hpux10* | hpux11*) |
| 20165 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20166 | # link against other versions. |
| 20167 | version_type=sunos |
| 20168 | need_lib_prefix=no |
| 20169 | need_version=no |
| 20170 | case "$host_cpu" in |
| 20171 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20172 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20173 | hardcode_into_libs=yes |
| 20174 | dynamic_linker="$host_os dld.so" |
| 20175 | shlibpath_var=LD_LIBRARY_PATH |
| 20176 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20179 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20180 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20181 | else |
| 20182 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20183 | fi |
| 20184 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20185 | ;; |
| 20186 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20187 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20188 | hardcode_into_libs=yes |
| 20189 | dynamic_linker="$host_os dld.sl" |
| 20190 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20191 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20193 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20194 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20195 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20196 | ;; |
| 20197 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20198 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20199 | dynamic_linker="$host_os dld.sl" |
| 20200 | shlibpath_var=SHLIB_PATH |
| 20201 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20203 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20204 | ;; |
| 20205 | esac |
| 20206 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20207 | postinstall_cmds='chmod 555 $lib' |
| 20208 | ;; |
| 20209 | |
| 20210 | irix5* | irix6* | nonstopux*) |
| 20211 | case $host_os in |
| 20212 | nonstopux*) version_type=nonstopux ;; |
| 20213 | *) |
| 20214 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20215 | version_type=linux |
| 20216 | else |
| 20217 | version_type=irix |
| 20218 | fi ;; |
| 20219 | esac |
| 20220 | need_lib_prefix=no |
| 20221 | need_version=no |
| 20222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20224 | case $host_os in |
| 20225 | irix5* | nonstopux*) |
| 20226 | libsuff= shlibsuff= |
| 20227 | ;; |
| 20228 | *) |
| 20229 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20230 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20231 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20232 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20233 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20234 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20235 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20236 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20237 | esac |
| 20238 | ;; |
| 20239 | esac |
| 20240 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20241 | shlibpath_overrides_runpath=no |
| 20242 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20243 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20244 | hardcode_into_libs=yes |
| 20245 | ;; |
| 20246 | |
| 20247 | # No shared lib support for Linux oldld, aout, or coff. |
| 20248 | linux*oldld* | linux*aout* | linux*coff*) |
| 20249 | dynamic_linker=no |
| 20250 | ;; |
| 20251 | |
| 20252 | # This must be Linux ELF. |
| 20253 | linux*) |
| 20254 | version_type=linux |
| 20255 | need_lib_prefix=no |
| 20256 | need_version=no |
| 20257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20259 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20260 | shlibpath_var=LD_LIBRARY_PATH |
| 20261 | shlibpath_overrides_runpath=no |
| 20262 | # This implies no fast_install, which is unacceptable. |
| 20263 | # Some rework will be needed to allow for fast_install |
| 20264 | # before this can be enabled. |
| 20265 | hardcode_into_libs=yes |
| 20266 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20267 | # Append ld.so.conf contents to the search path |
| 20268 | if test -f /etc/ld.so.conf; then |
| 20269 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 20270 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20271 | fi |
| 20272 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20273 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20274 | # powerpc, because MkLinux only supported shared libraries with the |
| 20275 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20276 | # most powerpc-linux boxes support dynamic linking these days and |
| 20277 | # people can always --disable-shared, the test was removed, and we |
| 20278 | # assume the GNU/Linux dynamic linker is in use. |
| 20279 | dynamic_linker='GNU/Linux ld.so' |
| 20280 | ;; |
| 20281 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20282 | knetbsd*-gnu) |
| 20283 | version_type=linux |
| 20284 | need_lib_prefix=no |
| 20285 | need_version=no |
| 20286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20287 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20288 | shlibpath_var=LD_LIBRARY_PATH |
| 20289 | shlibpath_overrides_runpath=no |
| 20290 | hardcode_into_libs=yes |
| 20291 | dynamic_linker='GNU ld.so' |
| 20292 | ;; |
| 20293 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20294 | netbsd*) |
| 20295 | version_type=sunos |
| 20296 | need_lib_prefix=no |
| 20297 | need_version=no |
| 20298 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20300 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20301 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20302 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20303 | 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] | 20304 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20305 | dynamic_linker='NetBSD ld.elf_so' |
| 20306 | fi |
| 20307 | shlibpath_var=LD_LIBRARY_PATH |
| 20308 | shlibpath_overrides_runpath=yes |
| 20309 | hardcode_into_libs=yes |
| 20310 | ;; |
| 20311 | |
| 20312 | newsos6) |
| 20313 | version_type=linux |
| 20314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20315 | shlibpath_var=LD_LIBRARY_PATH |
| 20316 | shlibpath_overrides_runpath=yes |
| 20317 | ;; |
| 20318 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20319 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20320 | version_type=linux |
| 20321 | need_lib_prefix=no |
| 20322 | need_version=no |
| 20323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20324 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20325 | shlibpath_var=LD_LIBRARY_PATH |
| 20326 | shlibpath_overrides_runpath=yes |
| 20327 | ;; |
| 20328 | |
| 20329 | openbsd*) |
| 20330 | version_type=sunos |
| 20331 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20332 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20334 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20335 | shlibpath_var=LD_LIBRARY_PATH |
| 20336 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20337 | case $host_os in |
| 20338 | openbsd2.[89] | openbsd2.[89].*) |
| 20339 | shlibpath_overrides_runpath=no |
| 20340 | ;; |
| 20341 | *) |
| 20342 | shlibpath_overrides_runpath=yes |
| 20343 | ;; |
| 20344 | esac |
| 20345 | else |
| 20346 | shlibpath_overrides_runpath=yes |
| 20347 | fi |
| 20348 | ;; |
| 20349 | |
| 20350 | os2*) |
| 20351 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20352 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20353 | need_lib_prefix=no |
| 20354 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20355 | dynamic_linker='OS/2 ld.exe' |
| 20356 | shlibpath_var=LIBPATH |
| 20357 | ;; |
| 20358 | |
| 20359 | osf3* | osf4* | osf5*) |
| 20360 | version_type=osf |
| 20361 | need_lib_prefix=no |
| 20362 | need_version=no |
| 20363 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20365 | shlibpath_var=LD_LIBRARY_PATH |
| 20366 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20367 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20368 | ;; |
| 20369 | |
| 20370 | sco3.2v5*) |
| 20371 | version_type=osf |
| 20372 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20374 | shlibpath_var=LD_LIBRARY_PATH |
| 20375 | ;; |
| 20376 | |
| 20377 | solaris*) |
| 20378 | version_type=linux |
| 20379 | need_lib_prefix=no |
| 20380 | need_version=no |
| 20381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20382 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20383 | shlibpath_var=LD_LIBRARY_PATH |
| 20384 | shlibpath_overrides_runpath=yes |
| 20385 | hardcode_into_libs=yes |
| 20386 | # ldd complains unless libraries are executable |
| 20387 | postinstall_cmds='chmod +x $lib' |
| 20388 | ;; |
| 20389 | |
| 20390 | sunos4*) |
| 20391 | version_type=sunos |
| 20392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20393 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20394 | shlibpath_var=LD_LIBRARY_PATH |
| 20395 | shlibpath_overrides_runpath=yes |
| 20396 | if test "$with_gnu_ld" = yes; then |
| 20397 | need_lib_prefix=no |
| 20398 | fi |
| 20399 | need_version=yes |
| 20400 | ;; |
| 20401 | |
| 20402 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 20403 | version_type=linux |
| 20404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20405 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20406 | shlibpath_var=LD_LIBRARY_PATH |
| 20407 | case $host_vendor in |
| 20408 | sni) |
| 20409 | shlibpath_overrides_runpath=no |
| 20410 | need_lib_prefix=no |
| 20411 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20412 | runpath_var=LD_RUN_PATH |
| 20413 | ;; |
| 20414 | siemens) |
| 20415 | need_lib_prefix=no |
| 20416 | ;; |
| 20417 | motorola) |
| 20418 | need_lib_prefix=no |
| 20419 | need_version=no |
| 20420 | shlibpath_overrides_runpath=no |
| 20421 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20422 | ;; |
| 20423 | esac |
| 20424 | ;; |
| 20425 | |
| 20426 | sysv4*MP*) |
| 20427 | if test -d /usr/nec ;then |
| 20428 | version_type=linux |
| 20429 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20430 | soname_spec='$libname${shared_ext}.$major' |
| 20431 | shlibpath_var=LD_LIBRARY_PATH |
| 20432 | fi |
| 20433 | ;; |
| 20434 | |
| 20435 | uts4*) |
| 20436 | version_type=linux |
| 20437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20438 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20439 | shlibpath_var=LD_LIBRARY_PATH |
| 20440 | ;; |
| 20441 | |
| 20442 | *) |
| 20443 | dynamic_linker=no |
| 20444 | ;; |
| 20445 | esac |
| 20446 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20447 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 20448 | test "$dynamic_linker" = no && can_build_shared=no |
| 20449 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20450 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20451 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 20452 | hardcode_action_F77= |
| 20453 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 20454 | test -n "$runpath_var_F77" || \ |
| 20455 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 20456 | |
| 20457 | # We can hardcode non-existant directories. |
| 20458 | if test "$hardcode_direct_F77" != no && |
| 20459 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20460 | # have to relink, otherwise we might link with an installed library |
| 20461 | # when we should be linking with a yet-to-be-installed one |
| 20462 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 20463 | test "$hardcode_minus_L_F77" != no; then |
| 20464 | # Linking always hardcodes the temporary library directory. |
| 20465 | hardcode_action_F77=relink |
| 20466 | else |
| 20467 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20468 | hardcode_action_F77=immediate |
| 20469 | fi |
| 20470 | else |
| 20471 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20472 | # directories. |
| 20473 | hardcode_action_F77=unsupported |
| 20474 | fi |
| 20475 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 20476 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 20477 | |
| 20478 | if test "$hardcode_action_F77" = relink; then |
| 20479 | # Fast installation is not supported |
| 20480 | enable_fast_install=no |
| 20481 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20482 | test "$enable_shared" = no; then |
| 20483 | # Fast installation is not necessary |
| 20484 | enable_fast_install=needless |
| 20485 | fi |
| 20486 | |
| 20487 | striplib= |
| 20488 | old_striplib= |
| 20489 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 20490 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 20491 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 20492 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 20493 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 20494 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20495 | echo "${ECHO_T}yes" >&6 |
| 20496 | else |
| 20497 | # FIXME - insert some real tests, host_os isn't really good enough |
| 20498 | case $host_os in |
| 20499 | darwin*) |
| 20500 | if test -n "$STRIP" ; then |
| 20501 | striplib="$STRIP -x" |
| 20502 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20503 | echo "${ECHO_T}yes" >&6 |
| 20504 | else |
| 20505 | echo "$as_me:$LINENO: result: no" >&5 |
| 20506 | echo "${ECHO_T}no" >&6 |
| 20507 | fi |
| 20508 | ;; |
| 20509 | *) |
| 20510 | echo "$as_me:$LINENO: result: no" >&5 |
| 20511 | echo "${ECHO_T}no" >&6 |
| 20512 | ;; |
| 20513 | esac |
| 20514 | fi |
| 20515 | |
| 20516 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20517 | |
| 20518 | # The else clause should only fire when bootstrapping the |
| 20519 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20520 | # with your package, and you will get complaints that there are |
| 20521 | # no rules to generate ltmain.sh. |
| 20522 | if test -f "$ltmain"; then |
| 20523 | # See if we are running on zsh, and set the options which allow our commands through |
| 20524 | # without removal of \ escapes. |
| 20525 | if test -n "${ZSH_VERSION+set}" ; then |
| 20526 | setopt NO_GLOB_SUBST |
| 20527 | fi |
| 20528 | # Now quote all the things that may contain metacharacters while being |
| 20529 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20530 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20531 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 20532 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20533 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20534 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20535 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20536 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20537 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20538 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20539 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20540 | compiler_F77 \ |
| 20541 | CC_F77 \ |
| 20542 | LD_F77 \ |
| 20543 | lt_prog_compiler_wl_F77 \ |
| 20544 | lt_prog_compiler_pic_F77 \ |
| 20545 | lt_prog_compiler_static_F77 \ |
| 20546 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 20547 | export_dynamic_flag_spec_F77 \ |
| 20548 | thread_safe_flag_spec_F77 \ |
| 20549 | whole_archive_flag_spec_F77 \ |
| 20550 | enable_shared_with_static_runtimes_F77 \ |
| 20551 | old_archive_cmds_F77 \ |
| 20552 | old_archive_from_new_cmds_F77 \ |
| 20553 | predep_objects_F77 \ |
| 20554 | postdep_objects_F77 \ |
| 20555 | predeps_F77 \ |
| 20556 | postdeps_F77 \ |
| 20557 | compiler_lib_search_path_F77 \ |
| 20558 | archive_cmds_F77 \ |
| 20559 | archive_expsym_cmds_F77 \ |
| 20560 | postinstall_cmds_F77 \ |
| 20561 | postuninstall_cmds_F77 \ |
| 20562 | old_archive_from_expsyms_cmds_F77 \ |
| 20563 | allow_undefined_flag_F77 \ |
| 20564 | no_undefined_flag_F77 \ |
| 20565 | export_symbols_cmds_F77 \ |
| 20566 | hardcode_libdir_flag_spec_F77 \ |
| 20567 | hardcode_libdir_flag_spec_ld_F77 \ |
| 20568 | hardcode_libdir_separator_F77 \ |
| 20569 | hardcode_automatic_F77 \ |
| 20570 | module_cmds_F77 \ |
| 20571 | module_expsym_cmds_F77 \ |
| 20572 | lt_cv_prog_compiler_c_o_F77 \ |
| 20573 | exclude_expsyms_F77 \ |
| 20574 | include_expsyms_F77; do |
| 20575 | |
| 20576 | case $var in |
| 20577 | old_archive_cmds_F77 | \ |
| 20578 | old_archive_from_new_cmds_F77 | \ |
| 20579 | archive_cmds_F77 | \ |
| 20580 | archive_expsym_cmds_F77 | \ |
| 20581 | module_cmds_F77 | \ |
| 20582 | module_expsym_cmds_F77 | \ |
| 20583 | old_archive_from_expsyms_cmds_F77 | \ |
| 20584 | export_symbols_cmds_F77 | \ |
| 20585 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20586 | postinstall_cmds | postuninstall_cmds | \ |
| 20587 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20588 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20589 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20590 | 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] | 20591 | ;; |
| 20592 | *) |
| 20593 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20594 | ;; |
| 20595 | esac |
| 20596 | done |
| 20597 | |
| 20598 | case $lt_echo in |
| 20599 | *'\$0 --fallback-echo"') |
| 20600 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20601 | ;; |
| 20602 | esac |
| 20603 | |
| 20604 | cfgfile="$ofile" |
| 20605 | |
| 20606 | cat <<__EOF__ >> "$cfgfile" |
| 20607 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20608 | |
| 20609 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20610 | |
| 20611 | # Shell to use when invoking shell scripts. |
| 20612 | SHELL=$lt_SHELL |
| 20613 | |
| 20614 | # Whether or not to build shared libraries. |
| 20615 | build_libtool_libs=$enable_shared |
| 20616 | |
| 20617 | # Whether or not to build static libraries. |
| 20618 | build_old_libs=$enable_static |
| 20619 | |
| 20620 | # Whether or not to add -lc for building shared libraries. |
| 20621 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 20622 | |
| 20623 | # Whether or not to disallow shared libs when runtime libs are static |
| 20624 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 20625 | |
| 20626 | # Whether or not to optimize for fast installation. |
| 20627 | fast_install=$enable_fast_install |
| 20628 | |
| 20629 | # The host system. |
| 20630 | host_alias=$host_alias |
| 20631 | host=$host |
| 20632 | |
| 20633 | # An echo program that does not interpret backslashes. |
| 20634 | echo=$lt_echo |
| 20635 | |
| 20636 | # The archiver. |
| 20637 | AR=$lt_AR |
| 20638 | AR_FLAGS=$lt_AR_FLAGS |
| 20639 | |
| 20640 | # A C compiler. |
| 20641 | LTCC=$lt_LTCC |
| 20642 | |
| 20643 | # A language-specific compiler. |
| 20644 | CC=$lt_compiler_F77 |
| 20645 | |
| 20646 | # Is the compiler the GNU C compiler? |
| 20647 | with_gcc=$GCC_F77 |
| 20648 | |
| 20649 | # An ERE matcher. |
| 20650 | EGREP=$lt_EGREP |
| 20651 | |
| 20652 | # The linker used to build libraries. |
| 20653 | LD=$lt_LD_F77 |
| 20654 | |
| 20655 | # Whether we need hard or soft links. |
| 20656 | LN_S=$lt_LN_S |
| 20657 | |
| 20658 | # A BSD-compatible nm program. |
| 20659 | NM=$lt_NM |
| 20660 | |
| 20661 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20662 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20663 | |
| 20664 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20665 | MAGIC_CMD=$MAGIC_CMD |
| 20666 | |
| 20667 | # Used on cygwin: DLL creation program. |
| 20668 | DLLTOOL="$DLLTOOL" |
| 20669 | |
| 20670 | # Used on cygwin: object dumper. |
| 20671 | OBJDUMP="$OBJDUMP" |
| 20672 | |
| 20673 | # Used on cygwin: assembler. |
| 20674 | AS="$AS" |
| 20675 | |
| 20676 | # The name of the directory that contains temporary libtool files. |
| 20677 | objdir=$objdir |
| 20678 | |
| 20679 | # How to create reloadable object files. |
| 20680 | reload_flag=$lt_reload_flag |
| 20681 | reload_cmds=$lt_reload_cmds |
| 20682 | |
| 20683 | # How to pass a linker flag through the compiler. |
| 20684 | wl=$lt_lt_prog_compiler_wl_F77 |
| 20685 | |
| 20686 | # Object file suffix (normally "o"). |
| 20687 | objext="$ac_objext" |
| 20688 | |
| 20689 | # Old archive suffix (normally "a"). |
| 20690 | libext="$libext" |
| 20691 | |
| 20692 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20693 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20694 | |
| 20695 | # Executable file suffix (normally ""). |
| 20696 | exeext="$exeext" |
| 20697 | |
| 20698 | # Additional compiler flags for building library objects. |
| 20699 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 20700 | pic_mode=$pic_mode |
| 20701 | |
| 20702 | # What is the maximum length of a command? |
| 20703 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20704 | |
| 20705 | # Does compiler simultaneously support -c and -o options? |
| 20706 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 20707 | |
| 20708 | # Must we lock files when doing compilation ? |
| 20709 | need_locks=$lt_need_locks |
| 20710 | |
| 20711 | # Do we need the lib prefix for modules? |
| 20712 | need_lib_prefix=$need_lib_prefix |
| 20713 | |
| 20714 | # Do we need a version for libraries? |
| 20715 | need_version=$need_version |
| 20716 | |
| 20717 | # Whether dlopen is supported. |
| 20718 | dlopen_support=$enable_dlopen |
| 20719 | |
| 20720 | # Whether dlopen of programs is supported. |
| 20721 | dlopen_self=$enable_dlopen_self |
| 20722 | |
| 20723 | # Whether dlopen of statically linked programs is supported. |
| 20724 | dlopen_self_static=$enable_dlopen_self_static |
| 20725 | |
| 20726 | # Compiler flag to prevent dynamic linking. |
| 20727 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 20728 | |
| 20729 | # Compiler flag to turn off builtin functions. |
| 20730 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 20731 | |
| 20732 | # Compiler flag to allow reflexive dlopens. |
| 20733 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 20734 | |
| 20735 | # Compiler flag to generate shared objects directly from archives. |
| 20736 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 20737 | |
| 20738 | # Compiler flag to generate thread-safe objects. |
| 20739 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 20740 | |
| 20741 | # Library versioning type. |
| 20742 | version_type=$version_type |
| 20743 | |
| 20744 | # Format of library name prefix. |
| 20745 | libname_spec=$lt_libname_spec |
| 20746 | |
| 20747 | # List of archive names. First name is the real one, the rest are links. |
| 20748 | # The last name is the one that the linker finds with -lNAME. |
| 20749 | library_names_spec=$lt_library_names_spec |
| 20750 | |
| 20751 | # The coded name of the library, if different from the real name. |
| 20752 | soname_spec=$lt_soname_spec |
| 20753 | |
| 20754 | # Commands used to build and install an old-style archive. |
| 20755 | RANLIB=$lt_RANLIB |
| 20756 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 20757 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20758 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20759 | |
| 20760 | # Create an old-style archive from a shared archive. |
| 20761 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 20762 | |
| 20763 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20764 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 20765 | |
| 20766 | # Commands used to build and install a shared archive. |
| 20767 | archive_cmds=$lt_archive_cmds_F77 |
| 20768 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 20769 | postinstall_cmds=$lt_postinstall_cmds |
| 20770 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20771 | |
| 20772 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20773 | module_cmds=$lt_module_cmds_F77 |
| 20774 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 20775 | |
| 20776 | # Commands to strip libraries. |
| 20777 | old_striplib=$lt_old_striplib |
| 20778 | striplib=$lt_striplib |
| 20779 | |
| 20780 | # Dependencies to place before the objects being linked to create a |
| 20781 | # shared library. |
| 20782 | predep_objects=$lt_predep_objects_F77 |
| 20783 | |
| 20784 | # Dependencies to place after the objects being linked to create a |
| 20785 | # shared library. |
| 20786 | postdep_objects=$lt_postdep_objects_F77 |
| 20787 | |
| 20788 | # Dependencies to place before the objects being linked to create a |
| 20789 | # shared library. |
| 20790 | predeps=$lt_predeps_F77 |
| 20791 | |
| 20792 | # Dependencies to place after the objects being linked to create a |
| 20793 | # shared library. |
| 20794 | postdeps=$lt_postdeps_F77 |
| 20795 | |
| 20796 | # The library search path used internally by the compiler when linking |
| 20797 | # a shared library. |
| 20798 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 20799 | |
| 20800 | # Method to check whether dependent libraries are shared objects. |
| 20801 | deplibs_check_method=$lt_deplibs_check_method |
| 20802 | |
| 20803 | # Command to use when deplibs_check_method == file_magic. |
| 20804 | file_magic_cmd=$lt_file_magic_cmd |
| 20805 | |
| 20806 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20807 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 20808 | |
| 20809 | # Flag that forces no undefined symbols. |
| 20810 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 20811 | |
| 20812 | # Commands used to finish a libtool library installation in a directory. |
| 20813 | finish_cmds=$lt_finish_cmds |
| 20814 | |
| 20815 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20816 | finish_eval=$lt_finish_eval |
| 20817 | |
| 20818 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20819 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20820 | |
| 20821 | # Transform the output of nm in a proper C declaration |
| 20822 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20823 | |
| 20824 | # Transform the output of nm in a C name address pair |
| 20825 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20826 | |
| 20827 | # This is the shared library runtime path variable. |
| 20828 | runpath_var=$runpath_var |
| 20829 | |
| 20830 | # This is the shared library path variable. |
| 20831 | shlibpath_var=$shlibpath_var |
| 20832 | |
| 20833 | # Is shlibpath searched before the hard-coded library search path? |
| 20834 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20835 | |
| 20836 | # How to hardcode a shared library path into an executable. |
| 20837 | hardcode_action=$hardcode_action_F77 |
| 20838 | |
| 20839 | # Whether we should hardcode library paths into libraries. |
| 20840 | hardcode_into_libs=$hardcode_into_libs |
| 20841 | |
| 20842 | # Flag to hardcode \$libdir into a binary during linking. |
| 20843 | # This must work even if \$libdir does not exist. |
| 20844 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 20845 | |
| 20846 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20847 | # a binary during linking. This must work even if \$libdir does |
| 20848 | # not exist. |
| 20849 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 20850 | |
| 20851 | # Whether we need a single -rpath flag with a separated argument. |
| 20852 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 20853 | |
| 20854 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20855 | # resulting binary. |
| 20856 | hardcode_direct=$hardcode_direct_F77 |
| 20857 | |
| 20858 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20859 | # resulting binary. |
| 20860 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 20861 | |
| 20862 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20863 | # the resulting binary. |
| 20864 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 20865 | |
| 20866 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20867 | # and all subsequent libraries and executables linked against it. |
| 20868 | hardcode_automatic=$hardcode_automatic_F77 |
| 20869 | |
| 20870 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20871 | # restored at relink time. |
| 20872 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20873 | |
| 20874 | # Whether libtool must link a program against all its dependency libraries. |
| 20875 | link_all_deplibs=$link_all_deplibs_F77 |
| 20876 | |
| 20877 | # Compile-time system search path for libraries |
| 20878 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20879 | |
| 20880 | # Run-time system search path for libraries |
| 20881 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20882 | |
| 20883 | # Fix the shell variable \$srcfile for the compiler. |
| 20884 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 20885 | |
| 20886 | # Set to yes if exported symbols are required. |
| 20887 | always_export_symbols=$always_export_symbols_F77 |
| 20888 | |
| 20889 | # The commands to list exported symbols. |
| 20890 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 20891 | |
| 20892 | # The commands to extract the exported symbol list from a shared archive. |
| 20893 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20894 | |
| 20895 | # Symbols that should not be listed in the preloaded symbols. |
| 20896 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 20897 | |
| 20898 | # Symbols that must always be exported. |
| 20899 | include_expsyms=$lt_include_expsyms_F77 |
| 20900 | |
| 20901 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20902 | |
| 20903 | __EOF__ |
| 20904 | |
| 20905 | |
| 20906 | else |
| 20907 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20908 | # `config.status --recheck' to rerun these tests and create the |
| 20909 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20910 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20911 | if test -f "$ltmain_in"; then |
| 20912 | test -f Makefile && make "$ltmain" |
| 20913 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20914 | fi |
| 20915 | |
| 20916 | |
| 20917 | ac_ext=c |
| 20918 | ac_cpp='$CPP $CPPFLAGS' |
| 20919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20922 | |
| 20923 | CC="$lt_save_CC" |
| 20924 | |
| 20925 | else |
| 20926 | tagname="" |
| 20927 | fi |
| 20928 | ;; |
| 20929 | |
| 20930 | GCJ) |
| 20931 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20932 | ac_ext=c |
| 20933 | ac_cpp='$CPP $CPPFLAGS' |
| 20934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20937 | |
| 20938 | |
| 20939 | # Source file extension for Java test sources. |
| 20940 | ac_ext=java |
| 20941 | |
| 20942 | # Object file extension for compiled Java test sources. |
| 20943 | objext=o |
| 20944 | objext_GCJ=$objext |
| 20945 | |
| 20946 | # Code to be used in simple compile tests |
| 20947 | lt_simple_compile_test_code="class foo {}\n" |
| 20948 | |
| 20949 | # Code to be used in simple link tests |
| 20950 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 20951 | |
| 20952 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20953 | |
| 20954 | # If no C compiler was specified, use CC. |
| 20955 | LTCC=${LTCC-"$CC"} |
| 20956 | |
| 20957 | # Allow CC to be a program name with arguments. |
| 20958 | compiler=$CC |
| 20959 | |
| 20960 | |
| 20961 | # Allow CC to be a program name with arguments. |
| 20962 | lt_save_CC="$CC" |
| 20963 | CC=${GCJ-"gcj"} |
| 20964 | compiler=$CC |
| 20965 | compiler_GCJ=$CC |
| 20966 | |
| 20967 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 20968 | archive_cmds_need_lc_GCJ=no |
| 20969 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20970 | |
| 20971 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 20972 | |
| 20973 | if test "$GCC" = yes; then |
| 20974 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 20975 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20976 | |
| 20977 | 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] | 20978 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 20979 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 20980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20981 | else |
| 20982 | lt_cv_prog_compiler_rtti_exceptions=no |
| 20983 | ac_outfile=conftest.$ac_objext |
| 20984 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20985 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 20986 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20987 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20988 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20989 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20990 | # The option is referenced via a variable to avoid confusing sed. |
| 20991 | lt_compile=`echo "$ac_compile" | $SED \ |
| 20992 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 20993 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20994 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 20995 | (eval echo "\"\$as_me:20995: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20996 | (eval "$lt_compile" 2>conftest.err) |
| 20997 | ac_status=$? |
| 20998 | cat conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 20999 | echo "$as_me:20999: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21000 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21001 | # The compiler can only warn and ignore the option if not recognized |
| 21002 | # So say no if there are warnings |
| 21003 | if test ! -s conftest.err; then |
| 21004 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 21005 | fi |
| 21006 | fi |
| 21007 | $rm conftest* |
| 21008 | |
| 21009 | fi |
| 21010 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 21011 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 21012 | |
| 21013 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 21014 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 21015 | else |
| 21016 | : |
| 21017 | fi |
| 21018 | |
| 21019 | fi |
| 21020 | |
| 21021 | lt_prog_compiler_wl_GCJ= |
| 21022 | lt_prog_compiler_pic_GCJ= |
| 21023 | lt_prog_compiler_static_GCJ= |
| 21024 | |
| 21025 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21026 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 21027 | |
| 21028 | if test "$GCC" = yes; then |
| 21029 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21030 | lt_prog_compiler_static_GCJ='-static' |
| 21031 | |
| 21032 | case $host_os in |
| 21033 | aix*) |
| 21034 | # All AIX code is PIC. |
| 21035 | if test "$host_cpu" = ia64; then |
| 21036 | # AIX 5 now supports IA64 processor |
| 21037 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21038 | fi |
| 21039 | ;; |
| 21040 | |
| 21041 | amigaos*) |
| 21042 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21043 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21044 | # like `-m68040'. |
| 21045 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 21046 | ;; |
| 21047 | |
| 21048 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21049 | # PIC is the default for these OSes. |
| 21050 | ;; |
| 21051 | |
| 21052 | mingw* | pw32* | os2*) |
| 21053 | # This hack is so that the source file can tell whether it is being |
| 21054 | # built for inclusion in a dll (and should export symbols for example). |
| 21055 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21056 | ;; |
| 21057 | |
| 21058 | darwin* | rhapsody*) |
| 21059 | # PIC is the default on this platform |
| 21060 | # Common symbols not allowed in MH_DYLIB files |
| 21061 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 21062 | ;; |
| 21063 | |
| 21064 | msdosdjgpp*) |
| 21065 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21066 | # on systems that don't support them. |
| 21067 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21068 | enable_shared=no |
| 21069 | ;; |
| 21070 | |
| 21071 | sysv4*MP*) |
| 21072 | if test -d /usr/nec; then |
| 21073 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 21074 | fi |
| 21075 | ;; |
| 21076 | |
| 21077 | hpux*) |
| 21078 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21079 | # not for PA HP-UX. |
| 21080 | case "$host_cpu" in |
| 21081 | hppa*64*|ia64*) |
| 21082 | # +Z the default |
| 21083 | ;; |
| 21084 | *) |
| 21085 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21086 | ;; |
| 21087 | esac |
| 21088 | ;; |
| 21089 | |
| 21090 | *) |
| 21091 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21092 | ;; |
| 21093 | esac |
| 21094 | else |
| 21095 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21096 | case $host_os in |
| 21097 | aix*) |
| 21098 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21099 | if test "$host_cpu" = ia64; then |
| 21100 | # AIX 5 now supports IA64 processor |
| 21101 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21102 | else |
| 21103 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 21104 | fi |
| 21105 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21106 | darwin*) |
| 21107 | # PIC is the default on this platform |
| 21108 | # Common symbols not allowed in MH_DYLIB files |
| 21109 | case "$cc_basename" in |
| 21110 | xlc*) |
| 21111 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 21112 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21113 | ;; |
| 21114 | esac |
| 21115 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21116 | |
| 21117 | mingw* | pw32* | os2*) |
| 21118 | # This hack is so that the source file can tell whether it is being |
| 21119 | # built for inclusion in a dll (and should export symbols for example). |
| 21120 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21121 | ;; |
| 21122 | |
| 21123 | hpux9* | hpux10* | hpux11*) |
| 21124 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21125 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21126 | # not for PA HP-UX. |
| 21127 | case "$host_cpu" in |
| 21128 | hppa*64*|ia64*) |
| 21129 | # +Z the default |
| 21130 | ;; |
| 21131 | *) |
| 21132 | lt_prog_compiler_pic_GCJ='+Z' |
| 21133 | ;; |
| 21134 | esac |
| 21135 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21136 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 21137 | ;; |
| 21138 | |
| 21139 | irix5* | irix6* | nonstopux*) |
| 21140 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21141 | # PIC (with -KPIC) is the default. |
| 21142 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21143 | ;; |
| 21144 | |
| 21145 | newsos6) |
| 21146 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21147 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21148 | ;; |
| 21149 | |
| 21150 | linux*) |
| 21151 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21152 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21153 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21154 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21155 | lt_prog_compiler_static_GCJ='-static' |
| 21156 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21157 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21158 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21159 | # All Alpha code is PIC. |
| 21160 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21161 | ;; |
| 21162 | esac |
| 21163 | ;; |
| 21164 | |
| 21165 | osf3* | osf4* | osf5*) |
| 21166 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21167 | # All OSF/1 code is PIC. |
| 21168 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21169 | ;; |
| 21170 | |
| 21171 | sco3.2v5*) |
| 21172 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 21173 | lt_prog_compiler_static_GCJ='-dn' |
| 21174 | ;; |
| 21175 | |
| 21176 | solaris*) |
| 21177 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21178 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21179 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21180 | ;; |
| 21181 | |
| 21182 | sunos4*) |
| 21183 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 21184 | lt_prog_compiler_pic_GCJ='-PIC' |
| 21185 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21186 | ;; |
| 21187 | |
| 21188 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 21189 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21190 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21191 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21192 | ;; |
| 21193 | |
| 21194 | sysv4*MP*) |
| 21195 | if test -d /usr/nec ;then |
| 21196 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 21197 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21198 | fi |
| 21199 | ;; |
| 21200 | |
| 21201 | uts4*) |
| 21202 | lt_prog_compiler_pic_GCJ='-pic' |
| 21203 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21204 | ;; |
| 21205 | |
| 21206 | *) |
| 21207 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21208 | ;; |
| 21209 | esac |
| 21210 | fi |
| 21211 | |
| 21212 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 21213 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 21214 | |
| 21215 | # |
| 21216 | # Check to make sure the PIC flag actually works. |
| 21217 | # |
| 21218 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21219 | |
| 21220 | 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] | 21221 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 21222 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 21223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21224 | else |
| 21225 | lt_prog_compiler_pic_works_GCJ=no |
| 21226 | ac_outfile=conftest.$ac_objext |
| 21227 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21228 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 21229 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21230 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21231 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21232 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21233 | # The option is referenced via a variable to avoid confusing sed. |
| 21234 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21235 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21236 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21237 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 21238 | (eval echo "\"\$as_me:21238: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21239 | (eval "$lt_compile" 2>conftest.err) |
| 21240 | ac_status=$? |
| 21241 | cat conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 21242 | echo "$as_me:21242: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21243 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21244 | # The compiler can only warn and ignore the option if not recognized |
| 21245 | # So say no if there are warnings |
| 21246 | if test ! -s conftest.err; then |
| 21247 | lt_prog_compiler_pic_works_GCJ=yes |
| 21248 | fi |
| 21249 | fi |
| 21250 | $rm conftest* |
| 21251 | |
| 21252 | fi |
| 21253 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 21254 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 21255 | |
| 21256 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 21257 | case $lt_prog_compiler_pic_GCJ in |
| 21258 | "" | " "*) ;; |
| 21259 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 21260 | esac |
| 21261 | else |
| 21262 | lt_prog_compiler_pic_GCJ= |
| 21263 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21264 | fi |
| 21265 | |
| 21266 | fi |
| 21267 | case "$host_os" in |
| 21268 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21269 | *djgpp*) |
| 21270 | lt_prog_compiler_pic_GCJ= |
| 21271 | ;; |
| 21272 | *) |
| 21273 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 21274 | ;; |
| 21275 | esac |
| 21276 | |
| 21277 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21278 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 21279 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 21280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21281 | else |
| 21282 | lt_cv_prog_compiler_c_o_GCJ=no |
| 21283 | $rm -r conftest 2>/dev/null |
| 21284 | mkdir conftest |
| 21285 | cd conftest |
| 21286 | mkdir out |
| 21287 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21288 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21289 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21290 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21291 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21292 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21293 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21294 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21295 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21296 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21297 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 21298 | (eval echo "\"\$as_me:21298: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21299 | (eval "$lt_compile" 2>out/conftest.err) |
| 21300 | ac_status=$? |
| 21301 | cat out/conftest.err >&5 |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 21302 | echo "$as_me:21302: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21303 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21304 | then |
| 21305 | # The compiler can only warn and ignore the option if not recognized |
| 21306 | # So say no if there are warnings |
| 21307 | if test ! -s out/conftest.err; then |
| 21308 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 21309 | fi |
| 21310 | fi |
| 21311 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21312 | $rm conftest* |
| 21313 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21314 | # template instantiation |
| 21315 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21316 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21317 | cd .. |
| 21318 | rmdir conftest |
| 21319 | $rm conftest* |
| 21320 | |
| 21321 | fi |
| 21322 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 21323 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 21324 | |
| 21325 | |
| 21326 | hard_links="nottested" |
| 21327 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 21328 | # do not overwrite the value of need_locks provided by the user |
| 21329 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21330 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 21331 | hard_links=yes |
| 21332 | $rm conftest* |
| 21333 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21334 | touch conftest.a |
| 21335 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21336 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21337 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21338 | echo "${ECHO_T}$hard_links" >&6 |
| 21339 | if test "$hard_links" = no; then |
| 21340 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21341 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21342 | need_locks=warn |
| 21343 | fi |
| 21344 | else |
| 21345 | need_locks=no |
| 21346 | fi |
| 21347 | |
| 21348 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21349 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 21350 | |
| 21351 | runpath_var= |
| 21352 | allow_undefined_flag_GCJ= |
| 21353 | enable_shared_with_static_runtimes_GCJ=no |
| 21354 | archive_cmds_GCJ= |
| 21355 | archive_expsym_cmds_GCJ= |
| 21356 | old_archive_From_new_cmds_GCJ= |
| 21357 | old_archive_from_expsyms_cmds_GCJ= |
| 21358 | export_dynamic_flag_spec_GCJ= |
| 21359 | whole_archive_flag_spec_GCJ= |
| 21360 | thread_safe_flag_spec_GCJ= |
| 21361 | hardcode_libdir_flag_spec_GCJ= |
| 21362 | hardcode_libdir_flag_spec_ld_GCJ= |
| 21363 | hardcode_libdir_separator_GCJ= |
| 21364 | hardcode_direct_GCJ=no |
| 21365 | hardcode_minus_L_GCJ=no |
| 21366 | hardcode_shlibpath_var_GCJ=unsupported |
| 21367 | link_all_deplibs_GCJ=unknown |
| 21368 | hardcode_automatic_GCJ=no |
| 21369 | module_cmds_GCJ= |
| 21370 | module_expsym_cmds_GCJ= |
| 21371 | always_export_symbols_GCJ=no |
| 21372 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21373 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21374 | # included in the symbol list |
| 21375 | include_expsyms_GCJ= |
| 21376 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21377 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21378 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21379 | # as well as any symbol that contains `d'. |
| 21380 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 21381 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21382 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21383 | # the symbol is explicitly referenced. Since portable code cannot |
| 21384 | # rely on this symbol name, it's probably fine to never include it in |
| 21385 | # preloaded symbol tables. |
| 21386 | extract_expsyms_cmds= |
| 21387 | |
| 21388 | case $host_os in |
| 21389 | cygwin* | mingw* | pw32*) |
| 21390 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21391 | # When not using gcc, we currently assume that we are using |
| 21392 | # Microsoft Visual C++. |
| 21393 | if test "$GCC" != yes; then |
| 21394 | with_gnu_ld=no |
| 21395 | fi |
| 21396 | ;; |
| 21397 | openbsd*) |
| 21398 | with_gnu_ld=no |
| 21399 | ;; |
| 21400 | esac |
| 21401 | |
| 21402 | ld_shlibs_GCJ=yes |
| 21403 | if test "$with_gnu_ld" = yes; then |
| 21404 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21405 | wlarc='${wl}' |
| 21406 | |
| 21407 | # See if GNU ld supports shared libraries. |
| 21408 | case $host_os in |
| 21409 | aix3* | aix4* | aix5*) |
| 21410 | # On AIX/PPC, the GNU linker is very broken |
| 21411 | if test "$host_cpu" != ia64; then |
| 21412 | ld_shlibs_GCJ=no |
| 21413 | cat <<EOF 1>&2 |
| 21414 | |
| 21415 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21416 | *** to be unable to reliably create shared libraries on AIX. |
| 21417 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21418 | *** really care for shared libraries, you may want to modify your PATH |
| 21419 | *** so that a non-GNU linker is found, and then restart. |
| 21420 | |
| 21421 | EOF |
| 21422 | fi |
| 21423 | ;; |
| 21424 | |
| 21425 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21426 | 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] | 21427 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21428 | hardcode_minus_L_GCJ=yes |
| 21429 | |
| 21430 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21431 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21432 | # to version 4, is to share data among multiple programs linked |
| 21433 | # with the same dynamic library. Since this doesn't match the |
| 21434 | # behavior of shared libraries on other platforms, we can't use |
| 21435 | # them. |
| 21436 | ld_shlibs_GCJ=no |
| 21437 | ;; |
| 21438 | |
| 21439 | beos*) |
| 21440 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21441 | allow_undefined_flag_GCJ=unsupported |
| 21442 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21443 | # support --undefined. This deserves some investigation. FIXME |
| 21444 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21445 | else |
| 21446 | ld_shlibs_GCJ=no |
| 21447 | fi |
| 21448 | ;; |
| 21449 | |
| 21450 | cygwin* | mingw* | pw32*) |
| 21451 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 21452 | # as there is no search path for DLLs. |
| 21453 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21454 | allow_undefined_flag_GCJ=unsupported |
| 21455 | always_export_symbols_GCJ=no |
| 21456 | enable_shared_with_static_runtimes_GCJ=yes |
| 21457 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 21458 | |
| 21459 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 21460 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 21461 | # If the export-symbols file already is a .def file (1st line |
| 21462 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21463 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21464 | cp $export_symbols $output_objdir/$soname.def; |
| 21465 | else |
| 21466 | echo EXPORTS > $output_objdir/$soname.def; |
| 21467 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21468 | fi~ |
| 21469 | $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] | 21470 | else |
| 21471 | ld_shlibs=no |
| 21472 | fi |
| 21473 | ;; |
| 21474 | |
| 21475 | netbsd*) |
| 21476 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21477 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21478 | wlarc= |
| 21479 | else |
| 21480 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21481 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21482 | fi |
| 21483 | ;; |
| 21484 | |
| 21485 | solaris* | sysv5*) |
| 21486 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21487 | ld_shlibs_GCJ=no |
| 21488 | cat <<EOF 1>&2 |
| 21489 | |
| 21490 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21491 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21492 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21493 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21494 | *** your PATH or compiler configuration so that the native linker is |
| 21495 | *** used, and then restart. |
| 21496 | |
| 21497 | EOF |
| 21498 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21499 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21500 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21501 | else |
| 21502 | ld_shlibs_GCJ=no |
| 21503 | fi |
| 21504 | ;; |
| 21505 | |
| 21506 | sunos4*) |
| 21507 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21508 | wlarc= |
| 21509 | hardcode_direct_GCJ=yes |
| 21510 | hardcode_shlibpath_var_GCJ=no |
| 21511 | ;; |
| 21512 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21513 | linux*) |
| 21514 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21515 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21516 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 21517 | supports_anon_versioning=no |
| 21518 | case `$LD -v 2>/dev/null` in |
| 21519 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21520 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21521 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21522 | *\ 2.11.*) ;; # other 2.11 versions |
| 21523 | *) supports_anon_versioning=yes ;; |
| 21524 | esac |
| 21525 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21526 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21527 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21528 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21529 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21530 | else |
| 21531 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 21532 | fi |
| 21533 | else |
| 21534 | ld_shlibs_GCJ=no |
| 21535 | fi |
| 21536 | ;; |
| 21537 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21538 | *) |
| 21539 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21540 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21541 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21542 | else |
| 21543 | ld_shlibs_GCJ=no |
| 21544 | fi |
| 21545 | ;; |
| 21546 | esac |
| 21547 | |
| 21548 | if test "$ld_shlibs_GCJ" = yes; then |
| 21549 | runpath_var=LD_RUN_PATH |
| 21550 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 21551 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 21552 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21553 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21554 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21555 | else |
| 21556 | whole_archive_flag_spec_GCJ= |
| 21557 | fi |
| 21558 | fi |
| 21559 | else |
| 21560 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21561 | case $host_os in |
| 21562 | aix3*) |
| 21563 | allow_undefined_flag_GCJ=unsupported |
| 21564 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21565 | 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] | 21566 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21567 | # are no directories specified by -L. |
| 21568 | hardcode_minus_L_GCJ=yes |
| 21569 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 21570 | # Neither direct hardcoding nor static linking is supported with a |
| 21571 | # broken collect2. |
| 21572 | hardcode_direct_GCJ=unsupported |
| 21573 | fi |
| 21574 | ;; |
| 21575 | |
| 21576 | aix4* | aix5*) |
| 21577 | if test "$host_cpu" = ia64; then |
| 21578 | # On IA64, the linker does run time linking by default, so we don't |
| 21579 | # have to do anything special. |
| 21580 | aix_use_runtimelinking=no |
| 21581 | exp_sym_flag='-Bexport' |
| 21582 | no_entry_flag="" |
| 21583 | else |
| 21584 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21585 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21586 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21587 | 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' |
| 21588 | else |
| 21589 | 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' |
| 21590 | fi |
| 21591 | aix_use_runtimelinking=no |
| 21592 | |
| 21593 | # Test if we are trying to use run time linking or normal |
| 21594 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21595 | # need to do runtime linking. |
| 21596 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21597 | for ld_flag in $LDFLAGS; do |
| 21598 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21599 | aix_use_runtimelinking=yes |
| 21600 | break |
| 21601 | fi |
| 21602 | done |
| 21603 | esac |
| 21604 | |
| 21605 | exp_sym_flag='-bexport' |
| 21606 | no_entry_flag='-bnoentry' |
| 21607 | fi |
| 21608 | |
| 21609 | # When large executables or shared objects are built, AIX ld can |
| 21610 | # have problems creating the table of contents. If linking a library |
| 21611 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21612 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21613 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21614 | |
| 21615 | archive_cmds_GCJ='' |
| 21616 | hardcode_direct_GCJ=yes |
| 21617 | hardcode_libdir_separator_GCJ=':' |
| 21618 | link_all_deplibs_GCJ=yes |
| 21619 | |
| 21620 | if test "$GCC" = yes; then |
| 21621 | case $host_os in aix4.012|aix4.012.*) |
| 21622 | # We only want to do this on AIX 4.2 and lower, the check |
| 21623 | # below for broken collect2 doesn't work under 4.3+ |
| 21624 | collect2name=`${CC} -print-prog-name=collect2` |
| 21625 | if test -f "$collect2name" && \ |
| 21626 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21627 | then |
| 21628 | # We have reworked collect2 |
| 21629 | hardcode_direct_GCJ=yes |
| 21630 | else |
| 21631 | # We have old collect2 |
| 21632 | hardcode_direct_GCJ=unsupported |
| 21633 | # It fails to find uninstalled libraries when the uninstalled |
| 21634 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21635 | # to unsupported forces relinking |
| 21636 | hardcode_minus_L_GCJ=yes |
| 21637 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21638 | hardcode_libdir_separator_GCJ= |
| 21639 | fi |
| 21640 | esac |
| 21641 | shared_flag='-shared' |
| 21642 | else |
| 21643 | # not using gcc |
| 21644 | if test "$host_cpu" = ia64; then |
| 21645 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21646 | # chokes on -Wl,-G. The following line is correct: |
| 21647 | shared_flag='-G' |
| 21648 | else |
| 21649 | if test "$aix_use_runtimelinking" = yes; then |
| 21650 | shared_flag='${wl}-G' |
| 21651 | else |
| 21652 | shared_flag='${wl}-bM:SRE' |
| 21653 | fi |
| 21654 | fi |
| 21655 | fi |
| 21656 | |
| 21657 | # It seems that -bexpall does not export symbols beginning with |
| 21658 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21659 | always_export_symbols_GCJ=yes |
| 21660 | if test "$aix_use_runtimelinking" = yes; then |
| 21661 | # Warning - without using the other runtime loading flags (-brtl), |
| 21662 | # -berok will link without error, but may produce a broken library. |
| 21663 | allow_undefined_flag_GCJ='-berok' |
| 21664 | # Determine the default libpath from the value encoded in an empty executable. |
| 21665 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21666 | /* confdefs.h. */ |
| 21667 | _ACEOF |
| 21668 | cat confdefs.h >>conftest.$ac_ext |
| 21669 | cat >>conftest.$ac_ext <<_ACEOF |
| 21670 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21671 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21672 | int |
| 21673 | main () |
| 21674 | { |
| 21675 | |
| 21676 | ; |
| 21677 | return 0; |
| 21678 | } |
| 21679 | _ACEOF |
| 21680 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21682 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21683 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21685 | rm -f conftest.er1 |
| 21686 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21688 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21689 | { ac_try='test -z "$ac_c_werror_flag" |
| 21690 | || test ! -s conftest.err' |
| 21691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21692 | (eval $ac_try) 2>&5 |
| 21693 | ac_status=$? |
| 21694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21695 | (exit $ac_status); }; } && |
| 21696 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21698 | (eval $ac_try) 2>&5 |
| 21699 | ac_status=$? |
| 21700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21701 | (exit $ac_status); }; }; then |
| 21702 | |
| 21703 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21704 | }'` |
| 21705 | # Check for a 64-bit object if we didn't find anything. |
| 21706 | 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; } |
| 21707 | }'`; fi |
| 21708 | else |
| 21709 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21711 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21712 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21713 | rm -f conftest.err conftest.$ac_objext \ |
| 21714 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21715 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21716 | |
| 21717 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21718 | 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" |
| 21719 | else |
| 21720 | if test "$host_cpu" = ia64; then |
| 21721 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 21722 | allow_undefined_flag_GCJ="-z nodefs" |
| 21723 | 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" |
| 21724 | else |
| 21725 | # Determine the default libpath from the value encoded in an empty executable. |
| 21726 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21727 | /* confdefs.h. */ |
| 21728 | _ACEOF |
| 21729 | cat confdefs.h >>conftest.$ac_ext |
| 21730 | cat >>conftest.$ac_ext <<_ACEOF |
| 21731 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21732 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21733 | int |
| 21734 | main () |
| 21735 | { |
| 21736 | |
| 21737 | ; |
| 21738 | return 0; |
| 21739 | } |
| 21740 | _ACEOF |
| 21741 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21743 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21744 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21746 | rm -f conftest.er1 |
| 21747 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21749 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21750 | { ac_try='test -z "$ac_c_werror_flag" |
| 21751 | || test ! -s conftest.err' |
| 21752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21753 | (eval $ac_try) 2>&5 |
| 21754 | ac_status=$? |
| 21755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21756 | (exit $ac_status); }; } && |
| 21757 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 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); }; }; then |
| 21763 | |
| 21764 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21765 | }'` |
| 21766 | # Check for a 64-bit object if we didn't find anything. |
| 21767 | 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; } |
| 21768 | }'`; fi |
| 21769 | else |
| 21770 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21772 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21773 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21774 | rm -f conftest.err conftest.$ac_objext \ |
| 21775 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21776 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21777 | |
| 21778 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21779 | # Warning - without using the other run time loading flags, |
| 21780 | # -berok will link without error, but may produce a broken library. |
| 21781 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 21782 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 21783 | # -bexpall does not export symbols beginning with underscore (_) |
| 21784 | always_export_symbols_GCJ=yes |
| 21785 | # Exported symbols can be pulled into shared objects from archives |
| 21786 | whole_archive_flag_spec_GCJ=' ' |
| 21787 | archive_cmds_need_lc_GCJ=yes |
| 21788 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21789 | 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] | 21790 | fi |
| 21791 | fi |
| 21792 | ;; |
| 21793 | |
| 21794 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21795 | 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] | 21796 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21797 | hardcode_minus_L_GCJ=yes |
| 21798 | # see comment about different semantics on the GNU ld section |
| 21799 | ld_shlibs_GCJ=no |
| 21800 | ;; |
| 21801 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21802 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21803 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 21804 | ;; |
| 21805 | |
| 21806 | cygwin* | mingw* | pw32*) |
| 21807 | # When not using gcc, we currently assume that we are using |
| 21808 | # Microsoft Visual C++. |
| 21809 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21810 | # no search path for DLLs. |
| 21811 | hardcode_libdir_flag_spec_GCJ=' ' |
| 21812 | allow_undefined_flag_GCJ=unsupported |
| 21813 | # Tell ltmain to make .lib files, not .a files. |
| 21814 | libext=lib |
| 21815 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21816 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21817 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21818 | 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] | 21819 | # The linker will automatically build a .lib file if we build a DLL. |
| 21820 | old_archive_From_new_cmds_GCJ='true' |
| 21821 | # FIXME: Should let the user specify the lib program. |
| 21822 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 21823 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 21824 | enable_shared_with_static_runtimes_GCJ=yes |
| 21825 | ;; |
| 21826 | |
| 21827 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21828 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21829 | rhapsody* | darwin1.[012]) |
| 21830 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 21831 | ;; |
| 21832 | *) # Darwin 1.3 on |
| 21833 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 21834 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21835 | else |
| 21836 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 21837 | 10.[012]) |
| 21838 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21839 | ;; |
| 21840 | 10.*) |
| 21841 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 21842 | ;; |
| 21843 | esac |
| 21844 | fi |
| 21845 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21846 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21847 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21848 | hardcode_direct_GCJ=no |
| 21849 | hardcode_automatic_GCJ=yes |
| 21850 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21851 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21852 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21853 | if test "$GCC" = yes ; then |
| 21854 | output_verbose_link_cmd='echo' |
| 21855 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 21856 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 21857 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21858 | 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}' |
| 21859 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21860 | else |
| 21861 | case "$cc_basename" in |
| 21862 | xlc*) |
| 21863 | output_verbose_link_cmd='echo' |
| 21864 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 21865 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 21866 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21867 | 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}' |
| 21868 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21869 | ;; |
| 21870 | *) |
| 21871 | ld_shlibs_GCJ=no |
| 21872 | ;; |
| 21873 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21874 | fi |
| 21875 | ;; |
| 21876 | |
| 21877 | dgux*) |
| 21878 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21879 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21880 | hardcode_shlibpath_var_GCJ=no |
| 21881 | ;; |
| 21882 | |
| 21883 | freebsd1*) |
| 21884 | ld_shlibs_GCJ=no |
| 21885 | ;; |
| 21886 | |
| 21887 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21888 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21889 | # does not break anything, and helps significantly (at the cost of a little |
| 21890 | # extra space). |
| 21891 | freebsd2.2*) |
| 21892 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21893 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 21894 | hardcode_direct_GCJ=yes |
| 21895 | hardcode_shlibpath_var_GCJ=no |
| 21896 | ;; |
| 21897 | |
| 21898 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21899 | freebsd2*) |
| 21900 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21901 | hardcode_direct_GCJ=yes |
| 21902 | hardcode_minus_L_GCJ=yes |
| 21903 | hardcode_shlibpath_var_GCJ=no |
| 21904 | ;; |
| 21905 | |
| 21906 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21907 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21908 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21909 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 21910 | hardcode_direct_GCJ=yes |
| 21911 | hardcode_shlibpath_var_GCJ=no |
| 21912 | ;; |
| 21913 | |
| 21914 | hpux9*) |
| 21915 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21916 | 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] | 21917 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21918 | 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] | 21919 | fi |
| 21920 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 21921 | hardcode_libdir_separator_GCJ=: |
| 21922 | hardcode_direct_GCJ=yes |
| 21923 | |
| 21924 | # hardcode_minus_L: Not really in the search PATH, |
| 21925 | # but as the default location of the library. |
| 21926 | hardcode_minus_L_GCJ=yes |
| 21927 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 21928 | ;; |
| 21929 | |
| 21930 | hpux10* | hpux11*) |
| 21931 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21932 | case "$host_cpu" in |
| 21933 | hppa*64*|ia64*) |
| 21934 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21935 | ;; |
| 21936 | *) |
| 21937 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21938 | ;; |
| 21939 | esac |
| 21940 | else |
| 21941 | case "$host_cpu" in |
| 21942 | hppa*64*|ia64*) |
| 21943 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21944 | ;; |
| 21945 | *) |
| 21946 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21947 | ;; |
| 21948 | esac |
| 21949 | fi |
| 21950 | if test "$with_gnu_ld" = no; then |
| 21951 | case "$host_cpu" in |
| 21952 | hppa*64*) |
| 21953 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 21954 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 21955 | hardcode_libdir_separator_GCJ=: |
| 21956 | hardcode_direct_GCJ=no |
| 21957 | hardcode_shlibpath_var_GCJ=no |
| 21958 | ;; |
| 21959 | ia64*) |
| 21960 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21961 | hardcode_direct_GCJ=no |
| 21962 | hardcode_shlibpath_var_GCJ=no |
| 21963 | |
| 21964 | # hardcode_minus_L: Not really in the search PATH, |
| 21965 | # but as the default location of the library. |
| 21966 | hardcode_minus_L_GCJ=yes |
| 21967 | ;; |
| 21968 | *) |
| 21969 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 21970 | hardcode_libdir_separator_GCJ=: |
| 21971 | hardcode_direct_GCJ=yes |
| 21972 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 21973 | |
| 21974 | # hardcode_minus_L: Not really in the search PATH, |
| 21975 | # but as the default location of the library. |
| 21976 | hardcode_minus_L_GCJ=yes |
| 21977 | ;; |
| 21978 | esac |
| 21979 | fi |
| 21980 | ;; |
| 21981 | |
| 21982 | irix5* | irix6* | nonstopux*) |
| 21983 | if test "$GCC" = yes; then |
| 21984 | 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' |
| 21985 | else |
| 21986 | 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' |
| 21987 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 21988 | fi |
| 21989 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 21990 | hardcode_libdir_separator_GCJ=: |
| 21991 | link_all_deplibs_GCJ=yes |
| 21992 | ;; |
| 21993 | |
| 21994 | netbsd*) |
| 21995 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21996 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 21997 | else |
| 21998 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 21999 | fi |
| 22000 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22001 | hardcode_direct_GCJ=yes |
| 22002 | hardcode_shlibpath_var_GCJ=no |
| 22003 | ;; |
| 22004 | |
| 22005 | newsos6) |
| 22006 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22007 | hardcode_direct_GCJ=yes |
| 22008 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22009 | hardcode_libdir_separator_GCJ=: |
| 22010 | hardcode_shlibpath_var_GCJ=no |
| 22011 | ;; |
| 22012 | |
| 22013 | openbsd*) |
| 22014 | hardcode_direct_GCJ=yes |
| 22015 | hardcode_shlibpath_var_GCJ=no |
| 22016 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22017 | 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] | 22018 | 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] | 22019 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22020 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22021 | else |
| 22022 | case $host_os in |
| 22023 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22024 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22025 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22026 | ;; |
| 22027 | *) |
| 22028 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22029 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22030 | ;; |
| 22031 | esac |
| 22032 | fi |
| 22033 | ;; |
| 22034 | |
| 22035 | os2*) |
| 22036 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22037 | hardcode_minus_L_GCJ=yes |
| 22038 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22039 | 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] | 22040 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22041 | ;; |
| 22042 | |
| 22043 | osf3*) |
| 22044 | if test "$GCC" = yes; then |
| 22045 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22046 | 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' |
| 22047 | else |
| 22048 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22049 | 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' |
| 22050 | fi |
| 22051 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22052 | hardcode_libdir_separator_GCJ=: |
| 22053 | ;; |
| 22054 | |
| 22055 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22056 | if test "$GCC" = yes; then |
| 22057 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22058 | 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' |
| 22059 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22060 | else |
| 22061 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22062 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22063 | 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~ |
| 22064 | $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' |
| 22065 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22066 | # Both c and cxx compiler support -rpath directly |
| 22067 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 22068 | fi |
| 22069 | hardcode_libdir_separator_GCJ=: |
| 22070 | ;; |
| 22071 | |
| 22072 | sco3.2v5*) |
| 22073 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22074 | hardcode_shlibpath_var_GCJ=no |
| 22075 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 22076 | runpath_var=LD_RUN_PATH |
| 22077 | hardcode_runpath_var=yes |
| 22078 | ;; |
| 22079 | |
| 22080 | solaris*) |
| 22081 | no_undefined_flag_GCJ=' -z text' |
| 22082 | if test "$GCC" = yes; then |
| 22083 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22084 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22085 | $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] | 22086 | else |
| 22087 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22088 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22089 | $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] | 22090 | fi |
| 22091 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22092 | hardcode_shlibpath_var_GCJ=no |
| 22093 | case $host_os in |
| 22094 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 22095 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22096 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 22097 | esac |
| 22098 | link_all_deplibs_GCJ=yes |
| 22099 | ;; |
| 22100 | |
| 22101 | sunos4*) |
| 22102 | if test "x$host_vendor" = xsequent; then |
| 22103 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22104 | # files that make .init and .fini sections work. |
| 22105 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22106 | else |
| 22107 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22108 | fi |
| 22109 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22110 | hardcode_direct_GCJ=yes |
| 22111 | hardcode_minus_L_GCJ=yes |
| 22112 | hardcode_shlibpath_var_GCJ=no |
| 22113 | ;; |
| 22114 | |
| 22115 | sysv4) |
| 22116 | case $host_vendor in |
| 22117 | sni) |
| 22118 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22119 | hardcode_direct_GCJ=yes # is this really true??? |
| 22120 | ;; |
| 22121 | siemens) |
| 22122 | ## LD is ld it makes a PLAMLIB |
| 22123 | ## CC just makes a GrossModule. |
| 22124 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22125 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 22126 | hardcode_direct_GCJ=no |
| 22127 | ;; |
| 22128 | motorola) |
| 22129 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22130 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 22131 | ;; |
| 22132 | esac |
| 22133 | runpath_var='LD_RUN_PATH' |
| 22134 | hardcode_shlibpath_var_GCJ=no |
| 22135 | ;; |
| 22136 | |
| 22137 | sysv4.3*) |
| 22138 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22139 | hardcode_shlibpath_var_GCJ=no |
| 22140 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 22141 | ;; |
| 22142 | |
| 22143 | sysv4*MP*) |
| 22144 | if test -d /usr/nec; then |
| 22145 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22146 | hardcode_shlibpath_var_GCJ=no |
| 22147 | runpath_var=LD_RUN_PATH |
| 22148 | hardcode_runpath_var=yes |
| 22149 | ld_shlibs_GCJ=yes |
| 22150 | fi |
| 22151 | ;; |
| 22152 | |
| 22153 | sysv4.2uw2*) |
| 22154 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22155 | hardcode_direct_GCJ=yes |
| 22156 | hardcode_minus_L_GCJ=no |
| 22157 | hardcode_shlibpath_var_GCJ=no |
| 22158 | hardcode_runpath_var=yes |
| 22159 | runpath_var=LD_RUN_PATH |
| 22160 | ;; |
| 22161 | |
| 22162 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 22163 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 22164 | if test "$GCC" = yes; then |
| 22165 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22166 | else |
| 22167 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22168 | fi |
| 22169 | runpath_var='LD_RUN_PATH' |
| 22170 | hardcode_shlibpath_var_GCJ=no |
| 22171 | ;; |
| 22172 | |
| 22173 | sysv5*) |
| 22174 | no_undefined_flag_GCJ=' -z text' |
| 22175 | # $CC -shared without GNU ld will not create a library from C++ |
| 22176 | # object files and a static libstdc++, better avoid it by now |
| 22177 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22178 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22179 | $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] | 22180 | hardcode_libdir_flag_spec_GCJ= |
| 22181 | hardcode_shlibpath_var_GCJ=no |
| 22182 | runpath_var='LD_RUN_PATH' |
| 22183 | ;; |
| 22184 | |
| 22185 | uts4*) |
| 22186 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22187 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22188 | hardcode_shlibpath_var_GCJ=no |
| 22189 | ;; |
| 22190 | |
| 22191 | *) |
| 22192 | ld_shlibs_GCJ=no |
| 22193 | ;; |
| 22194 | esac |
| 22195 | fi |
| 22196 | |
| 22197 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 22198 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 22199 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 22200 | |
| 22201 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22202 | if test "$GCC" = yes; then |
| 22203 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22204 | fi |
| 22205 | |
| 22206 | # |
| 22207 | # Do we need to explicitly link libc? |
| 22208 | # |
| 22209 | case "x$archive_cmds_need_lc_GCJ" in |
| 22210 | x|xyes) |
| 22211 | # Assume -lc should be added |
| 22212 | archive_cmds_need_lc_GCJ=yes |
| 22213 | |
| 22214 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22215 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22216 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22217 | # FIXME: we may have to deal with multi-command sequences. |
| 22218 | ;; |
| 22219 | '$CC '*) |
| 22220 | # Test whether the compiler implicitly links with -lc since on some |
| 22221 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22222 | # to ld, don't add -lc before -lgcc. |
| 22223 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22224 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 22225 | $rm conftest* |
| 22226 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22227 | |
| 22228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22229 | (eval $ac_compile) 2>&5 |
| 22230 | ac_status=$? |
| 22231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22232 | (exit $ac_status); } 2>conftest.err; then |
| 22233 | soname=conftest |
| 22234 | lib=conftest |
| 22235 | libobjs=conftest.$ac_objext |
| 22236 | deplibs= |
| 22237 | wl=$lt_prog_compiler_wl_GCJ |
| 22238 | compiler_flags=-v |
| 22239 | linker_flags=-v |
| 22240 | verstring= |
| 22241 | output_objdir=. |
| 22242 | libname=conftest |
| 22243 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 22244 | allow_undefined_flag_GCJ= |
| 22245 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22246 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22247 | ac_status=$? |
| 22248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22249 | (exit $ac_status); } |
| 22250 | then |
| 22251 | archive_cmds_need_lc_GCJ=no |
| 22252 | else |
| 22253 | archive_cmds_need_lc_GCJ=yes |
| 22254 | fi |
| 22255 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 22256 | else |
| 22257 | cat conftest.err 1>&5 |
| 22258 | fi |
| 22259 | $rm conftest* |
| 22260 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 22261 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 22262 | ;; |
| 22263 | esac |
| 22264 | fi |
| 22265 | ;; |
| 22266 | esac |
| 22267 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22268 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22269 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 22270 | library_names_spec= |
| 22271 | libname_spec='lib$name' |
| 22272 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22273 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22274 | postinstall_cmds= |
| 22275 | postuninstall_cmds= |
| 22276 | finish_cmds= |
| 22277 | finish_eval= |
| 22278 | shlibpath_var= |
| 22279 | shlibpath_overrides_runpath=unknown |
| 22280 | version_type=none |
| 22281 | dynamic_linker="$host_os ld.so" |
| 22282 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22283 | if test "$GCC" = yes; then |
| 22284 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22285 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22286 | # if the path contains ";" then we assume it to be the separator |
| 22287 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22288 | # assumed that no part of a normal pathname contains ";" but that should |
| 22289 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22290 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22291 | else |
| 22292 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22293 | fi |
| 22294 | else |
| 22295 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22296 | fi |
| 22297 | need_lib_prefix=unknown |
| 22298 | hardcode_into_libs=no |
| 22299 | |
| 22300 | # when you set need_version to no, make sure it does not cause -set_version |
| 22301 | # flags to be left without arguments |
| 22302 | need_version=unknown |
| 22303 | |
| 22304 | case $host_os in |
| 22305 | aix3*) |
| 22306 | version_type=linux |
| 22307 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22308 | shlibpath_var=LIBPATH |
| 22309 | |
| 22310 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22311 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22312 | ;; |
| 22313 | |
| 22314 | aix4* | aix5*) |
| 22315 | version_type=linux |
| 22316 | need_lib_prefix=no |
| 22317 | need_version=no |
| 22318 | hardcode_into_libs=yes |
| 22319 | if test "$host_cpu" = ia64; then |
| 22320 | # AIX 5 supports IA64 |
| 22321 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22322 | shlibpath_var=LD_LIBRARY_PATH |
| 22323 | else |
| 22324 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22325 | # for dependence libraries. The import file would start with |
| 22326 | # the line `#! .'. This would cause the generated library to |
| 22327 | # depend on `.', always an invalid library. This was fixed in |
| 22328 | # development snapshots of GCC prior to 3.0. |
| 22329 | case $host_os in |
| 22330 | aix4 | aix4.[01] | aix4.[01].*) |
| 22331 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22332 | echo ' yes ' |
| 22333 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22334 | : |
| 22335 | else |
| 22336 | can_build_shared=no |
| 22337 | fi |
| 22338 | ;; |
| 22339 | esac |
| 22340 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22341 | # soname into executable. Probably we can add versioning support to |
| 22342 | # collect2, so additional links can be useful in future. |
| 22343 | if test "$aix_use_runtimelinking" = yes; then |
| 22344 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22345 | # instead of lib<name>.a to let people know that these are not |
| 22346 | # typical AIX shared libraries. |
| 22347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22348 | else |
| 22349 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22350 | # and later when we are not doing run time linking. |
| 22351 | library_names_spec='${libname}${release}.a $libname.a' |
| 22352 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22353 | fi |
| 22354 | shlibpath_var=LIBPATH |
| 22355 | fi |
| 22356 | ;; |
| 22357 | |
| 22358 | amigaos*) |
| 22359 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22360 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22361 | 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] | 22362 | ;; |
| 22363 | |
| 22364 | beos*) |
| 22365 | library_names_spec='${libname}${shared_ext}' |
| 22366 | dynamic_linker="$host_os ld.so" |
| 22367 | shlibpath_var=LIBRARY_PATH |
| 22368 | ;; |
| 22369 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22370 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22371 | version_type=linux |
| 22372 | need_version=no |
| 22373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22374 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22375 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22376 | shlibpath_var=LD_LIBRARY_PATH |
| 22377 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22378 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22379 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22380 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22381 | # libtool to hard-code these into programs |
| 22382 | ;; |
| 22383 | |
| 22384 | cygwin* | mingw* | pw32*) |
| 22385 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22386 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22387 | need_version=no |
| 22388 | need_lib_prefix=no |
| 22389 | |
| 22390 | case $GCC,$host_os in |
| 22391 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22392 | library_names_spec='$libname.dll.a' |
| 22393 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22394 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22395 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22396 | dldir=$destdir/`dirname \$dlpath`~ |
| 22397 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22398 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22399 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22400 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22401 | $rm \$dlpath' |
| 22402 | shlibpath_overrides_runpath=yes |
| 22403 | |
| 22404 | case $host_os in |
| 22405 | cygwin*) |
| 22406 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22407 | 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] | 22408 | 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] | 22409 | ;; |
| 22410 | mingw*) |
| 22411 | # MinGW DLLs use traditional 'lib' prefix |
| 22412 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22413 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22414 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22415 | # It is most probably a Windows format PATH printed by |
| 22416 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22417 | # path with ; separators, and with drive letters. We can handle the |
| 22418 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22419 | # especially as we might pass files found there to a mingw objdump, |
| 22420 | # which wouldn't understand a cygwinified path. Ahh. |
| 22421 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22422 | else |
| 22423 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22424 | fi |
| 22425 | ;; |
| 22426 | pw32*) |
| 22427 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 22428 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 22429 | ;; |
| 22430 | esac |
| 22431 | ;; |
| 22432 | |
| 22433 | *) |
| 22434 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22435 | ;; |
| 22436 | esac |
| 22437 | dynamic_linker='Win32 ld.exe' |
| 22438 | # FIXME: first we should search . and the directory the executable is in |
| 22439 | shlibpath_var=PATH |
| 22440 | ;; |
| 22441 | |
| 22442 | darwin* | rhapsody*) |
| 22443 | dynamic_linker="$host_os dyld" |
| 22444 | version_type=darwin |
| 22445 | need_lib_prefix=no |
| 22446 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22447 | 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] | 22448 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22449 | shlibpath_overrides_runpath=yes |
| 22450 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22451 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22452 | # 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] | 22453 | if test "$GCC" = yes; then |
| 22454 | 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"` |
| 22455 | else |
| 22456 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22457 | fi |
| 22458 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22459 | ;; |
| 22460 | |
| 22461 | dgux*) |
| 22462 | version_type=linux |
| 22463 | need_lib_prefix=no |
| 22464 | need_version=no |
| 22465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22466 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22467 | shlibpath_var=LD_LIBRARY_PATH |
| 22468 | ;; |
| 22469 | |
| 22470 | freebsd1*) |
| 22471 | dynamic_linker=no |
| 22472 | ;; |
| 22473 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22474 | kfreebsd*-gnu) |
| 22475 | version_type=linux |
| 22476 | need_lib_prefix=no |
| 22477 | need_version=no |
| 22478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22479 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22480 | shlibpath_var=LD_LIBRARY_PATH |
| 22481 | shlibpath_overrides_runpath=no |
| 22482 | hardcode_into_libs=yes |
| 22483 | dynamic_linker='GNU ld.so' |
| 22484 | ;; |
| 22485 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22486 | freebsd*) |
| 22487 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 22488 | version_type=freebsd-$objformat |
| 22489 | case $version_type in |
| 22490 | freebsd-elf*) |
| 22491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22492 | need_version=no |
| 22493 | need_lib_prefix=no |
| 22494 | ;; |
| 22495 | freebsd-*) |
| 22496 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22497 | need_version=yes |
| 22498 | ;; |
| 22499 | esac |
| 22500 | shlibpath_var=LD_LIBRARY_PATH |
| 22501 | case $host_os in |
| 22502 | freebsd2*) |
| 22503 | shlibpath_overrides_runpath=yes |
| 22504 | ;; |
| 22505 | freebsd3.01* | freebsdelf3.01*) |
| 22506 | shlibpath_overrides_runpath=yes |
| 22507 | hardcode_into_libs=yes |
| 22508 | ;; |
| 22509 | *) # from 3.2 on |
| 22510 | shlibpath_overrides_runpath=no |
| 22511 | hardcode_into_libs=yes |
| 22512 | ;; |
| 22513 | esac |
| 22514 | ;; |
| 22515 | |
| 22516 | gnu*) |
| 22517 | version_type=linux |
| 22518 | need_lib_prefix=no |
| 22519 | need_version=no |
| 22520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22521 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22522 | shlibpath_var=LD_LIBRARY_PATH |
| 22523 | hardcode_into_libs=yes |
| 22524 | ;; |
| 22525 | |
| 22526 | hpux9* | hpux10* | hpux11*) |
| 22527 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22528 | # link against other versions. |
| 22529 | version_type=sunos |
| 22530 | need_lib_prefix=no |
| 22531 | need_version=no |
| 22532 | case "$host_cpu" in |
| 22533 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22534 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22535 | hardcode_into_libs=yes |
| 22536 | dynamic_linker="$host_os dld.so" |
| 22537 | shlibpath_var=LD_LIBRARY_PATH |
| 22538 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22540 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22541 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22542 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22543 | else |
| 22544 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22545 | fi |
| 22546 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22547 | ;; |
| 22548 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22549 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22550 | hardcode_into_libs=yes |
| 22551 | dynamic_linker="$host_os dld.sl" |
| 22552 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22553 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22555 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22556 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22557 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22558 | ;; |
| 22559 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22560 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22561 | dynamic_linker="$host_os dld.sl" |
| 22562 | shlibpath_var=SHLIB_PATH |
| 22563 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22565 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22566 | ;; |
| 22567 | esac |
| 22568 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22569 | postinstall_cmds='chmod 555 $lib' |
| 22570 | ;; |
| 22571 | |
| 22572 | irix5* | irix6* | nonstopux*) |
| 22573 | case $host_os in |
| 22574 | nonstopux*) version_type=nonstopux ;; |
| 22575 | *) |
| 22576 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22577 | version_type=linux |
| 22578 | else |
| 22579 | version_type=irix |
| 22580 | fi ;; |
| 22581 | esac |
| 22582 | need_lib_prefix=no |
| 22583 | need_version=no |
| 22584 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22586 | case $host_os in |
| 22587 | irix5* | nonstopux*) |
| 22588 | libsuff= shlibsuff= |
| 22589 | ;; |
| 22590 | *) |
| 22591 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22592 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22593 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22594 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22595 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22596 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22597 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22598 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22599 | esac |
| 22600 | ;; |
| 22601 | esac |
| 22602 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22603 | shlibpath_overrides_runpath=no |
| 22604 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22605 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22606 | hardcode_into_libs=yes |
| 22607 | ;; |
| 22608 | |
| 22609 | # No shared lib support for Linux oldld, aout, or coff. |
| 22610 | linux*oldld* | linux*aout* | linux*coff*) |
| 22611 | dynamic_linker=no |
| 22612 | ;; |
| 22613 | |
| 22614 | # This must be Linux ELF. |
| 22615 | linux*) |
| 22616 | version_type=linux |
| 22617 | need_lib_prefix=no |
| 22618 | need_version=no |
| 22619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22621 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22622 | shlibpath_var=LD_LIBRARY_PATH |
| 22623 | shlibpath_overrides_runpath=no |
| 22624 | # This implies no fast_install, which is unacceptable. |
| 22625 | # Some rework will be needed to allow for fast_install |
| 22626 | # before this can be enabled. |
| 22627 | hardcode_into_libs=yes |
| 22628 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22629 | # Append ld.so.conf contents to the search path |
| 22630 | if test -f /etc/ld.so.conf; then |
| 22631 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 22632 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22633 | fi |
| 22634 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22635 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22636 | # powerpc, because MkLinux only supported shared libraries with the |
| 22637 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22638 | # most powerpc-linux boxes support dynamic linking these days and |
| 22639 | # people can always --disable-shared, the test was removed, and we |
| 22640 | # assume the GNU/Linux dynamic linker is in use. |
| 22641 | dynamic_linker='GNU/Linux ld.so' |
| 22642 | ;; |
| 22643 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22644 | knetbsd*-gnu) |
| 22645 | version_type=linux |
| 22646 | need_lib_prefix=no |
| 22647 | need_version=no |
| 22648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22650 | shlibpath_var=LD_LIBRARY_PATH |
| 22651 | shlibpath_overrides_runpath=no |
| 22652 | hardcode_into_libs=yes |
| 22653 | dynamic_linker='GNU ld.so' |
| 22654 | ;; |
| 22655 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22656 | netbsd*) |
| 22657 | version_type=sunos |
| 22658 | need_lib_prefix=no |
| 22659 | need_version=no |
| 22660 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22662 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22663 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22664 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22665 | 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] | 22666 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22667 | dynamic_linker='NetBSD ld.elf_so' |
| 22668 | fi |
| 22669 | shlibpath_var=LD_LIBRARY_PATH |
| 22670 | shlibpath_overrides_runpath=yes |
| 22671 | hardcode_into_libs=yes |
| 22672 | ;; |
| 22673 | |
| 22674 | newsos6) |
| 22675 | version_type=linux |
| 22676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22677 | shlibpath_var=LD_LIBRARY_PATH |
| 22678 | shlibpath_overrides_runpath=yes |
| 22679 | ;; |
| 22680 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22681 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22682 | version_type=linux |
| 22683 | need_lib_prefix=no |
| 22684 | need_version=no |
| 22685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22686 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22687 | shlibpath_var=LD_LIBRARY_PATH |
| 22688 | shlibpath_overrides_runpath=yes |
| 22689 | ;; |
| 22690 | |
| 22691 | openbsd*) |
| 22692 | version_type=sunos |
| 22693 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22694 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22696 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22697 | shlibpath_var=LD_LIBRARY_PATH |
| 22698 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22699 | case $host_os in |
| 22700 | openbsd2.[89] | openbsd2.[89].*) |
| 22701 | shlibpath_overrides_runpath=no |
| 22702 | ;; |
| 22703 | *) |
| 22704 | shlibpath_overrides_runpath=yes |
| 22705 | ;; |
| 22706 | esac |
| 22707 | else |
| 22708 | shlibpath_overrides_runpath=yes |
| 22709 | fi |
| 22710 | ;; |
| 22711 | |
| 22712 | os2*) |
| 22713 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22714 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22715 | need_lib_prefix=no |
| 22716 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22717 | dynamic_linker='OS/2 ld.exe' |
| 22718 | shlibpath_var=LIBPATH |
| 22719 | ;; |
| 22720 | |
| 22721 | osf3* | osf4* | osf5*) |
| 22722 | version_type=osf |
| 22723 | need_lib_prefix=no |
| 22724 | need_version=no |
| 22725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22727 | shlibpath_var=LD_LIBRARY_PATH |
| 22728 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22729 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22730 | ;; |
| 22731 | |
| 22732 | sco3.2v5*) |
| 22733 | version_type=osf |
| 22734 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22736 | shlibpath_var=LD_LIBRARY_PATH |
| 22737 | ;; |
| 22738 | |
| 22739 | solaris*) |
| 22740 | version_type=linux |
| 22741 | need_lib_prefix=no |
| 22742 | need_version=no |
| 22743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22744 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22745 | shlibpath_var=LD_LIBRARY_PATH |
| 22746 | shlibpath_overrides_runpath=yes |
| 22747 | hardcode_into_libs=yes |
| 22748 | # ldd complains unless libraries are executable |
| 22749 | postinstall_cmds='chmod +x $lib' |
| 22750 | ;; |
| 22751 | |
| 22752 | sunos4*) |
| 22753 | version_type=sunos |
| 22754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22755 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22756 | shlibpath_var=LD_LIBRARY_PATH |
| 22757 | shlibpath_overrides_runpath=yes |
| 22758 | if test "$with_gnu_ld" = yes; then |
| 22759 | need_lib_prefix=no |
| 22760 | fi |
| 22761 | need_version=yes |
| 22762 | ;; |
| 22763 | |
| 22764 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 22765 | version_type=linux |
| 22766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22768 | shlibpath_var=LD_LIBRARY_PATH |
| 22769 | case $host_vendor in |
| 22770 | sni) |
| 22771 | shlibpath_overrides_runpath=no |
| 22772 | need_lib_prefix=no |
| 22773 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 22774 | runpath_var=LD_RUN_PATH |
| 22775 | ;; |
| 22776 | siemens) |
| 22777 | need_lib_prefix=no |
| 22778 | ;; |
| 22779 | motorola) |
| 22780 | need_lib_prefix=no |
| 22781 | need_version=no |
| 22782 | shlibpath_overrides_runpath=no |
| 22783 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 22784 | ;; |
| 22785 | esac |
| 22786 | ;; |
| 22787 | |
| 22788 | sysv4*MP*) |
| 22789 | if test -d /usr/nec ;then |
| 22790 | version_type=linux |
| 22791 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 22792 | soname_spec='$libname${shared_ext}.$major' |
| 22793 | shlibpath_var=LD_LIBRARY_PATH |
| 22794 | fi |
| 22795 | ;; |
| 22796 | |
| 22797 | uts4*) |
| 22798 | version_type=linux |
| 22799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22800 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22801 | shlibpath_var=LD_LIBRARY_PATH |
| 22802 | ;; |
| 22803 | |
| 22804 | *) |
| 22805 | dynamic_linker=no |
| 22806 | ;; |
| 22807 | esac |
| 22808 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 22809 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 22810 | test "$dynamic_linker" = no && can_build_shared=no |
| 22811 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22812 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 22813 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 22814 | hardcode_action_GCJ= |
| 22815 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 22816 | test -n "$runpath_var_GCJ" || \ |
| 22817 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 22818 | |
| 22819 | # We can hardcode non-existant directories. |
| 22820 | if test "$hardcode_direct_GCJ" != no && |
| 22821 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22822 | # have to relink, otherwise we might link with an installed library |
| 22823 | # when we should be linking with a yet-to-be-installed one |
| 22824 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 22825 | test "$hardcode_minus_L_GCJ" != no; then |
| 22826 | # Linking always hardcodes the temporary library directory. |
| 22827 | hardcode_action_GCJ=relink |
| 22828 | else |
| 22829 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22830 | hardcode_action_GCJ=immediate |
| 22831 | fi |
| 22832 | else |
| 22833 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22834 | # directories. |
| 22835 | hardcode_action_GCJ=unsupported |
| 22836 | fi |
| 22837 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 22838 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 22839 | |
| 22840 | if test "$hardcode_action_GCJ" = relink; then |
| 22841 | # Fast installation is not supported |
| 22842 | enable_fast_install=no |
| 22843 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22844 | test "$enable_shared" = no; then |
| 22845 | # Fast installation is not necessary |
| 22846 | enable_fast_install=needless |
| 22847 | fi |
| 22848 | |
| 22849 | striplib= |
| 22850 | old_striplib= |
| 22851 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 22852 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 22853 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 22854 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 22855 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 22856 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22857 | echo "${ECHO_T}yes" >&6 |
| 22858 | else |
| 22859 | # FIXME - insert some real tests, host_os isn't really good enough |
| 22860 | case $host_os in |
| 22861 | darwin*) |
| 22862 | if test -n "$STRIP" ; then |
| 22863 | striplib="$STRIP -x" |
| 22864 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22865 | echo "${ECHO_T}yes" >&6 |
| 22866 | else |
| 22867 | echo "$as_me:$LINENO: result: no" >&5 |
| 22868 | echo "${ECHO_T}no" >&6 |
| 22869 | fi |
| 22870 | ;; |
| 22871 | *) |
| 22872 | echo "$as_me:$LINENO: result: no" >&5 |
| 22873 | echo "${ECHO_T}no" >&6 |
| 22874 | ;; |
| 22875 | esac |
| 22876 | fi |
| 22877 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22878 | if test "x$enable_dlopen" != xyes; then |
| 22879 | enable_dlopen=unknown |
| 22880 | enable_dlopen_self=unknown |
| 22881 | enable_dlopen_self_static=unknown |
| 22882 | else |
| 22883 | lt_cv_dlopen=no |
| 22884 | lt_cv_dlopen_libs= |
| 22885 | |
| 22886 | case $host_os in |
| 22887 | beos*) |
| 22888 | lt_cv_dlopen="load_add_on" |
| 22889 | lt_cv_dlopen_libs= |
| 22890 | lt_cv_dlopen_self=yes |
| 22891 | ;; |
| 22892 | |
| 22893 | mingw* | pw32*) |
| 22894 | lt_cv_dlopen="LoadLibrary" |
| 22895 | lt_cv_dlopen_libs= |
| 22896 | ;; |
| 22897 | |
| 22898 | cygwin*) |
| 22899 | lt_cv_dlopen="dlopen" |
| 22900 | lt_cv_dlopen_libs= |
| 22901 | ;; |
| 22902 | |
| 22903 | darwin*) |
| 22904 | # if libdl is installed we need to link against it |
| 22905 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 22906 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 22907 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 22908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22909 | else |
| 22910 | ac_check_lib_save_LIBS=$LIBS |
| 22911 | LIBS="-ldl $LIBS" |
| 22912 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22913 | /* confdefs.h. */ |
| 22914 | _ACEOF |
| 22915 | cat confdefs.h >>conftest.$ac_ext |
| 22916 | cat >>conftest.$ac_ext <<_ACEOF |
| 22917 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22918 | |
| 22919 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22920 | #ifdef __cplusplus |
| 22921 | extern "C" |
| 22922 | #endif |
| 22923 | /* We use char because int might match the return type of a gcc2 |
| 22924 | builtin and then its argument prototype would still apply. */ |
| 22925 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22926 | int |
| 22927 | main () |
| 22928 | { |
| 22929 | dlopen (); |
| 22930 | ; |
| 22931 | return 0; |
| 22932 | } |
| 22933 | _ACEOF |
| 22934 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22936 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22937 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22939 | rm -f conftest.er1 |
| 22940 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22942 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22943 | { ac_try='test -z "$ac_c_werror_flag" |
| 22944 | || test ! -s conftest.err' |
| 22945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22946 | (eval $ac_try) 2>&5 |
| 22947 | ac_status=$? |
| 22948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22949 | (exit $ac_status); }; } && |
| 22950 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22952 | (eval $ac_try) 2>&5 |
| 22953 | ac_status=$? |
| 22954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22955 | (exit $ac_status); }; }; then |
| 22956 | ac_cv_lib_dl_dlopen=yes |
| 22957 | else |
| 22958 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22960 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22961 | ac_cv_lib_dl_dlopen=no |
| 22962 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22963 | rm -f conftest.err conftest.$ac_objext \ |
| 22964 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22965 | LIBS=$ac_check_lib_save_LIBS |
| 22966 | fi |
| 22967 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 22968 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 22969 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 22970 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 22971 | else |
| 22972 | |
| 22973 | lt_cv_dlopen="dyld" |
| 22974 | lt_cv_dlopen_libs= |
| 22975 | lt_cv_dlopen_self=yes |
| 22976 | |
| 22977 | fi |
| 22978 | |
| 22979 | ;; |
| 22980 | |
| 22981 | *) |
| 22982 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 22983 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 22984 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 22985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22986 | else |
| 22987 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22988 | /* confdefs.h. */ |
| 22989 | _ACEOF |
| 22990 | cat confdefs.h >>conftest.$ac_ext |
| 22991 | cat >>conftest.$ac_ext <<_ACEOF |
| 22992 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22993 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 22994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22995 | #define shl_load innocuous_shl_load |
| 22996 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22997 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22998 | which can conflict with char shl_load (); below. |
| 22999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23000 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23001 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23002 | #ifdef __STDC__ |
| 23003 | # include <limits.h> |
| 23004 | #else |
| 23005 | # include <assert.h> |
| 23006 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23007 | |
| 23008 | #undef shl_load |
| 23009 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23010 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23011 | #ifdef __cplusplus |
| 23012 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23013 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23014 | #endif |
| 23015 | /* We use char because int might match the return type of a gcc2 |
| 23016 | builtin and then its argument prototype would still apply. */ |
| 23017 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23018 | /* The GNU C library defines this for functions which it implements |
| 23019 | to always fail with ENOSYS. Some functions are actually named |
| 23020 | something starting with __ and the normal name is an alias. */ |
| 23021 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 23022 | choke me |
| 23023 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23024 | char (*f) () = shl_load; |
| 23025 | #endif |
| 23026 | #ifdef __cplusplus |
| 23027 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23028 | #endif |
| 23029 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23030 | int |
| 23031 | main () |
| 23032 | { |
| 23033 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23034 | ; |
| 23035 | return 0; |
| 23036 | } |
| 23037 | _ACEOF |
| 23038 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23040 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23041 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23043 | rm -f conftest.er1 |
| 23044 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23046 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23047 | { ac_try='test -z "$ac_c_werror_flag" |
| 23048 | || test ! -s conftest.err' |
| 23049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23050 | (eval $ac_try) 2>&5 |
| 23051 | ac_status=$? |
| 23052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23053 | (exit $ac_status); }; } && |
| 23054 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23056 | (eval $ac_try) 2>&5 |
| 23057 | ac_status=$? |
| 23058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23059 | (exit $ac_status); }; }; then |
| 23060 | ac_cv_func_shl_load=yes |
| 23061 | else |
| 23062 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23064 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23065 | ac_cv_func_shl_load=no |
| 23066 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23067 | rm -f conftest.err conftest.$ac_objext \ |
| 23068 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23069 | fi |
| 23070 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 23071 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 23072 | if test $ac_cv_func_shl_load = yes; then |
| 23073 | lt_cv_dlopen="shl_load" |
| 23074 | else |
| 23075 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 23076 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 23077 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 23078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23079 | else |
| 23080 | ac_check_lib_save_LIBS=$LIBS |
| 23081 | LIBS="-ldld $LIBS" |
| 23082 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23083 | /* confdefs.h. */ |
| 23084 | _ACEOF |
| 23085 | cat confdefs.h >>conftest.$ac_ext |
| 23086 | cat >>conftest.$ac_ext <<_ACEOF |
| 23087 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23088 | |
| 23089 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23090 | #ifdef __cplusplus |
| 23091 | extern "C" |
| 23092 | #endif |
| 23093 | /* We use char because int might match the return type of a gcc2 |
| 23094 | builtin and then its argument prototype would still apply. */ |
| 23095 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23096 | int |
| 23097 | main () |
| 23098 | { |
| 23099 | shl_load (); |
| 23100 | ; |
| 23101 | return 0; |
| 23102 | } |
| 23103 | _ACEOF |
| 23104 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23106 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23107 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23109 | rm -f conftest.er1 |
| 23110 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23112 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23113 | { ac_try='test -z "$ac_c_werror_flag" |
| 23114 | || test ! -s conftest.err' |
| 23115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23116 | (eval $ac_try) 2>&5 |
| 23117 | ac_status=$? |
| 23118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23119 | (exit $ac_status); }; } && |
| 23120 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23122 | (eval $ac_try) 2>&5 |
| 23123 | ac_status=$? |
| 23124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23125 | (exit $ac_status); }; }; then |
| 23126 | ac_cv_lib_dld_shl_load=yes |
| 23127 | else |
| 23128 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23130 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23131 | ac_cv_lib_dld_shl_load=no |
| 23132 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23133 | rm -f conftest.err conftest.$ac_objext \ |
| 23134 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23135 | LIBS=$ac_check_lib_save_LIBS |
| 23136 | fi |
| 23137 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 23138 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 23139 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 23140 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 23141 | else |
| 23142 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 23143 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 23144 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 23145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23146 | else |
| 23147 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23148 | /* confdefs.h. */ |
| 23149 | _ACEOF |
| 23150 | cat confdefs.h >>conftest.$ac_ext |
| 23151 | cat >>conftest.$ac_ext <<_ACEOF |
| 23152 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23153 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 23154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23155 | #define dlopen innocuous_dlopen |
| 23156 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23157 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23158 | which can conflict with char dlopen (); below. |
| 23159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23160 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23161 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23162 | #ifdef __STDC__ |
| 23163 | # include <limits.h> |
| 23164 | #else |
| 23165 | # include <assert.h> |
| 23166 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23167 | |
| 23168 | #undef dlopen |
| 23169 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23170 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23171 | #ifdef __cplusplus |
| 23172 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23173 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23174 | #endif |
| 23175 | /* We use char because int might match the return type of a gcc2 |
| 23176 | builtin and then its argument prototype would still apply. */ |
| 23177 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23178 | /* The GNU C library defines this for functions which it implements |
| 23179 | to always fail with ENOSYS. Some functions are actually named |
| 23180 | something starting with __ and the normal name is an alias. */ |
| 23181 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 23182 | choke me |
| 23183 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23184 | char (*f) () = dlopen; |
| 23185 | #endif |
| 23186 | #ifdef __cplusplus |
| 23187 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23188 | #endif |
| 23189 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23190 | int |
| 23191 | main () |
| 23192 | { |
| 23193 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23194 | ; |
| 23195 | return 0; |
| 23196 | } |
| 23197 | _ACEOF |
| 23198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23200 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23201 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23203 | rm -f conftest.er1 |
| 23204 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23206 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23207 | { ac_try='test -z "$ac_c_werror_flag" |
| 23208 | || test ! -s conftest.err' |
| 23209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23210 | (eval $ac_try) 2>&5 |
| 23211 | ac_status=$? |
| 23212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23213 | (exit $ac_status); }; } && |
| 23214 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23216 | (eval $ac_try) 2>&5 |
| 23217 | ac_status=$? |
| 23218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23219 | (exit $ac_status); }; }; then |
| 23220 | ac_cv_func_dlopen=yes |
| 23221 | else |
| 23222 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23224 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23225 | ac_cv_func_dlopen=no |
| 23226 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23227 | rm -f conftest.err conftest.$ac_objext \ |
| 23228 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23229 | fi |
| 23230 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 23231 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 23232 | if test $ac_cv_func_dlopen = yes; then |
| 23233 | lt_cv_dlopen="dlopen" |
| 23234 | else |
| 23235 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 23236 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 23237 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 23238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23239 | else |
| 23240 | ac_check_lib_save_LIBS=$LIBS |
| 23241 | LIBS="-ldl $LIBS" |
| 23242 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23243 | /* confdefs.h. */ |
| 23244 | _ACEOF |
| 23245 | cat confdefs.h >>conftest.$ac_ext |
| 23246 | cat >>conftest.$ac_ext <<_ACEOF |
| 23247 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23248 | |
| 23249 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23250 | #ifdef __cplusplus |
| 23251 | extern "C" |
| 23252 | #endif |
| 23253 | /* We use char because int might match the return type of a gcc2 |
| 23254 | builtin and then its argument prototype would still apply. */ |
| 23255 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23256 | int |
| 23257 | main () |
| 23258 | { |
| 23259 | dlopen (); |
| 23260 | ; |
| 23261 | return 0; |
| 23262 | } |
| 23263 | _ACEOF |
| 23264 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23266 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23267 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23269 | rm -f conftest.er1 |
| 23270 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23272 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23273 | { ac_try='test -z "$ac_c_werror_flag" |
| 23274 | || test ! -s conftest.err' |
| 23275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23276 | (eval $ac_try) 2>&5 |
| 23277 | ac_status=$? |
| 23278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23279 | (exit $ac_status); }; } && |
| 23280 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23282 | (eval $ac_try) 2>&5 |
| 23283 | ac_status=$? |
| 23284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23285 | (exit $ac_status); }; }; then |
| 23286 | ac_cv_lib_dl_dlopen=yes |
| 23287 | else |
| 23288 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23290 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23291 | ac_cv_lib_dl_dlopen=no |
| 23292 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23293 | rm -f conftest.err conftest.$ac_objext \ |
| 23294 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23295 | LIBS=$ac_check_lib_save_LIBS |
| 23296 | fi |
| 23297 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 23298 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 23299 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 23300 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 23301 | else |
| 23302 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 23303 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 23304 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 23305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23306 | else |
| 23307 | ac_check_lib_save_LIBS=$LIBS |
| 23308 | LIBS="-lsvld $LIBS" |
| 23309 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23310 | /* confdefs.h. */ |
| 23311 | _ACEOF |
| 23312 | cat confdefs.h >>conftest.$ac_ext |
| 23313 | cat >>conftest.$ac_ext <<_ACEOF |
| 23314 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23315 | |
| 23316 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23317 | #ifdef __cplusplus |
| 23318 | extern "C" |
| 23319 | #endif |
| 23320 | /* We use char because int might match the return type of a gcc2 |
| 23321 | builtin and then its argument prototype would still apply. */ |
| 23322 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23323 | int |
| 23324 | main () |
| 23325 | { |
| 23326 | dlopen (); |
| 23327 | ; |
| 23328 | return 0; |
| 23329 | } |
| 23330 | _ACEOF |
| 23331 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23333 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23334 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23336 | rm -f conftest.er1 |
| 23337 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23339 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23340 | { ac_try='test -z "$ac_c_werror_flag" |
| 23341 | || test ! -s conftest.err' |
| 23342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23343 | (eval $ac_try) 2>&5 |
| 23344 | ac_status=$? |
| 23345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23346 | (exit $ac_status); }; } && |
| 23347 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23349 | (eval $ac_try) 2>&5 |
| 23350 | ac_status=$? |
| 23351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23352 | (exit $ac_status); }; }; then |
| 23353 | ac_cv_lib_svld_dlopen=yes |
| 23354 | else |
| 23355 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23357 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23358 | ac_cv_lib_svld_dlopen=no |
| 23359 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23360 | rm -f conftest.err conftest.$ac_objext \ |
| 23361 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23362 | LIBS=$ac_check_lib_save_LIBS |
| 23363 | fi |
| 23364 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 23365 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 23366 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 23367 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 23368 | else |
| 23369 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 23370 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 23371 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 23372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23373 | else |
| 23374 | ac_check_lib_save_LIBS=$LIBS |
| 23375 | LIBS="-ldld $LIBS" |
| 23376 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23377 | /* confdefs.h. */ |
| 23378 | _ACEOF |
| 23379 | cat confdefs.h >>conftest.$ac_ext |
| 23380 | cat >>conftest.$ac_ext <<_ACEOF |
| 23381 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23382 | |
| 23383 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23384 | #ifdef __cplusplus |
| 23385 | extern "C" |
| 23386 | #endif |
| 23387 | /* We use char because int might match the return type of a gcc2 |
| 23388 | builtin and then its argument prototype would still apply. */ |
| 23389 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23390 | int |
| 23391 | main () |
| 23392 | { |
| 23393 | dld_link (); |
| 23394 | ; |
| 23395 | return 0; |
| 23396 | } |
| 23397 | _ACEOF |
| 23398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23400 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23401 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23403 | rm -f conftest.er1 |
| 23404 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23406 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23407 | { ac_try='test -z "$ac_c_werror_flag" |
| 23408 | || test ! -s conftest.err' |
| 23409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23410 | (eval $ac_try) 2>&5 |
| 23411 | ac_status=$? |
| 23412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23413 | (exit $ac_status); }; } && |
| 23414 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23416 | (eval $ac_try) 2>&5 |
| 23417 | ac_status=$? |
| 23418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23419 | (exit $ac_status); }; }; then |
| 23420 | ac_cv_lib_dld_dld_link=yes |
| 23421 | else |
| 23422 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23424 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23425 | ac_cv_lib_dld_dld_link=no |
| 23426 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23427 | rm -f conftest.err conftest.$ac_objext \ |
| 23428 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23429 | LIBS=$ac_check_lib_save_LIBS |
| 23430 | fi |
| 23431 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 23432 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 23433 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 23434 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 23435 | fi |
| 23436 | |
| 23437 | |
| 23438 | fi |
| 23439 | |
| 23440 | |
| 23441 | fi |
| 23442 | |
| 23443 | |
| 23444 | fi |
| 23445 | |
| 23446 | |
| 23447 | fi |
| 23448 | |
| 23449 | |
| 23450 | fi |
| 23451 | |
| 23452 | ;; |
| 23453 | esac |
| 23454 | |
| 23455 | if test "x$lt_cv_dlopen" != xno; then |
| 23456 | enable_dlopen=yes |
| 23457 | else |
| 23458 | enable_dlopen=no |
| 23459 | fi |
| 23460 | |
| 23461 | case $lt_cv_dlopen in |
| 23462 | dlopen) |
| 23463 | save_CPPFLAGS="$CPPFLAGS" |
| 23464 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 23465 | |
| 23466 | save_LDFLAGS="$LDFLAGS" |
| 23467 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 23468 | |
| 23469 | save_LIBS="$LIBS" |
| 23470 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 23471 | |
| 23472 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 23473 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 23474 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 23475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23476 | else |
| 23477 | if test "$cross_compiling" = yes; then : |
| 23478 | lt_cv_dlopen_self=cross |
| 23479 | else |
| 23480 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 23481 | lt_status=$lt_dlunknown |
| 23482 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 23483 | #line 23483 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23484 | #include "confdefs.h" |
| 23485 | |
| 23486 | #if HAVE_DLFCN_H |
| 23487 | #include <dlfcn.h> |
| 23488 | #endif |
| 23489 | |
| 23490 | #include <stdio.h> |
| 23491 | |
| 23492 | #ifdef RTLD_GLOBAL |
| 23493 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 23494 | #else |
| 23495 | # ifdef DL_GLOBAL |
| 23496 | # define LT_DLGLOBAL DL_GLOBAL |
| 23497 | # else |
| 23498 | # define LT_DLGLOBAL 0 |
| 23499 | # endif |
| 23500 | #endif |
| 23501 | |
| 23502 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 23503 | find out it does not work in some platform. */ |
| 23504 | #ifndef LT_DLLAZY_OR_NOW |
| 23505 | # ifdef RTLD_LAZY |
| 23506 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 23507 | # else |
| 23508 | # ifdef DL_LAZY |
| 23509 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 23510 | # else |
| 23511 | # ifdef RTLD_NOW |
| 23512 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 23513 | # else |
| 23514 | # ifdef DL_NOW |
| 23515 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 23516 | # else |
| 23517 | # define LT_DLLAZY_OR_NOW 0 |
| 23518 | # endif |
| 23519 | # endif |
| 23520 | # endif |
| 23521 | # endif |
| 23522 | #endif |
| 23523 | |
| 23524 | #ifdef __cplusplus |
| 23525 | extern "C" void exit (int); |
| 23526 | #endif |
| 23527 | |
| 23528 | void fnord() { int i=42;} |
| 23529 | int main () |
| 23530 | { |
| 23531 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 23532 | int status = $lt_dlunknown; |
| 23533 | |
| 23534 | if (self) |
| 23535 | { |
| 23536 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 23537 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 23538 | /* dlclose (self); */ |
| 23539 | } |
| 23540 | |
| 23541 | exit (status); |
| 23542 | } |
| 23543 | EOF |
| 23544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23545 | (eval $ac_link) 2>&5 |
| 23546 | ac_status=$? |
| 23547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23548 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 23549 | (./conftest; exit; ) 2>/dev/null |
| 23550 | lt_status=$? |
| 23551 | case x$lt_status in |
| 23552 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 23553 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 23554 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 23555 | esac |
| 23556 | else : |
| 23557 | # compilation failed |
| 23558 | lt_cv_dlopen_self=no |
| 23559 | fi |
| 23560 | fi |
| 23561 | rm -fr conftest* |
| 23562 | |
| 23563 | |
| 23564 | fi |
| 23565 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 23566 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 23567 | |
| 23568 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 23569 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 23570 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 23571 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 23572 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 23573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23574 | else |
| 23575 | if test "$cross_compiling" = yes; then : |
| 23576 | lt_cv_dlopen_self_static=cross |
| 23577 | else |
| 23578 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 23579 | lt_status=$lt_dlunknown |
| 23580 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 23581 | #line 23581 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23582 | #include "confdefs.h" |
| 23583 | |
| 23584 | #if HAVE_DLFCN_H |
| 23585 | #include <dlfcn.h> |
| 23586 | #endif |
| 23587 | |
| 23588 | #include <stdio.h> |
| 23589 | |
| 23590 | #ifdef RTLD_GLOBAL |
| 23591 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 23592 | #else |
| 23593 | # ifdef DL_GLOBAL |
| 23594 | # define LT_DLGLOBAL DL_GLOBAL |
| 23595 | # else |
| 23596 | # define LT_DLGLOBAL 0 |
| 23597 | # endif |
| 23598 | #endif |
| 23599 | |
| 23600 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 23601 | find out it does not work in some platform. */ |
| 23602 | #ifndef LT_DLLAZY_OR_NOW |
| 23603 | # ifdef RTLD_LAZY |
| 23604 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 23605 | # else |
| 23606 | # ifdef DL_LAZY |
| 23607 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 23608 | # else |
| 23609 | # ifdef RTLD_NOW |
| 23610 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 23611 | # else |
| 23612 | # ifdef DL_NOW |
| 23613 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 23614 | # else |
| 23615 | # define LT_DLLAZY_OR_NOW 0 |
| 23616 | # endif |
| 23617 | # endif |
| 23618 | # endif |
| 23619 | # endif |
| 23620 | #endif |
| 23621 | |
| 23622 | #ifdef __cplusplus |
| 23623 | extern "C" void exit (int); |
| 23624 | #endif |
| 23625 | |
| 23626 | void fnord() { int i=42;} |
| 23627 | int main () |
| 23628 | { |
| 23629 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 23630 | int status = $lt_dlunknown; |
| 23631 | |
| 23632 | if (self) |
| 23633 | { |
| 23634 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 23635 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 23636 | /* dlclose (self); */ |
| 23637 | } |
| 23638 | |
| 23639 | exit (status); |
| 23640 | } |
| 23641 | EOF |
| 23642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23643 | (eval $ac_link) 2>&5 |
| 23644 | ac_status=$? |
| 23645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23646 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 23647 | (./conftest; exit; ) 2>/dev/null |
| 23648 | lt_status=$? |
| 23649 | case x$lt_status in |
| 23650 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 23651 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 23652 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 23653 | esac |
| 23654 | else : |
| 23655 | # compilation failed |
| 23656 | lt_cv_dlopen_self_static=no |
| 23657 | fi |
| 23658 | fi |
| 23659 | rm -fr conftest* |
| 23660 | |
| 23661 | |
| 23662 | fi |
| 23663 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 23664 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 23665 | fi |
| 23666 | |
| 23667 | CPPFLAGS="$save_CPPFLAGS" |
| 23668 | LDFLAGS="$save_LDFLAGS" |
| 23669 | LIBS="$save_LIBS" |
| 23670 | ;; |
| 23671 | esac |
| 23672 | |
| 23673 | case $lt_cv_dlopen_self in |
| 23674 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 23675 | *) enable_dlopen_self=unknown ;; |
| 23676 | esac |
| 23677 | |
| 23678 | case $lt_cv_dlopen_self_static in |
| 23679 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 23680 | *) enable_dlopen_self_static=unknown ;; |
| 23681 | esac |
| 23682 | fi |
| 23683 | |
| 23684 | |
| 23685 | # The else clause should only fire when bootstrapping the |
| 23686 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23687 | # with your package, and you will get complaints that there are |
| 23688 | # no rules to generate ltmain.sh. |
| 23689 | if test -f "$ltmain"; then |
| 23690 | # See if we are running on zsh, and set the options which allow our commands through |
| 23691 | # without removal of \ escapes. |
| 23692 | if test -n "${ZSH_VERSION+set}" ; then |
| 23693 | setopt NO_GLOB_SUBST |
| 23694 | fi |
| 23695 | # Now quote all the things that may contain metacharacters while being |
| 23696 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23697 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23698 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 23699 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23700 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23701 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23702 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23703 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23704 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23705 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23706 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23707 | compiler_GCJ \ |
| 23708 | CC_GCJ \ |
| 23709 | LD_GCJ \ |
| 23710 | lt_prog_compiler_wl_GCJ \ |
| 23711 | lt_prog_compiler_pic_GCJ \ |
| 23712 | lt_prog_compiler_static_GCJ \ |
| 23713 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 23714 | export_dynamic_flag_spec_GCJ \ |
| 23715 | thread_safe_flag_spec_GCJ \ |
| 23716 | whole_archive_flag_spec_GCJ \ |
| 23717 | enable_shared_with_static_runtimes_GCJ \ |
| 23718 | old_archive_cmds_GCJ \ |
| 23719 | old_archive_from_new_cmds_GCJ \ |
| 23720 | predep_objects_GCJ \ |
| 23721 | postdep_objects_GCJ \ |
| 23722 | predeps_GCJ \ |
| 23723 | postdeps_GCJ \ |
| 23724 | compiler_lib_search_path_GCJ \ |
| 23725 | archive_cmds_GCJ \ |
| 23726 | archive_expsym_cmds_GCJ \ |
| 23727 | postinstall_cmds_GCJ \ |
| 23728 | postuninstall_cmds_GCJ \ |
| 23729 | old_archive_from_expsyms_cmds_GCJ \ |
| 23730 | allow_undefined_flag_GCJ \ |
| 23731 | no_undefined_flag_GCJ \ |
| 23732 | export_symbols_cmds_GCJ \ |
| 23733 | hardcode_libdir_flag_spec_GCJ \ |
| 23734 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 23735 | hardcode_libdir_separator_GCJ \ |
| 23736 | hardcode_automatic_GCJ \ |
| 23737 | module_cmds_GCJ \ |
| 23738 | module_expsym_cmds_GCJ \ |
| 23739 | lt_cv_prog_compiler_c_o_GCJ \ |
| 23740 | exclude_expsyms_GCJ \ |
| 23741 | include_expsyms_GCJ; do |
| 23742 | |
| 23743 | case $var in |
| 23744 | old_archive_cmds_GCJ | \ |
| 23745 | old_archive_from_new_cmds_GCJ | \ |
| 23746 | archive_cmds_GCJ | \ |
| 23747 | archive_expsym_cmds_GCJ | \ |
| 23748 | module_cmds_GCJ | \ |
| 23749 | module_expsym_cmds_GCJ | \ |
| 23750 | old_archive_from_expsyms_cmds_GCJ | \ |
| 23751 | export_symbols_cmds_GCJ | \ |
| 23752 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23753 | postinstall_cmds | postuninstall_cmds | \ |
| 23754 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23755 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23756 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23757 | 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] | 23758 | ;; |
| 23759 | *) |
| 23760 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23761 | ;; |
| 23762 | esac |
| 23763 | done |
| 23764 | |
| 23765 | case $lt_echo in |
| 23766 | *'\$0 --fallback-echo"') |
| 23767 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23768 | ;; |
| 23769 | esac |
| 23770 | |
| 23771 | cfgfile="$ofile" |
| 23772 | |
| 23773 | cat <<__EOF__ >> "$cfgfile" |
| 23774 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23775 | |
| 23776 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23777 | |
| 23778 | # Shell to use when invoking shell scripts. |
| 23779 | SHELL=$lt_SHELL |
| 23780 | |
| 23781 | # Whether or not to build shared libraries. |
| 23782 | build_libtool_libs=$enable_shared |
| 23783 | |
| 23784 | # Whether or not to build static libraries. |
| 23785 | build_old_libs=$enable_static |
| 23786 | |
| 23787 | # Whether or not to add -lc for building shared libraries. |
| 23788 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 23789 | |
| 23790 | # Whether or not to disallow shared libs when runtime libs are static |
| 23791 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 23792 | |
| 23793 | # Whether or not to optimize for fast installation. |
| 23794 | fast_install=$enable_fast_install |
| 23795 | |
| 23796 | # The host system. |
| 23797 | host_alias=$host_alias |
| 23798 | host=$host |
| 23799 | |
| 23800 | # An echo program that does not interpret backslashes. |
| 23801 | echo=$lt_echo |
| 23802 | |
| 23803 | # The archiver. |
| 23804 | AR=$lt_AR |
| 23805 | AR_FLAGS=$lt_AR_FLAGS |
| 23806 | |
| 23807 | # A C compiler. |
| 23808 | LTCC=$lt_LTCC |
| 23809 | |
| 23810 | # A language-specific compiler. |
| 23811 | CC=$lt_compiler_GCJ |
| 23812 | |
| 23813 | # Is the compiler the GNU C compiler? |
| 23814 | with_gcc=$GCC_GCJ |
| 23815 | |
| 23816 | # An ERE matcher. |
| 23817 | EGREP=$lt_EGREP |
| 23818 | |
| 23819 | # The linker used to build libraries. |
| 23820 | LD=$lt_LD_GCJ |
| 23821 | |
| 23822 | # Whether we need hard or soft links. |
| 23823 | LN_S=$lt_LN_S |
| 23824 | |
| 23825 | # A BSD-compatible nm program. |
| 23826 | NM=$lt_NM |
| 23827 | |
| 23828 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23829 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23830 | |
| 23831 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23832 | MAGIC_CMD=$MAGIC_CMD |
| 23833 | |
| 23834 | # Used on cygwin: DLL creation program. |
| 23835 | DLLTOOL="$DLLTOOL" |
| 23836 | |
| 23837 | # Used on cygwin: object dumper. |
| 23838 | OBJDUMP="$OBJDUMP" |
| 23839 | |
| 23840 | # Used on cygwin: assembler. |
| 23841 | AS="$AS" |
| 23842 | |
| 23843 | # The name of the directory that contains temporary libtool files. |
| 23844 | objdir=$objdir |
| 23845 | |
| 23846 | # How to create reloadable object files. |
| 23847 | reload_flag=$lt_reload_flag |
| 23848 | reload_cmds=$lt_reload_cmds |
| 23849 | |
| 23850 | # How to pass a linker flag through the compiler. |
| 23851 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 23852 | |
| 23853 | # Object file suffix (normally "o"). |
| 23854 | objext="$ac_objext" |
| 23855 | |
| 23856 | # Old archive suffix (normally "a"). |
| 23857 | libext="$libext" |
| 23858 | |
| 23859 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23860 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23861 | |
| 23862 | # Executable file suffix (normally ""). |
| 23863 | exeext="$exeext" |
| 23864 | |
| 23865 | # Additional compiler flags for building library objects. |
| 23866 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 23867 | pic_mode=$pic_mode |
| 23868 | |
| 23869 | # What is the maximum length of a command? |
| 23870 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23871 | |
| 23872 | # Does compiler simultaneously support -c and -o options? |
| 23873 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 23874 | |
| 23875 | # Must we lock files when doing compilation ? |
| 23876 | need_locks=$lt_need_locks |
| 23877 | |
| 23878 | # Do we need the lib prefix for modules? |
| 23879 | need_lib_prefix=$need_lib_prefix |
| 23880 | |
| 23881 | # Do we need a version for libraries? |
| 23882 | need_version=$need_version |
| 23883 | |
| 23884 | # Whether dlopen is supported. |
| 23885 | dlopen_support=$enable_dlopen |
| 23886 | |
| 23887 | # Whether dlopen of programs is supported. |
| 23888 | dlopen_self=$enable_dlopen_self |
| 23889 | |
| 23890 | # Whether dlopen of statically linked programs is supported. |
| 23891 | dlopen_self_static=$enable_dlopen_self_static |
| 23892 | |
| 23893 | # Compiler flag to prevent dynamic linking. |
| 23894 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 23895 | |
| 23896 | # Compiler flag to turn off builtin functions. |
| 23897 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 23898 | |
| 23899 | # Compiler flag to allow reflexive dlopens. |
| 23900 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 23901 | |
| 23902 | # Compiler flag to generate shared objects directly from archives. |
| 23903 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 23904 | |
| 23905 | # Compiler flag to generate thread-safe objects. |
| 23906 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 23907 | |
| 23908 | # Library versioning type. |
| 23909 | version_type=$version_type |
| 23910 | |
| 23911 | # Format of library name prefix. |
| 23912 | libname_spec=$lt_libname_spec |
| 23913 | |
| 23914 | # List of archive names. First name is the real one, the rest are links. |
| 23915 | # The last name is the one that the linker finds with -lNAME. |
| 23916 | library_names_spec=$lt_library_names_spec |
| 23917 | |
| 23918 | # The coded name of the library, if different from the real name. |
| 23919 | soname_spec=$lt_soname_spec |
| 23920 | |
| 23921 | # Commands used to build and install an old-style archive. |
| 23922 | RANLIB=$lt_RANLIB |
| 23923 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 23924 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23925 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23926 | |
| 23927 | # Create an old-style archive from a shared archive. |
| 23928 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 23929 | |
| 23930 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23931 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 23932 | |
| 23933 | # Commands used to build and install a shared archive. |
| 23934 | archive_cmds=$lt_archive_cmds_GCJ |
| 23935 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 23936 | postinstall_cmds=$lt_postinstall_cmds |
| 23937 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23938 | |
| 23939 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23940 | module_cmds=$lt_module_cmds_GCJ |
| 23941 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 23942 | |
| 23943 | # Commands to strip libraries. |
| 23944 | old_striplib=$lt_old_striplib |
| 23945 | striplib=$lt_striplib |
| 23946 | |
| 23947 | # Dependencies to place before the objects being linked to create a |
| 23948 | # shared library. |
| 23949 | predep_objects=$lt_predep_objects_GCJ |
| 23950 | |
| 23951 | # Dependencies to place after the objects being linked to create a |
| 23952 | # shared library. |
| 23953 | postdep_objects=$lt_postdep_objects_GCJ |
| 23954 | |
| 23955 | # Dependencies to place before the objects being linked to create a |
| 23956 | # shared library. |
| 23957 | predeps=$lt_predeps_GCJ |
| 23958 | |
| 23959 | # Dependencies to place after the objects being linked to create a |
| 23960 | # shared library. |
| 23961 | postdeps=$lt_postdeps_GCJ |
| 23962 | |
| 23963 | # The library search path used internally by the compiler when linking |
| 23964 | # a shared library. |
| 23965 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 23966 | |
| 23967 | # Method to check whether dependent libraries are shared objects. |
| 23968 | deplibs_check_method=$lt_deplibs_check_method |
| 23969 | |
| 23970 | # Command to use when deplibs_check_method == file_magic. |
| 23971 | file_magic_cmd=$lt_file_magic_cmd |
| 23972 | |
| 23973 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23974 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 23975 | |
| 23976 | # Flag that forces no undefined symbols. |
| 23977 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 23978 | |
| 23979 | # Commands used to finish a libtool library installation in a directory. |
| 23980 | finish_cmds=$lt_finish_cmds |
| 23981 | |
| 23982 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23983 | finish_eval=$lt_finish_eval |
| 23984 | |
| 23985 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23986 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23987 | |
| 23988 | # Transform the output of nm in a proper C declaration |
| 23989 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23990 | |
| 23991 | # Transform the output of nm in a C name address pair |
| 23992 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23993 | |
| 23994 | # This is the shared library runtime path variable. |
| 23995 | runpath_var=$runpath_var |
| 23996 | |
| 23997 | # This is the shared library path variable. |
| 23998 | shlibpath_var=$shlibpath_var |
| 23999 | |
| 24000 | # Is shlibpath searched before the hard-coded library search path? |
| 24001 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24002 | |
| 24003 | # How to hardcode a shared library path into an executable. |
| 24004 | hardcode_action=$hardcode_action_GCJ |
| 24005 | |
| 24006 | # Whether we should hardcode library paths into libraries. |
| 24007 | hardcode_into_libs=$hardcode_into_libs |
| 24008 | |
| 24009 | # Flag to hardcode \$libdir into a binary during linking. |
| 24010 | # This must work even if \$libdir does not exist. |
| 24011 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 24012 | |
| 24013 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24014 | # a binary during linking. This must work even if \$libdir does |
| 24015 | # not exist. |
| 24016 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 24017 | |
| 24018 | # Whether we need a single -rpath flag with a separated argument. |
| 24019 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 24020 | |
| 24021 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24022 | # resulting binary. |
| 24023 | hardcode_direct=$hardcode_direct_GCJ |
| 24024 | |
| 24025 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24026 | # resulting binary. |
| 24027 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 24028 | |
| 24029 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24030 | # the resulting binary. |
| 24031 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 24032 | |
| 24033 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24034 | # and all subsequent libraries and executables linked against it. |
| 24035 | hardcode_automatic=$hardcode_automatic_GCJ |
| 24036 | |
| 24037 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24038 | # restored at relink time. |
| 24039 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24040 | |
| 24041 | # Whether libtool must link a program against all its dependency libraries. |
| 24042 | link_all_deplibs=$link_all_deplibs_GCJ |
| 24043 | |
| 24044 | # Compile-time system search path for libraries |
| 24045 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24046 | |
| 24047 | # Run-time system search path for libraries |
| 24048 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24049 | |
| 24050 | # Fix the shell variable \$srcfile for the compiler. |
| 24051 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 24052 | |
| 24053 | # Set to yes if exported symbols are required. |
| 24054 | always_export_symbols=$always_export_symbols_GCJ |
| 24055 | |
| 24056 | # The commands to list exported symbols. |
| 24057 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 24058 | |
| 24059 | # The commands to extract the exported symbol list from a shared archive. |
| 24060 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24061 | |
| 24062 | # Symbols that should not be listed in the preloaded symbols. |
| 24063 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 24064 | |
| 24065 | # Symbols that must always be exported. |
| 24066 | include_expsyms=$lt_include_expsyms_GCJ |
| 24067 | |
| 24068 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24069 | |
| 24070 | __EOF__ |
| 24071 | |
| 24072 | |
| 24073 | else |
| 24074 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24075 | # `config.status --recheck' to rerun these tests and create the |
| 24076 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24077 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24078 | if test -f "$ltmain_in"; then |
| 24079 | test -f Makefile && make "$ltmain" |
| 24080 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24081 | fi |
| 24082 | |
| 24083 | |
| 24084 | ac_ext=c |
| 24085 | ac_cpp='$CPP $CPPFLAGS' |
| 24086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24089 | |
| 24090 | CC="$lt_save_CC" |
| 24091 | |
| 24092 | else |
| 24093 | tagname="" |
| 24094 | fi |
| 24095 | ;; |
| 24096 | |
| 24097 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24098 | ac_ext=c |
| 24099 | ac_cpp='$CPP $CPPFLAGS' |
| 24100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24103 | |
| 24104 | |
| 24105 | # Source file extension for RC test sources. |
| 24106 | ac_ext=rc |
| 24107 | |
| 24108 | # Object file extension for compiled RC test sources. |
| 24109 | objext=o |
| 24110 | objext_RC=$objext |
| 24111 | |
| 24112 | # Code to be used in simple compile tests |
| 24113 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 24114 | |
| 24115 | # Code to be used in simple link tests |
| 24116 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 24117 | |
| 24118 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24119 | |
| 24120 | # If no C compiler was specified, use CC. |
| 24121 | LTCC=${LTCC-"$CC"} |
| 24122 | |
| 24123 | # Allow CC to be a program name with arguments. |
| 24124 | compiler=$CC |
| 24125 | |
| 24126 | |
| 24127 | # Allow CC to be a program name with arguments. |
| 24128 | lt_save_CC="$CC" |
| 24129 | CC=${RC-"windres"} |
| 24130 | compiler=$CC |
| 24131 | compiler_RC=$CC |
| 24132 | lt_cv_prog_compiler_c_o_RC=yes |
| 24133 | |
| 24134 | # The else clause should only fire when bootstrapping the |
| 24135 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 24136 | # with your package, and you will get complaints that there are |
| 24137 | # no rules to generate ltmain.sh. |
| 24138 | if test -f "$ltmain"; then |
| 24139 | # See if we are running on zsh, and set the options which allow our commands through |
| 24140 | # without removal of \ escapes. |
| 24141 | if test -n "${ZSH_VERSION+set}" ; then |
| 24142 | setopt NO_GLOB_SUBST |
| 24143 | fi |
| 24144 | # Now quote all the things that may contain metacharacters while being |
| 24145 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 24146 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24147 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 24148 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24149 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 24150 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 24151 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 24152 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 24153 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 24154 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 24155 | old_postinstall_cmds old_postuninstall_cmds \ |
| 24156 | compiler_RC \ |
| 24157 | CC_RC \ |
| 24158 | LD_RC \ |
| 24159 | lt_prog_compiler_wl_RC \ |
| 24160 | lt_prog_compiler_pic_RC \ |
| 24161 | lt_prog_compiler_static_RC \ |
| 24162 | lt_prog_compiler_no_builtin_flag_RC \ |
| 24163 | export_dynamic_flag_spec_RC \ |
| 24164 | thread_safe_flag_spec_RC \ |
| 24165 | whole_archive_flag_spec_RC \ |
| 24166 | enable_shared_with_static_runtimes_RC \ |
| 24167 | old_archive_cmds_RC \ |
| 24168 | old_archive_from_new_cmds_RC \ |
| 24169 | predep_objects_RC \ |
| 24170 | postdep_objects_RC \ |
| 24171 | predeps_RC \ |
| 24172 | postdeps_RC \ |
| 24173 | compiler_lib_search_path_RC \ |
| 24174 | archive_cmds_RC \ |
| 24175 | archive_expsym_cmds_RC \ |
| 24176 | postinstall_cmds_RC \ |
| 24177 | postuninstall_cmds_RC \ |
| 24178 | old_archive_from_expsyms_cmds_RC \ |
| 24179 | allow_undefined_flag_RC \ |
| 24180 | no_undefined_flag_RC \ |
| 24181 | export_symbols_cmds_RC \ |
| 24182 | hardcode_libdir_flag_spec_RC \ |
| 24183 | hardcode_libdir_flag_spec_ld_RC \ |
| 24184 | hardcode_libdir_separator_RC \ |
| 24185 | hardcode_automatic_RC \ |
| 24186 | module_cmds_RC \ |
| 24187 | module_expsym_cmds_RC \ |
| 24188 | lt_cv_prog_compiler_c_o_RC \ |
| 24189 | exclude_expsyms_RC \ |
| 24190 | include_expsyms_RC; do |
| 24191 | |
| 24192 | case $var in |
| 24193 | old_archive_cmds_RC | \ |
| 24194 | old_archive_from_new_cmds_RC | \ |
| 24195 | archive_cmds_RC | \ |
| 24196 | archive_expsym_cmds_RC | \ |
| 24197 | module_cmds_RC | \ |
| 24198 | module_expsym_cmds_RC | \ |
| 24199 | old_archive_from_expsyms_cmds_RC | \ |
| 24200 | export_symbols_cmds_RC | \ |
| 24201 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 24202 | postinstall_cmds | postuninstall_cmds | \ |
| 24203 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 24204 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 24205 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24206 | 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] | 24207 | ;; |
| 24208 | *) |
| 24209 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 24210 | ;; |
| 24211 | esac |
| 24212 | done |
| 24213 | |
| 24214 | case $lt_echo in |
| 24215 | *'\$0 --fallback-echo"') |
| 24216 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 24217 | ;; |
| 24218 | esac |
| 24219 | |
| 24220 | cfgfile="$ofile" |
| 24221 | |
| 24222 | cat <<__EOF__ >> "$cfgfile" |
| 24223 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 24224 | |
| 24225 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 24226 | |
| 24227 | # Shell to use when invoking shell scripts. |
| 24228 | SHELL=$lt_SHELL |
| 24229 | |
| 24230 | # Whether or not to build shared libraries. |
| 24231 | build_libtool_libs=$enable_shared |
| 24232 | |
| 24233 | # Whether or not to build static libraries. |
| 24234 | build_old_libs=$enable_static |
| 24235 | |
| 24236 | # Whether or not to add -lc for building shared libraries. |
| 24237 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 24238 | |
| 24239 | # Whether or not to disallow shared libs when runtime libs are static |
| 24240 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 24241 | |
| 24242 | # Whether or not to optimize for fast installation. |
| 24243 | fast_install=$enable_fast_install |
| 24244 | |
| 24245 | # The host system. |
| 24246 | host_alias=$host_alias |
| 24247 | host=$host |
| 24248 | |
| 24249 | # An echo program that does not interpret backslashes. |
| 24250 | echo=$lt_echo |
| 24251 | |
| 24252 | # The archiver. |
| 24253 | AR=$lt_AR |
| 24254 | AR_FLAGS=$lt_AR_FLAGS |
| 24255 | |
| 24256 | # A C compiler. |
| 24257 | LTCC=$lt_LTCC |
| 24258 | |
| 24259 | # A language-specific compiler. |
| 24260 | CC=$lt_compiler_RC |
| 24261 | |
| 24262 | # Is the compiler the GNU C compiler? |
| 24263 | with_gcc=$GCC_RC |
| 24264 | |
| 24265 | # An ERE matcher. |
| 24266 | EGREP=$lt_EGREP |
| 24267 | |
| 24268 | # The linker used to build libraries. |
| 24269 | LD=$lt_LD_RC |
| 24270 | |
| 24271 | # Whether we need hard or soft links. |
| 24272 | LN_S=$lt_LN_S |
| 24273 | |
| 24274 | # A BSD-compatible nm program. |
| 24275 | NM=$lt_NM |
| 24276 | |
| 24277 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24278 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24279 | |
| 24280 | # Used to examine libraries when file_magic_cmd begins "file" |
| 24281 | MAGIC_CMD=$MAGIC_CMD |
| 24282 | |
| 24283 | # Used on cygwin: DLL creation program. |
| 24284 | DLLTOOL="$DLLTOOL" |
| 24285 | |
| 24286 | # Used on cygwin: object dumper. |
| 24287 | OBJDUMP="$OBJDUMP" |
| 24288 | |
| 24289 | # Used on cygwin: assembler. |
| 24290 | AS="$AS" |
| 24291 | |
| 24292 | # The name of the directory that contains temporary libtool files. |
| 24293 | objdir=$objdir |
| 24294 | |
| 24295 | # How to create reloadable object files. |
| 24296 | reload_flag=$lt_reload_flag |
| 24297 | reload_cmds=$lt_reload_cmds |
| 24298 | |
| 24299 | # How to pass a linker flag through the compiler. |
| 24300 | wl=$lt_lt_prog_compiler_wl_RC |
| 24301 | |
| 24302 | # Object file suffix (normally "o"). |
| 24303 | objext="$ac_objext" |
| 24304 | |
| 24305 | # Old archive suffix (normally "a"). |
| 24306 | libext="$libext" |
| 24307 | |
| 24308 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24309 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24310 | |
| 24311 | # Executable file suffix (normally ""). |
| 24312 | exeext="$exeext" |
| 24313 | |
| 24314 | # Additional compiler flags for building library objects. |
| 24315 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 24316 | pic_mode=$pic_mode |
| 24317 | |
| 24318 | # What is the maximum length of a command? |
| 24319 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 24320 | |
| 24321 | # Does compiler simultaneously support -c and -o options? |
| 24322 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 24323 | |
| 24324 | # Must we lock files when doing compilation ? |
| 24325 | need_locks=$lt_need_locks |
| 24326 | |
| 24327 | # Do we need the lib prefix for modules? |
| 24328 | need_lib_prefix=$need_lib_prefix |
| 24329 | |
| 24330 | # Do we need a version for libraries? |
| 24331 | need_version=$need_version |
| 24332 | |
| 24333 | # Whether dlopen is supported. |
| 24334 | dlopen_support=$enable_dlopen |
| 24335 | |
| 24336 | # Whether dlopen of programs is supported. |
| 24337 | dlopen_self=$enable_dlopen_self |
| 24338 | |
| 24339 | # Whether dlopen of statically linked programs is supported. |
| 24340 | dlopen_self_static=$enable_dlopen_self_static |
| 24341 | |
| 24342 | # Compiler flag to prevent dynamic linking. |
| 24343 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 24344 | |
| 24345 | # Compiler flag to turn off builtin functions. |
| 24346 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 24347 | |
| 24348 | # Compiler flag to allow reflexive dlopens. |
| 24349 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 24350 | |
| 24351 | # Compiler flag to generate shared objects directly from archives. |
| 24352 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 24353 | |
| 24354 | # Compiler flag to generate thread-safe objects. |
| 24355 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 24356 | |
| 24357 | # Library versioning type. |
| 24358 | version_type=$version_type |
| 24359 | |
| 24360 | # Format of library name prefix. |
| 24361 | libname_spec=$lt_libname_spec |
| 24362 | |
| 24363 | # List of archive names. First name is the real one, the rest are links. |
| 24364 | # The last name is the one that the linker finds with -lNAME. |
| 24365 | library_names_spec=$lt_library_names_spec |
| 24366 | |
| 24367 | # The coded name of the library, if different from the real name. |
| 24368 | soname_spec=$lt_soname_spec |
| 24369 | |
| 24370 | # Commands used to build and install an old-style archive. |
| 24371 | RANLIB=$lt_RANLIB |
| 24372 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 24373 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24374 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24375 | |
| 24376 | # Create an old-style archive from a shared archive. |
| 24377 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 24378 | |
| 24379 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24380 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 24381 | |
| 24382 | # Commands used to build and install a shared archive. |
| 24383 | archive_cmds=$lt_archive_cmds_RC |
| 24384 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 24385 | postinstall_cmds=$lt_postinstall_cmds |
| 24386 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24387 | |
| 24388 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24389 | module_cmds=$lt_module_cmds_RC |
| 24390 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 24391 | |
| 24392 | # Commands to strip libraries. |
| 24393 | old_striplib=$lt_old_striplib |
| 24394 | striplib=$lt_striplib |
| 24395 | |
| 24396 | # Dependencies to place before the objects being linked to create a |
| 24397 | # shared library. |
| 24398 | predep_objects=$lt_predep_objects_RC |
| 24399 | |
| 24400 | # Dependencies to place after the objects being linked to create a |
| 24401 | # shared library. |
| 24402 | postdep_objects=$lt_postdep_objects_RC |
| 24403 | |
| 24404 | # Dependencies to place before the objects being linked to create a |
| 24405 | # shared library. |
| 24406 | predeps=$lt_predeps_RC |
| 24407 | |
| 24408 | # Dependencies to place after the objects being linked to create a |
| 24409 | # shared library. |
| 24410 | postdeps=$lt_postdeps_RC |
| 24411 | |
| 24412 | # The library search path used internally by the compiler when linking |
| 24413 | # a shared library. |
| 24414 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 24415 | |
| 24416 | # Method to check whether dependent libraries are shared objects. |
| 24417 | deplibs_check_method=$lt_deplibs_check_method |
| 24418 | |
| 24419 | # Command to use when deplibs_check_method == file_magic. |
| 24420 | file_magic_cmd=$lt_file_magic_cmd |
| 24421 | |
| 24422 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24423 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 24424 | |
| 24425 | # Flag that forces no undefined symbols. |
| 24426 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 24427 | |
| 24428 | # Commands used to finish a libtool library installation in a directory. |
| 24429 | finish_cmds=$lt_finish_cmds |
| 24430 | |
| 24431 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24432 | finish_eval=$lt_finish_eval |
| 24433 | |
| 24434 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24435 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24436 | |
| 24437 | # Transform the output of nm in a proper C declaration |
| 24438 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24439 | |
| 24440 | # Transform the output of nm in a C name address pair |
| 24441 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24442 | |
| 24443 | # This is the shared library runtime path variable. |
| 24444 | runpath_var=$runpath_var |
| 24445 | |
| 24446 | # This is the shared library path variable. |
| 24447 | shlibpath_var=$shlibpath_var |
| 24448 | |
| 24449 | # Is shlibpath searched before the hard-coded library search path? |
| 24450 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24451 | |
| 24452 | # How to hardcode a shared library path into an executable. |
| 24453 | hardcode_action=$hardcode_action_RC |
| 24454 | |
| 24455 | # Whether we should hardcode library paths into libraries. |
| 24456 | hardcode_into_libs=$hardcode_into_libs |
| 24457 | |
| 24458 | # Flag to hardcode \$libdir into a binary during linking. |
| 24459 | # This must work even if \$libdir does not exist. |
| 24460 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 24461 | |
| 24462 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24463 | # a binary during linking. This must work even if \$libdir does |
| 24464 | # not exist. |
| 24465 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 24466 | |
| 24467 | # Whether we need a single -rpath flag with a separated argument. |
| 24468 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 24469 | |
| 24470 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24471 | # resulting binary. |
| 24472 | hardcode_direct=$hardcode_direct_RC |
| 24473 | |
| 24474 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24475 | # resulting binary. |
| 24476 | hardcode_minus_L=$hardcode_minus_L_RC |
| 24477 | |
| 24478 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24479 | # the resulting binary. |
| 24480 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 24481 | |
| 24482 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24483 | # and all subsequent libraries and executables linked against it. |
| 24484 | hardcode_automatic=$hardcode_automatic_RC |
| 24485 | |
| 24486 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24487 | # restored at relink time. |
| 24488 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24489 | |
| 24490 | # Whether libtool must link a program against all its dependency libraries. |
| 24491 | link_all_deplibs=$link_all_deplibs_RC |
| 24492 | |
| 24493 | # Compile-time system search path for libraries |
| 24494 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24495 | |
| 24496 | # Run-time system search path for libraries |
| 24497 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24498 | |
| 24499 | # Fix the shell variable \$srcfile for the compiler. |
| 24500 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 24501 | |
| 24502 | # Set to yes if exported symbols are required. |
| 24503 | always_export_symbols=$always_export_symbols_RC |
| 24504 | |
| 24505 | # The commands to list exported symbols. |
| 24506 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 24507 | |
| 24508 | # The commands to extract the exported symbol list from a shared archive. |
| 24509 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24510 | |
| 24511 | # Symbols that should not be listed in the preloaded symbols. |
| 24512 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 24513 | |
| 24514 | # Symbols that must always be exported. |
| 24515 | include_expsyms=$lt_include_expsyms_RC |
| 24516 | |
| 24517 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24518 | |
| 24519 | __EOF__ |
| 24520 | |
| 24521 | |
| 24522 | else |
| 24523 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24524 | # `config.status --recheck' to rerun these tests and create the |
| 24525 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24526 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24527 | if test -f "$ltmain_in"; then |
| 24528 | test -f Makefile && make "$ltmain" |
| 24529 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24530 | fi |
| 24531 | |
| 24532 | |
| 24533 | ac_ext=c |
| 24534 | ac_cpp='$CPP $CPPFLAGS' |
| 24535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24538 | |
| 24539 | CC="$lt_save_CC" |
| 24540 | |
| 24541 | ;; |
| 24542 | |
| 24543 | *) |
| 24544 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 24545 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 24546 | { (exit 1); exit 1; }; } |
| 24547 | ;; |
| 24548 | esac |
| 24549 | |
| 24550 | # Append the new tag name to the list of available tags. |
| 24551 | if test -n "$tagname" ; then |
| 24552 | available_tags="$available_tags $tagname" |
| 24553 | fi |
| 24554 | fi |
| 24555 | done |
| 24556 | IFS="$lt_save_ifs" |
| 24557 | |
| 24558 | # Now substitute the updated list of available tags. |
| 24559 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 24560 | mv "${ofile}T" "$ofile" |
| 24561 | chmod +x "$ofile" |
| 24562 | else |
| 24563 | rm -f "${ofile}T" |
| 24564 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 24565 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 24566 | { (exit 1); exit 1; }; } |
| 24567 | fi |
| 24568 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24569 | |
| 24570 | |
| 24571 | |
| 24572 | # This can be used to rebuild libtool when needed |
| 24573 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 24574 | |
| 24575 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24576 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24577 | |
| 24578 | # Prevent multiple expansion |
| 24579 | |
| 24580 | |
| 24581 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24582 | |
| 24583 | |
| 24584 | |
| 24585 | |
| 24586 | |
| 24587 | |
| 24588 | |
| 24589 | |
| 24590 | |
| 24591 | |
| 24592 | |
| 24593 | |
| 24594 | |
| 24595 | |
| 24596 | |
| 24597 | |
| 24598 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24599 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 24600 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 24601 | |
| 24602 | cat >>confdefs.h <<\_ACEOF |
| 24603 | #define CAN_DLOPEN_SELF 1 |
| 24604 | _ACEOF |
| 24605 | |
| 24606 | fi |
| 24607 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24608 | etags_version=`$ETAGS --version 2>&1` |
| 24609 | case "$etags_version" in |
| 24610 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 24611 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 24612 | *) ETAGSFLAGS="" ;; |
| 24613 | esac |
| 24614 | ETAGSFLAGS=$ETAGSFLAGS |
| 24615 | |
| 24616 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 24617 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24618 | # Extract the first word of "llvm-gcc", so it can be a program name with args. |
| 24619 | set dummy llvm-gcc; ac_word=$2 |
| 24620 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 24622 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 24623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24624 | else |
| 24625 | case $LLVMGCC in |
| 24626 | [\\/]* | ?:[\\/]*) |
| 24627 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 24628 | ;; |
| 24629 | *) |
| 24630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24631 | for as_dir in $PATH |
| 24632 | do |
| 24633 | IFS=$as_save_IFS |
| 24634 | test -z "$as_dir" && as_dir=. |
| 24635 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24636 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24637 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 24638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24639 | break 2 |
| 24640 | fi |
| 24641 | done |
| 24642 | done |
| 24643 | |
| 24644 | test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc" |
| 24645 | ;; |
| 24646 | esac |
| 24647 | fi |
| 24648 | LLVMGCC=$ac_cv_path_LLVMGCC |
| 24649 | |
| 24650 | if test -n "$LLVMGCC"; then |
| 24651 | echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 24652 | echo "${ECHO_T}$LLVMGCC" >&6 |
| 24653 | else |
| 24654 | echo "$as_me:$LINENO: result: no" >&5 |
| 24655 | echo "${ECHO_T}no" >&6 |
| 24656 | fi |
| 24657 | |
| 24658 | # Extract the first word of "llvm-g++", so it can be a program name with args. |
| 24659 | set dummy llvm-g++; ac_word=$2 |
| 24660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 24662 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 24663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24664 | else |
| 24665 | case $LLVMGXX in |
| 24666 | [\\/]* | ?:[\\/]*) |
| 24667 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 24668 | ;; |
| 24669 | *) |
| 24670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24671 | for as_dir in $PATH |
| 24672 | do |
| 24673 | IFS=$as_save_IFS |
| 24674 | test -z "$as_dir" && as_dir=. |
| 24675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24677 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 24678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24679 | break 2 |
| 24680 | fi |
| 24681 | done |
| 24682 | done |
| 24683 | |
| 24684 | test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++" |
| 24685 | ;; |
| 24686 | esac |
| 24687 | fi |
| 24688 | LLVMGXX=$ac_cv_path_LLVMGXX |
| 24689 | |
| 24690 | if test -n "$LLVMGXX"; then |
| 24691 | echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 24692 | echo "${ECHO_T}$LLVMGXX" >&6 |
| 24693 | else |
| 24694 | echo "$as_me:$LINENO: result: no" >&5 |
| 24695 | echo "${ECHO_T}no" >&6 |
| 24696 | fi |
| 24697 | |
| 24698 | else |
| 24699 | LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc |
| 24700 | LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++ |
| 24701 | LLVMGCC=$LLVMGCC |
| 24702 | |
| 24703 | LLVMGXX=$LLVMGXX |
| 24704 | |
| 24705 | fi |
| 24706 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24707 | echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 24708 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 |
| 24709 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24710 | ICC=no |
| 24711 | IXX=no |
| 24712 | case $CC in |
| 24713 | icc*|icpc*) |
| 24714 | ICC=yes |
| 24715 | IXX=yes |
| 24716 | ;; |
| 24717 | *) |
| 24718 | ;; |
| 24719 | esac |
| 24720 | |
| 24721 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24722 | then |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24723 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 24724 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24725 | { (exit 1); exit 1; }; } |
| 24726 | fi |
| 24727 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24728 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24729 | then |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24730 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 24731 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 24732 | { (exit 1); exit 1; }; } |
| 24733 | fi |
| 24734 | |
| 24735 | if test "$GCC" = "yes" |
| 24736 | then |
| 24737 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` |
| 24738 | if test "$gccmajor" -lt "3" |
| 24739 | then |
| 24740 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24741 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 24742 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24743 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24744 | fi |
| 24745 | |
| 24746 | if test -z "$llvm_cv_gnu_make_command" |
| 24747 | then |
| 24748 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 24749 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 24750 | { (exit 1); exit 1; }; } |
| 24751 | fi |
| 24752 | |
| 24753 | echo "$as_me:$LINENO: result: ok" >&5 |
| 24754 | echo "${ECHO_T}ok" >&6 |
| 24755 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24756 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24757 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24758 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 24759 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 24760 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 24761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24762 | else |
| 24763 | ac_check_lib_save_LIBS=$LIBS |
| 24764 | LIBS="-lelf $LIBS" |
| 24765 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24766 | /* confdefs.h. */ |
| 24767 | _ACEOF |
| 24768 | cat confdefs.h >>conftest.$ac_ext |
| 24769 | cat >>conftest.$ac_ext <<_ACEOF |
| 24770 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24771 | |
| 24772 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24773 | #ifdef __cplusplus |
| 24774 | extern "C" |
| 24775 | #endif |
| 24776 | /* We use char because int might match the return type of a gcc2 |
| 24777 | builtin and then its argument prototype would still apply. */ |
| 24778 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24779 | int |
| 24780 | main () |
| 24781 | { |
| 24782 | elf_begin (); |
| 24783 | ; |
| 24784 | return 0; |
| 24785 | } |
| 24786 | _ACEOF |
| 24787 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24789 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24790 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24792 | rm -f conftest.er1 |
| 24793 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24795 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24796 | { ac_try='test -z "$ac_c_werror_flag" |
| 24797 | || test ! -s conftest.err' |
| 24798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24799 | (eval $ac_try) 2>&5 |
| 24800 | ac_status=$? |
| 24801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24802 | (exit $ac_status); }; } && |
| 24803 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24805 | (eval $ac_try) 2>&5 |
| 24806 | ac_status=$? |
| 24807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24808 | (exit $ac_status); }; }; then |
| 24809 | ac_cv_lib_elf_elf_begin=yes |
| 24810 | else |
| 24811 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24813 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24814 | ac_cv_lib_elf_elf_begin=no |
| 24815 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24816 | rm -f conftest.err conftest.$ac_objext \ |
| 24817 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24818 | LIBS=$ac_check_lib_save_LIBS |
| 24819 | fi |
| 24820 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 24821 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 24822 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 24823 | cat >>confdefs.h <<_ACEOF |
| 24824 | #define HAVE_LIBELF 1 |
| 24825 | _ACEOF |
| 24826 | |
| 24827 | LIBS="-lelf $LIBS" |
| 24828 | |
| 24829 | fi |
| 24830 | |
| 24831 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 24832 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 24833 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 |
| 24834 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 24835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24836 | else |
| 24837 | ac_func_search_save_LIBS=$LIBS |
| 24838 | ac_cv_search_lt_dlopen=no |
| 24839 | cat >conftest.$ac_ext <<_ACEOF |
| 24840 | /* confdefs.h. */ |
| 24841 | _ACEOF |
| 24842 | cat confdefs.h >>conftest.$ac_ext |
| 24843 | cat >>conftest.$ac_ext <<_ACEOF |
| 24844 | /* end confdefs.h. */ |
| 24845 | |
| 24846 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24847 | #ifdef __cplusplus |
| 24848 | extern "C" |
| 24849 | #endif |
| 24850 | /* We use char because int might match the return type of a gcc2 |
| 24851 | builtin and then its argument prototype would still apply. */ |
| 24852 | char lt_dlopen (); |
| 24853 | int |
| 24854 | main () |
| 24855 | { |
| 24856 | lt_dlopen (); |
| 24857 | ; |
| 24858 | return 0; |
| 24859 | } |
| 24860 | _ACEOF |
| 24861 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24863 | (eval $ac_link) 2>conftest.er1 |
| 24864 | ac_status=$? |
| 24865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24866 | rm -f conftest.er1 |
| 24867 | cat conftest.err >&5 |
| 24868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24869 | (exit $ac_status); } && |
| 24870 | { ac_try='test -z "$ac_c_werror_flag" |
| 24871 | || test ! -s conftest.err' |
| 24872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24873 | (eval $ac_try) 2>&5 |
| 24874 | ac_status=$? |
| 24875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24876 | (exit $ac_status); }; } && |
| 24877 | { ac_try='test -s conftest$ac_exeext' |
| 24878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24879 | (eval $ac_try) 2>&5 |
| 24880 | ac_status=$? |
| 24881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24882 | (exit $ac_status); }; }; then |
| 24883 | ac_cv_search_lt_dlopen="none required" |
| 24884 | else |
| 24885 | echo "$as_me: failed program was:" >&5 |
| 24886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24887 | |
| 24888 | fi |
| 24889 | rm -f conftest.err conftest.$ac_objext \ |
| 24890 | conftest$ac_exeext conftest.$ac_ext |
| 24891 | if test "$ac_cv_search_lt_dlopen" = no; then |
| 24892 | for ac_lib in ltdl; do |
| 24893 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24894 | cat >conftest.$ac_ext <<_ACEOF |
| 24895 | /* confdefs.h. */ |
| 24896 | _ACEOF |
| 24897 | cat confdefs.h >>conftest.$ac_ext |
| 24898 | cat >>conftest.$ac_ext <<_ACEOF |
| 24899 | /* end confdefs.h. */ |
| 24900 | |
| 24901 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24902 | #ifdef __cplusplus |
| 24903 | extern "C" |
| 24904 | #endif |
| 24905 | /* We use char because int might match the return type of a gcc2 |
| 24906 | builtin and then its argument prototype would still apply. */ |
| 24907 | char lt_dlopen (); |
| 24908 | int |
| 24909 | main () |
| 24910 | { |
| 24911 | lt_dlopen (); |
| 24912 | ; |
| 24913 | return 0; |
| 24914 | } |
| 24915 | _ACEOF |
| 24916 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24918 | (eval $ac_link) 2>conftest.er1 |
| 24919 | ac_status=$? |
| 24920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24921 | rm -f conftest.er1 |
| 24922 | cat conftest.err >&5 |
| 24923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24924 | (exit $ac_status); } && |
| 24925 | { ac_try='test -z "$ac_c_werror_flag" |
| 24926 | || test ! -s conftest.err' |
| 24927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24928 | (eval $ac_try) 2>&5 |
| 24929 | ac_status=$? |
| 24930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24931 | (exit $ac_status); }; } && |
| 24932 | { ac_try='test -s conftest$ac_exeext' |
| 24933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24934 | (eval $ac_try) 2>&5 |
| 24935 | ac_status=$? |
| 24936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24937 | (exit $ac_status); }; }; then |
| 24938 | ac_cv_search_lt_dlopen="-l$ac_lib" |
| 24939 | break |
| 24940 | else |
| 24941 | echo "$as_me: failed program was:" >&5 |
| 24942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24943 | |
| 24944 | fi |
| 24945 | rm -f conftest.err conftest.$ac_objext \ |
| 24946 | conftest$ac_exeext conftest.$ac_ext |
| 24947 | done |
| 24948 | fi |
| 24949 | LIBS=$ac_func_search_save_LIBS |
| 24950 | fi |
| 24951 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 24952 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 |
| 24953 | if test "$ac_cv_search_lt_dlopen" != no; then |
| 24954 | test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" |
| 24955 | |
| 24956 | cat >>confdefs.h <<\_ACEOF |
| 24957 | #define HAVE_LT_DLOPEN 1 |
| 24958 | _ACEOF |
| 24959 | |
| 24960 | else |
| 24961 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 24962 | not be available" >&5 |
| 24963 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 24964 | not be available" >&2;} |
| 24965 | fi |
| 24966 | |
| 24967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24968 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 24969 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 24970 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 24971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24972 | else |
| 24973 | ac_func_search_save_LIBS=$LIBS |
| 24974 | ac_cv_search_dlopen=no |
| 24975 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24976 | /* confdefs.h. */ |
| 24977 | _ACEOF |
| 24978 | cat confdefs.h >>conftest.$ac_ext |
| 24979 | cat >>conftest.$ac_ext <<_ACEOF |
| 24980 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24981 | |
| 24982 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24983 | #ifdef __cplusplus |
| 24984 | extern "C" |
| 24985 | #endif |
| 24986 | /* We use char because int might match the return type of a gcc2 |
| 24987 | builtin and then its argument prototype would still apply. */ |
| 24988 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24989 | int |
| 24990 | main () |
| 24991 | { |
| 24992 | dlopen (); |
| 24993 | ; |
| 24994 | return 0; |
| 24995 | } |
| 24996 | _ACEOF |
| 24997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24999 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25000 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25002 | rm -f conftest.er1 |
| 25003 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25005 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25006 | { ac_try='test -z "$ac_c_werror_flag" |
| 25007 | || test ! -s conftest.err' |
| 25008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25009 | (eval $ac_try) 2>&5 |
| 25010 | ac_status=$? |
| 25011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25012 | (exit $ac_status); }; } && |
| 25013 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25015 | (eval $ac_try) 2>&5 |
| 25016 | ac_status=$? |
| 25017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25018 | (exit $ac_status); }; }; then |
| 25019 | ac_cv_search_dlopen="none required" |
| 25020 | else |
| 25021 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25023 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25024 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25025 | rm -f conftest.err conftest.$ac_objext \ |
| 25026 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25027 | if test "$ac_cv_search_dlopen" = no; then |
| 25028 | for ac_lib in dl; do |
| 25029 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25030 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25031 | /* confdefs.h. */ |
| 25032 | _ACEOF |
| 25033 | cat confdefs.h >>conftest.$ac_ext |
| 25034 | cat >>conftest.$ac_ext <<_ACEOF |
| 25035 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25036 | |
| 25037 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25038 | #ifdef __cplusplus |
| 25039 | extern "C" |
| 25040 | #endif |
| 25041 | /* We use char because int might match the return type of a gcc2 |
| 25042 | builtin and then its argument prototype would still apply. */ |
| 25043 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25044 | int |
| 25045 | main () |
| 25046 | { |
| 25047 | dlopen (); |
| 25048 | ; |
| 25049 | return 0; |
| 25050 | } |
| 25051 | _ACEOF |
| 25052 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25054 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25055 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25057 | rm -f conftest.er1 |
| 25058 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25060 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25061 | { ac_try='test -z "$ac_c_werror_flag" |
| 25062 | || test ! -s conftest.err' |
| 25063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25064 | (eval $ac_try) 2>&5 |
| 25065 | ac_status=$? |
| 25066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25067 | (exit $ac_status); }; } && |
| 25068 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25070 | (eval $ac_try) 2>&5 |
| 25071 | ac_status=$? |
| 25072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25073 | (exit $ac_status); }; }; then |
| 25074 | ac_cv_search_dlopen="-l$ac_lib" |
| 25075 | break |
| 25076 | else |
| 25077 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25079 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25080 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25081 | rm -f conftest.err conftest.$ac_objext \ |
| 25082 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25083 | done |
| 25084 | fi |
| 25085 | LIBS=$ac_func_search_save_LIBS |
| 25086 | fi |
| 25087 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 25088 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 25089 | if test "$ac_cv_search_dlopen" != no; then |
| 25090 | 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] | 25091 | |
| 25092 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25093 | #define HAVE_DLOPEN 1 |
| 25094 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25095 | |
| 25096 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25097 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 25098 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25099 | fi |
| 25100 | |
| 25101 | |
| 25102 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 25103 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 25104 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 25105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25106 | else |
| 25107 | ac_func_search_save_LIBS=$LIBS |
| 25108 | ac_cv_search_mallinfo=no |
| 25109 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25110 | /* confdefs.h. */ |
| 25111 | _ACEOF |
| 25112 | cat confdefs.h >>conftest.$ac_ext |
| 25113 | cat >>conftest.$ac_ext <<_ACEOF |
| 25114 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25115 | |
| 25116 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25117 | #ifdef __cplusplus |
| 25118 | extern "C" |
| 25119 | #endif |
| 25120 | /* We use char because int might match the return type of a gcc2 |
| 25121 | builtin and then its argument prototype would still apply. */ |
| 25122 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25123 | int |
| 25124 | main () |
| 25125 | { |
| 25126 | mallinfo (); |
| 25127 | ; |
| 25128 | return 0; |
| 25129 | } |
| 25130 | _ACEOF |
| 25131 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25133 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25134 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25136 | rm -f conftest.er1 |
| 25137 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25139 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25140 | { ac_try='test -z "$ac_c_werror_flag" |
| 25141 | || test ! -s conftest.err' |
| 25142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25143 | (eval $ac_try) 2>&5 |
| 25144 | ac_status=$? |
| 25145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25146 | (exit $ac_status); }; } && |
| 25147 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25149 | (eval $ac_try) 2>&5 |
| 25150 | ac_status=$? |
| 25151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25152 | (exit $ac_status); }; }; then |
| 25153 | ac_cv_search_mallinfo="none required" |
| 25154 | else |
| 25155 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25157 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25158 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25159 | rm -f conftest.err conftest.$ac_objext \ |
| 25160 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25161 | if test "$ac_cv_search_mallinfo" = no; then |
| 25162 | for ac_lib in malloc; do |
| 25163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25164 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25165 | /* confdefs.h. */ |
| 25166 | _ACEOF |
| 25167 | cat confdefs.h >>conftest.$ac_ext |
| 25168 | cat >>conftest.$ac_ext <<_ACEOF |
| 25169 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25170 | |
| 25171 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25172 | #ifdef __cplusplus |
| 25173 | extern "C" |
| 25174 | #endif |
| 25175 | /* We use char because int might match the return type of a gcc2 |
| 25176 | builtin and then its argument prototype would still apply. */ |
| 25177 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25178 | int |
| 25179 | main () |
| 25180 | { |
| 25181 | mallinfo (); |
| 25182 | ; |
| 25183 | return 0; |
| 25184 | } |
| 25185 | _ACEOF |
| 25186 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25188 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25189 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25191 | rm -f conftest.er1 |
| 25192 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25194 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25195 | { ac_try='test -z "$ac_c_werror_flag" |
| 25196 | || test ! -s conftest.err' |
| 25197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25198 | (eval $ac_try) 2>&5 |
| 25199 | ac_status=$? |
| 25200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25201 | (exit $ac_status); }; } && |
| 25202 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25204 | (eval $ac_try) 2>&5 |
| 25205 | ac_status=$? |
| 25206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25207 | (exit $ac_status); }; }; then |
| 25208 | ac_cv_search_mallinfo="-l$ac_lib" |
| 25209 | break |
| 25210 | else |
| 25211 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25213 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25214 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25215 | rm -f conftest.err conftest.$ac_objext \ |
| 25216 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25217 | done |
| 25218 | fi |
| 25219 | LIBS=$ac_func_search_save_LIBS |
| 25220 | fi |
| 25221 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 25222 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 25223 | if test "$ac_cv_search_mallinfo" != no; then |
| 25224 | 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] | 25225 | |
| 25226 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25227 | #define HAVE_MALLINFO 1 |
| 25228 | _ACEOF |
| 25229 | |
| 25230 | fi |
| 25231 | |
| 25232 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25233 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 25234 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 |
| 25235 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 25236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25237 | else |
| 25238 | ac_func_search_save_LIBS=$LIBS |
| 25239 | ac_cv_search_pthread_mutex_lock=no |
| 25240 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25241 | /* confdefs.h. */ |
| 25242 | _ACEOF |
| 25243 | cat confdefs.h >>conftest.$ac_ext |
| 25244 | cat >>conftest.$ac_ext <<_ACEOF |
| 25245 | /* end confdefs.h. */ |
| 25246 | |
| 25247 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25248 | #ifdef __cplusplus |
| 25249 | extern "C" |
| 25250 | #endif |
| 25251 | /* We use char because int might match the return type of a gcc2 |
| 25252 | builtin and then its argument prototype would still apply. */ |
| 25253 | char pthread_mutex_lock (); |
| 25254 | int |
| 25255 | main () |
| 25256 | { |
| 25257 | pthread_mutex_lock (); |
| 25258 | ; |
| 25259 | return 0; |
| 25260 | } |
| 25261 | _ACEOF |
| 25262 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25264 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25265 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25267 | rm -f conftest.er1 |
| 25268 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25270 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25271 | { ac_try='test -z "$ac_c_werror_flag" |
| 25272 | || test ! -s conftest.err' |
| 25273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25274 | (eval $ac_try) 2>&5 |
| 25275 | ac_status=$? |
| 25276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25277 | (exit $ac_status); }; } && |
| 25278 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25280 | (eval $ac_try) 2>&5 |
| 25281 | ac_status=$? |
| 25282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25283 | (exit $ac_status); }; }; then |
| 25284 | ac_cv_search_pthread_mutex_lock="none required" |
| 25285 | else |
| 25286 | echo "$as_me: failed program was:" >&5 |
| 25287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25288 | |
| 25289 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25290 | rm -f conftest.err conftest.$ac_objext \ |
| 25291 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25292 | if test "$ac_cv_search_pthread_mutex_lock" = no; then |
| 25293 | for ac_lib in pthread; do |
| 25294 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25295 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25296 | /* confdefs.h. */ |
| 25297 | _ACEOF |
| 25298 | cat confdefs.h >>conftest.$ac_ext |
| 25299 | cat >>conftest.$ac_ext <<_ACEOF |
| 25300 | /* end confdefs.h. */ |
| 25301 | |
| 25302 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25303 | #ifdef __cplusplus |
| 25304 | extern "C" |
| 25305 | #endif |
| 25306 | /* We use char because int might match the return type of a gcc2 |
| 25307 | builtin and then its argument prototype would still apply. */ |
| 25308 | char pthread_mutex_lock (); |
| 25309 | int |
| 25310 | main () |
| 25311 | { |
| 25312 | pthread_mutex_lock (); |
| 25313 | ; |
| 25314 | return 0; |
| 25315 | } |
| 25316 | _ACEOF |
| 25317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25319 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25320 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25322 | rm -f conftest.er1 |
| 25323 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25325 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25326 | { ac_try='test -z "$ac_c_werror_flag" |
| 25327 | || test ! -s conftest.err' |
| 25328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25329 | (eval $ac_try) 2>&5 |
| 25330 | ac_status=$? |
| 25331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25332 | (exit $ac_status); }; } && |
| 25333 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25335 | (eval $ac_try) 2>&5 |
| 25336 | ac_status=$? |
| 25337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25338 | (exit $ac_status); }; }; then |
| 25339 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" |
| 25340 | break |
| 25341 | else |
| 25342 | echo "$as_me: failed program was:" >&5 |
| 25343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25344 | |
| 25345 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25346 | rm -f conftest.err conftest.$ac_objext \ |
| 25347 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25348 | done |
| 25349 | fi |
| 25350 | LIBS=$ac_func_search_save_LIBS |
| 25351 | fi |
| 25352 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 25353 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 |
| 25354 | if test "$ac_cv_search_pthread_mutex_lock" != no; then |
| 25355 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25356 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 25357 | cat >>confdefs.h <<\_ACEOF |
| 25358 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 25359 | _ACEOF |
| 25360 | |
| 25361 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25362 | |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 25363 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25364 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25365 | |
| 25366 | |
| 25367 | |
| 25368 | |
| 25369 | |
| 25370 | ac_header_dirent=no |
| 25371 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 25372 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 25373 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 25374 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 25375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 25376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25377 | else |
| 25378 | cat >conftest.$ac_ext <<_ACEOF |
| 25379 | /* confdefs.h. */ |
| 25380 | _ACEOF |
| 25381 | cat confdefs.h >>conftest.$ac_ext |
| 25382 | cat >>conftest.$ac_ext <<_ACEOF |
| 25383 | /* end confdefs.h. */ |
| 25384 | #include <sys/types.h> |
| 25385 | #include <$ac_hdr> |
| 25386 | |
| 25387 | int |
| 25388 | main () |
| 25389 | { |
| 25390 | if ((DIR *) 0) |
| 25391 | return 0; |
| 25392 | ; |
| 25393 | return 0; |
| 25394 | } |
| 25395 | _ACEOF |
| 25396 | rm -f conftest.$ac_objext |
| 25397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25398 | (eval $ac_compile) 2>conftest.er1 |
| 25399 | ac_status=$? |
| 25400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25401 | rm -f conftest.er1 |
| 25402 | cat conftest.err >&5 |
| 25403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25404 | (exit $ac_status); } && |
| 25405 | { ac_try='test -z "$ac_c_werror_flag" |
| 25406 | || test ! -s conftest.err' |
| 25407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25408 | (eval $ac_try) 2>&5 |
| 25409 | ac_status=$? |
| 25410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25411 | (exit $ac_status); }; } && |
| 25412 | { ac_try='test -s conftest.$ac_objext' |
| 25413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25414 | (eval $ac_try) 2>&5 |
| 25415 | ac_status=$? |
| 25416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25417 | (exit $ac_status); }; }; then |
| 25418 | eval "$as_ac_Header=yes" |
| 25419 | else |
| 25420 | echo "$as_me: failed program was:" >&5 |
| 25421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25422 | |
| 25423 | eval "$as_ac_Header=no" |
| 25424 | fi |
| 25425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25426 | fi |
| 25427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 25428 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 25429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 25430 | cat >>confdefs.h <<_ACEOF |
| 25431 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 25432 | _ACEOF |
| 25433 | |
| 25434 | ac_header_dirent=$ac_hdr; break |
| 25435 | fi |
| 25436 | |
| 25437 | done |
| 25438 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 25439 | if test $ac_header_dirent = dirent.h; then |
| 25440 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 25441 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 25442 | if test "${ac_cv_search_opendir+set}" = set; then |
| 25443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25444 | else |
| 25445 | ac_func_search_save_LIBS=$LIBS |
| 25446 | ac_cv_search_opendir=no |
| 25447 | cat >conftest.$ac_ext <<_ACEOF |
| 25448 | /* confdefs.h. */ |
| 25449 | _ACEOF |
| 25450 | cat confdefs.h >>conftest.$ac_ext |
| 25451 | cat >>conftest.$ac_ext <<_ACEOF |
| 25452 | /* end confdefs.h. */ |
| 25453 | |
| 25454 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25455 | #ifdef __cplusplus |
| 25456 | extern "C" |
| 25457 | #endif |
| 25458 | /* We use char because int might match the return type of a gcc2 |
| 25459 | builtin and then its argument prototype would still apply. */ |
| 25460 | char opendir (); |
| 25461 | int |
| 25462 | main () |
| 25463 | { |
| 25464 | opendir (); |
| 25465 | ; |
| 25466 | return 0; |
| 25467 | } |
| 25468 | _ACEOF |
| 25469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25471 | (eval $ac_link) 2>conftest.er1 |
| 25472 | ac_status=$? |
| 25473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25474 | rm -f conftest.er1 |
| 25475 | cat conftest.err >&5 |
| 25476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25477 | (exit $ac_status); } && |
| 25478 | { ac_try='test -z "$ac_c_werror_flag" |
| 25479 | || test ! -s conftest.err' |
| 25480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25481 | (eval $ac_try) 2>&5 |
| 25482 | ac_status=$? |
| 25483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25484 | (exit $ac_status); }; } && |
| 25485 | { ac_try='test -s conftest$ac_exeext' |
| 25486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25487 | (eval $ac_try) 2>&5 |
| 25488 | ac_status=$? |
| 25489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25490 | (exit $ac_status); }; }; then |
| 25491 | ac_cv_search_opendir="none required" |
| 25492 | else |
| 25493 | echo "$as_me: failed program was:" >&5 |
| 25494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25495 | |
| 25496 | fi |
| 25497 | rm -f conftest.err conftest.$ac_objext \ |
| 25498 | conftest$ac_exeext conftest.$ac_ext |
| 25499 | if test "$ac_cv_search_opendir" = no; then |
| 25500 | for ac_lib in dir; do |
| 25501 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25502 | cat >conftest.$ac_ext <<_ACEOF |
| 25503 | /* confdefs.h. */ |
| 25504 | _ACEOF |
| 25505 | cat confdefs.h >>conftest.$ac_ext |
| 25506 | cat >>conftest.$ac_ext <<_ACEOF |
| 25507 | /* end confdefs.h. */ |
| 25508 | |
| 25509 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25510 | #ifdef __cplusplus |
| 25511 | extern "C" |
| 25512 | #endif |
| 25513 | /* We use char because int might match the return type of a gcc2 |
| 25514 | builtin and then its argument prototype would still apply. */ |
| 25515 | char opendir (); |
| 25516 | int |
| 25517 | main () |
| 25518 | { |
| 25519 | opendir (); |
| 25520 | ; |
| 25521 | return 0; |
| 25522 | } |
| 25523 | _ACEOF |
| 25524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25526 | (eval $ac_link) 2>conftest.er1 |
| 25527 | ac_status=$? |
| 25528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25529 | rm -f conftest.er1 |
| 25530 | cat conftest.err >&5 |
| 25531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25532 | (exit $ac_status); } && |
| 25533 | { ac_try='test -z "$ac_c_werror_flag" |
| 25534 | || test ! -s conftest.err' |
| 25535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25536 | (eval $ac_try) 2>&5 |
| 25537 | ac_status=$? |
| 25538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25539 | (exit $ac_status); }; } && |
| 25540 | { ac_try='test -s conftest$ac_exeext' |
| 25541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25542 | (eval $ac_try) 2>&5 |
| 25543 | ac_status=$? |
| 25544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25545 | (exit $ac_status); }; }; then |
| 25546 | ac_cv_search_opendir="-l$ac_lib" |
| 25547 | break |
| 25548 | else |
| 25549 | echo "$as_me: failed program was:" >&5 |
| 25550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25551 | |
| 25552 | fi |
| 25553 | rm -f conftest.err conftest.$ac_objext \ |
| 25554 | conftest$ac_exeext conftest.$ac_ext |
| 25555 | done |
| 25556 | fi |
| 25557 | LIBS=$ac_func_search_save_LIBS |
| 25558 | fi |
| 25559 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 25560 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 25561 | if test "$ac_cv_search_opendir" != no; then |
| 25562 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 25563 | |
| 25564 | fi |
| 25565 | |
| 25566 | else |
| 25567 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 25568 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 25569 | if test "${ac_cv_search_opendir+set}" = set; then |
| 25570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25571 | else |
| 25572 | ac_func_search_save_LIBS=$LIBS |
| 25573 | ac_cv_search_opendir=no |
| 25574 | cat >conftest.$ac_ext <<_ACEOF |
| 25575 | /* confdefs.h. */ |
| 25576 | _ACEOF |
| 25577 | cat confdefs.h >>conftest.$ac_ext |
| 25578 | cat >>conftest.$ac_ext <<_ACEOF |
| 25579 | /* end confdefs.h. */ |
| 25580 | |
| 25581 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25582 | #ifdef __cplusplus |
| 25583 | extern "C" |
| 25584 | #endif |
| 25585 | /* We use char because int might match the return type of a gcc2 |
| 25586 | builtin and then its argument prototype would still apply. */ |
| 25587 | char opendir (); |
| 25588 | int |
| 25589 | main () |
| 25590 | { |
| 25591 | opendir (); |
| 25592 | ; |
| 25593 | return 0; |
| 25594 | } |
| 25595 | _ACEOF |
| 25596 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25598 | (eval $ac_link) 2>conftest.er1 |
| 25599 | ac_status=$? |
| 25600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25601 | rm -f conftest.er1 |
| 25602 | cat conftest.err >&5 |
| 25603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25604 | (exit $ac_status); } && |
| 25605 | { ac_try='test -z "$ac_c_werror_flag" |
| 25606 | || test ! -s conftest.err' |
| 25607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25608 | (eval $ac_try) 2>&5 |
| 25609 | ac_status=$? |
| 25610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25611 | (exit $ac_status); }; } && |
| 25612 | { ac_try='test -s conftest$ac_exeext' |
| 25613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25614 | (eval $ac_try) 2>&5 |
| 25615 | ac_status=$? |
| 25616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25617 | (exit $ac_status); }; }; then |
| 25618 | ac_cv_search_opendir="none required" |
| 25619 | else |
| 25620 | echo "$as_me: failed program was:" >&5 |
| 25621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25622 | |
| 25623 | fi |
| 25624 | rm -f conftest.err conftest.$ac_objext \ |
| 25625 | conftest$ac_exeext conftest.$ac_ext |
| 25626 | if test "$ac_cv_search_opendir" = no; then |
| 25627 | for ac_lib in x; do |
| 25628 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25629 | cat >conftest.$ac_ext <<_ACEOF |
| 25630 | /* confdefs.h. */ |
| 25631 | _ACEOF |
| 25632 | cat confdefs.h >>conftest.$ac_ext |
| 25633 | cat >>conftest.$ac_ext <<_ACEOF |
| 25634 | /* end confdefs.h. */ |
| 25635 | |
| 25636 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25637 | #ifdef __cplusplus |
| 25638 | extern "C" |
| 25639 | #endif |
| 25640 | /* We use char because int might match the return type of a gcc2 |
| 25641 | builtin and then its argument prototype would still apply. */ |
| 25642 | char opendir (); |
| 25643 | int |
| 25644 | main () |
| 25645 | { |
| 25646 | opendir (); |
| 25647 | ; |
| 25648 | return 0; |
| 25649 | } |
| 25650 | _ACEOF |
| 25651 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25653 | (eval $ac_link) 2>conftest.er1 |
| 25654 | ac_status=$? |
| 25655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25656 | rm -f conftest.er1 |
| 25657 | cat conftest.err >&5 |
| 25658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25659 | (exit $ac_status); } && |
| 25660 | { ac_try='test -z "$ac_c_werror_flag" |
| 25661 | || test ! -s conftest.err' |
| 25662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25663 | (eval $ac_try) 2>&5 |
| 25664 | ac_status=$? |
| 25665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25666 | (exit $ac_status); }; } && |
| 25667 | { ac_try='test -s conftest$ac_exeext' |
| 25668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25669 | (eval $ac_try) 2>&5 |
| 25670 | ac_status=$? |
| 25671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25672 | (exit $ac_status); }; }; then |
| 25673 | ac_cv_search_opendir="-l$ac_lib" |
| 25674 | break |
| 25675 | else |
| 25676 | echo "$as_me: failed program was:" >&5 |
| 25677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25678 | |
| 25679 | fi |
| 25680 | rm -f conftest.err conftest.$ac_objext \ |
| 25681 | conftest$ac_exeext conftest.$ac_ext |
| 25682 | done |
| 25683 | fi |
| 25684 | LIBS=$ac_func_search_save_LIBS |
| 25685 | fi |
| 25686 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 25687 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 25688 | if test "$ac_cv_search_opendir" != no; then |
| 25689 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 25690 | |
| 25691 | fi |
| 25692 | |
| 25693 | fi |
| 25694 | |
| 25695 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 25696 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 25697 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 25698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25699 | else |
| 25700 | ac_ext=c |
| 25701 | ac_cpp='$CPP $CPPFLAGS' |
| 25702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25705 | |
| 25706 | cat >conftest.$ac_ext <<_ACEOF |
| 25707 | /* confdefs.h. */ |
| 25708 | _ACEOF |
| 25709 | cat confdefs.h >>conftest.$ac_ext |
| 25710 | cat >>conftest.$ac_ext <<_ACEOF |
| 25711 | /* end confdefs.h. */ |
| 25712 | #include <sys/mman.h> |
| 25713 | #include <unistd.h> |
| 25714 | #include <fcntl.h> |
| 25715 | int |
| 25716 | main () |
| 25717 | { |
| 25718 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 25719 | ; |
| 25720 | return 0; |
| 25721 | } |
| 25722 | _ACEOF |
| 25723 | rm -f conftest.$ac_objext |
| 25724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25725 | (eval $ac_compile) 2>conftest.er1 |
| 25726 | ac_status=$? |
| 25727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25728 | rm -f conftest.er1 |
| 25729 | cat conftest.err >&5 |
| 25730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25731 | (exit $ac_status); } && |
| 25732 | { ac_try='test -z "$ac_c_werror_flag" |
| 25733 | || test ! -s conftest.err' |
| 25734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25735 | (eval $ac_try) 2>&5 |
| 25736 | ac_status=$? |
| 25737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25738 | (exit $ac_status); }; } && |
| 25739 | { ac_try='test -s conftest.$ac_objext' |
| 25740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25741 | (eval $ac_try) 2>&5 |
| 25742 | ac_status=$? |
| 25743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25744 | (exit $ac_status); }; }; then |
| 25745 | ac_cv_header_mmap_anon=yes |
| 25746 | else |
| 25747 | echo "$as_me: failed program was:" >&5 |
| 25748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25749 | |
| 25750 | ac_cv_header_mmap_anon=no |
| 25751 | fi |
| 25752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25753 | ac_ext=c |
| 25754 | ac_cpp='$CPP $CPPFLAGS' |
| 25755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25758 | |
| 25759 | |
| 25760 | fi |
| 25761 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 25762 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 25763 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 25764 | |
| 25765 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 25766 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25767 | _ACEOF |
| 25768 | |
| 25769 | fi |
| 25770 | |
| 25771 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 25772 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 25773 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 25774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25775 | else |
| 25776 | cat >conftest.$ac_ext <<_ACEOF |
| 25777 | /* confdefs.h. */ |
| 25778 | _ACEOF |
| 25779 | cat confdefs.h >>conftest.$ac_ext |
| 25780 | cat >>conftest.$ac_ext <<_ACEOF |
| 25781 | /* end confdefs.h. */ |
| 25782 | #include <sys/types.h> |
| 25783 | #include <sys/stat.h> |
| 25784 | |
| 25785 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 25786 | # if S_ISBLK (S_IFDIR) |
| 25787 | You lose. |
| 25788 | # endif |
| 25789 | #endif |
| 25790 | |
| 25791 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 25792 | # if S_ISBLK (S_IFCHR) |
| 25793 | You lose. |
| 25794 | # endif |
| 25795 | #endif |
| 25796 | |
| 25797 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 25798 | # if S_ISLNK (S_IFREG) |
| 25799 | You lose. |
| 25800 | # endif |
| 25801 | #endif |
| 25802 | |
| 25803 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 25804 | # if S_ISSOCK (S_IFREG) |
| 25805 | You lose. |
| 25806 | # endif |
| 25807 | #endif |
| 25808 | |
| 25809 | _ACEOF |
| 25810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25811 | $EGREP "You lose" >/dev/null 2>&1; then |
| 25812 | ac_cv_header_stat_broken=yes |
| 25813 | else |
| 25814 | ac_cv_header_stat_broken=no |
| 25815 | fi |
| 25816 | rm -f conftest* |
| 25817 | |
| 25818 | fi |
| 25819 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 25820 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 25821 | if test $ac_cv_header_stat_broken = yes; then |
| 25822 | |
| 25823 | cat >>confdefs.h <<\_ACEOF |
| 25824 | #define STAT_MACROS_BROKEN 1 |
| 25825 | _ACEOF |
| 25826 | |
| 25827 | fi |
| 25828 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25829 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 25830 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 25831 | if test "${ac_cv_header_stdc+set}" = set; then |
| 25832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25833 | else |
| 25834 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25835 | /* confdefs.h. */ |
| 25836 | _ACEOF |
| 25837 | cat confdefs.h >>conftest.$ac_ext |
| 25838 | cat >>conftest.$ac_ext <<_ACEOF |
| 25839 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25840 | #include <stdlib.h> |
| 25841 | #include <stdarg.h> |
| 25842 | #include <string.h> |
| 25843 | #include <float.h> |
| 25844 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25845 | int |
| 25846 | main () |
| 25847 | { |
| 25848 | |
| 25849 | ; |
| 25850 | return 0; |
| 25851 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25852 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25853 | rm -f conftest.$ac_objext |
| 25854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25855 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25856 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25858 | rm -f conftest.er1 |
| 25859 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25861 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25862 | { ac_try='test -z "$ac_c_werror_flag" |
| 25863 | || test ! -s conftest.err' |
| 25864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25865 | (eval $ac_try) 2>&5 |
| 25866 | ac_status=$? |
| 25867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25868 | (exit $ac_status); }; } && |
| 25869 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25871 | (eval $ac_try) 2>&5 |
| 25872 | ac_status=$? |
| 25873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25874 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25875 | ac_cv_header_stdc=yes |
| 25876 | else |
| 25877 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25879 | |
| 25880 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25881 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25883 | |
| 25884 | if test $ac_cv_header_stdc = yes; then |
| 25885 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 25886 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25887 | /* confdefs.h. */ |
| 25888 | _ACEOF |
| 25889 | cat confdefs.h >>conftest.$ac_ext |
| 25890 | cat >>conftest.$ac_ext <<_ACEOF |
| 25891 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25892 | #include <string.h> |
| 25893 | |
| 25894 | _ACEOF |
| 25895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25896 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25897 | : |
| 25898 | else |
| 25899 | ac_cv_header_stdc=no |
| 25900 | fi |
| 25901 | rm -f conftest* |
| 25902 | |
| 25903 | fi |
| 25904 | |
| 25905 | if test $ac_cv_header_stdc = yes; then |
| 25906 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 25907 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25908 | /* confdefs.h. */ |
| 25909 | _ACEOF |
| 25910 | cat confdefs.h >>conftest.$ac_ext |
| 25911 | cat >>conftest.$ac_ext <<_ACEOF |
| 25912 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25913 | #include <stdlib.h> |
| 25914 | |
| 25915 | _ACEOF |
| 25916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25917 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25918 | : |
| 25919 | else |
| 25920 | ac_cv_header_stdc=no |
| 25921 | fi |
| 25922 | rm -f conftest* |
| 25923 | |
| 25924 | fi |
| 25925 | |
| 25926 | if test $ac_cv_header_stdc = yes; then |
| 25927 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 25928 | if test "$cross_compiling" = yes; then |
| 25929 | : |
| 25930 | else |
| 25931 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25932 | /* confdefs.h. */ |
| 25933 | _ACEOF |
| 25934 | cat confdefs.h >>conftest.$ac_ext |
| 25935 | cat >>conftest.$ac_ext <<_ACEOF |
| 25936 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25937 | #include <ctype.h> |
| 25938 | #if ((' ' & 0x0FF) == 0x020) |
| 25939 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 25940 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 25941 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25942 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25943 | (('a' <= (c) && (c) <= 'i') \ |
| 25944 | || ('j' <= (c) && (c) <= 'r') \ |
| 25945 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25946 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 25947 | #endif |
| 25948 | |
| 25949 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 25950 | int |
| 25951 | main () |
| 25952 | { |
| 25953 | int i; |
| 25954 | for (i = 0; i < 256; i++) |
| 25955 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25956 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25957 | exit(2); |
| 25958 | exit (0); |
| 25959 | } |
| 25960 | _ACEOF |
| 25961 | rm -f conftest$ac_exeext |
| 25962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25963 | (eval $ac_link) 2>&5 |
| 25964 | ac_status=$? |
| 25965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25966 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25968 | (eval $ac_try) 2>&5 |
| 25969 | ac_status=$? |
| 25970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25971 | (exit $ac_status); }; }; then |
| 25972 | : |
| 25973 | else |
| 25974 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25975 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25977 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25978 | ( exit $ac_status ) |
| 25979 | ac_cv_header_stdc=no |
| 25980 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25981 | 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] | 25982 | fi |
| 25983 | fi |
| 25984 | fi |
| 25985 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 25986 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 25987 | if test $ac_cv_header_stdc = yes; then |
| 25988 | |
| 25989 | cat >>confdefs.h <<\_ACEOF |
| 25990 | #define STDC_HEADERS 1 |
| 25991 | _ACEOF |
| 25992 | |
| 25993 | fi |
| 25994 | |
| 25995 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 25996 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 25997 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 25998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25999 | else |
| 26000 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26001 | /* confdefs.h. */ |
| 26002 | _ACEOF |
| 26003 | cat confdefs.h >>conftest.$ac_ext |
| 26004 | cat >>conftest.$ac_ext <<_ACEOF |
| 26005 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26006 | #include <sys/types.h> |
| 26007 | #include <sys/wait.h> |
| 26008 | #ifndef WEXITSTATUS |
| 26009 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 26010 | #endif |
| 26011 | #ifndef WIFEXITED |
| 26012 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 26013 | #endif |
| 26014 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26015 | int |
| 26016 | main () |
| 26017 | { |
| 26018 | int s; |
| 26019 | wait (&s); |
| 26020 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 26021 | ; |
| 26022 | return 0; |
| 26023 | } |
| 26024 | _ACEOF |
| 26025 | rm -f conftest.$ac_objext |
| 26026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26027 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26028 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26030 | rm -f conftest.er1 |
| 26031 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26033 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26034 | { ac_try='test -z "$ac_c_werror_flag" |
| 26035 | || test ! -s conftest.err' |
| 26036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26037 | (eval $ac_try) 2>&5 |
| 26038 | ac_status=$? |
| 26039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26040 | (exit $ac_status); }; } && |
| 26041 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26043 | (eval $ac_try) 2>&5 |
| 26044 | ac_status=$? |
| 26045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26046 | (exit $ac_status); }; }; then |
| 26047 | ac_cv_header_sys_wait_h=yes |
| 26048 | else |
| 26049 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26051 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26052 | ac_cv_header_sys_wait_h=no |
| 26053 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26055 | fi |
| 26056 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 26057 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 26058 | if test $ac_cv_header_sys_wait_h = yes; then |
| 26059 | |
| 26060 | cat >>confdefs.h <<\_ACEOF |
| 26061 | #define HAVE_SYS_WAIT_H 1 |
| 26062 | _ACEOF |
| 26063 | |
| 26064 | fi |
| 26065 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26066 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 26067 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 26068 | if test "${ac_cv_header_time+set}" = set; then |
| 26069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26070 | else |
| 26071 | cat >conftest.$ac_ext <<_ACEOF |
| 26072 | /* confdefs.h. */ |
| 26073 | _ACEOF |
| 26074 | cat confdefs.h >>conftest.$ac_ext |
| 26075 | cat >>conftest.$ac_ext <<_ACEOF |
| 26076 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26077 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26078 | #include <sys/time.h> |
| 26079 | #include <time.h> |
| 26080 | |
| 26081 | int |
| 26082 | main () |
| 26083 | { |
| 26084 | if ((struct tm *) 0) |
| 26085 | return 0; |
| 26086 | ; |
| 26087 | return 0; |
| 26088 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26089 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26090 | rm -f conftest.$ac_objext |
| 26091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26092 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26093 | ac_status=$? |
| 26094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26095 | rm -f conftest.er1 |
| 26096 | cat conftest.err >&5 |
| 26097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26098 | (exit $ac_status); } && |
| 26099 | { ac_try='test -z "$ac_c_werror_flag" |
| 26100 | || test ! -s conftest.err' |
| 26101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26102 | (eval $ac_try) 2>&5 |
| 26103 | ac_status=$? |
| 26104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26105 | (exit $ac_status); }; } && |
| 26106 | { ac_try='test -s conftest.$ac_objext' |
| 26107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26108 | (eval $ac_try) 2>&5 |
| 26109 | ac_status=$? |
| 26110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26111 | (exit $ac_status); }; }; then |
| 26112 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26113 | else |
| 26114 | echo "$as_me: failed program was:" >&5 |
| 26115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26116 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26117 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26118 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26120 | fi |
| 26121 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 26122 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 26123 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26124 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26125 | cat >>confdefs.h <<\_ACEOF |
| 26126 | #define TIME_WITH_SYS_TIME 1 |
| 26127 | _ACEOF |
| 26128 | |
| 26129 | fi |
| 26130 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26131 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26132 | |
| 26133 | |
| 26134 | |
| 26135 | |
| 26136 | |
| 26137 | |
| 26138 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 26139 | do |
| 26140 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26142 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26146 | fi |
| 26147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26148 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26149 | else |
| 26150 | # Is the header compilable? |
| 26151 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26152 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26153 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26154 | /* confdefs.h. */ |
| 26155 | _ACEOF |
| 26156 | cat confdefs.h >>conftest.$ac_ext |
| 26157 | cat >>conftest.$ac_ext <<_ACEOF |
| 26158 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26159 | $ac_includes_default |
| 26160 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26161 | _ACEOF |
| 26162 | rm -f conftest.$ac_objext |
| 26163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26164 | (eval $ac_compile) 2>conftest.er1 |
| 26165 | ac_status=$? |
| 26166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26167 | rm -f conftest.er1 |
| 26168 | cat conftest.err >&5 |
| 26169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26170 | (exit $ac_status); } && |
| 26171 | { ac_try='test -z "$ac_c_werror_flag" |
| 26172 | || test ! -s conftest.err' |
| 26173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26174 | (eval $ac_try) 2>&5 |
| 26175 | ac_status=$? |
| 26176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26177 | (exit $ac_status); }; } && |
| 26178 | { ac_try='test -s conftest.$ac_objext' |
| 26179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26180 | (eval $ac_try) 2>&5 |
| 26181 | ac_status=$? |
| 26182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26183 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26184 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26185 | else |
| 26186 | echo "$as_me: failed program was:" >&5 |
| 26187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26188 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26189 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26190 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26192 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26193 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26194 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26195 | # Is the header present? |
| 26196 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26197 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26198 | cat >conftest.$ac_ext <<_ACEOF |
| 26199 | /* confdefs.h. */ |
| 26200 | _ACEOF |
| 26201 | cat confdefs.h >>conftest.$ac_ext |
| 26202 | cat >>conftest.$ac_ext <<_ACEOF |
| 26203 | /* end confdefs.h. */ |
| 26204 | #include <$ac_header> |
| 26205 | _ACEOF |
| 26206 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26208 | ac_status=$? |
| 26209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26210 | rm -f conftest.er1 |
| 26211 | cat conftest.err >&5 |
| 26212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26213 | (exit $ac_status); } >/dev/null; then |
| 26214 | if test -s conftest.err; then |
| 26215 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26216 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26217 | else |
| 26218 | ac_cpp_err= |
| 26219 | fi |
| 26220 | else |
| 26221 | ac_cpp_err=yes |
| 26222 | fi |
| 26223 | if test -z "$ac_cpp_err"; then |
| 26224 | ac_header_preproc=yes |
| 26225 | else |
| 26226 | echo "$as_me: failed program was:" >&5 |
| 26227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26228 | |
| 26229 | ac_header_preproc=no |
| 26230 | fi |
| 26231 | rm -f conftest.err conftest.$ac_ext |
| 26232 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26233 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26234 | |
| 26235 | # So? What about this header? |
| 26236 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26237 | yes:no: ) |
| 26238 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26239 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26240 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26241 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26242 | ac_header_preproc=yes |
| 26243 | ;; |
| 26244 | no:yes:* ) |
| 26245 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26246 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26247 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26248 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26249 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26250 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26251 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26252 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26254 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26255 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26256 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26257 | ( |
| 26258 | cat <<\_ASBOX |
| 26259 | ## ----------------------------------- ## |
| 26260 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26261 | ## ----------------------------------- ## |
| 26262 | _ASBOX |
| 26263 | ) | |
| 26264 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26265 | ;; |
| 26266 | esac |
| 26267 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26268 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26269 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26271 | else |
| 26272 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26273 | fi |
| 26274 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26275 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26276 | |
| 26277 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26278 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26279 | cat >>confdefs.h <<_ACEOF |
| 26280 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26281 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26282 | |
| 26283 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26284 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26285 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26286 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26287 | |
| 26288 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26289 | |
| 26290 | |
| 26291 | |
| 26292 | |
| 26293 | for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h |
| 26294 | do |
| 26295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26301 | fi |
| 26302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26304 | else |
| 26305 | # Is the header compilable? |
| 26306 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26307 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26308 | cat >conftest.$ac_ext <<_ACEOF |
| 26309 | /* confdefs.h. */ |
| 26310 | _ACEOF |
| 26311 | cat confdefs.h >>conftest.$ac_ext |
| 26312 | cat >>conftest.$ac_ext <<_ACEOF |
| 26313 | /* end confdefs.h. */ |
| 26314 | $ac_includes_default |
| 26315 | #include <$ac_header> |
| 26316 | _ACEOF |
| 26317 | rm -f conftest.$ac_objext |
| 26318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26319 | (eval $ac_compile) 2>conftest.er1 |
| 26320 | ac_status=$? |
| 26321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26322 | rm -f conftest.er1 |
| 26323 | cat conftest.err >&5 |
| 26324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26325 | (exit $ac_status); } && |
| 26326 | { ac_try='test -z "$ac_c_werror_flag" |
| 26327 | || test ! -s conftest.err' |
| 26328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26329 | (eval $ac_try) 2>&5 |
| 26330 | ac_status=$? |
| 26331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26332 | (exit $ac_status); }; } && |
| 26333 | { ac_try='test -s conftest.$ac_objext' |
| 26334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26335 | (eval $ac_try) 2>&5 |
| 26336 | ac_status=$? |
| 26337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26338 | (exit $ac_status); }; }; then |
| 26339 | ac_header_compiler=yes |
| 26340 | else |
| 26341 | echo "$as_me: failed program was:" >&5 |
| 26342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26343 | |
| 26344 | ac_header_compiler=no |
| 26345 | fi |
| 26346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26347 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26348 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26349 | |
| 26350 | # Is the header present? |
| 26351 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26352 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26353 | cat >conftest.$ac_ext <<_ACEOF |
| 26354 | /* confdefs.h. */ |
| 26355 | _ACEOF |
| 26356 | cat confdefs.h >>conftest.$ac_ext |
| 26357 | cat >>conftest.$ac_ext <<_ACEOF |
| 26358 | /* end confdefs.h. */ |
| 26359 | #include <$ac_header> |
| 26360 | _ACEOF |
| 26361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26363 | ac_status=$? |
| 26364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26365 | rm -f conftest.er1 |
| 26366 | cat conftest.err >&5 |
| 26367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26368 | (exit $ac_status); } >/dev/null; then |
| 26369 | if test -s conftest.err; then |
| 26370 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26371 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26372 | else |
| 26373 | ac_cpp_err= |
| 26374 | fi |
| 26375 | else |
| 26376 | ac_cpp_err=yes |
| 26377 | fi |
| 26378 | if test -z "$ac_cpp_err"; then |
| 26379 | ac_header_preproc=yes |
| 26380 | else |
| 26381 | echo "$as_me: failed program was:" >&5 |
| 26382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26383 | |
| 26384 | ac_header_preproc=no |
| 26385 | fi |
| 26386 | rm -f conftest.err conftest.$ac_ext |
| 26387 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26388 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26389 | |
| 26390 | # So? What about this header? |
| 26391 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26392 | yes:no: ) |
| 26393 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26394 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26396 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26397 | ac_header_preproc=yes |
| 26398 | ;; |
| 26399 | no:yes:* ) |
| 26400 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26401 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26402 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26403 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26404 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26405 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26406 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26407 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26409 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26410 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26411 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26412 | ( |
| 26413 | cat <<\_ASBOX |
| 26414 | ## ----------------------------------- ## |
| 26415 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26416 | ## ----------------------------------- ## |
| 26417 | _ASBOX |
| 26418 | ) | |
| 26419 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26420 | ;; |
| 26421 | esac |
| 26422 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26426 | else |
| 26427 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26428 | fi |
| 26429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26431 | |
| 26432 | fi |
| 26433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26434 | cat >>confdefs.h <<_ACEOF |
| 26435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 26436 | _ACEOF |
| 26437 | |
| 26438 | fi |
| 26439 | |
| 26440 | done |
| 26441 | |
| 26442 | |
| 26443 | |
| 26444 | |
| 26445 | |
| 26446 | |
| 26447 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26448 | do |
| 26449 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26450 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26451 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26455 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26458 | else |
| 26459 | # Is the header compilable? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26460 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26462 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26463 | /* confdefs.h. */ |
| 26464 | _ACEOF |
| 26465 | cat confdefs.h >>conftest.$ac_ext |
| 26466 | cat >>conftest.$ac_ext <<_ACEOF |
| 26467 | /* end confdefs.h. */ |
| 26468 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26469 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26470 | _ACEOF |
| 26471 | rm -f conftest.$ac_objext |
| 26472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26473 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26474 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26476 | rm -f conftest.er1 |
| 26477 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26479 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26480 | { ac_try='test -z "$ac_c_werror_flag" |
| 26481 | || test ! -s conftest.err' |
| 26482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26483 | (eval $ac_try) 2>&5 |
| 26484 | ac_status=$? |
| 26485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26486 | (exit $ac_status); }; } && |
| 26487 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26489 | (eval $ac_try) 2>&5 |
| 26490 | ac_status=$? |
| 26491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26492 | (exit $ac_status); }; }; then |
| 26493 | ac_header_compiler=yes |
| 26494 | else |
| 26495 | echo "$as_me: failed program was:" >&5 |
| 26496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26497 | |
| 26498 | ac_header_compiler=no |
| 26499 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26502 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26503 | |
| 26504 | # Is the header present? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26505 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26506 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26507 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26508 | /* confdefs.h. */ |
| 26509 | _ACEOF |
| 26510 | cat confdefs.h >>conftest.$ac_ext |
| 26511 | cat >>conftest.$ac_ext <<_ACEOF |
| 26512 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26513 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26514 | _ACEOF |
| 26515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26516 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26517 | ac_status=$? |
| 26518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26519 | rm -f conftest.er1 |
| 26520 | cat conftest.err >&5 |
| 26521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26522 | (exit $ac_status); } >/dev/null; then |
| 26523 | if test -s conftest.err; then |
| 26524 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26525 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26526 | else |
| 26527 | ac_cpp_err= |
| 26528 | fi |
| 26529 | else |
| 26530 | ac_cpp_err=yes |
| 26531 | fi |
| 26532 | if test -z "$ac_cpp_err"; then |
| 26533 | ac_header_preproc=yes |
| 26534 | else |
| 26535 | echo "$as_me: failed program was:" >&5 |
| 26536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26537 | |
| 26538 | ac_header_preproc=no |
| 26539 | fi |
| 26540 | rm -f conftest.err conftest.$ac_ext |
| 26541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26542 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26543 | |
| 26544 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26546 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26550 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26551 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26552 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26553 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26558 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26559 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26560 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26561 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26563 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26564 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26565 | 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] | 26566 | ( |
| 26567 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26568 | ## ----------------------------------- ## |
| 26569 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26570 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26571 | _ASBOX |
| 26572 | ) | |
| 26573 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26574 | ;; |
| 26575 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26580 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26581 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26582 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26584 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26585 | |
| 26586 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26587 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26588 | cat >>confdefs.h <<_ACEOF |
| 26589 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26590 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26591 | |
| 26592 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26593 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26594 | done |
| 26595 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26596 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26597 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26598 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 26599 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 26600 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 26601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26602 | else |
| 26603 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26604 | /* confdefs.h. */ |
| 26605 | _ACEOF |
| 26606 | cat confdefs.h >>conftest.$ac_ext |
| 26607 | cat >>conftest.$ac_ext <<_ACEOF |
| 26608 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26609 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26610 | int |
| 26611 | main () |
| 26612 | { |
| 26613 | if ((pid_t *) 0) |
| 26614 | return 0; |
| 26615 | if (sizeof (pid_t)) |
| 26616 | return 0; |
| 26617 | ; |
| 26618 | return 0; |
| 26619 | } |
| 26620 | _ACEOF |
| 26621 | rm -f conftest.$ac_objext |
| 26622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26623 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26624 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26626 | rm -f conftest.er1 |
| 26627 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26629 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26630 | { ac_try='test -z "$ac_c_werror_flag" |
| 26631 | || test ! -s conftest.err' |
| 26632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26633 | (eval $ac_try) 2>&5 |
| 26634 | ac_status=$? |
| 26635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26636 | (exit $ac_status); }; } && |
| 26637 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26639 | (eval $ac_try) 2>&5 |
| 26640 | ac_status=$? |
| 26641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26642 | (exit $ac_status); }; }; then |
| 26643 | ac_cv_type_pid_t=yes |
| 26644 | else |
| 26645 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26647 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26648 | ac_cv_type_pid_t=no |
| 26649 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26651 | fi |
| 26652 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 26653 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 26654 | if test $ac_cv_type_pid_t = yes; then |
| 26655 | : |
| 26656 | else |
| 26657 | |
| 26658 | cat >>confdefs.h <<_ACEOF |
| 26659 | #define pid_t int |
| 26660 | _ACEOF |
| 26661 | |
| 26662 | fi |
| 26663 | |
| 26664 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 26665 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 26666 | if test "${ac_cv_type_size_t+set}" = set; then |
| 26667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26668 | else |
| 26669 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26670 | /* confdefs.h. */ |
| 26671 | _ACEOF |
| 26672 | cat confdefs.h >>conftest.$ac_ext |
| 26673 | cat >>conftest.$ac_ext <<_ACEOF |
| 26674 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26675 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26676 | int |
| 26677 | main () |
| 26678 | { |
| 26679 | if ((size_t *) 0) |
| 26680 | return 0; |
| 26681 | if (sizeof (size_t)) |
| 26682 | return 0; |
| 26683 | ; |
| 26684 | return 0; |
| 26685 | } |
| 26686 | _ACEOF |
| 26687 | rm -f conftest.$ac_objext |
| 26688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26689 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26690 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26692 | rm -f conftest.er1 |
| 26693 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26695 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26696 | { ac_try='test -z "$ac_c_werror_flag" |
| 26697 | || test ! -s conftest.err' |
| 26698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26699 | (eval $ac_try) 2>&5 |
| 26700 | ac_status=$? |
| 26701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26702 | (exit $ac_status); }; } && |
| 26703 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26705 | (eval $ac_try) 2>&5 |
| 26706 | ac_status=$? |
| 26707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26708 | (exit $ac_status); }; }; then |
| 26709 | ac_cv_type_size_t=yes |
| 26710 | else |
| 26711 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26713 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26714 | ac_cv_type_size_t=no |
| 26715 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26717 | fi |
| 26718 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 26719 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 26720 | if test $ac_cv_type_size_t = yes; then |
| 26721 | : |
| 26722 | else |
| 26723 | |
| 26724 | cat >>confdefs.h <<_ACEOF |
| 26725 | #define size_t unsigned |
| 26726 | _ACEOF |
| 26727 | |
| 26728 | fi |
| 26729 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26730 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 26731 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 26732 | if test "${ac_cv_type_signal+set}" = set; then |
| 26733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26734 | else |
| 26735 | cat >conftest.$ac_ext <<_ACEOF |
| 26736 | /* confdefs.h. */ |
| 26737 | _ACEOF |
| 26738 | cat confdefs.h >>conftest.$ac_ext |
| 26739 | cat >>conftest.$ac_ext <<_ACEOF |
| 26740 | /* end confdefs.h. */ |
| 26741 | #include <sys/types.h> |
| 26742 | #include <signal.h> |
| 26743 | #ifdef signal |
| 26744 | # undef signal |
| 26745 | #endif |
| 26746 | #ifdef __cplusplus |
| 26747 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 26748 | #else |
| 26749 | void (*signal ()) (); |
| 26750 | #endif |
| 26751 | |
| 26752 | int |
| 26753 | main () |
| 26754 | { |
| 26755 | int i; |
| 26756 | ; |
| 26757 | return 0; |
| 26758 | } |
| 26759 | _ACEOF |
| 26760 | rm -f conftest.$ac_objext |
| 26761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26762 | (eval $ac_compile) 2>conftest.er1 |
| 26763 | ac_status=$? |
| 26764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26765 | rm -f conftest.er1 |
| 26766 | cat conftest.err >&5 |
| 26767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26768 | (exit $ac_status); } && |
| 26769 | { ac_try='test -z "$ac_c_werror_flag" |
| 26770 | || test ! -s conftest.err' |
| 26771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26772 | (eval $ac_try) 2>&5 |
| 26773 | ac_status=$? |
| 26774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26775 | (exit $ac_status); }; } && |
| 26776 | { ac_try='test -s conftest.$ac_objext' |
| 26777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26778 | (eval $ac_try) 2>&5 |
| 26779 | ac_status=$? |
| 26780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26781 | (exit $ac_status); }; }; then |
| 26782 | ac_cv_type_signal=void |
| 26783 | else |
| 26784 | echo "$as_me: failed program was:" >&5 |
| 26785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26786 | |
| 26787 | ac_cv_type_signal=int |
| 26788 | fi |
| 26789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26790 | fi |
| 26791 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 26792 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 26793 | |
| 26794 | cat >>confdefs.h <<_ACEOF |
| 26795 | #define RETSIGTYPE $ac_cv_type_signal |
| 26796 | _ACEOF |
| 26797 | |
| 26798 | |
| 26799 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 26800 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 26801 | if test "${ac_cv_struct_tm+set}" = set; then |
| 26802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26803 | else |
| 26804 | cat >conftest.$ac_ext <<_ACEOF |
| 26805 | /* confdefs.h. */ |
| 26806 | _ACEOF |
| 26807 | cat confdefs.h >>conftest.$ac_ext |
| 26808 | cat >>conftest.$ac_ext <<_ACEOF |
| 26809 | /* end confdefs.h. */ |
| 26810 | #include <sys/types.h> |
| 26811 | #include <time.h> |
| 26812 | |
| 26813 | int |
| 26814 | main () |
| 26815 | { |
| 26816 | struct tm *tp; tp->tm_sec; |
| 26817 | ; |
| 26818 | return 0; |
| 26819 | } |
| 26820 | _ACEOF |
| 26821 | rm -f conftest.$ac_objext |
| 26822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26823 | (eval $ac_compile) 2>conftest.er1 |
| 26824 | ac_status=$? |
| 26825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26826 | rm -f conftest.er1 |
| 26827 | cat conftest.err >&5 |
| 26828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26829 | (exit $ac_status); } && |
| 26830 | { ac_try='test -z "$ac_c_werror_flag" |
| 26831 | || test ! -s conftest.err' |
| 26832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26833 | (eval $ac_try) 2>&5 |
| 26834 | ac_status=$? |
| 26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26836 | (exit $ac_status); }; } && |
| 26837 | { ac_try='test -s conftest.$ac_objext' |
| 26838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26839 | (eval $ac_try) 2>&5 |
| 26840 | ac_status=$? |
| 26841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26842 | (exit $ac_status); }; }; then |
| 26843 | ac_cv_struct_tm=time.h |
| 26844 | else |
| 26845 | echo "$as_me: failed program was:" >&5 |
| 26846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26847 | |
| 26848 | ac_cv_struct_tm=sys/time.h |
| 26849 | fi |
| 26850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26851 | fi |
| 26852 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 26853 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 26854 | if test $ac_cv_struct_tm = sys/time.h; then |
| 26855 | |
| 26856 | cat >>confdefs.h <<\_ACEOF |
| 26857 | #define TM_IN_SYS_TIME 1 |
| 26858 | _ACEOF |
| 26859 | |
| 26860 | fi |
| 26861 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26862 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 26863 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 26864 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 26865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26866 | else |
| 26867 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26868 | /* confdefs.h. */ |
| 26869 | _ACEOF |
| 26870 | cat confdefs.h >>conftest.$ac_ext |
| 26871 | cat >>conftest.$ac_ext <<_ACEOF |
| 26872 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26873 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26874 | int |
| 26875 | main () |
| 26876 | { |
| 26877 | if ((int64_t *) 0) |
| 26878 | return 0; |
| 26879 | if (sizeof (int64_t)) |
| 26880 | return 0; |
| 26881 | ; |
| 26882 | return 0; |
| 26883 | } |
| 26884 | _ACEOF |
| 26885 | rm -f conftest.$ac_objext |
| 26886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26887 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26888 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26890 | rm -f conftest.er1 |
| 26891 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26893 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26894 | { ac_try='test -z "$ac_c_werror_flag" |
| 26895 | || test ! -s conftest.err' |
| 26896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26897 | (eval $ac_try) 2>&5 |
| 26898 | ac_status=$? |
| 26899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26900 | (exit $ac_status); }; } && |
| 26901 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26903 | (eval $ac_try) 2>&5 |
| 26904 | ac_status=$? |
| 26905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26906 | (exit $ac_status); }; }; then |
| 26907 | ac_cv_type_int64_t=yes |
| 26908 | else |
| 26909 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26911 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26912 | ac_cv_type_int64_t=no |
| 26913 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26915 | fi |
| 26916 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 26917 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 26918 | if test $ac_cv_type_int64_t = yes; then |
| 26919 | |
| 26920 | cat >>confdefs.h <<_ACEOF |
| 26921 | #define HAVE_INT64_T 1 |
| 26922 | _ACEOF |
| 26923 | |
| 26924 | |
| 26925 | else |
| 26926 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 26927 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 26928 | { (exit 1); exit 1; }; } |
| 26929 | fi |
| 26930 | |
| 26931 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 26932 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 26933 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 26934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26935 | else |
| 26936 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26937 | /* confdefs.h. */ |
| 26938 | _ACEOF |
| 26939 | cat confdefs.h >>conftest.$ac_ext |
| 26940 | cat >>conftest.$ac_ext <<_ACEOF |
| 26941 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26942 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26943 | int |
| 26944 | main () |
| 26945 | { |
| 26946 | if ((uint64_t *) 0) |
| 26947 | return 0; |
| 26948 | if (sizeof (uint64_t)) |
| 26949 | return 0; |
| 26950 | ; |
| 26951 | return 0; |
| 26952 | } |
| 26953 | _ACEOF |
| 26954 | rm -f conftest.$ac_objext |
| 26955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26956 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26957 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26959 | rm -f conftest.er1 |
| 26960 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26962 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26963 | { ac_try='test -z "$ac_c_werror_flag" |
| 26964 | || test ! -s conftest.err' |
| 26965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26966 | (eval $ac_try) 2>&5 |
| 26967 | ac_status=$? |
| 26968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26969 | (exit $ac_status); }; } && |
| 26970 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26972 | (eval $ac_try) 2>&5 |
| 26973 | ac_status=$? |
| 26974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26975 | (exit $ac_status); }; }; then |
| 26976 | ac_cv_type_uint64_t=yes |
| 26977 | else |
| 26978 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26980 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26981 | ac_cv_type_uint64_t=no |
| 26982 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26984 | fi |
| 26985 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 26986 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 26987 | if test $ac_cv_type_uint64_t = yes; then |
| 26988 | |
| 26989 | cat >>confdefs.h <<_ACEOF |
| 26990 | #define HAVE_UINT64_T 1 |
| 26991 | _ACEOF |
| 26992 | |
| 26993 | |
| 26994 | else |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 26995 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26996 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 26997 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 26998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26999 | else |
| 27000 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27001 | /* confdefs.h. */ |
| 27002 | _ACEOF |
| 27003 | cat confdefs.h >>conftest.$ac_ext |
| 27004 | cat >>conftest.$ac_ext <<_ACEOF |
| 27005 | /* end confdefs.h. */ |
| 27006 | $ac_includes_default |
| 27007 | int |
| 27008 | main () |
| 27009 | { |
| 27010 | if ((u_int64_t *) 0) |
| 27011 | return 0; |
| 27012 | if (sizeof (u_int64_t)) |
| 27013 | return 0; |
| 27014 | ; |
| 27015 | return 0; |
| 27016 | } |
| 27017 | _ACEOF |
| 27018 | rm -f conftest.$ac_objext |
| 27019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27020 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27021 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27023 | rm -f conftest.er1 |
| 27024 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27026 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27027 | { ac_try='test -z "$ac_c_werror_flag" |
| 27028 | || test ! -s conftest.err' |
| 27029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27030 | (eval $ac_try) 2>&5 |
| 27031 | ac_status=$? |
| 27032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27033 | (exit $ac_status); }; } && |
| 27034 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27036 | (eval $ac_try) 2>&5 |
| 27037 | ac_status=$? |
| 27038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27039 | (exit $ac_status); }; }; then |
| 27040 | ac_cv_type_u_int64_t=yes |
| 27041 | else |
| 27042 | echo "$as_me: failed program was:" >&5 |
| 27043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27044 | |
| 27045 | ac_cv_type_u_int64_t=no |
| 27046 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27048 | fi |
| 27049 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 27050 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 27051 | if test $ac_cv_type_u_int64_t = yes; then |
| 27052 | |
| 27053 | cat >>confdefs.h <<_ACEOF |
| 27054 | #define HAVE_U_INT64_T 1 |
| 27055 | _ACEOF |
| 27056 | |
| 27057 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27058 | else |
| 27059 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 27060 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 27061 | { (exit 1); exit 1; }; } |
| 27062 | fi |
| 27063 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27064 | fi |
| 27065 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27066 | |
| 27067 | |
| 27068 | |
| 27069 | |
| 27070 | |
| 27071 | |
| 27072 | |
| 27073 | |
Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 27074 | for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty |
| 27075 | do |
| 27076 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27077 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27078 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27079 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 27080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27081 | else |
| 27082 | cat >conftest.$ac_ext <<_ACEOF |
| 27083 | /* confdefs.h. */ |
| 27084 | _ACEOF |
| 27085 | cat confdefs.h >>conftest.$ac_ext |
| 27086 | cat >>conftest.$ac_ext <<_ACEOF |
| 27087 | /* end confdefs.h. */ |
| 27088 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27090 | #define $ac_func innocuous_$ac_func |
Reid Spencer | f9960f7 | 2004-12-15 01:41:56 +0000 | [diff] [blame] | 27091 | |
Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 27092 | /* System header to define __stub macros and hopefully few prototypes, |
| 27093 | which can conflict with char $ac_func (); below. |
| 27094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27095 | <limits.h> exists even on freestanding compilers. */ |
| 27096 | |
| 27097 | #ifdef __STDC__ |
| 27098 | # include <limits.h> |
| 27099 | #else |
| 27100 | # include <assert.h> |
| 27101 | #endif |
| 27102 | |
| 27103 | #undef $ac_func |
| 27104 | |
| 27105 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27106 | #ifdef __cplusplus |
| 27107 | extern "C" |
| 27108 | { |
| 27109 | #endif |
| 27110 | /* We use char because int might match the return type of a gcc2 |
| 27111 | builtin and then its argument prototype would still apply. */ |
| 27112 | char $ac_func (); |
| 27113 | /* The GNU C library defines this for functions which it implements |
| 27114 | to always fail with ENOSYS. Some functions are actually named |
| 27115 | something starting with __ and the normal name is an alias. */ |
| 27116 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27117 | choke me |
| 27118 | #else |
| 27119 | char (*f) () = $ac_func; |
| 27120 | #endif |
| 27121 | #ifdef __cplusplus |
| 27122 | } |
| 27123 | #endif |
| 27124 | |
| 27125 | int |
| 27126 | main () |
| 27127 | { |
| 27128 | return f != $ac_func; |
| 27129 | ; |
| 27130 | return 0; |
| 27131 | } |
| 27132 | _ACEOF |
| 27133 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27135 | (eval $ac_link) 2>conftest.er1 |
| 27136 | ac_status=$? |
| 27137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27138 | rm -f conftest.er1 |
| 27139 | cat conftest.err >&5 |
| 27140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27141 | (exit $ac_status); } && |
| 27142 | { ac_try='test -z "$ac_c_werror_flag" |
| 27143 | || test ! -s conftest.err' |
| 27144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27145 | (eval $ac_try) 2>&5 |
| 27146 | ac_status=$? |
| 27147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27148 | (exit $ac_status); }; } && |
| 27149 | { ac_try='test -s conftest$ac_exeext' |
| 27150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27151 | (eval $ac_try) 2>&5 |
| 27152 | ac_status=$? |
| 27153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27154 | (exit $ac_status); }; }; then |
| 27155 | eval "$as_ac_var=yes" |
| 27156 | else |
| 27157 | echo "$as_me: failed program was:" >&5 |
| 27158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27159 | |
| 27160 | eval "$as_ac_var=no" |
| 27161 | fi |
| 27162 | rm -f conftest.err conftest.$ac_objext \ |
| 27163 | conftest$ac_exeext conftest.$ac_ext |
| 27164 | fi |
| 27165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27166 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27167 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27168 | cat >>confdefs.h <<_ACEOF |
| 27169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 27170 | _ACEOF |
| 27171 | |
| 27172 | fi |
| 27173 | done |
| 27174 | |
| 27175 | |
| 27176 | |
| 27177 | |
| 27178 | for ac_func in mkdtemp mkstemp mktemp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27179 | do |
| 27180 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27181 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27183 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27185 | else |
| 27186 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27187 | /* confdefs.h. */ |
| 27188 | _ACEOF |
| 27189 | cat confdefs.h >>conftest.$ac_ext |
| 27190 | cat >>conftest.$ac_ext <<_ACEOF |
| 27191 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27194 | #define $ac_func innocuous_$ac_func |
| 27195 | |
| 27196 | /* System header to define __stub macros and hopefully few prototypes, |
| 27197 | which can conflict with char $ac_func (); below. |
| 27198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27199 | <limits.h> exists even on freestanding compilers. */ |
| 27200 | |
| 27201 | #ifdef __STDC__ |
| 27202 | # include <limits.h> |
| 27203 | #else |
| 27204 | # include <assert.h> |
| 27205 | #endif |
| 27206 | |
| 27207 | #undef $ac_func |
| 27208 | |
| 27209 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27210 | #ifdef __cplusplus |
| 27211 | extern "C" |
| 27212 | { |
| 27213 | #endif |
| 27214 | /* We use char because int might match the return type of a gcc2 |
| 27215 | builtin and then its argument prototype would still apply. */ |
| 27216 | char $ac_func (); |
| 27217 | /* The GNU C library defines this for functions which it implements |
| 27218 | to always fail with ENOSYS. Some functions are actually named |
| 27219 | something starting with __ and the normal name is an alias. */ |
| 27220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27221 | choke me |
| 27222 | #else |
| 27223 | char (*f) () = $ac_func; |
| 27224 | #endif |
| 27225 | #ifdef __cplusplus |
| 27226 | } |
| 27227 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27228 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27229 | int |
| 27230 | main () |
| 27231 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27232 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27233 | ; |
| 27234 | return 0; |
| 27235 | } |
| 27236 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27237 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27239 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27240 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27242 | rm -f conftest.er1 |
| 27243 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27245 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27246 | { ac_try='test -z "$ac_c_werror_flag" |
| 27247 | || test ! -s conftest.err' |
| 27248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27249 | (eval $ac_try) 2>&5 |
| 27250 | ac_status=$? |
| 27251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27252 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27253 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27255 | (eval $ac_try) 2>&5 |
| 27256 | ac_status=$? |
| 27257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27258 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27259 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27260 | else |
| 27261 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27263 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27264 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27265 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27266 | rm -f conftest.err conftest.$ac_objext \ |
| 27267 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27268 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27270 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27271 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27272 | cat >>confdefs.h <<_ACEOF |
| 27273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27274 | _ACEOF |
| 27275 | |
| 27276 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27277 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27278 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27279 | |
| 27280 | |
| 27281 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 27282 | |
| 27283 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27284 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 27285 | for ac_func in realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27286 | do |
| 27287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27288 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27290 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 27291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27292 | else |
| 27293 | cat >conftest.$ac_ext <<_ACEOF |
| 27294 | /* confdefs.h. */ |
| 27295 | _ACEOF |
| 27296 | cat confdefs.h >>conftest.$ac_ext |
| 27297 | cat >>conftest.$ac_ext <<_ACEOF |
| 27298 | /* end confdefs.h. */ |
| 27299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27301 | #define $ac_func innocuous_$ac_func |
| 27302 | |
| 27303 | /* System header to define __stub macros and hopefully few prototypes, |
| 27304 | which can conflict with char $ac_func (); below. |
| 27305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27306 | <limits.h> exists even on freestanding compilers. */ |
| 27307 | |
| 27308 | #ifdef __STDC__ |
| 27309 | # include <limits.h> |
| 27310 | #else |
| 27311 | # include <assert.h> |
| 27312 | #endif |
| 27313 | |
| 27314 | #undef $ac_func |
| 27315 | |
| 27316 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27317 | #ifdef __cplusplus |
| 27318 | extern "C" |
| 27319 | { |
| 27320 | #endif |
| 27321 | /* We use char because int might match the return type of a gcc2 |
| 27322 | builtin and then its argument prototype would still apply. */ |
| 27323 | char $ac_func (); |
| 27324 | /* The GNU C library defines this for functions which it implements |
| 27325 | to always fail with ENOSYS. Some functions are actually named |
| 27326 | something starting with __ and the normal name is an alias. */ |
| 27327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27328 | choke me |
| 27329 | #else |
| 27330 | char (*f) () = $ac_func; |
| 27331 | #endif |
| 27332 | #ifdef __cplusplus |
| 27333 | } |
| 27334 | #endif |
| 27335 | |
| 27336 | int |
| 27337 | main () |
| 27338 | { |
| 27339 | return f != $ac_func; |
| 27340 | ; |
| 27341 | return 0; |
| 27342 | } |
| 27343 | _ACEOF |
| 27344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27346 | (eval $ac_link) 2>conftest.er1 |
| 27347 | ac_status=$? |
| 27348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27349 | rm -f conftest.er1 |
| 27350 | cat conftest.err >&5 |
| 27351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27352 | (exit $ac_status); } && |
| 27353 | { ac_try='test -z "$ac_c_werror_flag" |
| 27354 | || test ! -s conftest.err' |
| 27355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27356 | (eval $ac_try) 2>&5 |
| 27357 | ac_status=$? |
| 27358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27359 | (exit $ac_status); }; } && |
| 27360 | { ac_try='test -s conftest$ac_exeext' |
| 27361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27362 | (eval $ac_try) 2>&5 |
| 27363 | ac_status=$? |
| 27364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27365 | (exit $ac_status); }; }; then |
| 27366 | eval "$as_ac_var=yes" |
| 27367 | else |
| 27368 | echo "$as_me: failed program was:" >&5 |
| 27369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27370 | |
| 27371 | eval "$as_ac_var=no" |
| 27372 | fi |
| 27373 | rm -f conftest.err conftest.$ac_objext \ |
| 27374 | conftest$ac_exeext conftest.$ac_ext |
| 27375 | fi |
| 27376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27377 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27378 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27379 | cat >>confdefs.h <<_ACEOF |
| 27380 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 27381 | _ACEOF |
| 27382 | |
| 27383 | fi |
| 27384 | done |
| 27385 | |
| 27386 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 27387 | |
| 27388 | |
| 27389 | for ac_func in strtoll strtoq sysconf |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27390 | do |
| 27391 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27392 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27393 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27394 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27396 | else |
| 27397 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27398 | /* confdefs.h. */ |
| 27399 | _ACEOF |
| 27400 | cat confdefs.h >>conftest.$ac_ext |
| 27401 | cat >>conftest.$ac_ext <<_ACEOF |
| 27402 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27403 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27404 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27405 | #define $ac_func innocuous_$ac_func |
| 27406 | |
| 27407 | /* System header to define __stub macros and hopefully few prototypes, |
| 27408 | which can conflict with char $ac_func (); below. |
| 27409 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27410 | <limits.h> exists even on freestanding compilers. */ |
| 27411 | |
| 27412 | #ifdef __STDC__ |
| 27413 | # include <limits.h> |
| 27414 | #else |
| 27415 | # include <assert.h> |
| 27416 | #endif |
| 27417 | |
| 27418 | #undef $ac_func |
| 27419 | |
| 27420 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27421 | #ifdef __cplusplus |
| 27422 | extern "C" |
| 27423 | { |
| 27424 | #endif |
| 27425 | /* We use char because int might match the return type of a gcc2 |
| 27426 | builtin and then its argument prototype would still apply. */ |
| 27427 | char $ac_func (); |
| 27428 | /* The GNU C library defines this for functions which it implements |
| 27429 | to always fail with ENOSYS. Some functions are actually named |
| 27430 | something starting with __ and the normal name is an alias. */ |
| 27431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27432 | choke me |
| 27433 | #else |
| 27434 | char (*f) () = $ac_func; |
| 27435 | #endif |
| 27436 | #ifdef __cplusplus |
| 27437 | } |
| 27438 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27439 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27440 | int |
| 27441 | main () |
| 27442 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27443 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27444 | ; |
| 27445 | return 0; |
| 27446 | } |
| 27447 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27448 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27450 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27451 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27453 | rm -f conftest.er1 |
| 27454 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27456 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27457 | { ac_try='test -z "$ac_c_werror_flag" |
| 27458 | || test ! -s conftest.err' |
| 27459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27460 | (eval $ac_try) 2>&5 |
| 27461 | ac_status=$? |
| 27462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27463 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27464 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27466 | (eval $ac_try) 2>&5 |
| 27467 | ac_status=$? |
| 27468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27469 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27470 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27471 | else |
| 27472 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27474 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27475 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27476 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27477 | rm -f conftest.err conftest.$ac_objext \ |
| 27478 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27479 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27481 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27482 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27483 | cat >>confdefs.h <<_ACEOF |
| 27484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27485 | _ACEOF |
| 27486 | |
| 27487 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27488 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27489 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27490 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 27491 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6 |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27492 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27494 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27495 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27496 | ac_cpp='$CPP $CPPFLAGS' |
| 27497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27500 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27501 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27502 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27503 | else |
| 27504 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27505 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27506 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27507 | _ACEOF |
| 27508 | cat confdefs.h >>conftest.$ac_ext |
| 27509 | cat >>conftest.$ac_ext <<_ACEOF |
| 27510 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27511 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27512 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27513 | #include <stdlib.h> |
| 27514 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27515 | int |
| 27516 | main () |
| 27517 | { |
| 27518 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27519 | volatile double A, B; |
| 27520 | char Buffer[100]; |
| 27521 | A = 1; |
| 27522 | A /= 10.0; |
| 27523 | sprintf(Buffer, "%a", A); |
| 27524 | B = atof(Buffer); |
| 27525 | if (A != B) |
| 27526 | return (1); |
| 27527 | if (A != 0x1.999999999999ap-4) |
| 27528 | return (1); |
| 27529 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27530 | ; |
| 27531 | return 0; |
| 27532 | } |
| 27533 | _ACEOF |
| 27534 | rm -f conftest$ac_exeext |
| 27535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27536 | (eval $ac_link) 2>&5 |
| 27537 | ac_status=$? |
| 27538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27541 | (eval $ac_try) 2>&5 |
| 27542 | ac_status=$? |
| 27543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27544 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27545 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27546 | else |
| 27547 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27548 | echo "$as_me: failed program was:" >&5 |
| 27549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27550 | |
| 27551 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27552 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27553 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27554 | 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] | 27555 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27556 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27557 | ac_cpp='$CPP $CPPFLAGS' |
| 27558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27561 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27562 | fi |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27563 | echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 27564 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6 |
| 27565 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27566 | |
| 27567 | cat >>confdefs.h <<\_ACEOF |
| 27568 | #define HAVE_PRINTF_A 1 |
| 27569 | _ACEOF |
| 27570 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27571 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27572 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27573 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 27574 | # for constant arguments. Useless! |
| 27575 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 27576 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 27577 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27579 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27580 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27581 | /* confdefs.h. */ |
| 27582 | _ACEOF |
| 27583 | cat confdefs.h >>conftest.$ac_ext |
| 27584 | cat >>conftest.$ac_ext <<_ACEOF |
| 27585 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27586 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27587 | int |
| 27588 | main () |
| 27589 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27590 | char *p = (char *) alloca (2 * sizeof (int)); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27591 | ; |
| 27592 | return 0; |
| 27593 | } |
| 27594 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27595 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27597 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27598 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27600 | rm -f conftest.er1 |
| 27601 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27603 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27604 | { ac_try='test -z "$ac_c_werror_flag" |
| 27605 | || test ! -s conftest.err' |
| 27606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27607 | (eval $ac_try) 2>&5 |
| 27608 | ac_status=$? |
| 27609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27610 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27611 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27613 | (eval $ac_try) 2>&5 |
| 27614 | ac_status=$? |
| 27615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27616 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27617 | ac_cv_working_alloca_h=yes |
| 27618 | else |
| 27619 | echo "$as_me: failed program was:" >&5 |
| 27620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27621 | |
| 27622 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27623 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27624 | rm -f conftest.err conftest.$ac_objext \ |
| 27625 | conftest$ac_exeext conftest.$ac_ext |
| 27626 | fi |
| 27627 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 27628 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 27629 | if test $ac_cv_working_alloca_h = yes; then |
| 27630 | |
| 27631 | cat >>confdefs.h <<\_ACEOF |
| 27632 | #define HAVE_ALLOCA_H 1 |
| 27633 | _ACEOF |
| 27634 | |
| 27635 | fi |
| 27636 | |
| 27637 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 27638 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 27639 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 27640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27641 | else |
| 27642 | cat >conftest.$ac_ext <<_ACEOF |
| 27643 | /* confdefs.h. */ |
| 27644 | _ACEOF |
| 27645 | cat confdefs.h >>conftest.$ac_ext |
| 27646 | cat >>conftest.$ac_ext <<_ACEOF |
| 27647 | /* end confdefs.h. */ |
| 27648 | #ifdef __GNUC__ |
| 27649 | # define alloca __builtin_alloca |
| 27650 | #else |
| 27651 | # ifdef _MSC_VER |
| 27652 | # include <malloc.h> |
| 27653 | # define alloca _alloca |
| 27654 | # else |
| 27655 | # if HAVE_ALLOCA_H |
| 27656 | # include <alloca.h> |
| 27657 | # else |
| 27658 | # ifdef _AIX |
| 27659 | #pragma alloca |
| 27660 | # else |
| 27661 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 27662 | char *alloca (); |
| 27663 | # endif |
| 27664 | # endif |
| 27665 | # endif |
| 27666 | # endif |
| 27667 | #endif |
| 27668 | |
| 27669 | int |
| 27670 | main () |
| 27671 | { |
| 27672 | char *p = (char *) alloca (1); |
| 27673 | ; |
| 27674 | return 0; |
| 27675 | } |
| 27676 | _ACEOF |
| 27677 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27679 | (eval $ac_link) 2>conftest.er1 |
| 27680 | ac_status=$? |
| 27681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27682 | rm -f conftest.er1 |
| 27683 | cat conftest.err >&5 |
| 27684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27685 | (exit $ac_status); } && |
| 27686 | { ac_try='test -z "$ac_c_werror_flag" |
| 27687 | || test ! -s conftest.err' |
| 27688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27689 | (eval $ac_try) 2>&5 |
| 27690 | ac_status=$? |
| 27691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27692 | (exit $ac_status); }; } && |
| 27693 | { ac_try='test -s conftest$ac_exeext' |
| 27694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27695 | (eval $ac_try) 2>&5 |
| 27696 | ac_status=$? |
| 27697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27698 | (exit $ac_status); }; }; then |
| 27699 | ac_cv_func_alloca_works=yes |
| 27700 | else |
| 27701 | echo "$as_me: failed program was:" >&5 |
| 27702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27703 | |
| 27704 | ac_cv_func_alloca_works=no |
| 27705 | fi |
| 27706 | rm -f conftest.err conftest.$ac_objext \ |
| 27707 | conftest$ac_exeext conftest.$ac_ext |
| 27708 | fi |
| 27709 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 27710 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 27711 | |
| 27712 | if test $ac_cv_func_alloca_works = yes; then |
| 27713 | |
| 27714 | cat >>confdefs.h <<\_ACEOF |
| 27715 | #define HAVE_ALLOCA 1 |
| 27716 | _ACEOF |
| 27717 | |
| 27718 | else |
| 27719 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 27720 | # that cause trouble. Some versions do not even contain alloca or |
| 27721 | # contain a buggy version. If you still want to use their alloca, |
| 27722 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 27723 | |
| 27724 | ALLOCA=alloca.$ac_objext |
| 27725 | |
| 27726 | cat >>confdefs.h <<\_ACEOF |
| 27727 | #define C_ALLOCA 1 |
| 27728 | _ACEOF |
| 27729 | |
| 27730 | |
| 27731 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 27732 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 27733 | if test "${ac_cv_os_cray+set}" = set; then |
| 27734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27735 | else |
| 27736 | cat >conftest.$ac_ext <<_ACEOF |
| 27737 | /* confdefs.h. */ |
| 27738 | _ACEOF |
| 27739 | cat confdefs.h >>conftest.$ac_ext |
| 27740 | cat >>conftest.$ac_ext <<_ACEOF |
| 27741 | /* end confdefs.h. */ |
| 27742 | #if defined(CRAY) && ! defined(CRAY2) |
| 27743 | webecray |
| 27744 | #else |
| 27745 | wenotbecray |
| 27746 | #endif |
| 27747 | |
| 27748 | _ACEOF |
| 27749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27750 | $EGREP "webecray" >/dev/null 2>&1; then |
| 27751 | ac_cv_os_cray=yes |
| 27752 | else |
| 27753 | ac_cv_os_cray=no |
| 27754 | fi |
| 27755 | rm -f conftest* |
| 27756 | |
| 27757 | fi |
| 27758 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 27759 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 27760 | if test $ac_cv_os_cray = yes; then |
| 27761 | for ac_func in _getb67 GETB67 getb67; do |
| 27762 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27763 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27764 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27765 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 27766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27767 | else |
| 27768 | cat >conftest.$ac_ext <<_ACEOF |
| 27769 | /* confdefs.h. */ |
| 27770 | _ACEOF |
| 27771 | cat confdefs.h >>conftest.$ac_ext |
| 27772 | cat >>conftest.$ac_ext <<_ACEOF |
| 27773 | /* end confdefs.h. */ |
| 27774 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27776 | #define $ac_func innocuous_$ac_func |
| 27777 | |
| 27778 | /* System header to define __stub macros and hopefully few prototypes, |
| 27779 | which can conflict with char $ac_func (); below. |
| 27780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27781 | <limits.h> exists even on freestanding compilers. */ |
| 27782 | |
| 27783 | #ifdef __STDC__ |
| 27784 | # include <limits.h> |
| 27785 | #else |
| 27786 | # include <assert.h> |
| 27787 | #endif |
| 27788 | |
| 27789 | #undef $ac_func |
| 27790 | |
| 27791 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27792 | #ifdef __cplusplus |
| 27793 | extern "C" |
| 27794 | { |
| 27795 | #endif |
| 27796 | /* We use char because int might match the return type of a gcc2 |
| 27797 | builtin and then its argument prototype would still apply. */ |
| 27798 | char $ac_func (); |
| 27799 | /* The GNU C library defines this for functions which it implements |
| 27800 | to always fail with ENOSYS. Some functions are actually named |
| 27801 | something starting with __ and the normal name is an alias. */ |
| 27802 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27803 | choke me |
| 27804 | #else |
| 27805 | char (*f) () = $ac_func; |
| 27806 | #endif |
| 27807 | #ifdef __cplusplus |
| 27808 | } |
| 27809 | #endif |
| 27810 | |
| 27811 | int |
| 27812 | main () |
| 27813 | { |
| 27814 | return f != $ac_func; |
| 27815 | ; |
| 27816 | return 0; |
| 27817 | } |
| 27818 | _ACEOF |
| 27819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27821 | (eval $ac_link) 2>conftest.er1 |
| 27822 | ac_status=$? |
| 27823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27824 | rm -f conftest.er1 |
| 27825 | cat conftest.err >&5 |
| 27826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27827 | (exit $ac_status); } && |
| 27828 | { ac_try='test -z "$ac_c_werror_flag" |
| 27829 | || test ! -s conftest.err' |
| 27830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27831 | (eval $ac_try) 2>&5 |
| 27832 | ac_status=$? |
| 27833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27834 | (exit $ac_status); }; } && |
| 27835 | { ac_try='test -s conftest$ac_exeext' |
| 27836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27837 | (eval $ac_try) 2>&5 |
| 27838 | ac_status=$? |
| 27839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27840 | (exit $ac_status); }; }; then |
| 27841 | eval "$as_ac_var=yes" |
| 27842 | else |
| 27843 | echo "$as_me: failed program was:" >&5 |
| 27844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27845 | |
| 27846 | eval "$as_ac_var=no" |
| 27847 | fi |
| 27848 | rm -f conftest.err conftest.$ac_objext \ |
| 27849 | conftest$ac_exeext conftest.$ac_ext |
| 27850 | fi |
| 27851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27852 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27853 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27854 | |
| 27855 | cat >>confdefs.h <<_ACEOF |
| 27856 | #define CRAY_STACKSEG_END $ac_func |
| 27857 | _ACEOF |
| 27858 | |
| 27859 | break |
| 27860 | fi |
| 27861 | |
| 27862 | done |
| 27863 | fi |
| 27864 | |
| 27865 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 27866 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 27867 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 27868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27869 | else |
| 27870 | if test "$cross_compiling" = yes; then |
| 27871 | ac_cv_c_stack_direction=0 |
| 27872 | else |
| 27873 | cat >conftest.$ac_ext <<_ACEOF |
| 27874 | /* confdefs.h. */ |
| 27875 | _ACEOF |
| 27876 | cat confdefs.h >>conftest.$ac_ext |
| 27877 | cat >>conftest.$ac_ext <<_ACEOF |
| 27878 | /* end confdefs.h. */ |
| 27879 | int |
| 27880 | find_stack_direction () |
| 27881 | { |
| 27882 | static char *addr = 0; |
| 27883 | auto char dummy; |
| 27884 | if (addr == 0) |
| 27885 | { |
| 27886 | addr = &dummy; |
| 27887 | return find_stack_direction (); |
| 27888 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27889 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27890 | return (&dummy > addr) ? 1 : -1; |
| 27891 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27892 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27893 | int |
| 27894 | main () |
| 27895 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27896 | exit (find_stack_direction () < 0); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27897 | } |
| 27898 | _ACEOF |
| 27899 | rm -f conftest$ac_exeext |
| 27900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27901 | (eval $ac_link) 2>&5 |
| 27902 | ac_status=$? |
| 27903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27904 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27906 | (eval $ac_try) 2>&5 |
| 27907 | ac_status=$? |
| 27908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27909 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27910 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27911 | else |
| 27912 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27913 | echo "$as_me: failed program was:" >&5 |
| 27914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27915 | |
| 27916 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27917 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27918 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27919 | 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] | 27920 | fi |
| 27921 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27922 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 27923 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 27924 | |
| 27925 | cat >>confdefs.h <<_ACEOF |
| 27926 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 27927 | _ACEOF |
| 27928 | |
| 27929 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27930 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27931 | |
| 27932 | |
| 27933 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 27934 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 |
| 27935 | if test "${ac_cv_func_rand48+set}" = set; then |
| 27936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27937 | else |
| 27938 | ac_ext=cc |
| 27939 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 27940 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27941 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27942 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 27943 | |
| 27944 | cat >conftest.$ac_ext <<_ACEOF |
| 27945 | /* confdefs.h. */ |
| 27946 | _ACEOF |
| 27947 | cat confdefs.h >>conftest.$ac_ext |
| 27948 | cat >>conftest.$ac_ext <<_ACEOF |
| 27949 | /* end confdefs.h. */ |
| 27950 | #include <stdlib.h> |
| 27951 | int |
| 27952 | main () |
| 27953 | { |
| 27954 | srand48(0);lrand48();drand48(); |
| 27955 | ; |
| 27956 | return 0; |
| 27957 | } |
| 27958 | _ACEOF |
| 27959 | rm -f conftest.$ac_objext |
| 27960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27961 | (eval $ac_compile) 2>conftest.er1 |
| 27962 | ac_status=$? |
| 27963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27964 | rm -f conftest.er1 |
| 27965 | cat conftest.err >&5 |
| 27966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27967 | (exit $ac_status); } && |
| 27968 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 27969 | || test ! -s conftest.err' |
| 27970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27971 | (eval $ac_try) 2>&5 |
| 27972 | ac_status=$? |
| 27973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27974 | (exit $ac_status); }; } && |
| 27975 | { ac_try='test -s conftest.$ac_objext' |
| 27976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27977 | (eval $ac_try) 2>&5 |
| 27978 | ac_status=$? |
| 27979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27980 | (exit $ac_status); }; }; then |
| 27981 | ac_cv_func_rand48=yes |
| 27982 | else |
| 27983 | echo "$as_me: failed program was:" >&5 |
| 27984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27985 | |
| 27986 | ac_cv_func_rand48=no |
| 27987 | fi |
| 27988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27989 | ac_ext=c |
| 27990 | ac_cpp='$CPP $CPPFLAGS' |
| 27991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27994 | |
| 27995 | fi |
| 27996 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 27997 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 |
| 27998 | |
| 27999 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 28000 | |
| 28001 | cat >>confdefs.h <<\_ACEOF |
| 28002 | #define HAVE_RAND48 1 |
| 28003 | _ACEOF |
| 28004 | |
| 28005 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28006 | |
| 28007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28008 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 28009 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 28010 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 28011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28012 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28013 | ac_ext=cc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28014 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28015 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28016 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28017 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28018 | |
| 28019 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28020 | /* confdefs.h. */ |
| 28021 | _ACEOF |
| 28022 | cat confdefs.h >>conftest.$ac_ext |
| 28023 | cat >>conftest.$ac_ext <<_ACEOF |
| 28024 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28025 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28026 | int |
| 28027 | main () |
| 28028 | { |
| 28029 | using namespace Outer::Inner; return i; |
| 28030 | ; |
| 28031 | return 0; |
| 28032 | } |
| 28033 | _ACEOF |
| 28034 | rm -f conftest.$ac_objext |
| 28035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28036 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28037 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28039 | rm -f conftest.er1 |
| 28040 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28042 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28043 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28044 | || test ! -s conftest.err' |
| 28045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28046 | (eval $ac_try) 2>&5 |
| 28047 | ac_status=$? |
| 28048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28049 | (exit $ac_status); }; } && |
| 28050 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28052 | (eval $ac_try) 2>&5 |
| 28053 | ac_status=$? |
| 28054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28055 | (exit $ac_status); }; }; then |
| 28056 | ac_cv_cxx_namespaces=yes |
| 28057 | else |
| 28058 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28060 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28061 | ac_cv_cxx_namespaces=no |
| 28062 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28064 | ac_ext=c |
| 28065 | ac_cpp='$CPP $CPPFLAGS' |
| 28066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28069 | |
| 28070 | |
| 28071 | fi |
| 28072 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 28073 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 28074 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 28075 | |
| 28076 | cat >>confdefs.h <<\_ACEOF |
| 28077 | #define HAVE_NAMESPACES |
| 28078 | _ACEOF |
| 28079 | |
| 28080 | fi |
| 28081 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28082 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 28083 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 |
| 28084 | 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] | 28085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28086 | else |
| 28087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28088 | ac_ext=cc |
| 28089 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28093 | |
| 28094 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28095 | /* confdefs.h. */ |
| 28096 | _ACEOF |
| 28097 | cat confdefs.h >>conftest.$ac_ext |
| 28098 | cat >>conftest.$ac_ext <<_ACEOF |
| 28099 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28100 | #include <ext/hash_map> |
| 28101 | #ifdef HAVE_NAMESPACES |
| 28102 | using namespace std; |
| 28103 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28104 | int |
| 28105 | main () |
| 28106 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28107 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28108 | ; |
| 28109 | return 0; |
| 28110 | } |
| 28111 | _ACEOF |
| 28112 | rm -f conftest.$ac_objext |
| 28113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28114 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28115 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28117 | rm -f conftest.er1 |
| 28118 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28120 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28121 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28122 | || test ! -s conftest.err' |
| 28123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28124 | (eval $ac_try) 2>&5 |
| 28125 | ac_status=$? |
| 28126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28127 | (exit $ac_status); }; } && |
| 28128 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28130 | (eval $ac_try) 2>&5 |
| 28131 | ac_status=$? |
| 28132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28133 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28134 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28135 | else |
| 28136 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28138 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28139 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28140 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28142 | ac_ext=c |
| 28143 | ac_cpp='$CPP $CPPFLAGS' |
| 28144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28147 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28148 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28149 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 28150 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28151 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 28152 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28153 | |
| 28154 | cat >>confdefs.h <<\_ACEOF |
| 28155 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 28156 | _ACEOF |
| 28157 | |
| 28158 | else |
| 28159 | |
| 28160 | cat >>confdefs.h <<\_ACEOF |
| 28161 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 28162 | _ACEOF |
| 28163 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28164 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28165 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28166 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 28167 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 |
| 28168 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 28169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28170 | else |
| 28171 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28172 | ac_ext=cc |
| 28173 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28174 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28175 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28176 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28177 | |
| 28178 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28179 | /* confdefs.h. */ |
| 28180 | _ACEOF |
| 28181 | cat confdefs.h >>conftest.$ac_ext |
| 28182 | cat >>conftest.$ac_ext <<_ACEOF |
| 28183 | /* end confdefs.h. */ |
| 28184 | #include <ext/hash_map> |
| 28185 | #ifdef HAVE_NAMESPACES |
| 28186 | using namespace __gnu_cxx; |
| 28187 | #endif |
| 28188 | int |
| 28189 | main () |
| 28190 | { |
| 28191 | hash_map<int,int> t; |
| 28192 | ; |
| 28193 | return 0; |
| 28194 | } |
| 28195 | _ACEOF |
| 28196 | rm -f conftest.$ac_objext |
| 28197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28198 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28199 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28201 | rm -f conftest.er1 |
| 28202 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28204 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28205 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28206 | || test ! -s conftest.err' |
| 28207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28208 | (eval $ac_try) 2>&5 |
| 28209 | ac_status=$? |
| 28210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28211 | (exit $ac_status); }; } && |
| 28212 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28214 | (eval $ac_try) 2>&5 |
| 28215 | ac_status=$? |
| 28216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28217 | (exit $ac_status); }; }; then |
| 28218 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 28219 | else |
| 28220 | echo "$as_me: failed program was:" >&5 |
| 28221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28222 | |
| 28223 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28224 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28226 | ac_ext=c |
| 28227 | ac_cpp='$CPP $CPPFLAGS' |
| 28228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28231 | |
| 28232 | fi |
| 28233 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 28234 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28235 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 28236 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28237 | |
| 28238 | cat >>confdefs.h <<\_ACEOF |
| 28239 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 28240 | _ACEOF |
| 28241 | |
| 28242 | else |
| 28243 | |
| 28244 | cat >>confdefs.h <<\_ACEOF |
| 28245 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 28246 | _ACEOF |
| 28247 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28248 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28249 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28250 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 28251 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 |
| 28252 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 28253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28254 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28255 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28256 | ac_ext=cc |
| 28257 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28258 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28259 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28260 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28261 | |
| 28262 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28263 | /* confdefs.h. */ |
| 28264 | _ACEOF |
| 28265 | cat confdefs.h >>conftest.$ac_ext |
| 28266 | cat >>conftest.$ac_ext <<_ACEOF |
| 28267 | /* end confdefs.h. */ |
| 28268 | #include <hash_map> |
| 28269 | int |
| 28270 | main () |
| 28271 | { |
| 28272 | hash_map<int,int> t; |
| 28273 | ; |
| 28274 | return 0; |
| 28275 | } |
| 28276 | _ACEOF |
| 28277 | rm -f conftest.$ac_objext |
| 28278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28279 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28280 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28282 | rm -f conftest.er1 |
| 28283 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28285 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28286 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28287 | || test ! -s conftest.err' |
| 28288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28289 | (eval $ac_try) 2>&5 |
| 28290 | ac_status=$? |
| 28291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28292 | (exit $ac_status); }; } && |
| 28293 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28295 | (eval $ac_try) 2>&5 |
| 28296 | ac_status=$? |
| 28297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28298 | (exit $ac_status); }; }; then |
| 28299 | ac_cv_cxx_have_global_hash_map=yes |
| 28300 | else |
| 28301 | echo "$as_me: failed program was:" >&5 |
| 28302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28303 | |
| 28304 | ac_cv_cxx_have_global_hash_map=no |
| 28305 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28307 | ac_ext=c |
| 28308 | ac_cpp='$CPP $CPPFLAGS' |
| 28309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28312 | |
| 28313 | fi |
| 28314 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 28315 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28316 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 28317 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28318 | |
| 28319 | cat >>confdefs.h <<\_ACEOF |
| 28320 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 28321 | _ACEOF |
| 28322 | |
| 28323 | else |
| 28324 | |
| 28325 | cat >>confdefs.h <<\_ACEOF |
| 28326 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 28327 | _ACEOF |
| 28328 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28329 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28330 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28331 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 28332 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 |
| 28333 | 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] | 28334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28335 | else |
| 28336 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28337 | ac_ext=cc |
| 28338 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28339 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28340 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28341 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28342 | |
| 28343 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28344 | /* confdefs.h. */ |
| 28345 | _ACEOF |
| 28346 | cat confdefs.h >>conftest.$ac_ext |
| 28347 | cat >>conftest.$ac_ext <<_ACEOF |
| 28348 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28349 | #include <ext/hash_set> |
| 28350 | #ifdef HAVE_NAMESPACES |
| 28351 | using namespace std; |
| 28352 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28353 | int |
| 28354 | main () |
| 28355 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28356 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28357 | ; |
| 28358 | return 0; |
| 28359 | } |
| 28360 | _ACEOF |
| 28361 | rm -f conftest.$ac_objext |
| 28362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28363 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28364 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28366 | rm -f conftest.er1 |
| 28367 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28369 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28370 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28371 | || test ! -s conftest.err' |
| 28372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28373 | (eval $ac_try) 2>&5 |
| 28374 | ac_status=$? |
| 28375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28376 | (exit $ac_status); }; } && |
| 28377 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28379 | (eval $ac_try) 2>&5 |
| 28380 | ac_status=$? |
| 28381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28382 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28383 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28384 | else |
| 28385 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28387 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28388 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28389 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28391 | ac_ext=c |
| 28392 | ac_cpp='$CPP $CPPFLAGS' |
| 28393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28396 | |
| 28397 | fi |
| 28398 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 28399 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28400 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 28401 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28402 | |
| 28403 | cat >>confdefs.h <<\_ACEOF |
| 28404 | #define HAVE_STD_EXT_HASH_SET 1 |
| 28405 | _ACEOF |
| 28406 | |
| 28407 | else |
| 28408 | |
| 28409 | cat >>confdefs.h <<\_ACEOF |
| 28410 | #define HAVE_STD_EXT_HASH_SET 0 |
| 28411 | _ACEOF |
| 28412 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28413 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28414 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28415 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 28416 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 |
| 28417 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 28418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28419 | else |
| 28420 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28421 | ac_ext=cc |
| 28422 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28426 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28427 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28428 | /* confdefs.h. */ |
| 28429 | _ACEOF |
| 28430 | cat confdefs.h >>conftest.$ac_ext |
| 28431 | cat >>conftest.$ac_ext <<_ACEOF |
| 28432 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28433 | #include <ext/hash_set> |
| 28434 | #ifdef HAVE_NAMESPACES |
| 28435 | using namespace __gnu_cxx; |
| 28436 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28437 | int |
| 28438 | main () |
| 28439 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28440 | hash_set<int> t; |
| 28441 | ; |
| 28442 | return 0; |
| 28443 | } |
| 28444 | _ACEOF |
| 28445 | rm -f conftest.$ac_objext |
| 28446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28447 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28448 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28450 | rm -f conftest.er1 |
| 28451 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28453 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28454 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28455 | || test ! -s conftest.err' |
| 28456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28457 | (eval $ac_try) 2>&5 |
| 28458 | ac_status=$? |
| 28459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28460 | (exit $ac_status); }; } && |
| 28461 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28463 | (eval $ac_try) 2>&5 |
| 28464 | ac_status=$? |
| 28465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28466 | (exit $ac_status); }; }; then |
| 28467 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 28468 | else |
| 28469 | echo "$as_me: failed program was:" >&5 |
| 28470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28471 | |
| 28472 | ac_cv_cxx_have_gnu_ext_hash_set=no |
| 28473 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28475 | ac_ext=c |
| 28476 | ac_cpp='$CPP $CPPFLAGS' |
| 28477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28480 | |
| 28481 | fi |
| 28482 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 28483 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28484 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 28485 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28486 | |
| 28487 | cat >>confdefs.h <<\_ACEOF |
| 28488 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 28489 | _ACEOF |
| 28490 | |
| 28491 | else |
| 28492 | |
| 28493 | cat >>confdefs.h <<\_ACEOF |
| 28494 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 28495 | _ACEOF |
| 28496 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28497 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28498 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28499 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 28500 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 |
| 28501 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 28502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28503 | else |
| 28504 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28505 | ac_ext=cc |
| 28506 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28507 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28508 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28509 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28510 | |
| 28511 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28512 | /* confdefs.h. */ |
| 28513 | _ACEOF |
| 28514 | cat confdefs.h >>conftest.$ac_ext |
| 28515 | cat >>conftest.$ac_ext <<_ACEOF |
| 28516 | /* end confdefs.h. */ |
| 28517 | #include <hash_set> |
| 28518 | int |
| 28519 | main () |
| 28520 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28521 | hash_set<int> t; return 0; |
| 28522 | ; |
| 28523 | return 0; |
| 28524 | } |
| 28525 | _ACEOF |
| 28526 | rm -f conftest.$ac_objext |
| 28527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28528 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28529 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28531 | rm -f conftest.er1 |
| 28532 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28534 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28535 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28536 | || test ! -s conftest.err' |
| 28537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28538 | (eval $ac_try) 2>&5 |
| 28539 | ac_status=$? |
| 28540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28541 | (exit $ac_status); }; } && |
| 28542 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28544 | (eval $ac_try) 2>&5 |
| 28545 | ac_status=$? |
| 28546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28547 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28548 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28549 | else |
| 28550 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28552 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28553 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28554 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28556 | ac_ext=c |
| 28557 | ac_cpp='$CPP $CPPFLAGS' |
| 28558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28561 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28562 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28563 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 28564 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28565 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 28566 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28567 | |
| 28568 | cat >>confdefs.h <<\_ACEOF |
| 28569 | #define HAVE_GLOBAL_HASH_SET 1 |
| 28570 | _ACEOF |
| 28571 | |
| 28572 | else |
| 28573 | |
| 28574 | cat >>confdefs.h <<\_ACEOF |
| 28575 | #define HAVE_GLOBAL_HASH_SET 0 |
| 28576 | _ACEOF |
| 28577 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28578 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28579 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28580 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 28581 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 28582 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 28583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28584 | else |
| 28585 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28586 | ac_ext=cc |
| 28587 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28588 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28589 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28590 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28591 | |
| 28592 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28593 | /* confdefs.h. */ |
| 28594 | _ACEOF |
| 28595 | cat confdefs.h >>conftest.$ac_ext |
| 28596 | cat >>conftest.$ac_ext <<_ACEOF |
| 28597 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28598 | #include <iterator> |
| 28599 | #ifdef HAVE_NAMESPACES |
| 28600 | using namespace std; |
| 28601 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28602 | int |
| 28603 | main () |
| 28604 | { |
| 28605 | iterator<int,int,int> t; return 0; |
| 28606 | ; |
| 28607 | return 0; |
| 28608 | } |
| 28609 | _ACEOF |
| 28610 | rm -f conftest.$ac_objext |
| 28611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28612 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28613 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28615 | rm -f conftest.er1 |
| 28616 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28618 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28619 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28620 | || test ! -s conftest.err' |
| 28621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28622 | (eval $ac_try) 2>&5 |
| 28623 | ac_status=$? |
| 28624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28625 | (exit $ac_status); }; } && |
| 28626 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28628 | (eval $ac_try) 2>&5 |
| 28629 | ac_status=$? |
| 28630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28631 | (exit $ac_status); }; }; then |
| 28632 | ac_cv_cxx_have_std_iterator=yes |
| 28633 | else |
| 28634 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28636 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28637 | ac_cv_cxx_have_std_iterator=no |
| 28638 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28640 | ac_ext=c |
| 28641 | ac_cpp='$CPP $CPPFLAGS' |
| 28642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28645 | |
| 28646 | |
| 28647 | fi |
| 28648 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 28649 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28650 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 28651 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28652 | |
| 28653 | cat >>confdefs.h <<\_ACEOF |
| 28654 | #define HAVE_STD_ITERATOR 1 |
| 28655 | _ACEOF |
| 28656 | |
| 28657 | else |
| 28658 | |
| 28659 | cat >>confdefs.h <<\_ACEOF |
| 28660 | #define HAVE_STD_ITERATOR 0 |
| 28661 | _ACEOF |
| 28662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28663 | fi |
| 28664 | |
| 28665 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 28666 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 28667 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 28668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28669 | else |
| 28670 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28671 | ac_ext=cc |
| 28672 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28673 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28674 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28675 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28676 | |
| 28677 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28678 | /* confdefs.h. */ |
| 28679 | _ACEOF |
| 28680 | cat confdefs.h >>conftest.$ac_ext |
| 28681 | cat >>conftest.$ac_ext <<_ACEOF |
| 28682 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28683 | #include <iterator> |
| 28684 | #ifdef HAVE_NAMESPACES |
| 28685 | using namespace std; |
| 28686 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28687 | int |
| 28688 | main () |
| 28689 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 28690 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28691 | ; |
| 28692 | return 0; |
| 28693 | } |
| 28694 | _ACEOF |
| 28695 | rm -f conftest.$ac_objext |
| 28696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28697 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28698 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28700 | rm -f conftest.er1 |
| 28701 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28703 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28704 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28705 | || test ! -s conftest.err' |
| 28706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28707 | (eval $ac_try) 2>&5 |
| 28708 | ac_status=$? |
| 28709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28710 | (exit $ac_status); }; } && |
| 28711 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28713 | (eval $ac_try) 2>&5 |
| 28714 | ac_status=$? |
| 28715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28716 | (exit $ac_status); }; }; then |
| 28717 | ac_cv_cxx_have_bi_iterator=yes |
| 28718 | else |
| 28719 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28721 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28722 | ac_cv_cxx_have_bi_iterator=no |
| 28723 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28725 | ac_ext=c |
| 28726 | ac_cpp='$CPP $CPPFLAGS' |
| 28727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28730 | |
| 28731 | |
| 28732 | fi |
| 28733 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 28734 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28735 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 28736 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28737 | |
| 28738 | cat >>confdefs.h <<\_ACEOF |
| 28739 | #define HAVE_BI_ITERATOR 1 |
| 28740 | _ACEOF |
| 28741 | |
| 28742 | else |
| 28743 | |
| 28744 | cat >>confdefs.h <<\_ACEOF |
| 28745 | #define HAVE_BI_ITERATOR 0 |
| 28746 | _ACEOF |
| 28747 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28748 | fi |
| 28749 | |
| 28750 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 28751 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 28752 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 28753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28754 | else |
| 28755 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28756 | ac_ext=cc |
| 28757 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28758 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28759 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28760 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28761 | |
| 28762 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28763 | /* confdefs.h. */ |
| 28764 | _ACEOF |
| 28765 | cat confdefs.h >>conftest.$ac_ext |
| 28766 | cat >>conftest.$ac_ext <<_ACEOF |
| 28767 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28768 | #include <iterator> |
| 28769 | #ifdef HAVE_NAMESPACES |
| 28770 | using namespace std; |
| 28771 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28772 | int |
| 28773 | main () |
| 28774 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 28775 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28776 | ; |
| 28777 | return 0; |
| 28778 | } |
| 28779 | _ACEOF |
| 28780 | rm -f conftest.$ac_objext |
| 28781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28782 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28783 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28785 | rm -f conftest.er1 |
| 28786 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28788 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28789 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28790 | || test ! -s conftest.err' |
| 28791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28792 | (eval $ac_try) 2>&5 |
| 28793 | ac_status=$? |
| 28794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28795 | (exit $ac_status); }; } && |
| 28796 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28798 | (eval $ac_try) 2>&5 |
| 28799 | ac_status=$? |
| 28800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28801 | (exit $ac_status); }; }; then |
| 28802 | ac_cv_cxx_have_fwd_iterator=yes |
| 28803 | else |
| 28804 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28806 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28807 | ac_cv_cxx_have_fwd_iterator=no |
| 28808 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28810 | ac_ext=c |
| 28811 | ac_cpp='$CPP $CPPFLAGS' |
| 28812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28815 | |
| 28816 | |
| 28817 | fi |
| 28818 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 28819 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28820 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 28821 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28822 | |
| 28823 | cat >>confdefs.h <<\_ACEOF |
| 28824 | #define HAVE_FWD_ITERATOR 1 |
| 28825 | _ACEOF |
| 28826 | |
| 28827 | else |
| 28828 | |
| 28829 | cat >>confdefs.h <<\_ACEOF |
| 28830 | #define HAVE_FWD_ITERATOR 0 |
| 28831 | _ACEOF |
| 28832 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28833 | fi |
| 28834 | |
| 28835 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28836 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 28837 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 |
| 28838 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 28839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28840 | else |
| 28841 | ac_ext=cc |
| 28842 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28843 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28844 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28845 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28846 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28847 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28848 | /* confdefs.h. */ |
| 28849 | _ACEOF |
| 28850 | cat confdefs.h >>conftest.$ac_ext |
| 28851 | cat >>conftest.$ac_ext <<_ACEOF |
| 28852 | /* end confdefs.h. */ |
| 28853 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28854 | int |
| 28855 | main () |
| 28856 | { |
| 28857 | float f; isnan(f); |
| 28858 | ; |
| 28859 | return 0; |
| 28860 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28861 | _ACEOF |
| 28862 | rm -f conftest.$ac_objext |
| 28863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28864 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28865 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28867 | rm -f conftest.er1 |
| 28868 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28870 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28871 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28872 | || test ! -s conftest.err' |
| 28873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28874 | (eval $ac_try) 2>&5 |
| 28875 | ac_status=$? |
| 28876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28877 | (exit $ac_status); }; } && |
| 28878 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28880 | (eval $ac_try) 2>&5 |
| 28881 | ac_status=$? |
| 28882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28883 | (exit $ac_status); }; }; then |
| 28884 | ac_cv_func_isnan_in_math_h=yes |
| 28885 | else |
| 28886 | echo "$as_me: failed program was:" >&5 |
| 28887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28888 | |
| 28889 | ac_cv_func_isnan_in_math_h=no |
| 28890 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28892 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28893 | ac_cpp='$CPP $CPPFLAGS' |
| 28894 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28895 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28896 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28897 | |
| 28898 | fi |
| 28899 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 28900 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28901 | |
| 28902 | |
| 28903 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28904 | |
| 28905 | cat >>confdefs.h <<\_ACEOF |
| 28906 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 28907 | _ACEOF |
| 28908 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28909 | fi |
| 28910 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28911 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 28912 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 |
| 28913 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 28914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28915 | else |
| 28916 | ac_ext=cc |
| 28917 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28918 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28919 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28920 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28921 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28922 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28923 | /* confdefs.h. */ |
| 28924 | _ACEOF |
| 28925 | cat confdefs.h >>conftest.$ac_ext |
| 28926 | cat >>conftest.$ac_ext <<_ACEOF |
| 28927 | /* end confdefs.h. */ |
| 28928 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28929 | int |
| 28930 | main () |
| 28931 | { |
| 28932 | float f; isnan(f); |
| 28933 | ; |
| 28934 | return 0; |
| 28935 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28936 | _ACEOF |
| 28937 | rm -f conftest.$ac_objext |
| 28938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28939 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28940 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28942 | rm -f conftest.er1 |
| 28943 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28945 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28946 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28947 | || test ! -s conftest.err' |
| 28948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28949 | (eval $ac_try) 2>&5 |
| 28950 | ac_status=$? |
| 28951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28952 | (exit $ac_status); }; } && |
| 28953 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28955 | (eval $ac_try) 2>&5 |
| 28956 | ac_status=$? |
| 28957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28958 | (exit $ac_status); }; }; then |
| 28959 | ac_cv_func_isnan_in_cmath=yes |
| 28960 | else |
| 28961 | echo "$as_me: failed program was:" >&5 |
| 28962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28963 | |
| 28964 | ac_cv_func_isnan_in_cmath=no |
| 28965 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28967 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28968 | ac_cpp='$CPP $CPPFLAGS' |
| 28969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28972 | |
| 28973 | fi |
| 28974 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 28975 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28976 | |
| 28977 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28978 | |
| 28979 | cat >>confdefs.h <<\_ACEOF |
| 28980 | #define HAVE_ISNAN_IN_CMATH 1 |
| 28981 | _ACEOF |
| 28982 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28983 | fi |
| 28984 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28985 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 28986 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 |
| 28987 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 28988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28989 | else |
| 28990 | ac_ext=cc |
| 28991 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28992 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28993 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28994 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28995 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28996 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28997 | /* confdefs.h. */ |
| 28998 | _ACEOF |
| 28999 | cat confdefs.h >>conftest.$ac_ext |
| 29000 | cat >>conftest.$ac_ext <<_ACEOF |
| 29001 | /* end confdefs.h. */ |
| 29002 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29003 | int |
| 29004 | main () |
| 29005 | { |
| 29006 | float f; std::isnan(f); |
| 29007 | ; |
| 29008 | return 0; |
| 29009 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29010 | _ACEOF |
| 29011 | rm -f conftest.$ac_objext |
| 29012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29013 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29014 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29016 | rm -f conftest.er1 |
| 29017 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29019 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29020 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29021 | || test ! -s conftest.err' |
| 29022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29023 | (eval $ac_try) 2>&5 |
| 29024 | ac_status=$? |
| 29025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29026 | (exit $ac_status); }; } && |
| 29027 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29029 | (eval $ac_try) 2>&5 |
| 29030 | ac_status=$? |
| 29031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29032 | (exit $ac_status); }; }; then |
| 29033 | ac_cv_func_std_isnan_in_cmath=yes |
| 29034 | else |
| 29035 | echo "$as_me: failed program was:" >&5 |
| 29036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29037 | |
| 29038 | ac_cv_func_std_isnan_in_cmath=no |
| 29039 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29041 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29042 | ac_cpp='$CPP $CPPFLAGS' |
| 29043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29046 | |
| 29047 | fi |
| 29048 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 29049 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29050 | |
| 29051 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29052 | |
| 29053 | cat >>confdefs.h <<\_ACEOF |
| 29054 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 29055 | _ACEOF |
| 29056 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29057 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29058 | |
| 29059 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29060 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 29061 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 |
| 29062 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 29063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29064 | else |
| 29065 | ac_ext=cc |
| 29066 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29067 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29068 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29069 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29070 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29071 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29072 | /* confdefs.h. */ |
| 29073 | _ACEOF |
| 29074 | cat confdefs.h >>conftest.$ac_ext |
| 29075 | cat >>conftest.$ac_ext <<_ACEOF |
| 29076 | /* end confdefs.h. */ |
| 29077 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29078 | int |
| 29079 | main () |
| 29080 | { |
| 29081 | float f; isinf(f); |
| 29082 | ; |
| 29083 | return 0; |
| 29084 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29085 | _ACEOF |
| 29086 | rm -f conftest.$ac_objext |
| 29087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29088 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29089 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29091 | rm -f conftest.er1 |
| 29092 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29094 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29095 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29096 | || test ! -s conftest.err' |
| 29097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29098 | (eval $ac_try) 2>&5 |
| 29099 | ac_status=$? |
| 29100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29101 | (exit $ac_status); }; } && |
| 29102 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29104 | (eval $ac_try) 2>&5 |
| 29105 | ac_status=$? |
| 29106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29107 | (exit $ac_status); }; }; then |
| 29108 | ac_cv_func_isinf_in_math_h=yes |
| 29109 | else |
| 29110 | echo "$as_me: failed program was:" >&5 |
| 29111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29112 | |
| 29113 | ac_cv_func_isinf_in_math_h=no |
| 29114 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29116 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29117 | ac_cpp='$CPP $CPPFLAGS' |
| 29118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29121 | |
| 29122 | fi |
| 29123 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 29124 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29125 | |
| 29126 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29127 | |
| 29128 | cat >>confdefs.h <<\_ACEOF |
| 29129 | #define HAVE_ISINF_IN_MATH_H 1 |
| 29130 | _ACEOF |
| 29131 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29132 | fi |
| 29133 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29134 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 29135 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 |
| 29136 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 29137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29138 | else |
| 29139 | ac_ext=cc |
| 29140 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29141 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29142 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29143 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29144 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29145 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29146 | /* confdefs.h. */ |
| 29147 | _ACEOF |
| 29148 | cat confdefs.h >>conftest.$ac_ext |
| 29149 | cat >>conftest.$ac_ext <<_ACEOF |
| 29150 | /* end confdefs.h. */ |
| 29151 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29152 | int |
| 29153 | main () |
| 29154 | { |
| 29155 | float f; isinf(f); |
| 29156 | ; |
| 29157 | return 0; |
| 29158 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29159 | _ACEOF |
| 29160 | rm -f conftest.$ac_objext |
| 29161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29162 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29163 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29165 | rm -f conftest.er1 |
| 29166 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29168 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29169 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29170 | || test ! -s conftest.err' |
| 29171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29172 | (eval $ac_try) 2>&5 |
| 29173 | ac_status=$? |
| 29174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29175 | (exit $ac_status); }; } && |
| 29176 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29178 | (eval $ac_try) 2>&5 |
| 29179 | ac_status=$? |
| 29180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29181 | (exit $ac_status); }; }; then |
| 29182 | ac_cv_func_isinf_in_cmath=yes |
| 29183 | else |
| 29184 | echo "$as_me: failed program was:" >&5 |
| 29185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29186 | |
| 29187 | ac_cv_func_isinf_in_cmath=no |
| 29188 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29190 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29191 | ac_cpp='$CPP $CPPFLAGS' |
| 29192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29195 | |
| 29196 | fi |
| 29197 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 29198 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29199 | |
| 29200 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29201 | |
| 29202 | cat >>confdefs.h <<\_ACEOF |
| 29203 | #define HAVE_ISINF_IN_CMATH 1 |
| 29204 | _ACEOF |
| 29205 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29206 | fi |
| 29207 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29208 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 29209 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 |
| 29210 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 29211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29212 | else |
| 29213 | ac_ext=cc |
| 29214 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29215 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29216 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29217 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29218 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29219 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29220 | /* confdefs.h. */ |
| 29221 | _ACEOF |
| 29222 | cat confdefs.h >>conftest.$ac_ext |
| 29223 | cat >>conftest.$ac_ext <<_ACEOF |
| 29224 | /* end confdefs.h. */ |
| 29225 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29226 | int |
| 29227 | main () |
| 29228 | { |
| 29229 | float f; std::isinf(f)} |
| 29230 | ; |
| 29231 | return 0; |
| 29232 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29233 | _ACEOF |
| 29234 | rm -f conftest.$ac_objext |
| 29235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29236 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29237 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29239 | rm -f conftest.er1 |
| 29240 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29242 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29243 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29244 | || test ! -s conftest.err' |
| 29245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29246 | (eval $ac_try) 2>&5 |
| 29247 | ac_status=$? |
| 29248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29249 | (exit $ac_status); }; } && |
| 29250 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29252 | (eval $ac_try) 2>&5 |
| 29253 | ac_status=$? |
| 29254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29255 | (exit $ac_status); }; }; then |
| 29256 | ac_cv_func_std_isinf_in_cmath=yes |
| 29257 | else |
| 29258 | echo "$as_me: failed program was:" >&5 |
| 29259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29260 | |
| 29261 | ac_cv_func_std_isinf_in_cmath=no |
| 29262 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29264 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29265 | ac_cpp='$CPP $CPPFLAGS' |
| 29266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29269 | |
| 29270 | fi |
| 29271 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 29272 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29273 | |
| 29274 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29275 | |
| 29276 | cat >>confdefs.h <<\_ACEOF |
| 29277 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 29278 | _ACEOF |
| 29279 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29280 | fi |
| 29281 | |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29282 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 29283 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 |
| 29284 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 29285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29286 | else |
| 29287 | ac_ext=cc |
| 29288 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29289 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29290 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29291 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29292 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29293 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29294 | /* confdefs.h. */ |
| 29295 | _ACEOF |
| 29296 | cat confdefs.h >>conftest.$ac_ext |
| 29297 | cat >>conftest.$ac_ext <<_ACEOF |
| 29298 | /* end confdefs.h. */ |
| 29299 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29300 | int |
| 29301 | main () |
| 29302 | { |
| 29303 | float f; finite(f); |
| 29304 | ; |
| 29305 | return 0; |
| 29306 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29307 | _ACEOF |
| 29308 | rm -f conftest.$ac_objext |
| 29309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29310 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29311 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29313 | rm -f conftest.er1 |
| 29314 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29316 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29317 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29318 | || test ! -s conftest.err' |
| 29319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29320 | (eval $ac_try) 2>&5 |
| 29321 | ac_status=$? |
| 29322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29323 | (exit $ac_status); }; } && |
| 29324 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29326 | (eval $ac_try) 2>&5 |
| 29327 | ac_status=$? |
| 29328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29329 | (exit $ac_status); }; }; then |
| 29330 | ac_cv_func_finite_in_ieeefp_h=yes |
| 29331 | else |
| 29332 | echo "$as_me: failed program was:" >&5 |
| 29333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29334 | |
| 29335 | ac_cv_func_finite_in_ieeefp_h=no |
| 29336 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29338 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29339 | ac_cpp='$CPP $CPPFLAGS' |
| 29340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29343 | |
| 29344 | fi |
| 29345 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 29346 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29347 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 29348 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29349 | |
| 29350 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 29351 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29352 | _ACEOF |
| 29353 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29354 | fi |
| 29355 | |
| 29356 | |
| 29357 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29358 | |
| 29359 | |
| 29360 | for ac_header in stdlib.h unistd.h |
| 29361 | do |
| 29362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 29364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 29366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 29367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29368 | fi |
| 29369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 29370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 29371 | else |
| 29372 | # Is the header compilable? |
| 29373 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 29375 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29376 | /* confdefs.h. */ |
| 29377 | _ACEOF |
| 29378 | cat confdefs.h >>conftest.$ac_ext |
| 29379 | cat >>conftest.$ac_ext <<_ACEOF |
| 29380 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29381 | $ac_includes_default |
| 29382 | #include <$ac_header> |
| 29383 | _ACEOF |
| 29384 | rm -f conftest.$ac_objext |
| 29385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29386 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29387 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29389 | rm -f conftest.er1 |
| 29390 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29392 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29393 | { ac_try='test -z "$ac_c_werror_flag" |
| 29394 | || test ! -s conftest.err' |
| 29395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29396 | (eval $ac_try) 2>&5 |
| 29397 | ac_status=$? |
| 29398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29399 | (exit $ac_status); }; } && |
| 29400 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29402 | (eval $ac_try) 2>&5 |
| 29403 | ac_status=$? |
| 29404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29405 | (exit $ac_status); }; }; then |
| 29406 | ac_header_compiler=yes |
| 29407 | else |
| 29408 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29410 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29411 | ac_header_compiler=no |
| 29412 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29414 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29415 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 29416 | |
| 29417 | # Is the header present? |
| 29418 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 29420 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29421 | /* confdefs.h. */ |
| 29422 | _ACEOF |
| 29423 | cat confdefs.h >>conftest.$ac_ext |
| 29424 | cat >>conftest.$ac_ext <<_ACEOF |
| 29425 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29426 | #include <$ac_header> |
| 29427 | _ACEOF |
| 29428 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 29429 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 29430 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29431 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29432 | rm -f conftest.er1 |
| 29433 | cat conftest.err >&5 |
| 29434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29435 | (exit $ac_status); } >/dev/null; then |
| 29436 | if test -s conftest.err; then |
| 29437 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29438 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29439 | else |
| 29440 | ac_cpp_err= |
| 29441 | fi |
| 29442 | else |
| 29443 | ac_cpp_err=yes |
| 29444 | fi |
| 29445 | if test -z "$ac_cpp_err"; then |
| 29446 | ac_header_preproc=yes |
| 29447 | else |
| 29448 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29450 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29451 | ac_header_preproc=no |
| 29452 | fi |
| 29453 | rm -f conftest.err conftest.$ac_ext |
| 29454 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29455 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 29456 | |
| 29457 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29458 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29459 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29460 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29461 | 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] | 29462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29463 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29464 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29465 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29466 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29467 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29468 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29469 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29470 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29471 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29472 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29473 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29474 | 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] | 29475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29476 | 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] | 29477 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29478 | 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] | 29479 | ( |
| 29480 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29481 | ## ----------------------------------- ## |
| 29482 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29483 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29484 | _ASBOX |
| 29485 | ) | |
| 29486 | sed "s/^/$as_me: WARNING: /" >&2 |
| 29487 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29488 | esac |
| 29489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 29491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 29492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29493 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29494 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29495 | fi |
| 29496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 29497 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 29498 | |
| 29499 | fi |
| 29500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29501 | cat >>confdefs.h <<_ACEOF |
| 29502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29503 | _ACEOF |
| 29504 | |
| 29505 | fi |
| 29506 | |
| 29507 | done |
| 29508 | |
| 29509 | |
| 29510 | for ac_func in getpagesize |
| 29511 | do |
| 29512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 29513 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 29515 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 29516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29517 | else |
| 29518 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29519 | /* confdefs.h. */ |
| 29520 | _ACEOF |
| 29521 | cat confdefs.h >>conftest.$ac_ext |
| 29522 | cat >>conftest.$ac_ext <<_ACEOF |
| 29523 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29524 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29526 | #define $ac_func innocuous_$ac_func |
| 29527 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29528 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29529 | which can conflict with char $ac_func (); below. |
| 29530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29531 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29532 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29533 | #ifdef __STDC__ |
| 29534 | # include <limits.h> |
| 29535 | #else |
| 29536 | # include <assert.h> |
| 29537 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29538 | |
| 29539 | #undef $ac_func |
| 29540 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29541 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 29542 | #ifdef __cplusplus |
| 29543 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29544 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29545 | #endif |
| 29546 | /* We use char because int might match the return type of a gcc2 |
| 29547 | builtin and then its argument prototype would still apply. */ |
| 29548 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29549 | /* The GNU C library defines this for functions which it implements |
| 29550 | to always fail with ENOSYS. Some functions are actually named |
| 29551 | something starting with __ and the normal name is an alias. */ |
| 29552 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 29553 | choke me |
| 29554 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29555 | char (*f) () = $ac_func; |
| 29556 | #endif |
| 29557 | #ifdef __cplusplus |
| 29558 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29559 | #endif |
| 29560 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29561 | int |
| 29562 | main () |
| 29563 | { |
| 29564 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29565 | ; |
| 29566 | return 0; |
| 29567 | } |
| 29568 | _ACEOF |
| 29569 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29571 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29572 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29574 | rm -f conftest.er1 |
| 29575 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29577 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29578 | { ac_try='test -z "$ac_c_werror_flag" |
| 29579 | || test ! -s conftest.err' |
| 29580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29581 | (eval $ac_try) 2>&5 |
| 29582 | ac_status=$? |
| 29583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29584 | (exit $ac_status); }; } && |
| 29585 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29587 | (eval $ac_try) 2>&5 |
| 29588 | ac_status=$? |
| 29589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29590 | (exit $ac_status); }; }; then |
| 29591 | eval "$as_ac_var=yes" |
| 29592 | else |
| 29593 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29595 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29596 | eval "$as_ac_var=no" |
| 29597 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29598 | rm -f conftest.err conftest.$ac_objext \ |
| 29599 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29600 | fi |
| 29601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 29602 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 29603 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29604 | cat >>confdefs.h <<_ACEOF |
| 29605 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29606 | _ACEOF |
| 29607 | |
| 29608 | fi |
| 29609 | done |
| 29610 | |
| 29611 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 29612 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 29613 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 29614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29615 | else |
| 29616 | if test "$cross_compiling" = yes; then |
| 29617 | ac_cv_func_mmap_fixed_mapped=no |
| 29618 | else |
| 29619 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29620 | /* confdefs.h. */ |
| 29621 | _ACEOF |
| 29622 | cat confdefs.h >>conftest.$ac_ext |
| 29623 | cat >>conftest.$ac_ext <<_ACEOF |
| 29624 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29625 | $ac_includes_default |
| 29626 | /* malloc might have been renamed as rpl_malloc. */ |
| 29627 | #undef malloc |
| 29628 | |
| 29629 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 29630 | Here is a matrix of mmap possibilities: |
| 29631 | mmap private not fixed |
| 29632 | mmap private fixed at somewhere currently unmapped |
| 29633 | mmap private fixed at somewhere already mapped |
| 29634 | mmap shared not fixed |
| 29635 | mmap shared fixed at somewhere currently unmapped |
| 29636 | mmap shared fixed at somewhere already mapped |
| 29637 | For private mappings, we should verify that changes cannot be read() |
| 29638 | back from the file, nor mmap's back from the file at a different |
| 29639 | address. (There have been systems where private was not correctly |
| 29640 | implemented like the infamous i386 svr4.0, and systems where the |
| 29641 | VM page cache was not coherent with the file system buffer cache |
| 29642 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 29643 | For shared mappings, we should conversely verify that changes get |
| 29644 | propagated back to all the places they're supposed to be. |
| 29645 | |
| 29646 | Grep wants private fixed already mapped. |
| 29647 | The main things grep needs to know about mmap are: |
| 29648 | * does it exist and is it safe to write into the mmap'd area |
| 29649 | * how to use it (BSD variants) */ |
| 29650 | |
| 29651 | #include <fcntl.h> |
| 29652 | #include <sys/mman.h> |
| 29653 | |
| 29654 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 29655 | char *malloc (); |
| 29656 | #endif |
| 29657 | |
| 29658 | /* This mess was copied from the GNU getpagesize.h. */ |
| 29659 | #if !HAVE_GETPAGESIZE |
| 29660 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 29661 | # if !HAVE_SYS_PARAM_H |
| 29662 | # define HAVE_SYS_PARAM_H 1 |
| 29663 | # endif |
| 29664 | |
| 29665 | # ifdef _SC_PAGESIZE |
| 29666 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 29667 | # else /* no _SC_PAGESIZE */ |
| 29668 | # if HAVE_SYS_PARAM_H |
| 29669 | # include <sys/param.h> |
| 29670 | # ifdef EXEC_PAGESIZE |
| 29671 | # define getpagesize() EXEC_PAGESIZE |
| 29672 | # else /* no EXEC_PAGESIZE */ |
| 29673 | # ifdef NBPG |
| 29674 | # define getpagesize() NBPG * CLSIZE |
| 29675 | # ifndef CLSIZE |
| 29676 | # define CLSIZE 1 |
| 29677 | # endif /* no CLSIZE */ |
| 29678 | # else /* no NBPG */ |
| 29679 | # ifdef NBPC |
| 29680 | # define getpagesize() NBPC |
| 29681 | # else /* no NBPC */ |
| 29682 | # ifdef PAGESIZE |
| 29683 | # define getpagesize() PAGESIZE |
| 29684 | # endif /* PAGESIZE */ |
| 29685 | # endif /* no NBPC */ |
| 29686 | # endif /* no NBPG */ |
| 29687 | # endif /* no EXEC_PAGESIZE */ |
| 29688 | # else /* no HAVE_SYS_PARAM_H */ |
| 29689 | # define getpagesize() 8192 /* punt totally */ |
| 29690 | # endif /* no HAVE_SYS_PARAM_H */ |
| 29691 | # endif /* no _SC_PAGESIZE */ |
| 29692 | |
| 29693 | #endif /* no HAVE_GETPAGESIZE */ |
| 29694 | |
| 29695 | int |
| 29696 | main () |
| 29697 | { |
| 29698 | char *data, *data2, *data3; |
| 29699 | int i, pagesize; |
| 29700 | int fd; |
| 29701 | |
| 29702 | pagesize = getpagesize (); |
| 29703 | |
| 29704 | /* First, make a file with some known garbage in it. */ |
| 29705 | data = (char *) malloc (pagesize); |
| 29706 | if (!data) |
| 29707 | exit (1); |
| 29708 | for (i = 0; i < pagesize; ++i) |
| 29709 | *(data + i) = rand (); |
| 29710 | umask (0); |
| 29711 | fd = creat ("conftest.mmap", 0600); |
| 29712 | if (fd < 0) |
| 29713 | exit (1); |
| 29714 | if (write (fd, data, pagesize) != pagesize) |
| 29715 | exit (1); |
| 29716 | close (fd); |
| 29717 | |
| 29718 | /* Next, try to mmap the file at a fixed address which already has |
| 29719 | something else allocated at it. If we can, also make sure that |
| 29720 | we see the same garbage. */ |
| 29721 | fd = open ("conftest.mmap", O_RDWR); |
| 29722 | if (fd < 0) |
| 29723 | exit (1); |
| 29724 | data2 = (char *) malloc (2 * pagesize); |
| 29725 | if (!data2) |
| 29726 | exit (1); |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29727 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29728 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29729 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29730 | exit (1); |
| 29731 | for (i = 0; i < pagesize; ++i) |
| 29732 | if (*(data + i) != *(data2 + i)) |
| 29733 | exit (1); |
| 29734 | |
| 29735 | /* Finally, make sure that changes to the mapped area do not |
| 29736 | percolate back to the file as seen by read(). (This is a bug on |
| 29737 | some variants of i386 svr4.0.) */ |
| 29738 | for (i = 0; i < pagesize; ++i) |
| 29739 | *(data2 + i) = *(data2 + i) + 1; |
| 29740 | data3 = (char *) malloc (pagesize); |
| 29741 | if (!data3) |
| 29742 | exit (1); |
| 29743 | if (read (fd, data3, pagesize) != pagesize) |
| 29744 | exit (1); |
| 29745 | for (i = 0; i < pagesize; ++i) |
| 29746 | if (*(data + i) != *(data3 + i)) |
| 29747 | exit (1); |
| 29748 | close (fd); |
| 29749 | exit (0); |
| 29750 | } |
| 29751 | _ACEOF |
| 29752 | rm -f conftest$ac_exeext |
| 29753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 29754 | (eval $ac_link) 2>&5 |
| 29755 | ac_status=$? |
| 29756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29757 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29759 | (eval $ac_try) 2>&5 |
| 29760 | ac_status=$? |
| 29761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29762 | (exit $ac_status); }; }; then |
| 29763 | ac_cv_func_mmap_fixed_mapped=yes |
| 29764 | else |
| 29765 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29766 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29769 | ( exit $ac_status ) |
| 29770 | ac_cv_func_mmap_fixed_mapped=no |
| 29771 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29772 | 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] | 29773 | fi |
| 29774 | fi |
| 29775 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 29776 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 29777 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 29778 | |
| 29779 | cat >>confdefs.h <<\_ACEOF |
| 29780 | #define HAVE_MMAP 1 |
| 29781 | _ACEOF |
| 29782 | |
| 29783 | fi |
| 29784 | rm -f conftest.mmap |
| 29785 | |
| 29786 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 29787 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 29788 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 29789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29790 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29791 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29792 | ac_cpp='$CPP $CPPFLAGS' |
| 29793 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29794 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29795 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29796 | |
| 29797 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 29798 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29799 | else |
| 29800 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29801 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29802 | /* confdefs.h. */ |
| 29803 | _ACEOF |
| 29804 | cat confdefs.h >>conftest.$ac_ext |
| 29805 | cat >>conftest.$ac_ext <<_ACEOF |
| 29806 | /* end confdefs.h. */ |
| 29807 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29808 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 29809 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29810 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29811 | |
| 29812 | int |
| 29813 | main () |
| 29814 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29815 | |
| 29816 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29817 | fd = creat ("foo",0777); |
| 29818 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 29819 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 29820 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29821 | ; |
| 29822 | return 0; |
| 29823 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29824 | _ACEOF |
| 29825 | rm -f conftest$ac_exeext |
| 29826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 29827 | (eval $ac_link) 2>&5 |
| 29828 | ac_status=$? |
| 29829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29830 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29832 | (eval $ac_try) 2>&5 |
| 29833 | ac_status=$? |
| 29834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29835 | (exit $ac_status); }; }; then |
| 29836 | ac_cv_func_mmap_file=yes |
| 29837 | else |
| 29838 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29839 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29841 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29842 | ( exit $ac_status ) |
| 29843 | ac_cv_func_mmap_file=no |
| 29844 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29845 | 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] | 29846 | fi |
| 29847 | ac_ext=c |
| 29848 | ac_cpp='$CPP $CPPFLAGS' |
| 29849 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29850 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29851 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29852 | |
| 29853 | |
| 29854 | fi |
| 29855 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 29856 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 29857 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 29858 | |
| 29859 | cat >>confdefs.h <<\_ACEOF |
| 29860 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29861 | _ACEOF |
| 29862 | |
| 29863 | MMAP_FILE=yes |
| 29864 | |
| 29865 | fi |
| 29866 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29867 | echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 29868 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6 |
| 29869 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 29870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29871 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 29872 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29873 | ac_cv_need_dev_zero_for_mmap=yes |
| 29874 | else |
| 29875 | ac_cv_need_dev_zero_for_mmap=no |
| 29876 | fi |
| 29877 | |
| 29878 | fi |
| 29879 | echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 29880 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6 |
| 29881 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 29882 | |
| 29883 | cat >>confdefs.h <<\_ACEOF |
| 29884 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 29885 | _ACEOF |
| 29886 | |
| 29887 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29888 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 29889 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 29890 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 29891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29892 | else |
| 29893 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29894 | /* confdefs.h. */ |
| 29895 | _ACEOF |
| 29896 | cat confdefs.h >>conftest.$ac_ext |
| 29897 | cat >>conftest.$ac_ext <<_ACEOF |
| 29898 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29899 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 29900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29901 | #define mprotect innocuous_mprotect |
| 29902 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29903 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29904 | which can conflict with char mprotect (); below. |
| 29905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29906 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29907 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29908 | #ifdef __STDC__ |
| 29909 | # include <limits.h> |
| 29910 | #else |
| 29911 | # include <assert.h> |
| 29912 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29913 | |
| 29914 | #undef mprotect |
| 29915 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29916 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 29917 | #ifdef __cplusplus |
| 29918 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29919 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29920 | #endif |
| 29921 | /* We use char because int might match the return type of a gcc2 |
| 29922 | builtin and then its argument prototype would still apply. */ |
| 29923 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29924 | /* The GNU C library defines this for functions which it implements |
| 29925 | to always fail with ENOSYS. Some functions are actually named |
| 29926 | something starting with __ and the normal name is an alias. */ |
| 29927 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 29928 | choke me |
| 29929 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29930 | char (*f) () = mprotect; |
| 29931 | #endif |
| 29932 | #ifdef __cplusplus |
| 29933 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29934 | #endif |
| 29935 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29936 | int |
| 29937 | main () |
| 29938 | { |
| 29939 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29940 | ; |
| 29941 | return 0; |
| 29942 | } |
| 29943 | _ACEOF |
| 29944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29946 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29947 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29949 | rm -f conftest.er1 |
| 29950 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29952 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29953 | { ac_try='test -z "$ac_c_werror_flag" |
| 29954 | || test ! -s conftest.err' |
| 29955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29956 | (eval $ac_try) 2>&5 |
| 29957 | ac_status=$? |
| 29958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29959 | (exit $ac_status); }; } && |
| 29960 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29962 | (eval $ac_try) 2>&5 |
| 29963 | ac_status=$? |
| 29964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29965 | (exit $ac_status); }; }; then |
| 29966 | ac_cv_func_mprotect=yes |
| 29967 | else |
| 29968 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29970 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29971 | ac_cv_func_mprotect=no |
| 29972 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29973 | rm -f conftest.err conftest.$ac_objext \ |
| 29974 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29975 | fi |
| 29976 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 29977 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 29978 | if test $ac_cv_func_mprotect = yes; then |
| 29979 | : |
| 29980 | else |
| 29981 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 29982 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 29983 | { (exit 1); exit 1; }; } |
| 29984 | fi |
| 29985 | |
| 29986 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29987 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29988 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 29989 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 29990 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29991 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29992 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29993 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29994 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 29995 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29996 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29997 | |
| 29998 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 29999 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 30000 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30001 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 30002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30003 | else |
| 30004 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30005 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30006 | cp /dev/null conftest.c |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30007 | "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30008 | if test $? -eq 0 ; then |
| 30009 | llvm_cv_llvmgcc_sanity="yes" |
| 30010 | fi |
| 30011 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30012 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30013 | fi |
| 30014 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 30015 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 |
| 30016 | |
| 30017 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30018 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30019 | LLVMCC1=$llvmcc1path |
| 30020 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30021 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30022 | LLVMCC1PLUS=$llvmcc1pluspath |
| 30023 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30024 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 30025 | LLVMGCCDIR=$llvmgccdir |
| 30026 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30027 | fi |
| 30028 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30029 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 30030 | |
| 30031 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30032 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30033 | # information into substitutions that will end up in Makefile.config.in |
| 30034 | # that these configured values can be used by the makefiles |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30035 | eval LLVM_PREFIX="${prefix}"; |
| 30036 | eval LLVM_BINDIR="${prefix}/bin"; |
| 30037 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30038 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 30039 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 30040 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30041 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 30042 | eval LLVM_INFODIR="${prefix}/info"; |
| 30043 | eval LLVM_MANDIR="${prefix}/man"; |
| 30044 | LLVM_CONFIGTIME=`date` |
| 30045 | |
| 30046 | |
| 30047 | |
| 30048 | |
| 30049 | |
| 30050 | |
| 30051 | |
| 30052 | |
| 30053 | |
| 30054 | |
| 30055 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30056 | # Place the various directores into the config.h file as #defines so that we |
| 30057 | # can know about the installation paths within LLVM. |
| 30058 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30059 | cat >>confdefs.h <<_ACEOF |
| 30060 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 30061 | _ACEOF |
| 30062 | |
| 30063 | |
| 30064 | cat >>confdefs.h <<_ACEOF |
| 30065 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 30066 | _ACEOF |
| 30067 | |
| 30068 | |
| 30069 | cat >>confdefs.h <<_ACEOF |
| 30070 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 30071 | _ACEOF |
| 30072 | |
| 30073 | |
| 30074 | cat >>confdefs.h <<_ACEOF |
| 30075 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 30076 | _ACEOF |
| 30077 | |
| 30078 | |
| 30079 | cat >>confdefs.h <<_ACEOF |
| 30080 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 30081 | _ACEOF |
| 30082 | |
| 30083 | |
| 30084 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 30085 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30086 | _ACEOF |
| 30087 | |
| 30088 | |
| 30089 | cat >>confdefs.h <<_ACEOF |
| 30090 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 30091 | _ACEOF |
| 30092 | |
| 30093 | |
| 30094 | cat >>confdefs.h <<_ACEOF |
| 30095 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 30096 | _ACEOF |
| 30097 | |
| 30098 | |
| 30099 | cat >>confdefs.h <<_ACEOF |
| 30100 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 30101 | _ACEOF |
| 30102 | |
| 30103 | |
| 30104 | cat >>confdefs.h <<_ACEOF |
| 30105 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 30106 | _ACEOF |
| 30107 | |
| 30108 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30109 | |
| 30110 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
| 30111 | |
| 30112 | |
| 30113 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
| 30114 | |
| 30115 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
| 30116 | |
| 30117 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
| 30118 | |
| 30119 | ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" |
| 30120 | |
| 30121 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
| 30122 | |
| 30123 | |
| 30124 | ac_config_files="$ac_config_files Makefile.config" |
| 30125 | |
| 30126 | |
| 30127 | ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c" |
| 30128 | |
| 30129 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30130 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 30131 | |
| 30132 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30133 | ac_config_commands="$ac_config_commands Makefile" |
| 30134 | |
| 30135 | |
| 30136 | ac_config_commands="$ac_config_commands Makefile.common" |
| 30137 | |
| 30138 | |
| 30139 | ac_config_commands="$ac_config_commands examples/Makefile" |
| 30140 | |
| 30141 | |
| 30142 | ac_config_commands="$ac_config_commands lib/Makefile" |
| 30143 | |
| 30144 | |
| 30145 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 30146 | |
| 30147 | |
| 30148 | ac_config_commands="$ac_config_commands test/Makefile" |
| 30149 | |
| 30150 | |
| 30151 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
| 30152 | |
| 30153 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30154 | ac_config_commands="$ac_config_commands tools/Makefile" |
| 30155 | |
| 30156 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30157 | ac_config_commands="$ac_config_commands utils/Makefile" |
| 30158 | |
| 30159 | |
| 30160 | ac_config_commands="$ac_config_commands projects/Makefile" |
| 30161 | |
| 30162 | |
| 30163 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30164 | cat >confcache <<\_ACEOF |
| 30165 | # This file is a shell script that caches the results of configure |
| 30166 | # tests run on this system so they can be shared between configure |
| 30167 | # scripts and configure runs, see configure's option --config-cache. |
| 30168 | # It is not useful on other systems. If it contains results you don't |
| 30169 | # want to keep, you may remove or edit it. |
| 30170 | # |
| 30171 | # config.status only pays attention to the cache file if you give it |
| 30172 | # the --recheck option to rerun configure. |
| 30173 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30174 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30175 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 30176 | # following values. |
| 30177 | |
| 30178 | _ACEOF |
| 30179 | |
| 30180 | # The following way of writing the cache mishandles newlines in values, |
| 30181 | # but we know of no workaround that is simple, portable, and efficient. |
| 30182 | # So, don't put newlines in cache variables' values. |
| 30183 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 30184 | # and sets the high bit in the cache file unless we assign to the vars. |
| 30185 | { |
| 30186 | (set) 2>&1 | |
| 30187 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 30188 | *ac_space=\ *) |
| 30189 | # `set' does not quote correctly, so add quotes (double-quote |
| 30190 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 30191 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30192 | "s/'/'\\\\''/g; |
| 30193 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30194 | ;; |
| 30195 | *) |
| 30196 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 30197 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30198 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30199 | ;; |
| 30200 | esac; |
| 30201 | } | |
| 30202 | sed ' |
| 30203 | t clear |
| 30204 | : clear |
| 30205 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 30206 | t end |
| 30207 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 30208 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30209 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30210 | if test -w $cache_file; then |
| 30211 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 30212 | cat confcache >$cache_file |
| 30213 | else |
| 30214 | echo "not updating unwritable cache $cache_file" |
| 30215 | fi |
| 30216 | fi |
| 30217 | rm -f confcache |
| 30218 | |
| 30219 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 30220 | # Let make expand exec_prefix. |
| 30221 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 30222 | |
| 30223 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 30224 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 30225 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 30226 | # (actually we leave an empty line to preserve line numbers). |
| 30227 | if test "x$srcdir" = x.; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30228 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30229 | s/:*\$(srcdir):*/:/; |
| 30230 | s/:*\${srcdir}:*/:/; |
| 30231 | s/:*@srcdir@:*/:/; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30232 | s/^\([^=]*=[ ]*\):*/\1/; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30233 | s/:*$//; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30234 | s/^[^=]*=[ ]*$//; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30235 | }' |
| 30236 | fi |
| 30237 | |
| 30238 | DEFS=-DHAVE_CONFIG_H |
| 30239 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30240 | ac_libobjs= |
| 30241 | ac_ltlibobjs= |
| 30242 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 30243 | # 1. Remove the extension, and $U if already installed. |
| 30244 | ac_i=`echo "$ac_i" | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30245 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30246 | # 2. Add them. |
| 30247 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 30248 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 30249 | done |
| 30250 | LIBOBJS=$ac_libobjs |
| 30251 | |
| 30252 | LTLIBOBJS=$ac_ltlibobjs |
| 30253 | |
| 30254 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30255 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 30256 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 30257 | Usually this means the macro was only invoked conditionally." >&5 |
| 30258 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 30259 | Usually this means the macro was only invoked conditionally." >&2;} |
| 30260 | { (exit 1); exit 1; }; } |
| 30261 | fi |
| 30262 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 30263 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 30264 | Usually this means the macro was only invoked conditionally." >&5 |
| 30265 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 30266 | Usually this means the macro was only invoked conditionally." >&2;} |
| 30267 | { (exit 1); exit 1; }; } |
| 30268 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30269 | |
| 30270 | : ${CONFIG_STATUS=./config.status} |
| 30271 | ac_clean_files_save=$ac_clean_files |
| 30272 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 30273 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 30274 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 30275 | cat >$CONFIG_STATUS <<_ACEOF |
| 30276 | #! $SHELL |
| 30277 | # Generated by $as_me. |
| 30278 | # Run this file to recreate the current configuration. |
| 30279 | # Compiler output produced by configure, useful for debugging |
| 30280 | # configure, is in config.log if it exists. |
| 30281 | |
| 30282 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30283 | ac_cs_recheck=false |
| 30284 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30285 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 30286 | _ACEOF |
| 30287 | |
| 30288 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30289 | ## --------------------- ## |
| 30290 | ## M4sh Initialization. ## |
| 30291 | ## --------------------- ## |
| 30292 | |
| 30293 | # Be Bourne compatible |
| 30294 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 30295 | emulate sh |
| 30296 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30297 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 30298 | # is contrary to our usage. Disable this feature. |
| 30299 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30300 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 30301 | set -o posix |
| 30302 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30303 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30305 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30306 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30307 | as_unset=unset |
| 30308 | else |
| 30309 | as_unset=false |
| 30310 | fi |
| 30311 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30312 | |
| 30313 | # Work around bugs in pre-3.0 UWIN ksh. |
| 30314 | $as_unset ENV MAIL MAILPATH |
| 30315 | PS1='$ ' |
| 30316 | PS2='> ' |
| 30317 | PS4='+ ' |
| 30318 | |
| 30319 | # NLS nuisances. |
| 30320 | for as_var in \ |
| 30321 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 30322 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 30323 | LC_TELEPHONE LC_TIME |
| 30324 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30325 | 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] | 30326 | eval $as_var=C; export $as_var |
| 30327 | else |
| 30328 | $as_unset $as_var |
| 30329 | fi |
| 30330 | done |
| 30331 | |
| 30332 | # Required to use basename. |
| 30333 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 30334 | as_expr=expr |
| 30335 | else |
| 30336 | as_expr=false |
| 30337 | fi |
| 30338 | |
| 30339 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 30340 | as_basename=basename |
| 30341 | else |
| 30342 | as_basename=false |
| 30343 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30344 | |
| 30345 | |
| 30346 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30347 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30348 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 30349 | X"$0" : 'X\(//\)$' \| \ |
| 30350 | X"$0" : 'X\(/\)$' \| \ |
| 30351 | . : '\(.\)' 2>/dev/null || |
| 30352 | echo X/"$0" | |
| 30353 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 30354 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 30355 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 30356 | s/.*/./; q'` |
| 30357 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30358 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30359 | # PATH needs CR, and LINENO needs CR and PATH. |
| 30360 | # Avoid depending upon Character Ranges. |
| 30361 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 30362 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 30363 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 30364 | as_cr_digits='0123456789' |
| 30365 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 30366 | |
| 30367 | # The user is always right. |
| 30368 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30369 | echo "#! /bin/sh" >conf$$.sh |
| 30370 | echo "exit 0" >>conf$$.sh |
| 30371 | chmod +x conf$$.sh |
| 30372 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30373 | PATH_SEPARATOR=';' |
| 30374 | else |
| 30375 | PATH_SEPARATOR=: |
| 30376 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30377 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30378 | fi |
| 30379 | |
| 30380 | |
| 30381 | as_lineno_1=$LINENO |
| 30382 | as_lineno_2=$LINENO |
| 30383 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 30384 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 30385 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 30386 | # Find who we are. Look in the path if we contain no path at all |
| 30387 | # relative or not. |
| 30388 | case $0 in |
| 30389 | *[\\/]* ) as_myself=$0 ;; |
| 30390 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30391 | for as_dir in $PATH |
| 30392 | do |
| 30393 | IFS=$as_save_IFS |
| 30394 | test -z "$as_dir" && as_dir=. |
| 30395 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 30396 | done |
| 30397 | |
| 30398 | ;; |
| 30399 | esac |
| 30400 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 30401 | # in which case we are not to be found in the path. |
| 30402 | if test "x$as_myself" = x; then |
| 30403 | as_myself=$0 |
| 30404 | fi |
| 30405 | if test ! -f "$as_myself"; then |
| 30406 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 30407 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 30408 | { (exit 1); exit 1; }; } |
| 30409 | fi |
| 30410 | case $CONFIG_SHELL in |
| 30411 | '') |
| 30412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30413 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 30414 | do |
| 30415 | IFS=$as_save_IFS |
| 30416 | test -z "$as_dir" && as_dir=. |
| 30417 | for as_base in sh bash ksh sh5; do |
| 30418 | case $as_dir in |
| 30419 | /*) |
| 30420 | if ("$as_dir/$as_base" -c ' |
| 30421 | as_lineno_1=$LINENO |
| 30422 | as_lineno_2=$LINENO |
| 30423 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 30424 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 30425 | 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] | 30426 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 30427 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30428 | CONFIG_SHELL=$as_dir/$as_base |
| 30429 | export CONFIG_SHELL |
| 30430 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 30431 | fi;; |
| 30432 | esac |
| 30433 | done |
| 30434 | done |
| 30435 | ;; |
| 30436 | esac |
| 30437 | |
| 30438 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 30439 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 30440 | # line-number line before each line; the second 'sed' does the real |
| 30441 | # work. The second script uses 'N' to pair each line-number line |
| 30442 | # with the numbered line, and appends trailing '-' during |
| 30443 | # substitution so that $LINENO is not a special case at line end. |
| 30444 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 30445 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 30446 | sed '=' <$as_myself | |
| 30447 | sed ' |
| 30448 | N |
| 30449 | s,$,-, |
| 30450 | : loop |
| 30451 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 30452 | t loop |
| 30453 | s,-$,, |
| 30454 | s,^['$as_cr_digits']*\n,, |
| 30455 | ' >$as_me.lineno && |
| 30456 | chmod +x $as_me.lineno || |
| 30457 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 30458 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 30459 | { (exit 1); exit 1; }; } |
| 30460 | |
| 30461 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 30462 | # (the dirname of $[0] is not the place where we might find the |
| 30463 | # original and so on. Autoconf is especially sensible to this). |
| 30464 | . ./$as_me.lineno |
| 30465 | # Exit status is that of the last command. |
| 30466 | exit |
| 30467 | } |
| 30468 | |
| 30469 | |
| 30470 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 30471 | *c*,-n*) ECHO_N= ECHO_C=' |
| 30472 | ' ECHO_T=' ' ;; |
| 30473 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 30474 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 30475 | esac |
| 30476 | |
| 30477 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 30478 | as_expr=expr |
| 30479 | else |
| 30480 | as_expr=false |
| 30481 | fi |
| 30482 | |
| 30483 | rm -f conf$$ conf$$.exe conf$$.file |
| 30484 | echo >conf$$.file |
| 30485 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 30486 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 30487 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 30488 | if test -f conf$$.exe; then |
| 30489 | # Don't use ln at all; we don't have any links |
| 30490 | as_ln_s='cp -p' |
| 30491 | else |
| 30492 | as_ln_s='ln -s' |
| 30493 | fi |
| 30494 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 30495 | as_ln_s=ln |
| 30496 | else |
| 30497 | as_ln_s='cp -p' |
| 30498 | fi |
| 30499 | rm -f conf$$ conf$$.exe conf$$.file |
| 30500 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30501 | if mkdir -p . 2>/dev/null; then |
| 30502 | as_mkdir_p=: |
| 30503 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30504 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30505 | as_mkdir_p=false |
| 30506 | fi |
| 30507 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30508 | as_executable_p="test -f" |
| 30509 | |
| 30510 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30511 | 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] | 30512 | |
| 30513 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30514 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30515 | |
| 30516 | |
| 30517 | # IFS |
| 30518 | # We need space, tab and new line, in precisely that order. |
| 30519 | as_nl=' |
| 30520 | ' |
| 30521 | IFS=" $as_nl" |
| 30522 | |
| 30523 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30524 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30525 | |
| 30526 | exec 6>&1 |
| 30527 | |
| 30528 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 30529 | # report actual input values of CONFIG_FILES etc. instead of their |
| 30530 | # values after options handling. Logging --version etc. is OK. |
| 30531 | exec 5>>config.log |
| 30532 | { |
| 30533 | echo |
| 30534 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 30535 | ## Running $as_me. ## |
| 30536 | _ASBOX |
| 30537 | } >&5 |
| 30538 | cat >&5 <<_CSEOF |
| 30539 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30540 | This file was extended by llvm $as_me 1.4, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30541 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30542 | |
| 30543 | CONFIG_FILES = $CONFIG_FILES |
| 30544 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 30545 | CONFIG_LINKS = $CONFIG_LINKS |
| 30546 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 30547 | $ $0 $@ |
| 30548 | |
| 30549 | _CSEOF |
| 30550 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 30551 | echo >&5 |
| 30552 | _ACEOF |
| 30553 | |
| 30554 | # Files that config.status was made for. |
| 30555 | if test -n "$ac_config_files"; then |
| 30556 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 30557 | fi |
| 30558 | |
| 30559 | if test -n "$ac_config_headers"; then |
| 30560 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 30561 | fi |
| 30562 | |
| 30563 | if test -n "$ac_config_links"; then |
| 30564 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 30565 | fi |
| 30566 | |
| 30567 | if test -n "$ac_config_commands"; then |
| 30568 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 30569 | fi |
| 30570 | |
| 30571 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30572 | |
| 30573 | ac_cs_usage="\ |
| 30574 | \`$as_me' instantiates files from templates according to the |
| 30575 | current configuration. |
| 30576 | |
| 30577 | Usage: $0 [OPTIONS] [FILE]... |
| 30578 | |
| 30579 | -h, --help print this help, then exit |
| 30580 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30581 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30582 | -d, --debug don't remove temporary files |
| 30583 | --recheck update $as_me by reconfiguring in the same conditions |
| 30584 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30585 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30586 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30587 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30588 | |
| 30589 | Configuration files: |
| 30590 | $config_files |
| 30591 | |
| 30592 | Configuration headers: |
| 30593 | $config_headers |
| 30594 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30595 | Configuration commands: |
| 30596 | $config_commands |
| 30597 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30598 | Report bugs to <bug-autoconf@gnu.org>." |
| 30599 | _ACEOF |
| 30600 | |
| 30601 | cat >>$CONFIG_STATUS <<_ACEOF |
| 30602 | ac_cs_version="\\ |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30603 | llvm config.status 1.4 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30604 | configured by $0, generated by GNU Autoconf 2.59, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30605 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 30606 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30607 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30608 | This config.status script is free software; the Free Software Foundation |
| 30609 | gives unlimited permission to copy, distribute and modify it." |
| 30610 | srcdir=$srcdir |
| 30611 | INSTALL="$INSTALL" |
| 30612 | _ACEOF |
| 30613 | |
| 30614 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30615 | # If no file are specified by the user, then we need to provide default |
| 30616 | # value. By we need to know if files were specified by the user. |
| 30617 | ac_need_defaults=: |
| 30618 | while test $# != 0 |
| 30619 | do |
| 30620 | case $1 in |
| 30621 | --*=*) |
| 30622 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 30623 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30624 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30625 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30626 | -*) |
| 30627 | ac_option=$1 |
| 30628 | ac_optarg=$2 |
| 30629 | ac_shift=shift |
| 30630 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30631 | *) # This is not an option, so the user has probably given explicit |
| 30632 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30633 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30634 | ac_need_defaults=false;; |
| 30635 | esac |
| 30636 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30637 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30638 | # Handling of the options. |
| 30639 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 30640 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30641 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 30642 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30643 | --version | --vers* | -V ) |
| 30644 | echo "$ac_cs_version"; exit 0 ;; |
| 30645 | --he | --h) |
| 30646 | # Conflict between --help and --header |
| 30647 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 30648 | Try \`$0 --help' for more information." >&5 |
| 30649 | echo "$as_me: error: ambiguous option: $1 |
| 30650 | Try \`$0 --help' for more information." >&2;} |
| 30651 | { (exit 1); exit 1; }; };; |
| 30652 | --help | --hel | -h ) |
| 30653 | echo "$ac_cs_usage"; exit 0 ;; |
| 30654 | --debug | --d* | -d ) |
| 30655 | debug=: ;; |
| 30656 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30657 | $ac_shift |
| 30658 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30659 | ac_need_defaults=false;; |
| 30660 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30661 | $ac_shift |
| 30662 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30663 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30664 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 30665 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 30666 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30667 | |
| 30668 | # This is an error. |
| 30669 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 30670 | Try \`$0 --help' for more information." >&5 |
| 30671 | echo "$as_me: error: unrecognized option: $1 |
| 30672 | Try \`$0 --help' for more information." >&2;} |
| 30673 | { (exit 1); exit 1; }; } ;; |
| 30674 | |
| 30675 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 30676 | |
| 30677 | esac |
| 30678 | shift |
| 30679 | done |
| 30680 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30681 | ac_configure_extra_args= |
| 30682 | |
| 30683 | if $ac_cs_silent; then |
| 30684 | exec 6>/dev/null |
| 30685 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 30686 | fi |
| 30687 | |
| 30688 | _ACEOF |
| 30689 | cat >>$CONFIG_STATUS <<_ACEOF |
| 30690 | if \$ac_cs_recheck; then |
| 30691 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 30692 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 30693 | fi |
| 30694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30695 | _ACEOF |
| 30696 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30697 | cat >>$CONFIG_STATUS <<_ACEOF |
| 30698 | # |
| 30699 | # INIT-COMMANDS section. |
| 30700 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30701 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30702 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` |
| 30703 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 30704 | ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30705 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30706 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30707 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 30708 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30709 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 30710 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30711 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30712 | |
| 30713 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30714 | |
| 30715 | |
| 30716 | |
| 30717 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30718 | for ac_config_target in $ac_config_targets |
| 30719 | do |
| 30720 | case "$ac_config_target" in |
| 30721 | # Handling of arguments. |
| 30722 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | 0acd65f | 2004-11-23 23:48:45 +0000 | [diff] [blame] | 30723 | "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;; |
| 30724 | "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;; |
| 30725 | "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;; |
| 30726 | "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30727 | "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30728 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 30729 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 30730 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30731 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30732 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30733 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 30734 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30735 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 30736 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30737 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 30738 | "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
John Criswell | 5fbb1f8 | 2004-09-24 13:28:51 +0000 | [diff] [blame] | 30739 | "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 30740 | "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 30741 | "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 30742 | "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; |
| 30743 | "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30744 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 30745 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 30746 | { (exit 1); exit 1; }; };; |
| 30747 | esac |
| 30748 | done |
| 30749 | |
| 30750 | # If the user did not use the arguments to specify the items to instantiate, |
| 30751 | # then the envvar interface is used. Set only those that are not. |
| 30752 | # We use the long form for the default assignment because of an extremely |
| 30753 | # bizarre bug on SunOS 4.1.3. |
| 30754 | if $ac_need_defaults; then |
| 30755 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 30756 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30757 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30758 | fi |
| 30759 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30760 | # Have a temporary directory for convenience. Make it in the build tree |
| 30761 | # simply because there is no reason to put it here, and in addition, |
| 30762 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30763 | # Create a temporary directory, and hook for its removal unless debugging. |
| 30764 | $debug || |
| 30765 | { |
| 30766 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 30767 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 30768 | } |
| 30769 | |
| 30770 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30772 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30773 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30774 | test -n "$tmp" && test -d "$tmp" |
| 30775 | } || |
| 30776 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30777 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30778 | (umask 077 && mkdir $tmp) |
| 30779 | } || |
| 30780 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30781 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30782 | { (exit 1); exit 1; } |
| 30783 | } |
| 30784 | |
| 30785 | _ACEOF |
| 30786 | |
| 30787 | cat >>$CONFIG_STATUS <<_ACEOF |
| 30788 | |
| 30789 | # |
| 30790 | # CONFIG_FILES section. |
| 30791 | # |
| 30792 | |
| 30793 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 30794 | # This happens for instance when ./config.status config.h |
| 30795 | if test -n "\$CONFIG_FILES"; then |
| 30796 | # Protect against being on the right side of a sed subst in config.status. |
| 30797 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 30798 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 30799 | s,@SHELL@,$SHELL,;t t |
| 30800 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 30801 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 30802 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 30803 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 30804 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 30805 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 30806 | s,@exec_prefix@,$exec_prefix,;t t |
| 30807 | s,@prefix@,$prefix,;t t |
| 30808 | s,@program_transform_name@,$program_transform_name,;t t |
| 30809 | s,@bindir@,$bindir,;t t |
| 30810 | s,@sbindir@,$sbindir,;t t |
| 30811 | s,@libexecdir@,$libexecdir,;t t |
| 30812 | s,@datadir@,$datadir,;t t |
| 30813 | s,@sysconfdir@,$sysconfdir,;t t |
| 30814 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 30815 | s,@localstatedir@,$localstatedir,;t t |
| 30816 | s,@libdir@,$libdir,;t t |
| 30817 | s,@includedir@,$includedir,;t t |
| 30818 | s,@oldincludedir@,$oldincludedir,;t t |
| 30819 | s,@infodir@,$infodir,;t t |
| 30820 | s,@mandir@,$mandir,;t t |
| 30821 | s,@build_alias@,$build_alias,;t t |
| 30822 | s,@host_alias@,$host_alias,;t t |
| 30823 | s,@target_alias@,$target_alias,;t t |
| 30824 | s,@DEFS@,$DEFS,;t t |
| 30825 | s,@ECHO_C@,$ECHO_C,;t t |
| 30826 | s,@ECHO_N@,$ECHO_N,;t t |
| 30827 | s,@ECHO_T@,$ECHO_T,;t t |
| 30828 | s,@LIBS@,$LIBS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30829 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 30830 | s,@subdirs@,$subdirs,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30831 | s,@build@,$build,;t t |
| 30832 | s,@build_cpu@,$build_cpu,;t t |
| 30833 | s,@build_vendor@,$build_vendor,;t t |
| 30834 | s,@build_os@,$build_os,;t t |
| 30835 | s,@host@,$host,;t t |
| 30836 | s,@host_cpu@,$host_cpu,;t t |
| 30837 | s,@host_vendor@,$host_vendor,;t t |
| 30838 | s,@host_os@,$host_os,;t t |
| 30839 | s,@target@,$target,;t t |
| 30840 | s,@target_cpu@,$target_cpu,;t t |
| 30841 | s,@target_vendor@,$target_vendor,;t t |
| 30842 | s,@target_os@,$target_os,;t t |
| 30843 | s,@OS@,$OS,;t t |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 30844 | s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t |
| 30845 | s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 30846 | s,@ARCH@,$ARCH,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30847 | s,@ENDIAN@,$ENDIAN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30848 | s,@CC@,$CC,;t t |
| 30849 | s,@CFLAGS@,$CFLAGS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30850 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 30851 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30852 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30853 | s,@EXEEXT@,$EXEEXT,;t t |
| 30854 | s,@OBJEXT@,$OBJEXT,;t t |
| 30855 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
| 30856 | s,@JIT@,$JIT,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30857 | s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30858 | s,@CPP@,$CPP,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30859 | s,@CXX@,$CXX,;t t |
| 30860 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 30861 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30862 | s,@LEX@,$LEX,;t t |
| 30863 | s,@LEXLIB@,$LEXLIB,;t t |
| 30864 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 30865 | s,@FLEX@,$FLEX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30866 | s,@YACC@,$YACC,;t t |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 30867 | s,@BISON@,$BISON,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30868 | s,@ifGNUmake@,$ifGNUmake,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30869 | s,@LN_S@,$LN_S,;t t |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 30870 | s,@CMP@,$CMP,;t t |
| 30871 | s,@CP@,$CP,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30872 | s,@DATE@,$DATE,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30873 | s,@FIND@,$FIND,;t t |
| 30874 | s,@GREP@,$GREP,;t t |
| 30875 | s,@MKDIR@,$MKDIR,;t t |
| 30876 | s,@MV@,$MV,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30877 | s,@PAX@,$PAX,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30878 | s,@RANLIB@,$RANLIB,;t t |
| 30879 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30880 | s,@RM@,$RM,;t t |
| 30881 | s,@SED@,$SED,;t t |
Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 30882 | s,@TAR@,$TAR,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30883 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 30884 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 30885 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30886 | s,@BZIP2@,$BZIP2,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30887 | s,@DOT@,$DOT,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30888 | s,@DOXYGEN@,$DOXYGEN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30889 | s,@ETAGS@,$ETAGS,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30890 | s,@GROFF@,$GROFF,;t t |
| 30891 | s,@GZIP@,$GZIP,;t t |
| 30892 | s,@POD2HTML@,$POD2HTML,;t t |
| 30893 | s,@POD2MAN@,$POD2MAN,;t t |
Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 30894 | s,@RUNTEST@,$RUNTEST,;t t |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 30895 | s,@TCLSH@,$TCLSH,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30896 | s,@ZIP@,$ZIP,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30897 | s,@EGREP@,$EGREP,;t t |
| 30898 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t |
| 30899 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t |
| 30900 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t |
| 30901 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t |
| 30902 | s,@LIBADD_DL@,$LIBADD_DL,;t t |
| 30903 | s,@ECHO@,$ECHO,;t t |
| 30904 | s,@AR@,$AR,;t t |
| 30905 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 30906 | s,@STRIP@,$STRIP,;t t |
| 30907 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 30908 | s,@CXXCPP@,$CXXCPP,;t t |
| 30909 | s,@F77@,$F77,;t t |
| 30910 | s,@FFLAGS@,$FFLAGS,;t t |
| 30911 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
| 30912 | s,@LIBTOOL@,$LIBTOOL,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30913 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30914 | s,@LLVMGCC@,$LLVMGCC,;t t |
| 30915 | s,@LLVMGXX@,$LLVMGXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30916 | s,@ALLOCA@,$ALLOCA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30917 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 30918 | s,@LLVMCC1@,$LLVMCC1,;t t |
| 30919 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30920 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 30921 | s,@SHLIBEXT@,$SHLIBEXT,;t t |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30922 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t |
| 30923 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t |
| 30924 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t |
| 30925 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t |
| 30926 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t |
| 30927 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t |
| 30928 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t |
| 30929 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t |
| 30930 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t |
| 30931 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 30932 | s,@LIBOBJS@,$LIBOBJS,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30933 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30934 | CEOF |
| 30935 | |
| 30936 | _ACEOF |
| 30937 | |
| 30938 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30939 | # Split the substitutions into bite-sized pieces for seds with |
| 30940 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 30941 | ac_max_sed_lines=48 |
| 30942 | ac_sed_frag=1 # Number of current file. |
| 30943 | ac_beg=1 # First line for current file. |
| 30944 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 30945 | ac_more_lines=: |
| 30946 | ac_sed_cmds= |
| 30947 | while $ac_more_lines; do |
| 30948 | if test $ac_beg -gt 1; then |
| 30949 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 30950 | else |
| 30951 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 30952 | fi |
| 30953 | if test ! -s $tmp/subs.frag; then |
| 30954 | ac_more_lines=false |
| 30955 | else |
| 30956 | # The purpose of the label and of the branching condition is to |
| 30957 | # speed up the sed processing (if there are no `@' at all, there |
| 30958 | # is no need to browse any of the substitutions). |
| 30959 | # These are the two extra sed commands mentioned above. |
| 30960 | (echo ':t |
| 30961 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 30962 | if test -z "$ac_sed_cmds"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30963 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30964 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30965 | 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] | 30966 | fi |
| 30967 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 30968 | ac_beg=$ac_end |
| 30969 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 30970 | fi |
| 30971 | done |
| 30972 | if test -z "$ac_sed_cmds"; then |
| 30973 | ac_sed_cmds=cat |
| 30974 | fi |
| 30975 | fi # test -n "$CONFIG_FILES" |
| 30976 | |
| 30977 | _ACEOF |
| 30978 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30979 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 30980 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 30981 | case $ac_file in |
| 30982 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30983 | cat >$tmp/stdin |
| 30984 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 30985 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30986 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30987 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30988 | * ) ac_file_in=$ac_file.in ;; |
| 30989 | esac |
| 30990 | |
| 30991 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 30992 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 30993 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30994 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 30995 | X"$ac_file" : 'X\(//\)$' \| \ |
| 30996 | X"$ac_file" : 'X\(/\)' \| \ |
| 30997 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30998 | echo X"$ac_file" | |
| 30999 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31000 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31001 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31002 | /^X\(\/\).*/{ s//\1/; q; } |
| 31003 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31004 | { if $as_mkdir_p; then |
| 31005 | mkdir -p "$ac_dir" |
| 31006 | else |
| 31007 | as_dir="$ac_dir" |
| 31008 | as_dirs= |
| 31009 | while test ! -d "$as_dir"; do |
| 31010 | as_dirs="$as_dir $as_dirs" |
| 31011 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31012 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31013 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31014 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31015 | X"$as_dir" : 'X\(/\)' \| \ |
| 31016 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31017 | echo X"$as_dir" | |
| 31018 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31019 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31020 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31021 | /^X\(\/\).*/{ s//\1/; q; } |
| 31022 | s/.*/./; q'` |
| 31023 | done |
| 31024 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31025 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31026 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31027 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31028 | |
| 31029 | ac_builddir=. |
| 31030 | |
| 31031 | if test "$ac_dir" != .; then |
| 31032 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 31033 | # A "../" for each directory in $ac_dir_suffix. |
| 31034 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 31035 | else |
| 31036 | ac_dir_suffix= ac_top_builddir= |
| 31037 | fi |
| 31038 | |
| 31039 | case $srcdir in |
| 31040 | .) # No --srcdir option. We are building in place. |
| 31041 | ac_srcdir=. |
| 31042 | if test -z "$ac_top_builddir"; then |
| 31043 | ac_top_srcdir=. |
| 31044 | else |
| 31045 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 31046 | fi ;; |
| 31047 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 31048 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 31049 | ac_top_srcdir=$srcdir ;; |
| 31050 | *) # Relative path. |
| 31051 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 31052 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 31053 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31054 | |
| 31055 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 31056 | # the directories may not exist. |
| 31057 | case `pwd` in |
| 31058 | .) ac_abs_builddir="$ac_dir";; |
| 31059 | *) |
| 31060 | case "$ac_dir" in |
| 31061 | .) ac_abs_builddir=`pwd`;; |
| 31062 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 31063 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 31064 | esac;; |
| 31065 | esac |
| 31066 | case $ac_abs_builddir in |
| 31067 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31068 | *) |
| 31069 | case ${ac_top_builddir}. in |
| 31070 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 31071 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31072 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 31073 | esac;; |
| 31074 | esac |
| 31075 | case $ac_abs_builddir in |
| 31076 | .) ac_abs_srcdir=$ac_srcdir;; |
| 31077 | *) |
| 31078 | case $ac_srcdir in |
| 31079 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 31080 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 31081 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 31082 | esac;; |
| 31083 | esac |
| 31084 | case $ac_abs_builddir in |
| 31085 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31086 | *) |
| 31087 | case $ac_top_srcdir in |
| 31088 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 31089 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31090 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 31091 | esac;; |
| 31092 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31093 | |
| 31094 | |
| 31095 | case $INSTALL in |
| 31096 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 31097 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 31098 | esac |
| 31099 | |
| 31100 | if test x"$ac_file" != x-; then |
| 31101 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 31102 | echo "$as_me: creating $ac_file" >&6;} |
| 31103 | rm -f "$ac_file" |
| 31104 | fi |
| 31105 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 31106 | # use $as_me), people would be surprised to read: |
| 31107 | # /* config.h. Generated by config.status. */ |
| 31108 | if test x"$ac_file" = x-; then |
| 31109 | configure_input= |
| 31110 | else |
| 31111 | configure_input="$ac_file. " |
| 31112 | fi |
| 31113 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31114 | sed 's,.*/,,'` by configure." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31115 | |
| 31116 | # First look for the input files in the build tree, otherwise in the |
| 31117 | # src tree. |
| 31118 | ac_file_inputs=`IFS=: |
| 31119 | for f in $ac_file_in; do |
| 31120 | case $f in |
| 31121 | -) echo $tmp/stdin ;; |
| 31122 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31123 | # Absolute (can't be DOS-style, as IFS=:) |
| 31124 | 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] | 31125 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31126 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31127 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31128 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31129 | if test -f "$f"; then |
| 31130 | # Build tree |
| 31131 | echo "$f" |
| 31132 | elif test -f "$srcdir/$f"; then |
| 31133 | # Source tree |
| 31134 | echo "$srcdir/$f" |
| 31135 | else |
| 31136 | # /dev/null tree |
| 31137 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31138 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31139 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31140 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31141 | esac |
| 31142 | done` || { (exit 1); exit 1; } |
| 31143 | _ACEOF |
| 31144 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31145 | sed "$ac_vpsub |
| 31146 | $extrasub |
| 31147 | _ACEOF |
| 31148 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31149 | :t |
| 31150 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 31151 | s,@configure_input@,$configure_input,;t t |
| 31152 | s,@srcdir@,$ac_srcdir,;t t |
| 31153 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 31154 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 31155 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 31156 | s,@builddir@,$ac_builddir,;t t |
| 31157 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 31158 | s,@top_builddir@,$ac_top_builddir,;t t |
| 31159 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 31160 | s,@INSTALL@,$ac_INSTALL,;t t |
| 31161 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 31162 | rm -f $tmp/stdin |
| 31163 | if test x"$ac_file" != x-; then |
| 31164 | mv $tmp/out $ac_file |
| 31165 | else |
| 31166 | cat $tmp/out |
| 31167 | rm -f $tmp/out |
| 31168 | fi |
| 31169 | |
| 31170 | done |
| 31171 | _ACEOF |
| 31172 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31173 | |
| 31174 | # |
| 31175 | # CONFIG_HEADER section. |
| 31176 | # |
| 31177 | |
| 31178 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 31179 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 31180 | # |
| 31181 | # ac_d sets the value in "#define NAME VALUE" lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31182 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 31183 | ac_dB='[ ].*$,\1#\2' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31184 | ac_dC=' ' |
| 31185 | ac_dD=',;t' |
| 31186 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31187 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31188 | ac_uB='$,\1#\2define\3' |
| 31189 | ac_uC=' ' |
| 31190 | ac_uD=',;t' |
| 31191 | |
| 31192 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 31193 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 31194 | case $ac_file in |
| 31195 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31196 | cat >$tmp/stdin |
| 31197 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 31198 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31199 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31200 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31201 | * ) ac_file_in=$ac_file.in ;; |
| 31202 | esac |
| 31203 | |
| 31204 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 31205 | echo "$as_me: creating $ac_file" >&6;} |
| 31206 | |
| 31207 | # First look for the input files in the build tree, otherwise in the |
| 31208 | # src tree. |
| 31209 | ac_file_inputs=`IFS=: |
| 31210 | for f in $ac_file_in; do |
| 31211 | case $f in |
| 31212 | -) echo $tmp/stdin ;; |
| 31213 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31214 | # Absolute (can't be DOS-style, as IFS=:) |
| 31215 | 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] | 31216 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31217 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31218 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 31219 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31220 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31221 | if test -f "$f"; then |
| 31222 | # Build tree |
| 31223 | echo "$f" |
| 31224 | elif test -f "$srcdir/$f"; then |
| 31225 | # Source tree |
| 31226 | echo "$srcdir/$f" |
| 31227 | else |
| 31228 | # /dev/null tree |
| 31229 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31230 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31231 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31232 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31233 | esac |
| 31234 | done` || { (exit 1); exit 1; } |
| 31235 | # Remove the trailing spaces. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31236 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31237 | |
| 31238 | _ACEOF |
| 31239 | |
| 31240 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 31241 | # `conftest.undefs', that substitutes the proper values into |
| 31242 | # config.h.in to produce config.h. The first handles `#define' |
| 31243 | # templates, and the second `#undef' templates. |
| 31244 | # And first: Protect against being on the right side of a sed subst in |
| 31245 | # config.status. Protect against being in an unquoted here document |
| 31246 | # in config.status. |
| 31247 | rm -f conftest.defines conftest.undefs |
| 31248 | # Using a here document instead of a string reduces the quoting nightmare. |
| 31249 | # Putting comments in sed scripts is not portable. |
| 31250 | # |
| 31251 | # `end' is used to avoid that the second main sed command (meant for |
| 31252 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 31253 | # See the Autoconf documentation for `clear'. |
| 31254 | cat >confdef2sed.sed <<\_ACEOF |
| 31255 | s/[\\&,]/\\&/g |
| 31256 | s,[\\$`],\\&,g |
| 31257 | t clear |
| 31258 | : clear |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31259 | 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] | 31260 | t end |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31261 | 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] | 31262 | : end |
| 31263 | _ACEOF |
| 31264 | # If some macros were called several times there might be several times |
| 31265 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 31266 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 31267 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 31268 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 31269 | rm -f confdef2sed.sed |
| 31270 | |
| 31271 | # This sed command replaces #undef with comments. This is necessary, for |
| 31272 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 31273 | # on some systems where configure will not decide to define it. |
| 31274 | cat >>conftest.undefs <<\_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31275 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31276 | _ACEOF |
| 31277 | |
| 31278 | # Break up conftest.defines because some shells have a limit on the size |
| 31279 | # of here documents, and old seds have small limits too (100 cmds). |
| 31280 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31281 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31282 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 31283 | echo ' :' >>$CONFIG_STATUS |
| 31284 | rm -f conftest.tail |
| 31285 | while grep . conftest.defines >/dev/null |
| 31286 | do |
| 31287 | # Write a limited-size here document to $tmp/defines.sed. |
| 31288 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 31289 | # Speed up: don't consider the non `#define' lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31290 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31291 | # Work around the forget-to-reset-the-flag bug. |
| 31292 | echo 't clr' >>$CONFIG_STATUS |
| 31293 | echo ': clr' >>$CONFIG_STATUS |
| 31294 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 31295 | echo 'CEOF |
| 31296 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 31297 | rm -f $tmp/in |
| 31298 | mv $tmp/out $tmp/in |
| 31299 | ' >>$CONFIG_STATUS |
| 31300 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 31301 | rm -f conftest.defines |
| 31302 | mv conftest.tail conftest.defines |
| 31303 | done |
| 31304 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31305 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31306 | echo >>$CONFIG_STATUS |
| 31307 | |
| 31308 | # Break up conftest.undefs because some shells have a limit on the size |
| 31309 | # of here documents, and old seds have small limits too (100 cmds). |
| 31310 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 31311 | rm -f conftest.tail |
| 31312 | while grep . conftest.undefs >/dev/null |
| 31313 | do |
| 31314 | # Write a limited-size here document to $tmp/undefs.sed. |
| 31315 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 31316 | # Speed up: don't consider the non `#undef' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31317 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31318 | # Work around the forget-to-reset-the-flag bug. |
| 31319 | echo 't clr' >>$CONFIG_STATUS |
| 31320 | echo ': clr' >>$CONFIG_STATUS |
| 31321 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 31322 | echo 'CEOF |
| 31323 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 31324 | rm -f $tmp/in |
| 31325 | mv $tmp/out $tmp/in |
| 31326 | ' >>$CONFIG_STATUS |
| 31327 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 31328 | rm -f conftest.undefs |
| 31329 | mv conftest.tail conftest.undefs |
| 31330 | done |
| 31331 | rm -f conftest.undefs |
| 31332 | |
| 31333 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31334 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 31335 | # use $as_me), people would be surprised to read: |
| 31336 | # /* config.h. Generated by config.status. */ |
| 31337 | if test x"$ac_file" = x-; then |
| 31338 | echo "/* Generated by configure. */" >$tmp/config.h |
| 31339 | else |
| 31340 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 31341 | fi |
| 31342 | cat $tmp/in >>$tmp/config.h |
| 31343 | rm -f $tmp/in |
| 31344 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31345 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31346 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 31347 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 31348 | else |
| 31349 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 31350 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31351 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 31352 | X"$ac_file" : 'X\(//\)$' \| \ |
| 31353 | X"$ac_file" : 'X\(/\)' \| \ |
| 31354 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31355 | echo X"$ac_file" | |
| 31356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31357 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31358 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31359 | /^X\(\/\).*/{ s//\1/; q; } |
| 31360 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31361 | { if $as_mkdir_p; then |
| 31362 | mkdir -p "$ac_dir" |
| 31363 | else |
| 31364 | as_dir="$ac_dir" |
| 31365 | as_dirs= |
| 31366 | while test ! -d "$as_dir"; do |
| 31367 | as_dirs="$as_dir $as_dirs" |
| 31368 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31369 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31370 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31371 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31372 | X"$as_dir" : 'X\(/\)' \| \ |
| 31373 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31374 | echo X"$as_dir" | |
| 31375 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31376 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31377 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31378 | /^X\(\/\).*/{ s//\1/; q; } |
| 31379 | s/.*/./; q'` |
| 31380 | done |
| 31381 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31382 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31383 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31384 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31385 | |
| 31386 | rm -f $ac_file |
| 31387 | mv $tmp/config.h $ac_file |
| 31388 | fi |
| 31389 | else |
| 31390 | cat $tmp/config.h |
| 31391 | rm -f $tmp/config.h |
| 31392 | fi |
| 31393 | done |
| 31394 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31395 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31396 | |
| 31397 | # |
| 31398 | # CONFIG_COMMANDS section. |
| 31399 | # |
| 31400 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 31401 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 31402 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 31403 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 31404 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31405 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 31406 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 31407 | X"$ac_dest" : 'X\(/\)' \| \ |
| 31408 | . : '\(.\)' 2>/dev/null || |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31409 | echo X"$ac_dest" | |
| 31410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31411 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31412 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31413 | /^X\(\/\).*/{ s//\1/; q; } |
| 31414 | s/.*/./; q'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31415 | { if $as_mkdir_p; then |
| 31416 | mkdir -p "$ac_dir" |
| 31417 | else |
| 31418 | as_dir="$ac_dir" |
| 31419 | as_dirs= |
| 31420 | while test ! -d "$as_dir"; do |
| 31421 | as_dirs="$as_dir $as_dirs" |
| 31422 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31423 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 31424 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31425 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31426 | X"$as_dir" : 'X\(/\)' \| \ |
| 31427 | . : '\(.\)' 2>/dev/null || |
| 31428 | echo X"$as_dir" | |
| 31429 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31430 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31431 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31432 | /^X\(\/\).*/{ s//\1/; q; } |
| 31433 | s/.*/./; q'` |
| 31434 | done |
| 31435 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31436 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31437 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31438 | { (exit 1); exit 1; }; }; } |
| 31439 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31440 | ac_builddir=. |
| 31441 | |
| 31442 | if test "$ac_dir" != .; then |
| 31443 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 31444 | # A "../" for each directory in $ac_dir_suffix. |
| 31445 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 31446 | else |
| 31447 | ac_dir_suffix= ac_top_builddir= |
| 31448 | fi |
| 31449 | |
| 31450 | case $srcdir in |
| 31451 | .) # No --srcdir option. We are building in place. |
| 31452 | ac_srcdir=. |
| 31453 | if test -z "$ac_top_builddir"; then |
| 31454 | ac_top_srcdir=. |
| 31455 | else |
| 31456 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 31457 | fi ;; |
| 31458 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 31459 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 31460 | ac_top_srcdir=$srcdir ;; |
| 31461 | *) # Relative path. |
| 31462 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 31463 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 31464 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31465 | |
| 31466 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 31467 | # the directories may not exist. |
| 31468 | case `pwd` in |
| 31469 | .) ac_abs_builddir="$ac_dir";; |
| 31470 | *) |
| 31471 | case "$ac_dir" in |
| 31472 | .) ac_abs_builddir=`pwd`;; |
| 31473 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 31474 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 31475 | esac;; |
| 31476 | esac |
| 31477 | case $ac_abs_builddir in |
| 31478 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31479 | *) |
| 31480 | case ${ac_top_builddir}. in |
| 31481 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 31482 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31483 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 31484 | esac;; |
| 31485 | esac |
| 31486 | case $ac_abs_builddir in |
| 31487 | .) ac_abs_srcdir=$ac_srcdir;; |
| 31488 | *) |
| 31489 | case $ac_srcdir in |
| 31490 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 31491 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 31492 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 31493 | esac;; |
| 31494 | esac |
| 31495 | case $ac_abs_builddir in |
| 31496 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31497 | *) |
| 31498 | case $ac_top_srcdir in |
| 31499 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 31500 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31501 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 31502 | esac;; |
| 31503 | esac |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31504 | |
| 31505 | |
| 31506 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 31507 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 31508 | case $ac_dest in |
| 31509 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 31510 | 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] | 31511 | 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] | 31512 | 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] | 31513 | 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] | 31514 | test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 31515 | test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31516 | 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] | 31517 | 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] | 31518 | 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] | 31519 | esac |
| 31520 | done |
| 31521 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31522 | |
| 31523 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31524 | |
| 31525 | { (exit 0); exit 0; } |
| 31526 | _ACEOF |
| 31527 | chmod +x $CONFIG_STATUS |
| 31528 | ac_clean_files=$ac_clean_files_save |
| 31529 | |
| 31530 | |
| 31531 | # configure is writing to config.log, and then calls config.status. |
| 31532 | # config.status does its own redirection, appending to config.log. |
| 31533 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 31534 | # by configure, so config.status won't be able to write to it; its |
| 31535 | # output is simply discarded. So we exec the FD to /dev/null, |
| 31536 | # effectively closing config.log, so it can be properly (re)opened and |
| 31537 | # appended to by config.status. When coming back to configure, we |
| 31538 | # need to make the FD available again. |
| 31539 | if test "$no_create" != yes; then |
| 31540 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31541 | ac_config_status_args= |
| 31542 | test "$silent" = yes && |
| 31543 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31544 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31545 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31546 | exec 5>>config.log |
| 31547 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 31548 | # would make configure fail if this is the last instruction. |
| 31549 | $ac_cs_success || { (exit 1); exit 1; } |
| 31550 | fi |
| 31551 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31552 | # |
| 31553 | # CONFIG_SUBDIRS section. |
| 31554 | # |
| 31555 | if test "$no_recursion" != yes; then |
| 31556 | |
| 31557 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 31558 | ac_sub_configure_args= |
| 31559 | ac_prev= |
| 31560 | for ac_arg in $ac_configure_args; do |
| 31561 | if test -n "$ac_prev"; then |
| 31562 | ac_prev= |
| 31563 | continue |
| 31564 | fi |
| 31565 | case $ac_arg in |
| 31566 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 31567 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 31568 | ac_prev=cache_file ;; |
| 31569 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 31570 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 31571 | | --c=*) |
| 31572 | ;; |
| 31573 | --config-cache | -C) |
| 31574 | ;; |
| 31575 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 31576 | ac_prev=srcdir ;; |
| 31577 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 31578 | ;; |
| 31579 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 31580 | ac_prev=prefix ;; |
| 31581 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 31582 | ;; |
| 31583 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 31584 | esac |
| 31585 | done |
| 31586 | |
| 31587 | # Always prepend --prefix to ensure using the same prefix |
| 31588 | # in subdir configurations. |
| 31589 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 31590 | |
| 31591 | ac_popdir=`pwd` |
| 31592 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 31593 | |
| 31594 | # Do not complain, so a configure script can configure whichever |
| 31595 | # parts of a large source tree are present. |
| 31596 | test -d $srcdir/$ac_dir || continue |
| 31597 | |
| 31598 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 31599 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 31600 | { if $as_mkdir_p; then |
| 31601 | mkdir -p "$ac_dir" |
| 31602 | else |
| 31603 | as_dir="$ac_dir" |
| 31604 | as_dirs= |
| 31605 | while test ! -d "$as_dir"; do |
| 31606 | as_dirs="$as_dir $as_dirs" |
| 31607 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31608 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31609 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31610 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31611 | X"$as_dir" : 'X\(/\)' \| \ |
| 31612 | . : '\(.\)' 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31613 | echo X"$as_dir" | |
| 31614 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31615 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31616 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31617 | /^X\(\/\).*/{ s//\1/; q; } |
| 31618 | s/.*/./; q'` |
| 31619 | done |
| 31620 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31621 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31622 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31623 | { (exit 1); exit 1; }; }; } |
| 31624 | |
| 31625 | ac_builddir=. |
| 31626 | |
| 31627 | if test "$ac_dir" != .; then |
| 31628 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 31629 | # A "../" for each directory in $ac_dir_suffix. |
| 31630 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 31631 | else |
| 31632 | ac_dir_suffix= ac_top_builddir= |
| 31633 | fi |
| 31634 | |
| 31635 | case $srcdir in |
| 31636 | .) # No --srcdir option. We are building in place. |
| 31637 | ac_srcdir=. |
| 31638 | if test -z "$ac_top_builddir"; then |
| 31639 | ac_top_srcdir=. |
| 31640 | else |
| 31641 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 31642 | fi ;; |
| 31643 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 31644 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 31645 | ac_top_srcdir=$srcdir ;; |
| 31646 | *) # Relative path. |
| 31647 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 31648 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 31649 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31650 | |
| 31651 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 31652 | # the directories may not exist. |
| 31653 | case `pwd` in |
| 31654 | .) ac_abs_builddir="$ac_dir";; |
| 31655 | *) |
| 31656 | case "$ac_dir" in |
| 31657 | .) ac_abs_builddir=`pwd`;; |
| 31658 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 31659 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 31660 | esac;; |
| 31661 | esac |
| 31662 | case $ac_abs_builddir in |
| 31663 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31664 | *) |
| 31665 | case ${ac_top_builddir}. in |
| 31666 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 31667 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31668 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 31669 | esac;; |
| 31670 | esac |
| 31671 | case $ac_abs_builddir in |
| 31672 | .) ac_abs_srcdir=$ac_srcdir;; |
| 31673 | *) |
| 31674 | case $ac_srcdir in |
| 31675 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 31676 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 31677 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 31678 | esac;; |
| 31679 | esac |
| 31680 | case $ac_abs_builddir in |
| 31681 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31682 | *) |
| 31683 | case $ac_top_srcdir in |
| 31684 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 31685 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31686 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 31687 | esac;; |
| 31688 | esac |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31689 | |
| 31690 | |
| 31691 | cd $ac_dir |
| 31692 | |
| 31693 | # Check for guested configure; otherwise get Cygnus style configure. |
| 31694 | if test -f $ac_srcdir/configure.gnu; then |
| 31695 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 31696 | elif test -f $ac_srcdir/configure; then |
| 31697 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 31698 | elif test -f $ac_srcdir/configure.in; then |
| 31699 | ac_sub_configure=$ac_configure |
| 31700 | else |
| 31701 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 31702 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 31703 | ac_sub_configure= |
| 31704 | fi |
| 31705 | |
| 31706 | # The recursion is here. |
| 31707 | if test -n "$ac_sub_configure"; then |
| 31708 | # Make the cache file name correct relative to the subdirectory. |
| 31709 | case $cache_file in |
| 31710 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 31711 | *) # Relative path. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31712 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31713 | esac |
| 31714 | |
| 31715 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 31716 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 31717 | # The eval makes quoting arguments work. |
| 31718 | eval $ac_sub_configure $ac_sub_configure_args \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31719 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 31720 | { { 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] | 31721 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 31722 | { (exit 1); exit 1; }; } |
| 31723 | fi |
| 31724 | |
| 31725 | cd $ac_popdir |
| 31726 | done |
| 31727 | fi |
| 31728 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31729 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31730 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 31731 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 |
| 31732 | echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;} |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31733 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 |
| 31734 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} |
| 31735 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 |
| 31736 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} |
| 31737 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 |
| 31738 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} |
| 31739 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 |
| 31740 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31741 | fi |