John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.6cvs. |
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-' |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.6cvs' |
| 429 | PACKAGE_STRING='llvm 1.6cvs' |
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" |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 441 | # Factoring default headers for most tests. |
| 442 | ac_includes_default="\ |
| 443 | #include <stdio.h> |
| 444 | #if HAVE_SYS_TYPES_H |
| 445 | # include <sys/types.h> |
| 446 | #endif |
| 447 | #if HAVE_SYS_STAT_H |
| 448 | # include <sys/stat.h> |
| 449 | #endif |
| 450 | #if STDC_HEADERS |
| 451 | # include <stdlib.h> |
| 452 | # include <stddef.h> |
| 453 | #else |
| 454 | # if HAVE_STDLIB_H |
| 455 | # include <stdlib.h> |
| 456 | # endif |
| 457 | #endif |
| 458 | #if HAVE_STRING_H |
| 459 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 460 | # include <memory.h> |
| 461 | # endif |
| 462 | # include <string.h> |
| 463 | #endif |
| 464 | #if HAVE_STRINGS_H |
| 465 | # include <strings.h> |
| 466 | #endif |
| 467 | #if HAVE_INTTYPES_H |
| 468 | # include <inttypes.h> |
| 469 | #else |
| 470 | # if HAVE_STDINT_H |
| 471 | # include <stdint.h> |
| 472 | # endif |
| 473 | #endif |
| 474 | #if HAVE_UNISTD_H |
| 475 | # include <unistd.h> |
| 476 | #endif" |
| 477 | |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 478 | 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 TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV 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] | 479 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 480 | |
| 481 | # Initialize some variables set by options. |
| 482 | ac_init_help= |
| 483 | ac_init_version=false |
| 484 | # The variables have the same names as the options, with |
| 485 | # dashes changed to underlines. |
| 486 | cache_file=/dev/null |
| 487 | exec_prefix=NONE |
| 488 | no_create= |
| 489 | no_recursion= |
| 490 | prefix=NONE |
| 491 | program_prefix=NONE |
| 492 | program_suffix=NONE |
| 493 | program_transform_name=s,x,x, |
| 494 | silent= |
| 495 | site= |
| 496 | srcdir= |
| 497 | verbose= |
| 498 | x_includes=NONE |
| 499 | x_libraries=NONE |
| 500 | |
| 501 | # Installation directory options. |
| 502 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 503 | # and all the variables that are supposed to be based on exec_prefix |
| 504 | # by default will actually change. |
| 505 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 506 | bindir='${exec_prefix}/bin' |
| 507 | sbindir='${exec_prefix}/sbin' |
| 508 | libexecdir='${exec_prefix}/libexec' |
| 509 | datadir='${prefix}/share' |
| 510 | sysconfdir='${prefix}/etc' |
| 511 | sharedstatedir='${prefix}/com' |
| 512 | localstatedir='${prefix}/var' |
| 513 | libdir='${exec_prefix}/lib' |
| 514 | includedir='${prefix}/include' |
| 515 | oldincludedir='/usr/include' |
| 516 | infodir='${prefix}/info' |
| 517 | mandir='${prefix}/man' |
| 518 | |
| 519 | ac_prev= |
| 520 | for ac_option |
| 521 | do |
| 522 | # If the previous option needs an argument, assign it. |
| 523 | if test -n "$ac_prev"; then |
| 524 | eval "$ac_prev=\$ac_option" |
| 525 | ac_prev= |
| 526 | continue |
| 527 | fi |
| 528 | |
| 529 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 530 | |
| 531 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 532 | |
| 533 | case $ac_option in |
| 534 | |
| 535 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 536 | ac_prev=bindir ;; |
| 537 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 538 | bindir=$ac_optarg ;; |
| 539 | |
| 540 | -build | --build | --buil | --bui | --bu) |
| 541 | ac_prev=build_alias ;; |
| 542 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 543 | build_alias=$ac_optarg ;; |
| 544 | |
| 545 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 546 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 547 | ac_prev=cache_file ;; |
| 548 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 549 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 550 | cache_file=$ac_optarg ;; |
| 551 | |
| 552 | --config-cache | -C) |
| 553 | cache_file=config.cache ;; |
| 554 | |
| 555 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 556 | ac_prev=datadir ;; |
| 557 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 558 | | --da=*) |
| 559 | datadir=$ac_optarg ;; |
| 560 | |
| 561 | -disable-* | --disable-*) |
| 562 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 563 | # Reject names that are not valid shell variable names. |
| 564 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 565 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 566 | { (exit 1); exit 1; }; } |
| 567 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 568 | eval "enable_$ac_feature=no" ;; |
| 569 | |
| 570 | -enable-* | --enable-*) |
| 571 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 572 | # Reject names that are not valid shell variable names. |
| 573 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 574 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 575 | { (exit 1); exit 1; }; } |
| 576 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 577 | case $ac_option in |
| 578 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 579 | *) ac_optarg=yes ;; |
| 580 | esac |
| 581 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 582 | |
| 583 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 584 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 585 | | --exec | --exe | --ex) |
| 586 | ac_prev=exec_prefix ;; |
| 587 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 588 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 589 | | --exec=* | --exe=* | --ex=*) |
| 590 | exec_prefix=$ac_optarg ;; |
| 591 | |
| 592 | -gas | --gas | --ga | --g) |
| 593 | # Obsolete; use --with-gas. |
| 594 | with_gas=yes ;; |
| 595 | |
| 596 | -help | --help | --hel | --he | -h) |
| 597 | ac_init_help=long ;; |
| 598 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 599 | ac_init_help=recursive ;; |
| 600 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 601 | ac_init_help=short ;; |
| 602 | |
| 603 | -host | --host | --hos | --ho) |
| 604 | ac_prev=host_alias ;; |
| 605 | -host=* | --host=* | --hos=* | --ho=*) |
| 606 | host_alias=$ac_optarg ;; |
| 607 | |
| 608 | -includedir | --includedir | --includedi | --included | --include \ |
| 609 | | --includ | --inclu | --incl | --inc) |
| 610 | ac_prev=includedir ;; |
| 611 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 612 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 613 | includedir=$ac_optarg ;; |
| 614 | |
| 615 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 616 | ac_prev=infodir ;; |
| 617 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 618 | infodir=$ac_optarg ;; |
| 619 | |
| 620 | -libdir | --libdir | --libdi | --libd) |
| 621 | ac_prev=libdir ;; |
| 622 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 623 | libdir=$ac_optarg ;; |
| 624 | |
| 625 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 626 | | --libexe | --libex | --libe) |
| 627 | ac_prev=libexecdir ;; |
| 628 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 629 | | --libexe=* | --libex=* | --libe=*) |
| 630 | libexecdir=$ac_optarg ;; |
| 631 | |
| 632 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 633 | | --localstate | --localstat | --localsta | --localst \ |
| 634 | | --locals | --local | --loca | --loc | --lo) |
| 635 | ac_prev=localstatedir ;; |
| 636 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 637 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 638 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 639 | localstatedir=$ac_optarg ;; |
| 640 | |
| 641 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 642 | ac_prev=mandir ;; |
| 643 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 644 | mandir=$ac_optarg ;; |
| 645 | |
| 646 | -nfp | --nfp | --nf) |
| 647 | # Obsolete; use --without-fp. |
| 648 | with_fp=no ;; |
| 649 | |
| 650 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 651 | | --no-cr | --no-c | -n) |
| 652 | no_create=yes ;; |
| 653 | |
| 654 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 655 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 656 | no_recursion=yes ;; |
| 657 | |
| 658 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 659 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 660 | | --oldin | --oldi | --old | --ol | --o) |
| 661 | ac_prev=oldincludedir ;; |
| 662 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 663 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 664 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 665 | oldincludedir=$ac_optarg ;; |
| 666 | |
| 667 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 668 | ac_prev=prefix ;; |
| 669 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 670 | prefix=$ac_optarg ;; |
| 671 | |
| 672 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 673 | | --program-pre | --program-pr | --program-p) |
| 674 | ac_prev=program_prefix ;; |
| 675 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 676 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 677 | program_prefix=$ac_optarg ;; |
| 678 | |
| 679 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 680 | | --program-suf | --program-su | --program-s) |
| 681 | ac_prev=program_suffix ;; |
| 682 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 683 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 684 | program_suffix=$ac_optarg ;; |
| 685 | |
| 686 | -program-transform-name | --program-transform-name \ |
| 687 | | --program-transform-nam | --program-transform-na \ |
| 688 | | --program-transform-n | --program-transform- \ |
| 689 | | --program-transform | --program-transfor \ |
| 690 | | --program-transfo | --program-transf \ |
| 691 | | --program-trans | --program-tran \ |
| 692 | | --progr-tra | --program-tr | --program-t) |
| 693 | ac_prev=program_transform_name ;; |
| 694 | -program-transform-name=* | --program-transform-name=* \ |
| 695 | | --program-transform-nam=* | --program-transform-na=* \ |
| 696 | | --program-transform-n=* | --program-transform-=* \ |
| 697 | | --program-transform=* | --program-transfor=* \ |
| 698 | | --program-transfo=* | --program-transf=* \ |
| 699 | | --program-trans=* | --program-tran=* \ |
| 700 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 701 | program_transform_name=$ac_optarg ;; |
| 702 | |
| 703 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 704 | | -silent | --silent | --silen | --sile | --sil) |
| 705 | silent=yes ;; |
| 706 | |
| 707 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 708 | ac_prev=sbindir ;; |
| 709 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 710 | | --sbi=* | --sb=*) |
| 711 | sbindir=$ac_optarg ;; |
| 712 | |
| 713 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 714 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 715 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 716 | | --sha | --sh) |
| 717 | ac_prev=sharedstatedir ;; |
| 718 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 719 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 720 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 721 | | --sha=* | --sh=*) |
| 722 | sharedstatedir=$ac_optarg ;; |
| 723 | |
| 724 | -site | --site | --sit) |
| 725 | ac_prev=site ;; |
| 726 | -site=* | --site=* | --sit=*) |
| 727 | site=$ac_optarg ;; |
| 728 | |
| 729 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 730 | ac_prev=srcdir ;; |
| 731 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 732 | srcdir=$ac_optarg ;; |
| 733 | |
| 734 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 735 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 736 | ac_prev=sysconfdir ;; |
| 737 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 738 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 739 | sysconfdir=$ac_optarg ;; |
| 740 | |
| 741 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 742 | ac_prev=target_alias ;; |
| 743 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 744 | target_alias=$ac_optarg ;; |
| 745 | |
| 746 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 747 | verbose=yes ;; |
| 748 | |
| 749 | -version | --version | --versio | --versi | --vers | -V) |
| 750 | ac_init_version=: ;; |
| 751 | |
| 752 | -with-* | --with-*) |
| 753 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 754 | # Reject names that are not valid shell variable names. |
| 755 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 756 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 757 | { (exit 1); exit 1; }; } |
| 758 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 759 | case $ac_option in |
| 760 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 761 | *) ac_optarg=yes ;; |
| 762 | esac |
| 763 | eval "with_$ac_package='$ac_optarg'" ;; |
| 764 | |
| 765 | -without-* | --without-*) |
| 766 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 767 | # Reject names that are not valid shell variable names. |
| 768 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 769 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 770 | { (exit 1); exit 1; }; } |
| 771 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 772 | eval "with_$ac_package=no" ;; |
| 773 | |
| 774 | --x) |
| 775 | # Obsolete; use --with-x. |
| 776 | with_x=yes ;; |
| 777 | |
| 778 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 779 | | --x-incl | --x-inc | --x-in | --x-i) |
| 780 | ac_prev=x_includes ;; |
| 781 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 782 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 783 | x_includes=$ac_optarg ;; |
| 784 | |
| 785 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 786 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 787 | ac_prev=x_libraries ;; |
| 788 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 789 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 790 | x_libraries=$ac_optarg ;; |
| 791 | |
| 792 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 793 | Try \`$0 --help' for more information." >&2 |
| 794 | { (exit 1); exit 1; }; } |
| 795 | ;; |
| 796 | |
| 797 | *=*) |
| 798 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 799 | # Reject names that are not valid shell variable names. |
| 800 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 801 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 802 | { (exit 1); exit 1; }; } |
| 803 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 804 | eval "$ac_envvar='$ac_optarg'" |
| 805 | export $ac_envvar ;; |
| 806 | |
| 807 | *) |
| 808 | # FIXME: should be removed in autoconf 3.0. |
| 809 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 810 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 811 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 812 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 813 | ;; |
| 814 | |
| 815 | esac |
| 816 | done |
| 817 | |
| 818 | if test -n "$ac_prev"; then |
| 819 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 820 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 821 | { (exit 1); exit 1; }; } |
| 822 | fi |
| 823 | |
| 824 | # Be sure to have absolute paths. |
| 825 | for ac_var in exec_prefix prefix |
| 826 | do |
| 827 | eval ac_val=$`echo $ac_var` |
| 828 | case $ac_val in |
| 829 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 830 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 831 | { (exit 1); exit 1; }; };; |
| 832 | esac |
| 833 | done |
| 834 | |
| 835 | # Be sure to have absolute paths. |
| 836 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 837 | localstatedir libdir includedir oldincludedir infodir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 838 | do |
| 839 | eval ac_val=$`echo $ac_var` |
| 840 | case $ac_val in |
| 841 | [\\/$]* | ?:[\\/]* ) ;; |
| 842 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 843 | { (exit 1); exit 1; }; };; |
| 844 | esac |
| 845 | done |
| 846 | |
| 847 | # There might be people who depend on the old broken behavior: `$host' |
| 848 | # used to hold the argument of --host etc. |
| 849 | # FIXME: To remove some day. |
| 850 | build=$build_alias |
| 851 | host=$host_alias |
| 852 | target=$target_alias |
| 853 | |
| 854 | # FIXME: To remove some day. |
| 855 | if test "x$host_alias" != x; then |
| 856 | if test "x$build_alias" = x; then |
| 857 | cross_compiling=maybe |
| 858 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 859 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 860 | elif test "x$build_alias" != "x$host_alias"; then |
| 861 | cross_compiling=yes |
| 862 | fi |
| 863 | fi |
| 864 | |
| 865 | ac_tool_prefix= |
| 866 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 867 | |
| 868 | test "$silent" = yes && exec 6>/dev/null |
| 869 | |
| 870 | |
| 871 | # Find the source files, if location was not specified. |
| 872 | if test -z "$srcdir"; then |
| 873 | ac_srcdir_defaulted=yes |
| 874 | # Try the directory containing this script, then its parent. |
| 875 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 876 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 877 | X"$0" : 'X\(//\)[^/]' \| \ |
| 878 | X"$0" : 'X\(//\)$' \| \ |
| 879 | X"$0" : 'X\(/\)' \| \ |
| 880 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 881 | echo X"$0" | |
| 882 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 883 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 884 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 885 | /^X\(\/\).*/{ s//\1/; q; } |
| 886 | s/.*/./; q'` |
| 887 | srcdir=$ac_confdir |
| 888 | if test ! -r $srcdir/$ac_unique_file; then |
| 889 | srcdir=.. |
| 890 | fi |
| 891 | else |
| 892 | ac_srcdir_defaulted=no |
| 893 | fi |
| 894 | if test ! -r $srcdir/$ac_unique_file; then |
| 895 | if test "$ac_srcdir_defaulted" = yes; then |
| 896 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 897 | { (exit 1); exit 1; }; } |
| 898 | else |
| 899 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 900 | { (exit 1); exit 1; }; } |
| 901 | fi |
| 902 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 903 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 904 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 905 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 906 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 907 | ac_env_build_alias_set=${build_alias+set} |
| 908 | ac_env_build_alias_value=$build_alias |
| 909 | ac_cv_env_build_alias_set=${build_alias+set} |
| 910 | ac_cv_env_build_alias_value=$build_alias |
| 911 | ac_env_host_alias_set=${host_alias+set} |
| 912 | ac_env_host_alias_value=$host_alias |
| 913 | ac_cv_env_host_alias_set=${host_alias+set} |
| 914 | ac_cv_env_host_alias_value=$host_alias |
| 915 | ac_env_target_alias_set=${target_alias+set} |
| 916 | ac_env_target_alias_value=$target_alias |
| 917 | ac_cv_env_target_alias_set=${target_alias+set} |
| 918 | ac_cv_env_target_alias_value=$target_alias |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 919 | ac_env_CC_set=${CC+set} |
| 920 | ac_env_CC_value=$CC |
| 921 | ac_cv_env_CC_set=${CC+set} |
| 922 | ac_cv_env_CC_value=$CC |
| 923 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 924 | ac_env_CFLAGS_value=$CFLAGS |
| 925 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 926 | ac_cv_env_CFLAGS_value=$CFLAGS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 927 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 928 | ac_env_LDFLAGS_value=$LDFLAGS |
| 929 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 930 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 931 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 932 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 933 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 934 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 935 | ac_env_CPP_set=${CPP+set} |
| 936 | ac_env_CPP_value=$CPP |
| 937 | ac_cv_env_CPP_set=${CPP+set} |
| 938 | ac_cv_env_CPP_value=$CPP |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 939 | ac_env_CXX_set=${CXX+set} |
| 940 | ac_env_CXX_value=$CXX |
| 941 | ac_cv_env_CXX_set=${CXX+set} |
| 942 | ac_cv_env_CXX_value=$CXX |
| 943 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 944 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 945 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 946 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 947 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 948 | ac_env_CXXCPP_value=$CXXCPP |
| 949 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 950 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 951 | ac_env_F77_set=${F77+set} |
| 952 | ac_env_F77_value=$F77 |
| 953 | ac_cv_env_F77_set=${F77+set} |
| 954 | ac_cv_env_F77_value=$F77 |
| 955 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 956 | ac_env_FFLAGS_value=$FFLAGS |
| 957 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 958 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 959 | |
| 960 | # |
| 961 | # Report the --help message. |
| 962 | # |
| 963 | if test "$ac_init_help" = "long"; then |
| 964 | # Omit some internal or obsolete options to make the list less imposing. |
| 965 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 966 | cat <<_ACEOF |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 967 | \`configure' configures llvm 1.6cvs to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 968 | |
| 969 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 970 | |
| 971 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 972 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 973 | |
| 974 | Defaults for the options are specified in brackets. |
| 975 | |
| 976 | Configuration: |
| 977 | -h, --help display this help and exit |
| 978 | --help=short display options specific to this package |
| 979 | --help=recursive display the short help of all the included packages |
| 980 | -V, --version display version information and exit |
| 981 | -q, --quiet, --silent do not print \`checking...' messages |
| 982 | --cache-file=FILE cache test results in FILE [disabled] |
| 983 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 984 | -n, --no-create do not create output files |
| 985 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 986 | |
| 987 | _ACEOF |
| 988 | |
| 989 | cat <<_ACEOF |
| 990 | Installation directories: |
| 991 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 992 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 993 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 994 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 995 | |
| 996 | By default, \`make install' will install all the files in |
| 997 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 998 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 999 | for instance \`--prefix=\$HOME'. |
| 1000 | |
| 1001 | For better control, use the options below. |
| 1002 | |
| 1003 | Fine tuning of the installation directories: |
| 1004 | --bindir=DIR user executables [EPREFIX/bin] |
| 1005 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1006 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1007 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1008 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1009 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1010 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1011 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1012 | --includedir=DIR C header files [PREFIX/include] |
| 1013 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1014 | --infodir=DIR info documentation [PREFIX/info] |
| 1015 | --mandir=DIR man documentation [PREFIX/man] |
| 1016 | _ACEOF |
| 1017 | |
| 1018 | cat <<\_ACEOF |
| 1019 | |
| 1020 | System types: |
| 1021 | --build=BUILD configure for building on BUILD [guessed] |
| 1022 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1023 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1024 | _ACEOF |
| 1025 | fi |
| 1026 | |
| 1027 | if test -n "$ac_init_help"; then |
| 1028 | case $ac_init_help in |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 1029 | short | recursive ) echo "Configuration of llvm 1.6cvs:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1030 | esac |
| 1031 | cat <<\_ACEOF |
| 1032 | |
| 1033 | Optional Features: |
| 1034 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1035 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1036 | --enable-optimized |
| 1037 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1038 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1039 | --enable-target Build specific host targets: |
| 1040 | all,host-only,{target-name} (default=all) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1041 | --enable-ltdl-install install libltdl |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1042 | --enable-shared[=PKGS] |
| 1043 | build shared libraries [default=yes] |
| 1044 | --enable-static[=PKGS] |
| 1045 | build static libraries [default=yes] |
| 1046 | --enable-fast-install[=PKGS] |
| 1047 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1048 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1049 | |
| 1050 | Optional Packages: |
| 1051 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1052 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1053 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1054 | searches PATH) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1055 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1056 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1057 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1058 | both] |
| 1059 | --with-tags[=TAGS] |
| 1060 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1061 | |
| 1062 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1063 | CC C compiler command |
| 1064 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1066 | nonstandard directory <lib dir> |
| 1067 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1068 | headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1069 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1070 | CXX C++ compiler command |
| 1071 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1072 | CXXCPP C++ preprocessor |
| 1073 | F77 Fortran 77 compiler command |
| 1074 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1075 | |
| 1076 | Use these variables to override the choices made by `configure' or to help |
| 1077 | it to find libraries and programs with nonstandard names/locations. |
| 1078 | |
| 1079 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1080 | _ACEOF |
| 1081 | fi |
| 1082 | |
| 1083 | if test "$ac_init_help" = "recursive"; then |
| 1084 | # If there are subdirs, report their specific --help. |
| 1085 | ac_popdir=`pwd` |
| 1086 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1087 | test -d $ac_dir || continue |
| 1088 | ac_builddir=. |
| 1089 | |
| 1090 | if test "$ac_dir" != .; then |
| 1091 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1092 | # A "../" for each directory in $ac_dir_suffix. |
| 1093 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1094 | else |
| 1095 | ac_dir_suffix= ac_top_builddir= |
| 1096 | fi |
| 1097 | |
| 1098 | case $srcdir in |
| 1099 | .) # No --srcdir option. We are building in place. |
| 1100 | ac_srcdir=. |
| 1101 | if test -z "$ac_top_builddir"; then |
| 1102 | ac_top_srcdir=. |
| 1103 | else |
| 1104 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1105 | fi ;; |
| 1106 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1107 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1108 | ac_top_srcdir=$srcdir ;; |
| 1109 | *) # Relative path. |
| 1110 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1111 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1112 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1113 | |
| 1114 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1115 | # the directories may not exist. |
| 1116 | case `pwd` in |
| 1117 | .) ac_abs_builddir="$ac_dir";; |
| 1118 | *) |
| 1119 | case "$ac_dir" in |
| 1120 | .) ac_abs_builddir=`pwd`;; |
| 1121 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1122 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1123 | esac;; |
| 1124 | esac |
| 1125 | case $ac_abs_builddir in |
| 1126 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1127 | *) |
| 1128 | case ${ac_top_builddir}. in |
| 1129 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1130 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1131 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1132 | esac;; |
| 1133 | esac |
| 1134 | case $ac_abs_builddir in |
| 1135 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1136 | *) |
| 1137 | case $ac_srcdir in |
| 1138 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1139 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1140 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1141 | esac;; |
| 1142 | esac |
| 1143 | case $ac_abs_builddir in |
| 1144 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1145 | *) |
| 1146 | case $ac_top_srcdir in |
| 1147 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1148 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1149 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1150 | esac;; |
| 1151 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1152 | |
| 1153 | cd $ac_dir |
| 1154 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1155 | if test -f $ac_srcdir/configure.gnu; then |
| 1156 | echo |
| 1157 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1158 | elif test -f $ac_srcdir/configure; then |
| 1159 | echo |
| 1160 | $SHELL $ac_srcdir/configure --help=recursive |
| 1161 | elif test -f $ac_srcdir/configure.ac || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1162 | test -f $ac_srcdir/configure.in; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1163 | echo |
| 1164 | $ac_configure --help |
| 1165 | else |
| 1166 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1167 | fi |
| 1168 | cd $ac_popdir |
| 1169 | done |
| 1170 | fi |
| 1171 | |
| 1172 | test -n "$ac_init_help" && exit 0 |
| 1173 | if $ac_init_version; then |
| 1174 | cat <<\_ACEOF |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 1175 | llvm configure 1.6cvs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1176 | generated by GNU Autoconf 2.59 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1177 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1178 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1179 | This configure script is free software; the Free Software Foundation |
| 1180 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1181 | |
| 1182 | $LLVM_COPYRIGHT |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | _ACEOF |
| 1184 | exit 0 |
| 1185 | fi |
| 1186 | exec 5>config.log |
| 1187 | cat >&5 <<_ACEOF |
| 1188 | This file contains any messages produced by compilers while |
| 1189 | running configure, to aid debugging if configure makes a mistake. |
| 1190 | |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 1191 | It was created by llvm $as_me 1.6cvs, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1192 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1193 | |
| 1194 | $ $0 $@ |
| 1195 | |
| 1196 | _ACEOF |
| 1197 | { |
| 1198 | cat <<_ASUNAME |
| 1199 | ## --------- ## |
| 1200 | ## Platform. ## |
| 1201 | ## --------- ## |
| 1202 | |
| 1203 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1204 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1205 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1206 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1207 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1208 | |
| 1209 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1210 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1211 | |
| 1212 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1213 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1214 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1215 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1216 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1217 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1218 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1219 | |
| 1220 | _ASUNAME |
| 1221 | |
| 1222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1223 | for as_dir in $PATH |
| 1224 | do |
| 1225 | IFS=$as_save_IFS |
| 1226 | test -z "$as_dir" && as_dir=. |
| 1227 | echo "PATH: $as_dir" |
| 1228 | done |
| 1229 | |
| 1230 | } >&5 |
| 1231 | |
| 1232 | cat >&5 <<_ACEOF |
| 1233 | |
| 1234 | |
| 1235 | ## ----------- ## |
| 1236 | ## Core tests. ## |
| 1237 | ## ----------- ## |
| 1238 | |
| 1239 | _ACEOF |
| 1240 | |
| 1241 | |
| 1242 | # Keep a trace of the command line. |
| 1243 | # 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] | 1244 | # 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] | 1245 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1246 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1247 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1248 | ac_configure_args0= |
| 1249 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1250 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1251 | ac_must_keep_next=false |
| 1252 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1253 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1254 | for ac_arg |
| 1255 | do |
| 1256 | case $ac_arg in |
| 1257 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1258 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1259 | | -silent | --silent | --silen | --sile | --sil) |
| 1260 | continue ;; |
| 1261 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1262 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1263 | esac |
| 1264 | case $ac_pass in |
| 1265 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1266 | 2) |
| 1267 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1268 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1269 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1270 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1271 | case $ac_arg in |
| 1272 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1273 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1274 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1275 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1276 | case "$ac_configure_args0 " in |
| 1277 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1278 | esac |
| 1279 | ;; |
| 1280 | -* ) ac_must_keep_next=true ;; |
| 1281 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1282 | fi |
| 1283 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1284 | # Get rid of the leading space. |
| 1285 | ac_sep=" " |
| 1286 | ;; |
| 1287 | esac |
| 1288 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1289 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1290 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1291 | $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] | 1292 | |
| 1293 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1294 | # config.log. We remove comments because anyway the quotes in there |
| 1295 | # would cause problems or look ugly. |
| 1296 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1297 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1298 | trap 'exit_status=$? |
| 1299 | # Save into config.log some information that might help in debugging. |
| 1300 | { |
| 1301 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1303 | cat <<\_ASBOX |
| 1304 | ## ---------------- ## |
| 1305 | ## Cache variables. ## |
| 1306 | ## ---------------- ## |
| 1307 | _ASBOX |
| 1308 | echo |
| 1309 | # The following way of writing the cache mishandles newlines in values, |
| 1310 | { |
| 1311 | (set) 2>&1 | |
| 1312 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1313 | *ac_space=\ *) |
| 1314 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1315 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1316 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1317 | ;; |
| 1318 | *) |
| 1319 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1320 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1321 | ;; |
| 1322 | esac; |
| 1323 | } |
| 1324 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1325 | |
| 1326 | cat <<\_ASBOX |
| 1327 | ## ----------------- ## |
| 1328 | ## Output variables. ## |
| 1329 | ## ----------------- ## |
| 1330 | _ASBOX |
| 1331 | echo |
| 1332 | for ac_var in $ac_subst_vars |
| 1333 | do |
| 1334 | eval ac_val=$`echo $ac_var` |
| 1335 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1336 | done | sort |
| 1337 | echo |
| 1338 | |
| 1339 | if test -n "$ac_subst_files"; then |
| 1340 | cat <<\_ASBOX |
| 1341 | ## ------------- ## |
| 1342 | ## Output files. ## |
| 1343 | ## ------------- ## |
| 1344 | _ASBOX |
| 1345 | echo |
| 1346 | for ac_var in $ac_subst_files |
| 1347 | do |
| 1348 | eval ac_val=$`echo $ac_var` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1349 | echo "$ac_var='"'"'$ac_val'"'"'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1350 | done | sort |
| 1351 | echo |
| 1352 | fi |
| 1353 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1354 | if test -s confdefs.h; then |
| 1355 | cat <<\_ASBOX |
| 1356 | ## ----------- ## |
| 1357 | ## confdefs.h. ## |
| 1358 | ## ----------- ## |
| 1359 | _ASBOX |
| 1360 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1361 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1362 | echo |
| 1363 | fi |
| 1364 | test "$ac_signal" != 0 && |
| 1365 | echo "$as_me: caught signal $ac_signal" |
| 1366 | echo "$as_me: exit $exit_status" |
| 1367 | } >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1368 | rm -f core *.core && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1369 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1370 | exit $exit_status |
| 1371 | ' 0 |
| 1372 | for ac_signal in 1 2 13 15; do |
| 1373 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1374 | done |
| 1375 | ac_signal=0 |
| 1376 | |
| 1377 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1378 | rm -rf conftest* confdefs.h |
| 1379 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1380 | echo >confdefs.h |
| 1381 | |
| 1382 | # Predefined preprocessor variables. |
| 1383 | |
| 1384 | cat >>confdefs.h <<_ACEOF |
| 1385 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1386 | _ACEOF |
| 1387 | |
| 1388 | |
| 1389 | cat >>confdefs.h <<_ACEOF |
| 1390 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | |
| 1394 | cat >>confdefs.h <<_ACEOF |
| 1395 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1396 | _ACEOF |
| 1397 | |
| 1398 | |
| 1399 | cat >>confdefs.h <<_ACEOF |
| 1400 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1401 | _ACEOF |
| 1402 | |
| 1403 | |
| 1404 | cat >>confdefs.h <<_ACEOF |
| 1405 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1406 | _ACEOF |
| 1407 | |
| 1408 | |
| 1409 | # Let the site file select an alternate cache file if it wants to. |
| 1410 | # Prefer explicitly selected file to automatically selected ones. |
| 1411 | if test -z "$CONFIG_SITE"; then |
| 1412 | if test "x$prefix" != xNONE; then |
| 1413 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1414 | else |
| 1415 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1416 | fi |
| 1417 | fi |
| 1418 | for ac_site_file in $CONFIG_SITE; do |
| 1419 | if test -r "$ac_site_file"; then |
| 1420 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1421 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1422 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1423 | . "$ac_site_file" |
| 1424 | fi |
| 1425 | done |
| 1426 | |
| 1427 | if test -r "$cache_file"; then |
| 1428 | # Some versions of bash will fail to source /dev/null (special |
| 1429 | # files actually), so we avoid doing that. |
| 1430 | if test -f "$cache_file"; then |
| 1431 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1432 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1433 | case $cache_file in |
| 1434 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1435 | *) . ./$cache_file;; |
| 1436 | esac |
| 1437 | fi |
| 1438 | else |
| 1439 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1440 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1441 | >$cache_file |
| 1442 | fi |
| 1443 | |
| 1444 | # Check that the precious variables saved in the cache have kept the same |
| 1445 | # value. |
| 1446 | ac_cache_corrupted=false |
| 1447 | for ac_var in `(set) 2>&1 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1448 | 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] | 1449 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1450 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1451 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1452 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1453 | case $ac_old_set,$ac_new_set in |
| 1454 | set,) |
| 1455 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1456 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1457 | ac_cache_corrupted=: ;; |
| 1458 | ,set) |
| 1459 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1460 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1461 | ac_cache_corrupted=: ;; |
| 1462 | ,);; |
| 1463 | *) |
| 1464 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1465 | { 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] | 1466 | 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] | 1467 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1468 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1469 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1471 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | fi;; |
| 1473 | esac |
| 1474 | # Pass precious variables to config.status. |
| 1475 | if test "$ac_new_set" = set; then |
| 1476 | case $ac_new_val in |
| 1477 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1478 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1479 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1480 | esac |
| 1481 | case " $ac_configure_args " in |
| 1482 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1483 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1484 | esac |
| 1485 | fi |
| 1486 | done |
| 1487 | if $ac_cache_corrupted; then |
| 1488 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1489 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1490 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1491 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1492 | { (exit 1); exit 1; }; } |
| 1493 | fi |
| 1494 | |
| 1495 | ac_ext=c |
| 1496 | ac_cpp='$CPP $CPPFLAGS' |
| 1497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 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 | |
| 1526 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1527 | |
Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 1528 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1529 | |
| 1530 | |
| 1531 | |
| 1532 | |
| 1533 | |
| 1534 | |
| 1535 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1537 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | if test -f $ac_dir/install-sh; then |
| 1539 | ac_aux_dir=$ac_dir |
| 1540 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1541 | break |
| 1542 | elif test -f $ac_dir/install.sh; then |
| 1543 | ac_aux_dir=$ac_dir |
| 1544 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1545 | break |
| 1546 | elif test -f $ac_dir/shtool; then |
| 1547 | ac_aux_dir=$ac_dir |
| 1548 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1549 | break |
| 1550 | fi |
| 1551 | done |
| 1552 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1553 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1554 | 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] | 1555 | { (exit 1); exit 1; }; } |
| 1556 | fi |
| 1557 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1558 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1559 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1560 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1561 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1562 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1563 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 1564 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1565 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1566 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1567 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1568 | fi |
| 1569 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1570 | for i in `ls ${srcdir}/projects` |
| 1571 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1572 | if test -d ${srcdir}/projects/${i} ; then |
| 1573 | case ${i} in |
| 1574 | "CVS") ;; |
| 1575 | "sample") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1576 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1577 | subdirs="$subdirs projects/sample" |
| 1578 | ;; |
| 1579 | "Stacker") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1580 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1581 | subdirs="$subdirs projects/Stacker" |
| 1582 | ;; |
| 1583 | "llvm-test") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1584 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1585 | subdirs="$subdirs projects/llvm-test" |
| 1586 | ;; |
| 1587 | "llvm-reopt") |
| 1588 | |
| 1589 | subdirs="$subdirs projects/llvm-reopt" |
| 1590 | ;; |
| 1591 | "llvm-gcc") |
| 1592 | |
| 1593 | subdirs="$subdirs projects/llvm-gcc" |
| 1594 | ;; |
Alkis Evlogimenos | 7bd1ede | 2005-01-16 09:44:58 +0000 | [diff] [blame] | 1595 | "llvm-java") |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1596 | |
Alkis Evlogimenos | ae192d3 | 2005-01-14 07:52:28 +0000 | [diff] [blame] | 1597 | subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1598 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1599 | "llvm-tv") |
| 1600 | |
| 1601 | subdirs="$subdirs projects/llvm-tv" |
| 1602 | ;; |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1603 | "llvm-poolalloc") |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1604 | |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1605 | subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1606 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1607 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1608 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1609 | 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] | 1610 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1611 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1612 | fi |
| 1613 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1614 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | |
| 1616 | # Make sure we can run config.sub. |
| 1617 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1618 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1619 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1620 | { (exit 1); exit 1; }; } |
| 1621 | |
| 1622 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1623 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1624 | if test "${ac_cv_build+set}" = set; then |
| 1625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1626 | else |
| 1627 | ac_cv_build_alias=$build_alias |
| 1628 | test -z "$ac_cv_build_alias" && |
| 1629 | ac_cv_build_alias=`$ac_config_guess` |
| 1630 | test -z "$ac_cv_build_alias" && |
| 1631 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1632 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1633 | { (exit 1); exit 1; }; } |
| 1634 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1635 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1636 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1637 | { (exit 1); exit 1; }; } |
| 1638 | |
| 1639 | fi |
| 1640 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1641 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1642 | build=$ac_cv_build |
| 1643 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1644 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1645 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1646 | |
| 1647 | |
| 1648 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1649 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1650 | if test "${ac_cv_host+set}" = set; then |
| 1651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1652 | else |
| 1653 | ac_cv_host_alias=$host_alias |
| 1654 | test -z "$ac_cv_host_alias" && |
| 1655 | ac_cv_host_alias=$ac_cv_build_alias |
| 1656 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1657 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1658 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1659 | { (exit 1); exit 1; }; } |
| 1660 | |
| 1661 | fi |
| 1662 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1663 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1664 | host=$ac_cv_host |
| 1665 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1666 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1667 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1668 | |
| 1669 | |
| 1670 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1671 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1672 | if test "${ac_cv_target+set}" = set; then |
| 1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1674 | else |
| 1675 | ac_cv_target_alias=$target_alias |
| 1676 | test "x$ac_cv_target_alias" = "x" && |
| 1677 | ac_cv_target_alias=$ac_cv_host_alias |
| 1678 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1679 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1680 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1681 | { (exit 1); exit 1; }; } |
| 1682 | |
| 1683 | fi |
| 1684 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1685 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1686 | target=$ac_cv_target |
| 1687 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1688 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1689 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1690 | |
| 1691 | |
| 1692 | # The aliases save the names the user supplied, while $host etc. |
| 1693 | # will get canonicalized. |
| 1694 | test -n "$target_alias" && |
| 1695 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1696 | NONENONEs,x,x, && |
| 1697 | program_prefix=${target_alias}- |
| 1698 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1699 | echo "$as_me:$LINENO: checking type of operating system we're on" >&5 |
| 1700 | echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6 |
| 1701 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1703 | else |
| 1704 | case $build in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1705 | *-*-aix*) |
| 1706 | llvm_cv_os_type="AIX" |
| 1707 | llvm_cv_platform_type="Unix" ;; |
| 1708 | *-*-cygwin*) |
| 1709 | llvm_cv_os_type="Cygwin" |
| 1710 | llvm_cv_platform_type="Unix" ;; |
| 1711 | *-*-darwin*) |
| 1712 | llvm_cv_os_type="Darwin" |
| 1713 | llvm_cv_platform_type="Unix" ;; |
| 1714 | *-*-freebsd*) |
| 1715 | llvm_cv_os_type="FreeBSD" |
| 1716 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 1717 | *-*-hpux*) |
| 1718 | llvm_cv_os_type="HP-UX" |
| 1719 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 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 | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: checking target architecture" >&5 |
| 1778 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1779 | if test "${llvm_cv_target_arch+set}" = set; then |
| 1780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1781 | else |
| 1782 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1783 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 1784 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1785 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 1786 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 1787 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 1788 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1789 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1790 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1791 | fi |
| 1792 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 1793 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1794 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1795 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 1796 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 1797 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 1798 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1799 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1800 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1801 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1802 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1803 | ac_ext=c |
| 1804 | ac_cpp='$CPP $CPPFLAGS' |
| 1805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1808 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1809 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1810 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1813 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1815 | else |
| 1816 | if test -n "$CC"; then |
| 1817 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1818 | else |
| 1819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1820 | for as_dir in $PATH |
| 1821 | do |
| 1822 | IFS=$as_save_IFS |
| 1823 | test -z "$as_dir" && as_dir=. |
| 1824 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1826 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1828 | break 2 |
| 1829 | fi |
| 1830 | done |
| 1831 | done |
| 1832 | |
| 1833 | fi |
| 1834 | fi |
| 1835 | CC=$ac_cv_prog_CC |
| 1836 | if test -n "$CC"; then |
| 1837 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1838 | echo "${ECHO_T}$CC" >&6 |
| 1839 | else |
| 1840 | echo "$as_me:$LINENO: result: no" >&5 |
| 1841 | echo "${ECHO_T}no" >&6 |
| 1842 | fi |
| 1843 | |
| 1844 | fi |
| 1845 | if test -z "$ac_cv_prog_CC"; then |
| 1846 | ac_ct_CC=$CC |
| 1847 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1848 | set dummy gcc; ac_word=$2 |
| 1849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1851 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1853 | else |
| 1854 | if test -n "$ac_ct_CC"; then |
| 1855 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1856 | else |
| 1857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1858 | for as_dir in $PATH |
| 1859 | do |
| 1860 | IFS=$as_save_IFS |
| 1861 | test -z "$as_dir" && as_dir=. |
| 1862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1864 | ac_cv_prog_ac_ct_CC="gcc" |
| 1865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1866 | break 2 |
| 1867 | fi |
| 1868 | done |
| 1869 | done |
| 1870 | |
| 1871 | fi |
| 1872 | fi |
| 1873 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1874 | if test -n "$ac_ct_CC"; then |
| 1875 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1876 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1877 | else |
| 1878 | echo "$as_me:$LINENO: result: no" >&5 |
| 1879 | echo "${ECHO_T}no" >&6 |
| 1880 | fi |
| 1881 | |
| 1882 | CC=$ac_ct_CC |
| 1883 | else |
| 1884 | CC="$ac_cv_prog_CC" |
| 1885 | fi |
| 1886 | |
| 1887 | if test -z "$CC"; then |
| 1888 | if test -n "$ac_tool_prefix"; then |
| 1889 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1890 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1891 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1893 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1895 | else |
| 1896 | if test -n "$CC"; then |
| 1897 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1898 | else |
| 1899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1900 | for as_dir in $PATH |
| 1901 | do |
| 1902 | IFS=$as_save_IFS |
| 1903 | test -z "$as_dir" && as_dir=. |
| 1904 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1905 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1906 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1908 | break 2 |
| 1909 | fi |
| 1910 | done |
| 1911 | done |
| 1912 | |
| 1913 | fi |
| 1914 | fi |
| 1915 | CC=$ac_cv_prog_CC |
| 1916 | if test -n "$CC"; then |
| 1917 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1918 | echo "${ECHO_T}$CC" >&6 |
| 1919 | else |
| 1920 | echo "$as_me:$LINENO: result: no" >&5 |
| 1921 | echo "${ECHO_T}no" >&6 |
| 1922 | fi |
| 1923 | |
| 1924 | fi |
| 1925 | if test -z "$ac_cv_prog_CC"; then |
| 1926 | ac_ct_CC=$CC |
| 1927 | # Extract the first word of "cc", so it can be a program name with args. |
| 1928 | set dummy cc; ac_word=$2 |
| 1929 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1931 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1933 | else |
| 1934 | if test -n "$ac_ct_CC"; then |
| 1935 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1936 | else |
| 1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1938 | for as_dir in $PATH |
| 1939 | do |
| 1940 | IFS=$as_save_IFS |
| 1941 | test -z "$as_dir" && as_dir=. |
| 1942 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1943 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1944 | ac_cv_prog_ac_ct_CC="cc" |
| 1945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1946 | break 2 |
| 1947 | fi |
| 1948 | done |
| 1949 | done |
| 1950 | |
| 1951 | fi |
| 1952 | fi |
| 1953 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1954 | if test -n "$ac_ct_CC"; then |
| 1955 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1956 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1957 | else |
| 1958 | echo "$as_me:$LINENO: result: no" >&5 |
| 1959 | echo "${ECHO_T}no" >&6 |
| 1960 | fi |
| 1961 | |
| 1962 | CC=$ac_ct_CC |
| 1963 | else |
| 1964 | CC="$ac_cv_prog_CC" |
| 1965 | fi |
| 1966 | |
| 1967 | fi |
| 1968 | if test -z "$CC"; then |
| 1969 | # Extract the first word of "cc", so it can be a program name with args. |
| 1970 | set dummy cc; ac_word=$2 |
| 1971 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1972 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1973 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1975 | else |
| 1976 | if test -n "$CC"; then |
| 1977 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1978 | else |
| 1979 | ac_prog_rejected=no |
| 1980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1981 | for as_dir in $PATH |
| 1982 | do |
| 1983 | IFS=$as_save_IFS |
| 1984 | test -z "$as_dir" && as_dir=. |
| 1985 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1987 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1988 | ac_prog_rejected=yes |
| 1989 | continue |
| 1990 | fi |
| 1991 | ac_cv_prog_CC="cc" |
| 1992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1993 | break 2 |
| 1994 | fi |
| 1995 | done |
| 1996 | done |
| 1997 | |
| 1998 | if test $ac_prog_rejected = yes; then |
| 1999 | # We found a bogon in the path, so make sure we never use it. |
| 2000 | set dummy $ac_cv_prog_CC |
| 2001 | shift |
| 2002 | if test $# != 0; then |
| 2003 | # We chose a different compiler from the bogus one. |
| 2004 | # However, it has the same basename, so the bogon will be chosen |
| 2005 | # first if we set CC to just the basename; use the full file name. |
| 2006 | shift |
| 2007 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2008 | fi |
| 2009 | fi |
| 2010 | fi |
| 2011 | fi |
| 2012 | CC=$ac_cv_prog_CC |
| 2013 | if test -n "$CC"; then |
| 2014 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2015 | echo "${ECHO_T}$CC" >&6 |
| 2016 | else |
| 2017 | echo "$as_me:$LINENO: result: no" >&5 |
| 2018 | echo "${ECHO_T}no" >&6 |
| 2019 | fi |
| 2020 | |
| 2021 | fi |
| 2022 | if test -z "$CC"; then |
| 2023 | if test -n "$ac_tool_prefix"; then |
| 2024 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | do |
| 2026 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2027 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2030 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2032 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2033 | if test -n "$CC"; then |
| 2034 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2035 | else |
| 2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2037 | for as_dir in $PATH |
| 2038 | do |
| 2039 | IFS=$as_save_IFS |
| 2040 | test -z "$as_dir" && as_dir=. |
| 2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2043 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2045 | break 2 |
| 2046 | fi |
| 2047 | done |
| 2048 | done |
| 2049 | |
| 2050 | fi |
| 2051 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2052 | CC=$ac_cv_prog_CC |
| 2053 | if test -n "$CC"; then |
| 2054 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2055 | echo "${ECHO_T}$CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2056 | else |
| 2057 | echo "$as_me:$LINENO: result: no" >&5 |
| 2058 | echo "${ECHO_T}no" >&6 |
| 2059 | fi |
| 2060 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2061 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2062 | done |
| 2063 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2064 | if test -z "$CC"; then |
| 2065 | ac_ct_CC=$CC |
| 2066 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2067 | do |
| 2068 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2069 | set dummy $ac_prog; ac_word=$2 |
| 2070 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2072 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2074 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2075 | if test -n "$ac_ct_CC"; then |
| 2076 | 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] | 2077 | else |
| 2078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2079 | for as_dir in $PATH |
| 2080 | do |
| 2081 | IFS=$as_save_IFS |
| 2082 | test -z "$as_dir" && as_dir=. |
| 2083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2084 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2085 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2087 | break 2 |
| 2088 | fi |
| 2089 | done |
| 2090 | done |
| 2091 | |
| 2092 | fi |
| 2093 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2094 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2095 | if test -n "$ac_ct_CC"; then |
| 2096 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2097 | echo "${ECHO_T}$ac_ct_CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2098 | else |
| 2099 | echo "$as_me:$LINENO: result: no" >&5 |
| 2100 | echo "${ECHO_T}no" >&6 |
| 2101 | fi |
| 2102 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2103 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2104 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2105 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2106 | CC=$ac_ct_CC |
| 2107 | fi |
| 2108 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2109 | fi |
| 2110 | |
| 2111 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2112 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2113 | See \`config.log' for more details." >&5 |
| 2114 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2115 | See \`config.log' for more details." >&2;} |
| 2116 | { (exit 1); exit 1; }; } |
| 2117 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2118 | # Provide some information about the compiler. |
| 2119 | echo "$as_me:$LINENO:" \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2120 | "checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | ac_compiler=`set X $ac_compile; echo $2` |
| 2122 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2123 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2124 | ac_status=$? |
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2126 | (exit $ac_status); } |
| 2127 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2128 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2129 | ac_status=$? |
| 2130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2131 | (exit $ac_status); } |
| 2132 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2133 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2134 | ac_status=$? |
| 2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2136 | (exit $ac_status); } |
| 2137 | |
| 2138 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2139 | /* confdefs.h. */ |
| 2140 | _ACEOF |
| 2141 | cat confdefs.h >>conftest.$ac_ext |
| 2142 | cat >>conftest.$ac_ext <<_ACEOF |
| 2143 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2144 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2145 | int |
| 2146 | main () |
| 2147 | { |
| 2148 | |
| 2149 | ; |
| 2150 | return 0; |
| 2151 | } |
| 2152 | _ACEOF |
| 2153 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2154 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2155 | # Try to create an executable without -o first, disregard a.out. |
| 2156 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2157 | # of exeext. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2158 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2159 | 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] | 2160 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2161 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2162 | (eval $ac_link_default) 2>&5 |
| 2163 | ac_status=$? |
| 2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2165 | (exit $ac_status); }; then |
| 2166 | # Find the output, starting from the most likely. This scheme is |
| 2167 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2168 | # resort. |
| 2169 | |
| 2170 | # Be careful to initialize this variable, since it used to be cached. |
| 2171 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2172 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2173 | # b.out is created by i960 compilers. |
| 2174 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2175 | do |
| 2176 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2177 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2178 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2179 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2180 | conftest.$ac_ext ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2181 | # This is the source file. |
| 2182 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2183 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2184 | # We found the default executable, but exeext='' is most |
| 2185 | # certainly right. |
| 2186 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2187 | *.* ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2188 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2189 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2190 | # but it would be cool to find out if it's true. Does anybody |
| 2191 | # maintain Libtool? --akim. |
| 2192 | export ac_cv_exeext |
| 2193 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2194 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2195 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2196 | esac |
| 2197 | done |
| 2198 | else |
| 2199 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2201 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2202 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2203 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2204 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2205 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2206 | { (exit 77); exit 77; }; } |
| 2207 | fi |
| 2208 | |
| 2209 | ac_exeext=$ac_cv_exeext |
| 2210 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2211 | echo "${ECHO_T}$ac_file" >&6 |
| 2212 | |
| 2213 | # Check the compiler produces executables we can run. If not, either |
| 2214 | # the compiler is broken, or we cross compile. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2215 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2216 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2217 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2218 | # If not cross compiling, check that we can run a simple program. |
| 2219 | if test "$cross_compiling" != yes; then |
| 2220 | if { ac_try='./$ac_file' |
| 2221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2222 | (eval $ac_try) 2>&5 |
| 2223 | ac_status=$? |
| 2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2225 | (exit $ac_status); }; }; then |
| 2226 | cross_compiling=no |
| 2227 | else |
| 2228 | if test "$cross_compiling" = maybe; then |
| 2229 | cross_compiling=yes |
| 2230 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2231 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2232 | If you meant to cross compile, use \`--host'. |
| 2233 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2234 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2235 | If you meant to cross compile, use \`--host'. |
| 2236 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2237 | { (exit 1); exit 1; }; } |
| 2238 | fi |
| 2239 | fi |
| 2240 | fi |
| 2241 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2242 | echo "${ECHO_T}yes" >&6 |
| 2243 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2244 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2245 | ac_clean_files=$ac_clean_files_save |
| 2246 | # Check the compiler produces executables we can run. If not, either |
| 2247 | # the compiler is broken, or we cross compile. |
| 2248 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2249 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2250 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2251 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2252 | |
| 2253 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2254 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2256 | (eval $ac_link) 2>&5 |
| 2257 | ac_status=$? |
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2259 | (exit $ac_status); }; then |
| 2260 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2261 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2262 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2263 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2264 | for ac_file in conftest.exe conftest conftest.*; do |
| 2265 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2266 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2267 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2268 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2269 | export ac_cv_exeext |
| 2270 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2271 | * ) break;; |
| 2272 | esac |
| 2273 | done |
| 2274 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2275 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2276 | See \`config.log' for more details." >&5 |
| 2277 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2278 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2279 | { (exit 1); exit 1; }; } |
| 2280 | fi |
| 2281 | |
| 2282 | rm -f conftest$ac_cv_exeext |
| 2283 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2284 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2285 | |
| 2286 | rm -f conftest.$ac_ext |
| 2287 | EXEEXT=$ac_cv_exeext |
| 2288 | ac_exeext=$EXEEXT |
| 2289 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2290 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2291 | if test "${ac_cv_objext+set}" = set; then |
| 2292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2293 | else |
| 2294 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2295 | /* confdefs.h. */ |
| 2296 | _ACEOF |
| 2297 | cat confdefs.h >>conftest.$ac_ext |
| 2298 | cat >>conftest.$ac_ext <<_ACEOF |
| 2299 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2300 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2301 | int |
| 2302 | main () |
| 2303 | { |
| 2304 | |
| 2305 | ; |
| 2306 | return 0; |
| 2307 | } |
| 2308 | _ACEOF |
| 2309 | rm -f conftest.o conftest.obj |
| 2310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2311 | (eval $ac_compile) 2>&5 |
| 2312 | ac_status=$? |
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2314 | (exit $ac_status); }; then |
| 2315 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2316 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2317 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2318 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2319 | break;; |
| 2320 | esac |
| 2321 | done |
| 2322 | else |
| 2323 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2325 | |
| 2326 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2327 | See \`config.log' for more details." >&5 |
| 2328 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2329 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2330 | { (exit 1); exit 1; }; } |
| 2331 | fi |
| 2332 | |
| 2333 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2334 | fi |
| 2335 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2336 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2337 | OBJEXT=$ac_cv_objext |
| 2338 | ac_objext=$OBJEXT |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2339 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2340 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2341 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2343 | else |
| 2344 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2345 | /* confdefs.h. */ |
| 2346 | _ACEOF |
| 2347 | cat confdefs.h >>conftest.$ac_ext |
| 2348 | cat >>conftest.$ac_ext <<_ACEOF |
| 2349 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2351 | int |
| 2352 | main () |
| 2353 | { |
| 2354 | #ifndef __GNUC__ |
| 2355 | choke me |
| 2356 | #endif |
| 2357 | |
| 2358 | ; |
| 2359 | return 0; |
| 2360 | } |
| 2361 | _ACEOF |
| 2362 | rm -f conftest.$ac_objext |
| 2363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2364 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2365 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2367 | rm -f conftest.er1 |
| 2368 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2370 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2371 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2372 | || test ! -s conftest.err' |
| 2373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2374 | (eval $ac_try) 2>&5 |
| 2375 | ac_status=$? |
| 2376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2377 | (exit $ac_status); }; } && |
| 2378 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2380 | (eval $ac_try) 2>&5 |
| 2381 | ac_status=$? |
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2383 | (exit $ac_status); }; }; then |
| 2384 | ac_compiler_gnu=yes |
| 2385 | else |
| 2386 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2388 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2389 | ac_compiler_gnu=no |
| 2390 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2392 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2393 | |
| 2394 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2396 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2397 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2398 | ac_test_CFLAGS=${CFLAGS+set} |
| 2399 | ac_save_CFLAGS=$CFLAGS |
| 2400 | CFLAGS="-g" |
| 2401 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2402 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2403 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2405 | else |
| 2406 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2407 | /* confdefs.h. */ |
| 2408 | _ACEOF |
| 2409 | cat confdefs.h >>conftest.$ac_ext |
| 2410 | cat >>conftest.$ac_ext <<_ACEOF |
| 2411 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2412 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2413 | int |
| 2414 | main () |
| 2415 | { |
| 2416 | |
| 2417 | ; |
| 2418 | return 0; |
| 2419 | } |
| 2420 | _ACEOF |
| 2421 | rm -f conftest.$ac_objext |
| 2422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2423 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2424 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2426 | rm -f conftest.er1 |
| 2427 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2429 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2430 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2431 | || test ! -s conftest.err' |
| 2432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2433 | (eval $ac_try) 2>&5 |
| 2434 | ac_status=$? |
| 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); }; } && |
| 2437 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2439 | (eval $ac_try) 2>&5 |
| 2440 | ac_status=$? |
| 2441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2442 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2443 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2444 | else |
| 2445 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2447 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2448 | ac_cv_prog_cc_g=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2449 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2451 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2452 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2453 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2454 | if test "$ac_test_CFLAGS" = set; then |
| 2455 | CFLAGS=$ac_save_CFLAGS |
| 2456 | elif test $ac_cv_prog_cc_g = yes; then |
| 2457 | if test "$GCC" = yes; then |
| 2458 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2459 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2461 | fi |
| 2462 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2463 | if test "$GCC" = yes; then |
| 2464 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2465 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2466 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2467 | fi |
| 2468 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2469 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2470 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2471 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2473 | else |
| 2474 | ac_cv_prog_cc_stdc=no |
| 2475 | ac_save_CC=$CC |
| 2476 | cat >conftest.$ac_ext <<_ACEOF |
| 2477 | /* confdefs.h. */ |
| 2478 | _ACEOF |
| 2479 | cat confdefs.h >>conftest.$ac_ext |
| 2480 | cat >>conftest.$ac_ext <<_ACEOF |
| 2481 | /* end confdefs.h. */ |
| 2482 | #include <stdarg.h> |
| 2483 | #include <stdio.h> |
| 2484 | #include <sys/types.h> |
| 2485 | #include <sys/stat.h> |
| 2486 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2487 | struct buf { int x; }; |
| 2488 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2489 | static char *e (p, i) |
| 2490 | char **p; |
| 2491 | int i; |
| 2492 | { |
| 2493 | return p[i]; |
| 2494 | } |
| 2495 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2496 | { |
| 2497 | char *s; |
| 2498 | va_list v; |
| 2499 | va_start (v,p); |
| 2500 | s = g (p, va_arg (v,int)); |
| 2501 | va_end (v); |
| 2502 | return s; |
| 2503 | } |
| 2504 | |
| 2505 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2506 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2507 | These don't provoke an error unfortunately, instead are silently treated |
| 2508 | as 'x'. The following induces an error, until -std1 is added to get |
| 2509 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2510 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2511 | that's true only with -std1. */ |
| 2512 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2513 | |
| 2514 | int test (int i, double x); |
| 2515 | struct s1 {int (*f) (int a);}; |
| 2516 | struct s2 {int (*f) (double a);}; |
| 2517 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2518 | int argc; |
| 2519 | char **argv; |
| 2520 | int |
| 2521 | main () |
| 2522 | { |
| 2523 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2524 | ; |
| 2525 | return 0; |
| 2526 | } |
| 2527 | _ACEOF |
| 2528 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2529 | # breaks some systems' header files. |
| 2530 | # AIX -qlanglvl=ansi |
| 2531 | # Ultrix and OSF/1 -std1 |
| 2532 | # HP-UX 10.20 and later -Ae |
| 2533 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2534 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2535 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2536 | do |
| 2537 | CC="$ac_save_CC $ac_arg" |
| 2538 | rm -f conftest.$ac_objext |
| 2539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2540 | (eval $ac_compile) 2>conftest.er1 |
| 2541 | ac_status=$? |
| 2542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2543 | rm -f conftest.er1 |
| 2544 | cat conftest.err >&5 |
| 2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2546 | (exit $ac_status); } && |
| 2547 | { ac_try='test -z "$ac_c_werror_flag" |
| 2548 | || test ! -s conftest.err' |
| 2549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2550 | (eval $ac_try) 2>&5 |
| 2551 | ac_status=$? |
| 2552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2553 | (exit $ac_status); }; } && |
| 2554 | { ac_try='test -s conftest.$ac_objext' |
| 2555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2556 | (eval $ac_try) 2>&5 |
| 2557 | ac_status=$? |
| 2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2559 | (exit $ac_status); }; }; then |
| 2560 | ac_cv_prog_cc_stdc=$ac_arg |
| 2561 | break |
| 2562 | else |
| 2563 | echo "$as_me: failed program was:" >&5 |
| 2564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2565 | |
| 2566 | fi |
| 2567 | rm -f conftest.err conftest.$ac_objext |
| 2568 | done |
| 2569 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2570 | CC=$ac_save_CC |
| 2571 | |
| 2572 | fi |
| 2573 | |
| 2574 | case "x$ac_cv_prog_cc_stdc" in |
| 2575 | x|xno) |
| 2576 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2577 | echo "${ECHO_T}none needed" >&6 ;; |
| 2578 | *) |
| 2579 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2580 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2581 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2582 | esac |
| 2583 | |
| 2584 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2585 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2586 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2587 | # the declaration of exit, since it's the most demanding environment. |
| 2588 | cat >conftest.$ac_ext <<_ACEOF |
| 2589 | #ifndef __cplusplus |
| 2590 | choke me |
| 2591 | #endif |
| 2592 | _ACEOF |
| 2593 | rm -f conftest.$ac_objext |
| 2594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2595 | (eval $ac_compile) 2>conftest.er1 |
| 2596 | ac_status=$? |
| 2597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2598 | rm -f conftest.er1 |
| 2599 | cat conftest.err >&5 |
| 2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2601 | (exit $ac_status); } && |
| 2602 | { ac_try='test -z "$ac_c_werror_flag" |
| 2603 | || test ! -s conftest.err' |
| 2604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2605 | (eval $ac_try) 2>&5 |
| 2606 | ac_status=$? |
| 2607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2608 | (exit $ac_status); }; } && |
| 2609 | { ac_try='test -s conftest.$ac_objext' |
| 2610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2611 | (eval $ac_try) 2>&5 |
| 2612 | ac_status=$? |
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2614 | (exit $ac_status); }; }; then |
| 2615 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2616 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2618 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2619 | 'extern "C" void exit (int) throw ();' \ |
| 2620 | 'extern "C" void exit (int);' \ |
| 2621 | 'void exit (int);' |
| 2622 | do |
| 2623 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2624 | /* confdefs.h. */ |
| 2625 | _ACEOF |
| 2626 | cat confdefs.h >>conftest.$ac_ext |
| 2627 | cat >>conftest.$ac_ext <<_ACEOF |
| 2628 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2629 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2630 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2631 | int |
| 2632 | main () |
| 2633 | { |
| 2634 | exit (42); |
| 2635 | ; |
| 2636 | return 0; |
| 2637 | } |
| 2638 | _ACEOF |
| 2639 | rm -f conftest.$ac_objext |
| 2640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2641 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2642 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2644 | rm -f conftest.er1 |
| 2645 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2647 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2648 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2649 | || test ! -s conftest.err' |
| 2650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2651 | (eval $ac_try) 2>&5 |
| 2652 | ac_status=$? |
| 2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2654 | (exit $ac_status); }; } && |
| 2655 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2657 | (eval $ac_try) 2>&5 |
| 2658 | ac_status=$? |
| 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2660 | (exit $ac_status); }; }; then |
| 2661 | : |
| 2662 | else |
| 2663 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2665 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 | continue |
| 2667 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2670 | /* confdefs.h. */ |
| 2671 | _ACEOF |
| 2672 | cat confdefs.h >>conftest.$ac_ext |
| 2673 | cat >>conftest.$ac_ext <<_ACEOF |
| 2674 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2675 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2676 | int |
| 2677 | main () |
| 2678 | { |
| 2679 | exit (42); |
| 2680 | ; |
| 2681 | return 0; |
| 2682 | } |
| 2683 | _ACEOF |
| 2684 | rm -f conftest.$ac_objext |
| 2685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2686 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2687 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2689 | rm -f conftest.er1 |
| 2690 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2692 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2693 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2694 | || test ! -s conftest.err' |
| 2695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2696 | (eval $ac_try) 2>&5 |
| 2697 | ac_status=$? |
| 2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2699 | (exit $ac_status); }; } && |
| 2700 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2702 | (eval $ac_try) 2>&5 |
| 2703 | ac_status=$? |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2705 | (exit $ac_status); }; }; then |
| 2706 | break |
| 2707 | else |
| 2708 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2710 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2711 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2713 | done |
| 2714 | rm -f conftest* |
| 2715 | if test -n "$ac_declaration"; then |
| 2716 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2717 | echo $ac_declaration >>confdefs.h |
| 2718 | echo '#endif' >>confdefs.h |
| 2719 | fi |
| 2720 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2721 | else |
| 2722 | echo "$as_me: failed program was:" >&5 |
| 2723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2724 | |
| 2725 | fi |
| 2726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2727 | ac_ext=c |
| 2728 | ac_cpp='$CPP $CPPFLAGS' |
| 2729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2732 | |
| 2733 | |
| 2734 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 2735 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 2736 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 2737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2738 | else |
| 2739 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 2740 | cat >conftest.$ac_ext <<_ACEOF |
| 2741 | /* confdefs.h. */ |
| 2742 | _ACEOF |
| 2743 | cat confdefs.h >>conftest.$ac_ext |
| 2744 | cat >>conftest.$ac_ext <<_ACEOF |
| 2745 | /* end confdefs.h. */ |
| 2746 | #include <sys/types.h> |
| 2747 | #include <sys/param.h> |
| 2748 | |
| 2749 | int |
| 2750 | main () |
| 2751 | { |
| 2752 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2753 | bogus endian macros |
| 2754 | #endif |
| 2755 | |
| 2756 | ; |
| 2757 | return 0; |
| 2758 | } |
| 2759 | _ACEOF |
| 2760 | rm -f conftest.$ac_objext |
| 2761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2762 | (eval $ac_compile) 2>conftest.er1 |
| 2763 | ac_status=$? |
| 2764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2765 | rm -f conftest.er1 |
| 2766 | cat conftest.err >&5 |
| 2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2768 | (exit $ac_status); } && |
| 2769 | { ac_try='test -z "$ac_c_werror_flag" |
| 2770 | || test ! -s conftest.err' |
| 2771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2772 | (eval $ac_try) 2>&5 |
| 2773 | ac_status=$? |
| 2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2775 | (exit $ac_status); }; } && |
| 2776 | { ac_try='test -s conftest.$ac_objext' |
| 2777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2778 | (eval $ac_try) 2>&5 |
| 2779 | ac_status=$? |
| 2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2781 | (exit $ac_status); }; }; then |
| 2782 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2783 | cat >conftest.$ac_ext <<_ACEOF |
| 2784 | /* confdefs.h. */ |
| 2785 | _ACEOF |
| 2786 | cat confdefs.h >>conftest.$ac_ext |
| 2787 | cat >>conftest.$ac_ext <<_ACEOF |
| 2788 | /* end confdefs.h. */ |
| 2789 | #include <sys/types.h> |
| 2790 | #include <sys/param.h> |
| 2791 | |
| 2792 | int |
| 2793 | main () |
| 2794 | { |
| 2795 | #if BYTE_ORDER != BIG_ENDIAN |
| 2796 | not big endian |
| 2797 | #endif |
| 2798 | |
| 2799 | ; |
| 2800 | return 0; |
| 2801 | } |
| 2802 | _ACEOF |
| 2803 | rm -f conftest.$ac_objext |
| 2804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2805 | (eval $ac_compile) 2>conftest.er1 |
| 2806 | ac_status=$? |
| 2807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2808 | rm -f conftest.er1 |
| 2809 | cat conftest.err >&5 |
| 2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2811 | (exit $ac_status); } && |
| 2812 | { ac_try='test -z "$ac_c_werror_flag" |
| 2813 | || test ! -s conftest.err' |
| 2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2815 | (eval $ac_try) 2>&5 |
| 2816 | ac_status=$? |
| 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2818 | (exit $ac_status); }; } && |
| 2819 | { ac_try='test -s conftest.$ac_objext' |
| 2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2821 | (eval $ac_try) 2>&5 |
| 2822 | ac_status=$? |
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2824 | (exit $ac_status); }; }; then |
| 2825 | ac_cv_c_bigendian=yes |
| 2826 | else |
| 2827 | echo "$as_me: failed program was:" >&5 |
| 2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2829 | |
| 2830 | ac_cv_c_bigendian=no |
| 2831 | fi |
| 2832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2833 | else |
| 2834 | echo "$as_me: failed program was:" >&5 |
| 2835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2836 | |
| 2837 | # It does not; compile a test program. |
| 2838 | if test "$cross_compiling" = yes; then |
| 2839 | # try to guess the endianness by grepping values into an object file |
| 2840 | ac_cv_c_bigendian=unknown |
| 2841 | cat >conftest.$ac_ext <<_ACEOF |
| 2842 | /* confdefs.h. */ |
| 2843 | _ACEOF |
| 2844 | cat confdefs.h >>conftest.$ac_ext |
| 2845 | cat >>conftest.$ac_ext <<_ACEOF |
| 2846 | /* end confdefs.h. */ |
| 2847 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 2848 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 2849 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 2850 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 2851 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 2852 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 2853 | int |
| 2854 | main () |
| 2855 | { |
| 2856 | _ascii (); _ebcdic (); |
| 2857 | ; |
| 2858 | return 0; |
| 2859 | } |
| 2860 | _ACEOF |
| 2861 | rm -f conftest.$ac_objext |
| 2862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2863 | (eval $ac_compile) 2>conftest.er1 |
| 2864 | ac_status=$? |
| 2865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2866 | rm -f conftest.er1 |
| 2867 | cat conftest.err >&5 |
| 2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2869 | (exit $ac_status); } && |
| 2870 | { ac_try='test -z "$ac_c_werror_flag" |
| 2871 | || test ! -s conftest.err' |
| 2872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2873 | (eval $ac_try) 2>&5 |
| 2874 | ac_status=$? |
| 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2876 | (exit $ac_status); }; } && |
| 2877 | { ac_try='test -s conftest.$ac_objext' |
| 2878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2879 | (eval $ac_try) 2>&5 |
| 2880 | ac_status=$? |
| 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2882 | (exit $ac_status); }; }; then |
| 2883 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 2884 | ac_cv_c_bigendian=yes |
| 2885 | fi |
| 2886 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 2887 | if test "$ac_cv_c_bigendian" = unknown; then |
| 2888 | ac_cv_c_bigendian=no |
| 2889 | else |
| 2890 | # finding both strings is unlikely to happen, but who knows? |
| 2891 | ac_cv_c_bigendian=unknown |
| 2892 | fi |
| 2893 | fi |
| 2894 | else |
| 2895 | echo "$as_me: failed program was:" >&5 |
| 2896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2897 | |
| 2898 | fi |
| 2899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2900 | else |
| 2901 | cat >conftest.$ac_ext <<_ACEOF |
| 2902 | /* confdefs.h. */ |
| 2903 | _ACEOF |
| 2904 | cat confdefs.h >>conftest.$ac_ext |
| 2905 | cat >>conftest.$ac_ext <<_ACEOF |
| 2906 | /* end confdefs.h. */ |
| 2907 | int |
| 2908 | main () |
| 2909 | { |
| 2910 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2911 | union |
| 2912 | { |
| 2913 | long l; |
| 2914 | char c[sizeof (long)]; |
| 2915 | } u; |
| 2916 | u.l = 1; |
| 2917 | exit (u.c[sizeof (long) - 1] == 1); |
| 2918 | } |
| 2919 | _ACEOF |
| 2920 | rm -f conftest$ac_exeext |
| 2921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2922 | (eval $ac_link) 2>&5 |
| 2923 | ac_status=$? |
| 2924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2927 | (eval $ac_try) 2>&5 |
| 2928 | ac_status=$? |
| 2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2930 | (exit $ac_status); }; }; then |
| 2931 | ac_cv_c_bigendian=no |
| 2932 | else |
| 2933 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2934 | echo "$as_me: failed program was:" >&5 |
| 2935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2936 | |
| 2937 | ( exit $ac_status ) |
| 2938 | ac_cv_c_bigendian=yes |
| 2939 | fi |
| 2940 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2941 | fi |
| 2942 | fi |
| 2943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2944 | fi |
| 2945 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 2946 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 2947 | case $ac_cv_c_bigendian in |
| 2948 | yes) |
| 2949 | ENDIAN=big |
| 2950 | ;; |
| 2951 | no) |
| 2952 | ENDIAN=little |
| 2953 | ;; |
| 2954 | *) |
| 2955 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 2956 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 2957 | echo "$as_me: error: unknown endianness |
| 2958 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 2959 | { (exit 1); exit 1; }; } ;; |
| 2960 | esac |
| 2961 | |
| 2962 | |
| 2963 | |
| 2964 | # Check whether --enable-optimized or --disable-optimized was given. |
| 2965 | if test "${enable_optimized+set}" = set; then |
| 2966 | enableval="$enable_optimized" |
| 2967 | |
| 2968 | else |
| 2969 | enableval=no |
| 2970 | fi; |
| 2971 | if test ${enableval} = "no" ; then |
| 2972 | ENABLE_OPTIMIZED= |
| 2973 | |
| 2974 | else |
| 2975 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 2976 | |
| 2977 | fi |
| 2978 | |
| 2979 | # Check whether --enable-jit or --disable-jit was given. |
| 2980 | if test "${enable_jit+set}" = set; then |
| 2981 | enableval="$enable_jit" |
| 2982 | |
| 2983 | else |
| 2984 | enableval=default |
| 2985 | fi; |
| 2986 | if test ${enableval} = "no" |
| 2987 | then |
| 2988 | JIT= |
| 2989 | |
| 2990 | else |
Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 2991 | case "$llvm_cv_target_arch" in |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2992 | x86) JIT=TARGET_HAS_JIT=1 |
| 2993 | ;; |
| 2994 | Sparc) JIT=TARGET_HAS_JIT=1 |
| 2995 | ;; |
| 2996 | PowerPC) JIT=TARGET_HAS_JIT=1 |
| 2997 | ;; |
Reid Spencer | be41b25 | 2004-12-28 06:34:11 +0000 | [diff] [blame] | 2998 | x86_64) JIT= |
Reid Spencer | 95ed843 | 2004-12-23 06:22:33 +0000 | [diff] [blame] | 2999 | ;; |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3000 | Alpha) JIT= |
| 3001 | ;; |
| 3002 | IA64) JIT= |
| 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 | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3028 | TARGETS_TO_BUILD="" |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3029 | # Check whether --enable-targets or --disable-targets was given. |
| 3030 | if test "${enable_targets+set}" = set; then |
| 3031 | enableval="$enable_targets" |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3032 | |
| 3033 | else |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3034 | enableval=all |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3035 | fi; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3036 | case "$enableval" in |
Misha Brukman | ccc1c16 | 2005-04-22 18:00:34 +0000 | [diff] [blame] | 3037 | all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3038 | host-only) |
| 3039 | case "$llvm_cv_target_arch" in |
| 3040 | x86) TARGETS_TO_BUILD="X86" ;; |
| 3041 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 3042 | Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;; |
| 3043 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 3044 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 3045 | IA64) TARGETS_TO_BUILD="IA64" ;; |
| 3046 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3047 | echo "$as_me: error: Can not set target to build" >&2;} |
| 3048 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3049 | esac |
| 3050 | ;; |
| 3051 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 3052 | case "$a_target" in |
| 3053 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 3054 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 3055 | sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;; |
| 3056 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 3057 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 3058 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
| 3059 | skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";; |
| 3060 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 3061 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 3062 | { (exit 1); exit 1; }; } ;; |
| 3063 | esac |
| 3064 | done |
| 3065 | ;; |
| 3066 | esac |
Reid Spencer | 675f092 | 2005-04-22 17:06:18 +0000 | [diff] [blame] | 3067 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3068 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 3069 | |
| 3070 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3071 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3072 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 3073 | if test "${with_llvmgccdir+set}" = set; then |
| 3074 | withval="$with_llvmgccdir" |
| 3075 | |
| 3076 | else |
| 3077 | withval=default |
| 3078 | fi; |
| 3079 | case "$withval" in |
| 3080 | default) WITH_LLVMGCCDIR=default ;; |
| 3081 | /*) WITH_LLVMGCCDIR=$withval ;; |
| 3082 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 3083 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 3084 | { (exit 1); exit 1; }; } ;; |
| 3085 | esac |
| 3086 | |
| 3087 | |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3088 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3089 | ac_ext=c |
| 3090 | ac_cpp='$CPP $CPPFLAGS' |
| 3091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3094 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3095 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3096 | # On Suns, sometimes $CPP names a directory. |
| 3097 | if test -n "$CPP" && test -d "$CPP"; then |
| 3098 | CPP= |
| 3099 | fi |
| 3100 | if test -z "$CPP"; then |
| 3101 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3103 | else |
| 3104 | # Double quotes because CPP needs to be expanded |
| 3105 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3106 | do |
| 3107 | ac_preproc_ok=false |
| 3108 | for ac_c_preproc_warn_flag in '' yes |
| 3109 | do |
| 3110 | # Use a header file that comes with gcc, so configuring glibc |
| 3111 | # with a fresh cross-compiler works. |
| 3112 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3113 | # <limits.h> exists even on freestanding compilers. |
| 3114 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3115 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3116 | cat >conftest.$ac_ext <<_ACEOF |
| 3117 | /* confdefs.h. */ |
| 3118 | _ACEOF |
| 3119 | cat confdefs.h >>conftest.$ac_ext |
| 3120 | cat >>conftest.$ac_ext <<_ACEOF |
| 3121 | /* end confdefs.h. */ |
| 3122 | #ifdef __STDC__ |
| 3123 | # include <limits.h> |
| 3124 | #else |
| 3125 | # include <assert.h> |
| 3126 | #endif |
| 3127 | Syntax error |
| 3128 | _ACEOF |
| 3129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3131 | ac_status=$? |
| 3132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3133 | rm -f conftest.er1 |
| 3134 | cat conftest.err >&5 |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); } >/dev/null; then |
| 3137 | if test -s conftest.err; then |
| 3138 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3139 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3140 | else |
| 3141 | ac_cpp_err= |
| 3142 | fi |
| 3143 | else |
| 3144 | ac_cpp_err=yes |
| 3145 | fi |
| 3146 | if test -z "$ac_cpp_err"; then |
| 3147 | : |
| 3148 | else |
| 3149 | echo "$as_me: failed program was:" >&5 |
| 3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3151 | |
| 3152 | # Broken: fails on valid input. |
| 3153 | continue |
| 3154 | fi |
| 3155 | rm -f conftest.err conftest.$ac_ext |
| 3156 | |
| 3157 | # OK, works on sane cases. Now check whether non-existent headers |
| 3158 | # can be detected and how. |
| 3159 | cat >conftest.$ac_ext <<_ACEOF |
| 3160 | /* confdefs.h. */ |
| 3161 | _ACEOF |
| 3162 | cat confdefs.h >>conftest.$ac_ext |
| 3163 | cat >>conftest.$ac_ext <<_ACEOF |
| 3164 | /* end confdefs.h. */ |
| 3165 | #include <ac_nonexistent.h> |
| 3166 | _ACEOF |
| 3167 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3168 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3169 | ac_status=$? |
| 3170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3171 | rm -f conftest.er1 |
| 3172 | cat conftest.err >&5 |
| 3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3174 | (exit $ac_status); } >/dev/null; then |
| 3175 | if test -s conftest.err; then |
| 3176 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3177 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3178 | else |
| 3179 | ac_cpp_err= |
| 3180 | fi |
| 3181 | else |
| 3182 | ac_cpp_err=yes |
| 3183 | fi |
| 3184 | if test -z "$ac_cpp_err"; then |
| 3185 | # Broken: success on invalid input. |
| 3186 | continue |
| 3187 | else |
| 3188 | echo "$as_me: failed program was:" >&5 |
| 3189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3190 | |
| 3191 | # Passes both tests. |
| 3192 | ac_preproc_ok=: |
| 3193 | break |
| 3194 | fi |
| 3195 | rm -f conftest.err conftest.$ac_ext |
| 3196 | |
| 3197 | done |
| 3198 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3199 | rm -f conftest.err conftest.$ac_ext |
| 3200 | if $ac_preproc_ok; then |
| 3201 | break |
| 3202 | fi |
| 3203 | |
| 3204 | done |
| 3205 | ac_cv_prog_CPP=$CPP |
| 3206 | |
| 3207 | fi |
| 3208 | CPP=$ac_cv_prog_CPP |
| 3209 | else |
| 3210 | ac_cv_prog_CPP=$CPP |
| 3211 | fi |
| 3212 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3213 | echo "${ECHO_T}$CPP" >&6 |
| 3214 | ac_preproc_ok=false |
| 3215 | for ac_c_preproc_warn_flag in '' yes |
| 3216 | do |
| 3217 | # Use a header file that comes with gcc, so configuring glibc |
| 3218 | # with a fresh cross-compiler works. |
| 3219 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3220 | # <limits.h> exists even on freestanding compilers. |
| 3221 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3222 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3223 | cat >conftest.$ac_ext <<_ACEOF |
| 3224 | /* confdefs.h. */ |
| 3225 | _ACEOF |
| 3226 | cat confdefs.h >>conftest.$ac_ext |
| 3227 | cat >>conftest.$ac_ext <<_ACEOF |
| 3228 | /* end confdefs.h. */ |
| 3229 | #ifdef __STDC__ |
| 3230 | # include <limits.h> |
| 3231 | #else |
| 3232 | # include <assert.h> |
| 3233 | #endif |
| 3234 | Syntax error |
| 3235 | _ACEOF |
| 3236 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3237 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3238 | ac_status=$? |
| 3239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3240 | rm -f conftest.er1 |
| 3241 | cat conftest.err >&5 |
| 3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3243 | (exit $ac_status); } >/dev/null; then |
| 3244 | if test -s conftest.err; then |
| 3245 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3246 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3247 | else |
| 3248 | ac_cpp_err= |
| 3249 | fi |
| 3250 | else |
| 3251 | ac_cpp_err=yes |
| 3252 | fi |
| 3253 | if test -z "$ac_cpp_err"; then |
| 3254 | : |
| 3255 | else |
| 3256 | echo "$as_me: failed program was:" >&5 |
| 3257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3258 | |
| 3259 | # Broken: fails on valid input. |
| 3260 | continue |
| 3261 | fi |
| 3262 | rm -f conftest.err conftest.$ac_ext |
| 3263 | |
| 3264 | # OK, works on sane cases. Now check whether non-existent headers |
| 3265 | # can be detected and how. |
| 3266 | cat >conftest.$ac_ext <<_ACEOF |
| 3267 | /* confdefs.h. */ |
| 3268 | _ACEOF |
| 3269 | cat confdefs.h >>conftest.$ac_ext |
| 3270 | cat >>conftest.$ac_ext <<_ACEOF |
| 3271 | /* end confdefs.h. */ |
| 3272 | #include <ac_nonexistent.h> |
| 3273 | _ACEOF |
| 3274 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3275 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3276 | ac_status=$? |
| 3277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3278 | rm -f conftest.er1 |
| 3279 | cat conftest.err >&5 |
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3281 | (exit $ac_status); } >/dev/null; then |
| 3282 | if test -s conftest.err; then |
| 3283 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3285 | else |
| 3286 | ac_cpp_err= |
| 3287 | fi |
| 3288 | else |
| 3289 | ac_cpp_err=yes |
| 3290 | fi |
| 3291 | if test -z "$ac_cpp_err"; then |
| 3292 | # Broken: success on invalid input. |
| 3293 | continue |
| 3294 | else |
| 3295 | echo "$as_me: failed program was:" >&5 |
| 3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3297 | |
| 3298 | # Passes both tests. |
| 3299 | ac_preproc_ok=: |
| 3300 | break |
| 3301 | fi |
| 3302 | rm -f conftest.err conftest.$ac_ext |
| 3303 | |
| 3304 | done |
| 3305 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3306 | rm -f conftest.err conftest.$ac_ext |
| 3307 | if $ac_preproc_ok; then |
| 3308 | : |
| 3309 | else |
| 3310 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3311 | See \`config.log' for more details." >&5 |
| 3312 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3313 | See \`config.log' for more details." >&2;} |
| 3314 | { (exit 1); exit 1; }; } |
| 3315 | fi |
| 3316 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3317 | ac_ext=c |
| 3318 | ac_cpp='$CPP $CPPFLAGS' |
| 3319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3322 | |
| 3323 | ac_ext=c |
| 3324 | ac_cpp='$CPP $CPPFLAGS' |
| 3325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3328 | if test -n "$ac_tool_prefix"; then |
| 3329 | for ac_prog in gcc |
| 3330 | do |
| 3331 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3332 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3333 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3335 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3337 | else |
| 3338 | if test -n "$CC"; then |
| 3339 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3340 | else |
| 3341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3342 | for as_dir in $PATH |
| 3343 | do |
| 3344 | IFS=$as_save_IFS |
| 3345 | test -z "$as_dir" && as_dir=. |
| 3346 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3347 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3348 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3349 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3350 | break 2 |
| 3351 | fi |
| 3352 | done |
| 3353 | done |
| 3354 | |
| 3355 | fi |
| 3356 | fi |
| 3357 | CC=$ac_cv_prog_CC |
| 3358 | if test -n "$CC"; then |
| 3359 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3360 | echo "${ECHO_T}$CC" >&6 |
| 3361 | else |
| 3362 | echo "$as_me:$LINENO: result: no" >&5 |
| 3363 | echo "${ECHO_T}no" >&6 |
| 3364 | fi |
| 3365 | |
| 3366 | test -n "$CC" && break |
| 3367 | done |
| 3368 | fi |
| 3369 | if test -z "$CC"; then |
| 3370 | ac_ct_CC=$CC |
| 3371 | for ac_prog in gcc |
| 3372 | do |
| 3373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3374 | set dummy $ac_prog; ac_word=$2 |
| 3375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3377 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3379 | else |
| 3380 | if test -n "$ac_ct_CC"; then |
| 3381 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3382 | else |
| 3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3384 | for as_dir in $PATH |
| 3385 | do |
| 3386 | IFS=$as_save_IFS |
| 3387 | test -z "$as_dir" && as_dir=. |
| 3388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3390 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3392 | break 2 |
| 3393 | fi |
| 3394 | done |
| 3395 | done |
| 3396 | |
| 3397 | fi |
| 3398 | fi |
| 3399 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3400 | if test -n "$ac_ct_CC"; then |
| 3401 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3402 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3403 | else |
| 3404 | echo "$as_me:$LINENO: result: no" >&5 |
| 3405 | echo "${ECHO_T}no" >&6 |
| 3406 | fi |
| 3407 | |
| 3408 | test -n "$ac_ct_CC" && break |
| 3409 | done |
| 3410 | |
| 3411 | CC=$ac_ct_CC |
| 3412 | fi |
| 3413 | |
| 3414 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3415 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3416 | See \`config.log' for more details." >&5 |
| 3417 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3418 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3419 | { (exit 1); exit 1; }; } |
| 3420 | |
| 3421 | # Provide some information about the compiler. |
| 3422 | echo "$as_me:$LINENO:" \ |
| 3423 | "checking for C compiler version" >&5 |
| 3424 | ac_compiler=`set X $ac_compile; echo $2` |
| 3425 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3426 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3427 | ac_status=$? |
| 3428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3429 | (exit $ac_status); } |
| 3430 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3431 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3432 | ac_status=$? |
| 3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3434 | (exit $ac_status); } |
| 3435 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3436 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3437 | ac_status=$? |
| 3438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3439 | (exit $ac_status); } |
| 3440 | |
| 3441 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3442 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3443 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3445 | else |
| 3446 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3447 | /* confdefs.h. */ |
| 3448 | _ACEOF |
| 3449 | cat confdefs.h >>conftest.$ac_ext |
| 3450 | cat >>conftest.$ac_ext <<_ACEOF |
| 3451 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3452 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3453 | int |
| 3454 | main () |
| 3455 | { |
| 3456 | #ifndef __GNUC__ |
| 3457 | choke me |
| 3458 | #endif |
| 3459 | |
| 3460 | ; |
| 3461 | return 0; |
| 3462 | } |
| 3463 | _ACEOF |
| 3464 | rm -f conftest.$ac_objext |
| 3465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3466 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3467 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3469 | rm -f conftest.er1 |
| 3470 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3472 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3473 | { ac_try='test -z "$ac_c_werror_flag" |
| 3474 | || test ! -s conftest.err' |
| 3475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3476 | (eval $ac_try) 2>&5 |
| 3477 | ac_status=$? |
| 3478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3479 | (exit $ac_status); }; } && |
| 3480 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3482 | (eval $ac_try) 2>&5 |
| 3483 | ac_status=$? |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3485 | (exit $ac_status); }; }; then |
| 3486 | ac_compiler_gnu=yes |
| 3487 | else |
| 3488 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3490 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3491 | ac_compiler_gnu=no |
| 3492 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3494 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3495 | |
| 3496 | fi |
| 3497 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3498 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3499 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3500 | ac_test_CFLAGS=${CFLAGS+set} |
| 3501 | ac_save_CFLAGS=$CFLAGS |
| 3502 | CFLAGS="-g" |
| 3503 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3504 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3505 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3507 | else |
| 3508 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3509 | /* confdefs.h. */ |
| 3510 | _ACEOF |
| 3511 | cat confdefs.h >>conftest.$ac_ext |
| 3512 | cat >>conftest.$ac_ext <<_ACEOF |
| 3513 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3514 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3515 | int |
| 3516 | main () |
| 3517 | { |
| 3518 | |
| 3519 | ; |
| 3520 | return 0; |
| 3521 | } |
| 3522 | _ACEOF |
| 3523 | rm -f conftest.$ac_objext |
| 3524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3525 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3526 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3528 | rm -f conftest.er1 |
| 3529 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3531 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3532 | { ac_try='test -z "$ac_c_werror_flag" |
| 3533 | || test ! -s conftest.err' |
| 3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3535 | (eval $ac_try) 2>&5 |
| 3536 | ac_status=$? |
| 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3538 | (exit $ac_status); }; } && |
| 3539 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3541 | (eval $ac_try) 2>&5 |
| 3542 | ac_status=$? |
| 3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3544 | (exit $ac_status); }; }; then |
| 3545 | ac_cv_prog_cc_g=yes |
| 3546 | else |
| 3547 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3549 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3550 | ac_cv_prog_cc_g=no |
| 3551 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3553 | fi |
| 3554 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3555 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3556 | if test "$ac_test_CFLAGS" = set; then |
| 3557 | CFLAGS=$ac_save_CFLAGS |
| 3558 | elif test $ac_cv_prog_cc_g = yes; then |
| 3559 | if test "$GCC" = yes; then |
| 3560 | CFLAGS="-g -O2" |
| 3561 | else |
| 3562 | CFLAGS="-g" |
| 3563 | fi |
| 3564 | else |
| 3565 | if test "$GCC" = yes; then |
| 3566 | CFLAGS="-O2" |
| 3567 | else |
| 3568 | CFLAGS= |
| 3569 | fi |
| 3570 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3571 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3572 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3573 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3575 | else |
| 3576 | ac_cv_prog_cc_stdc=no |
| 3577 | ac_save_CC=$CC |
| 3578 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3579 | /* confdefs.h. */ |
| 3580 | _ACEOF |
| 3581 | cat confdefs.h >>conftest.$ac_ext |
| 3582 | cat >>conftest.$ac_ext <<_ACEOF |
| 3583 | /* end confdefs.h. */ |
| 3584 | #include <stdarg.h> |
| 3585 | #include <stdio.h> |
| 3586 | #include <sys/types.h> |
| 3587 | #include <sys/stat.h> |
| 3588 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3589 | struct buf { int x; }; |
| 3590 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3591 | static char *e (p, i) |
| 3592 | char **p; |
| 3593 | int i; |
| 3594 | { |
| 3595 | return p[i]; |
| 3596 | } |
| 3597 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3598 | { |
| 3599 | char *s; |
| 3600 | va_list v; |
| 3601 | va_start (v,p); |
| 3602 | s = g (p, va_arg (v,int)); |
| 3603 | va_end (v); |
| 3604 | return s; |
| 3605 | } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3606 | |
| 3607 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3608 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3609 | These don't provoke an error unfortunately, instead are silently treated |
| 3610 | as 'x'. The following induces an error, until -std1 is added to get |
| 3611 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3612 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3613 | that's true only with -std1. */ |
| 3614 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3615 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3616 | int test (int i, double x); |
| 3617 | struct s1 {int (*f) (int a);}; |
| 3618 | struct s2 {int (*f) (double a);}; |
| 3619 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3620 | int argc; |
| 3621 | char **argv; |
| 3622 | int |
| 3623 | main () |
| 3624 | { |
| 3625 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3626 | ; |
| 3627 | return 0; |
| 3628 | } |
| 3629 | _ACEOF |
| 3630 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3631 | # breaks some systems' header files. |
| 3632 | # AIX -qlanglvl=ansi |
| 3633 | # Ultrix and OSF/1 -std1 |
| 3634 | # HP-UX 10.20 and later -Ae |
| 3635 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3636 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3637 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3638 | do |
| 3639 | CC="$ac_save_CC $ac_arg" |
| 3640 | rm -f conftest.$ac_objext |
| 3641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3642 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3643 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3645 | rm -f conftest.er1 |
| 3646 | cat conftest.err >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3648 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3649 | { ac_try='test -z "$ac_c_werror_flag" |
| 3650 | || test ! -s conftest.err' |
| 3651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3652 | (eval $ac_try) 2>&5 |
| 3653 | ac_status=$? |
| 3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3655 | (exit $ac_status); }; } && |
| 3656 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3658 | (eval $ac_try) 2>&5 |
| 3659 | ac_status=$? |
| 3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3661 | (exit $ac_status); }; }; then |
| 3662 | ac_cv_prog_cc_stdc=$ac_arg |
| 3663 | break |
| 3664 | else |
| 3665 | echo "$as_me: failed program was:" >&5 |
| 3666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3667 | |
| 3668 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3669 | rm -f conftest.err conftest.$ac_objext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3670 | done |
| 3671 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3672 | CC=$ac_save_CC |
| 3673 | |
| 3674 | fi |
| 3675 | |
| 3676 | case "x$ac_cv_prog_cc_stdc" in |
| 3677 | x|xno) |
| 3678 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3679 | echo "${ECHO_T}none needed" >&6 ;; |
| 3680 | *) |
| 3681 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3682 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3683 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3684 | esac |
| 3685 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3686 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3687 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3688 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3689 | # the declaration of exit, since it's the most demanding environment. |
| 3690 | cat >conftest.$ac_ext <<_ACEOF |
| 3691 | #ifndef __cplusplus |
| 3692 | choke me |
| 3693 | #endif |
| 3694 | _ACEOF |
| 3695 | rm -f conftest.$ac_objext |
| 3696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3697 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3698 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3700 | rm -f conftest.er1 |
| 3701 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3703 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3704 | { ac_try='test -z "$ac_c_werror_flag" |
| 3705 | || test ! -s conftest.err' |
| 3706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3707 | (eval $ac_try) 2>&5 |
| 3708 | ac_status=$? |
| 3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3710 | (exit $ac_status); }; } && |
| 3711 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3713 | (eval $ac_try) 2>&5 |
| 3714 | ac_status=$? |
| 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3716 | (exit $ac_status); }; }; then |
| 3717 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3718 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3719 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3720 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3721 | 'extern "C" void exit (int) throw ();' \ |
| 3722 | 'extern "C" void exit (int);' \ |
| 3723 | 'void exit (int);' |
| 3724 | do |
| 3725 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3726 | /* confdefs.h. */ |
| 3727 | _ACEOF |
| 3728 | cat confdefs.h >>conftest.$ac_ext |
| 3729 | cat >>conftest.$ac_ext <<_ACEOF |
| 3730 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3731 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3732 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3733 | int |
| 3734 | main () |
| 3735 | { |
| 3736 | exit (42); |
| 3737 | ; |
| 3738 | return 0; |
| 3739 | } |
| 3740 | _ACEOF |
| 3741 | rm -f conftest.$ac_objext |
| 3742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3743 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3744 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3746 | rm -f conftest.er1 |
| 3747 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3749 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3750 | { ac_try='test -z "$ac_c_werror_flag" |
| 3751 | || test ! -s conftest.err' |
| 3752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3753 | (eval $ac_try) 2>&5 |
| 3754 | ac_status=$? |
| 3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3756 | (exit $ac_status); }; } && |
| 3757 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3759 | (eval $ac_try) 2>&5 |
| 3760 | ac_status=$? |
| 3761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3762 | (exit $ac_status); }; }; then |
| 3763 | : |
| 3764 | else |
| 3765 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3767 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3768 | continue |
| 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 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3772 | /* confdefs.h. */ |
| 3773 | _ACEOF |
| 3774 | cat confdefs.h >>conftest.$ac_ext |
| 3775 | cat >>conftest.$ac_ext <<_ACEOF |
| 3776 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3777 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3778 | int |
| 3779 | main () |
| 3780 | { |
| 3781 | exit (42); |
| 3782 | ; |
| 3783 | return 0; |
| 3784 | } |
| 3785 | _ACEOF |
| 3786 | rm -f conftest.$ac_objext |
| 3787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3788 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3789 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3791 | rm -f conftest.er1 |
| 3792 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3794 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3795 | { ac_try='test -z "$ac_c_werror_flag" |
| 3796 | || test ! -s conftest.err' |
| 3797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3798 | (eval $ac_try) 2>&5 |
| 3799 | ac_status=$? |
| 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3801 | (exit $ac_status); }; } && |
| 3802 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3804 | (eval $ac_try) 2>&5 |
| 3805 | ac_status=$? |
| 3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3807 | (exit $ac_status); }; }; then |
| 3808 | break |
| 3809 | else |
| 3810 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3812 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3813 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3815 | done |
| 3816 | rm -f conftest* |
| 3817 | if test -n "$ac_declaration"; then |
| 3818 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3819 | echo $ac_declaration >>confdefs.h |
| 3820 | echo '#endif' >>confdefs.h |
| 3821 | fi |
| 3822 | |
| 3823 | else |
| 3824 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3826 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3827 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3829 | ac_ext=c |
| 3830 | ac_cpp='$CPP $CPPFLAGS' |
| 3831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3834 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3835 | ac_ext=cc |
| 3836 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3837 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3838 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3839 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3840 | if test -n "$ac_tool_prefix"; then |
| 3841 | for ac_prog in $CCC g++ |
| 3842 | do |
| 3843 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3844 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3847 | if test "${ac_cv_prog_CXX+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3849 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3850 | if test -n "$CXX"; then |
| 3851 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3852 | else |
| 3853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3854 | for as_dir in $PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3855 | do |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3856 | IFS=$as_save_IFS |
| 3857 | test -z "$as_dir" && as_dir=. |
| 3858 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3860 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3862 | break 2 |
| 3863 | fi |
| 3864 | done |
| 3865 | done |
| 3866 | |
| 3867 | fi |
| 3868 | fi |
| 3869 | CXX=$ac_cv_prog_CXX |
| 3870 | if test -n "$CXX"; then |
| 3871 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3872 | echo "${ECHO_T}$CXX" >&6 |
| 3873 | else |
| 3874 | echo "$as_me:$LINENO: result: no" >&5 |
| 3875 | echo "${ECHO_T}no" >&6 |
| 3876 | fi |
| 3877 | |
| 3878 | test -n "$CXX" && break |
| 3879 | done |
| 3880 | fi |
| 3881 | if test -z "$CXX"; then |
| 3882 | ac_ct_CXX=$CXX |
| 3883 | for ac_prog in $CCC g++ |
| 3884 | do |
| 3885 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3886 | set dummy $ac_prog; ac_word=$2 |
| 3887 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3889 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3891 | else |
| 3892 | if test -n "$ac_ct_CXX"; then |
| 3893 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3894 | else |
| 3895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3896 | for as_dir in $PATH |
| 3897 | do |
| 3898 | IFS=$as_save_IFS |
| 3899 | test -z "$as_dir" && as_dir=. |
| 3900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3901 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3902 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3904 | break 2 |
| 3905 | fi |
| 3906 | done |
| 3907 | done |
| 3908 | |
| 3909 | fi |
| 3910 | fi |
| 3911 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3912 | if test -n "$ac_ct_CXX"; then |
| 3913 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3914 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3915 | else |
| 3916 | echo "$as_me:$LINENO: result: no" >&5 |
| 3917 | echo "${ECHO_T}no" >&6 |
| 3918 | fi |
| 3919 | |
| 3920 | test -n "$ac_ct_CXX" && break |
| 3921 | done |
| 3922 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3923 | |
| 3924 | CXX=$ac_ct_CXX |
| 3925 | fi |
| 3926 | |
| 3927 | |
| 3928 | # Provide some information about the compiler. |
| 3929 | echo "$as_me:$LINENO:" \ |
| 3930 | "checking for C++ compiler version" >&5 |
| 3931 | ac_compiler=`set X $ac_compile; echo $2` |
| 3932 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3933 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3934 | ac_status=$? |
| 3935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3936 | (exit $ac_status); } |
| 3937 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3938 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3939 | ac_status=$? |
| 3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3941 | (exit $ac_status); } |
| 3942 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3943 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3944 | ac_status=$? |
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); } |
| 3947 | |
| 3948 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3949 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3950 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3952 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3953 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3954 | /* confdefs.h. */ |
| 3955 | _ACEOF |
| 3956 | cat confdefs.h >>conftest.$ac_ext |
| 3957 | cat >>conftest.$ac_ext <<_ACEOF |
| 3958 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3959 | |
| 3960 | int |
| 3961 | main () |
| 3962 | { |
| 3963 | #ifndef __GNUC__ |
| 3964 | choke me |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3965 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3966 | |
| 3967 | ; |
| 3968 | return 0; |
| 3969 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3970 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3971 | rm -f conftest.$ac_objext |
| 3972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3973 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3975 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3976 | rm -f conftest.er1 |
| 3977 | cat conftest.err >&5 |
| 3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3979 | (exit $ac_status); } && |
| 3980 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3981 | || test ! -s conftest.err' |
| 3982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3983 | (eval $ac_try) 2>&5 |
| 3984 | ac_status=$? |
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3986 | (exit $ac_status); }; } && |
| 3987 | { ac_try='test -s conftest.$ac_objext' |
| 3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3989 | (eval $ac_try) 2>&5 |
| 3990 | ac_status=$? |
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3992 | (exit $ac_status); }; }; then |
| 3993 | ac_compiler_gnu=yes |
| 3994 | else |
| 3995 | echo "$as_me: failed program was:" >&5 |
| 3996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3997 | |
| 3998 | ac_compiler_gnu=no |
| 3999 | fi |
| 4000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4001 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4002 | |
| 4003 | fi |
| 4004 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4005 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4006 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4007 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4008 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4009 | CXXFLAGS="-g" |
| 4010 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4011 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4012 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4014 | else |
| 4015 | cat >conftest.$ac_ext <<_ACEOF |
| 4016 | /* confdefs.h. */ |
| 4017 | _ACEOF |
| 4018 | cat confdefs.h >>conftest.$ac_ext |
| 4019 | cat >>conftest.$ac_ext <<_ACEOF |
| 4020 | /* end confdefs.h. */ |
| 4021 | |
| 4022 | int |
| 4023 | main () |
| 4024 | { |
| 4025 | |
| 4026 | ; |
| 4027 | return 0; |
| 4028 | } |
| 4029 | _ACEOF |
| 4030 | rm -f conftest.$ac_objext |
| 4031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4032 | (eval $ac_compile) 2>conftest.er1 |
| 4033 | ac_status=$? |
| 4034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4035 | rm -f conftest.er1 |
| 4036 | cat conftest.err >&5 |
| 4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4038 | (exit $ac_status); } && |
| 4039 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4040 | || test ! -s conftest.err' |
| 4041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4042 | (eval $ac_try) 2>&5 |
| 4043 | ac_status=$? |
| 4044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4045 | (exit $ac_status); }; } && |
| 4046 | { ac_try='test -s conftest.$ac_objext' |
| 4047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4048 | (eval $ac_try) 2>&5 |
| 4049 | ac_status=$? |
| 4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4051 | (exit $ac_status); }; }; then |
| 4052 | ac_cv_prog_cxx_g=yes |
| 4053 | else |
| 4054 | echo "$as_me: failed program was:" >&5 |
| 4055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4056 | |
| 4057 | ac_cv_prog_cxx_g=no |
| 4058 | fi |
| 4059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4060 | fi |
| 4061 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4062 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4063 | if test "$ac_test_CXXFLAGS" = set; then |
| 4064 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4065 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4066 | if test "$GXX" = yes; then |
| 4067 | CXXFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4068 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4069 | CXXFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4070 | fi |
| 4071 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4072 | if test "$GXX" = yes; then |
| 4073 | CXXFLAGS="-O2" |
| 4074 | else |
| 4075 | CXXFLAGS= |
| 4076 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4077 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4078 | for ac_declaration in \ |
| 4079 | '' \ |
| 4080 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4081 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4082 | 'extern "C" void exit (int) throw ();' \ |
| 4083 | 'extern "C" void exit (int);' \ |
| 4084 | 'void exit (int);' |
| 4085 | do |
| 4086 | cat >conftest.$ac_ext <<_ACEOF |
| 4087 | /* confdefs.h. */ |
| 4088 | _ACEOF |
| 4089 | cat confdefs.h >>conftest.$ac_ext |
| 4090 | cat >>conftest.$ac_ext <<_ACEOF |
| 4091 | /* end confdefs.h. */ |
| 4092 | $ac_declaration |
| 4093 | #include <stdlib.h> |
| 4094 | int |
| 4095 | main () |
| 4096 | { |
| 4097 | exit (42); |
| 4098 | ; |
| 4099 | return 0; |
| 4100 | } |
| 4101 | _ACEOF |
| 4102 | rm -f conftest.$ac_objext |
| 4103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4104 | (eval $ac_compile) 2>conftest.er1 |
| 4105 | ac_status=$? |
| 4106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4107 | rm -f conftest.er1 |
| 4108 | cat conftest.err >&5 |
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4110 | (exit $ac_status); } && |
| 4111 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4112 | || test ! -s conftest.err' |
| 4113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4114 | (eval $ac_try) 2>&5 |
| 4115 | ac_status=$? |
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4117 | (exit $ac_status); }; } && |
| 4118 | { ac_try='test -s conftest.$ac_objext' |
| 4119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4120 | (eval $ac_try) 2>&5 |
| 4121 | ac_status=$? |
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4123 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4124 | : |
| 4125 | else |
| 4126 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4128 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4129 | continue |
| 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 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4133 | /* confdefs.h. */ |
| 4134 | _ACEOF |
| 4135 | cat confdefs.h >>conftest.$ac_ext |
| 4136 | cat >>conftest.$ac_ext <<_ACEOF |
| 4137 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4138 | $ac_declaration |
| 4139 | int |
| 4140 | main () |
| 4141 | { |
| 4142 | exit (42); |
| 4143 | ; |
| 4144 | return 0; |
| 4145 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4146 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4147 | rm -f conftest.$ac_objext |
| 4148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4149 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4150 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4151 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4152 | rm -f conftest.er1 |
| 4153 | cat conftest.err >&5 |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4155 | (exit $ac_status); } && |
| 4156 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4157 | || test ! -s conftest.err' |
| 4158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4159 | (eval $ac_try) 2>&5 |
| 4160 | ac_status=$? |
| 4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4162 | (exit $ac_status); }; } && |
| 4163 | { ac_try='test -s conftest.$ac_objext' |
| 4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4165 | (eval $ac_try) 2>&5 |
| 4166 | ac_status=$? |
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4168 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4169 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4170 | else |
| 4171 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4173 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4174 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4176 | done |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4177 | rm -f conftest* |
| 4178 | if test -n "$ac_declaration"; then |
| 4179 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4180 | echo $ac_declaration >>confdefs.h |
| 4181 | echo '#endif' >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4182 | fi |
| 4183 | |
| 4184 | ac_ext=c |
| 4185 | ac_cpp='$CPP $CPPFLAGS' |
| 4186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4189 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4190 | echo "$as_me:$LINENO: checking " >&5 |
| 4191 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 4192 | if test "${ac_cv_has_flex+set}" = set; then |
| 4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4194 | else |
| 4195 | for ac_prog in flex lex |
| 4196 | do |
| 4197 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4198 | set dummy $ac_prog; ac_word=$2 |
| 4199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4201 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4203 | else |
| 4204 | if test -n "$LEX"; then |
| 4205 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4206 | else |
| 4207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4208 | for as_dir in $PATH |
| 4209 | do |
| 4210 | IFS=$as_save_IFS |
| 4211 | test -z "$as_dir" && as_dir=. |
| 4212 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4214 | ac_cv_prog_LEX="$ac_prog" |
| 4215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4216 | break 2 |
| 4217 | fi |
| 4218 | done |
| 4219 | done |
| 4220 | |
| 4221 | fi |
| 4222 | fi |
| 4223 | LEX=$ac_cv_prog_LEX |
| 4224 | if test -n "$LEX"; then |
| 4225 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4226 | echo "${ECHO_T}$LEX" >&6 |
| 4227 | else |
| 4228 | echo "$as_me:$LINENO: result: no" >&5 |
| 4229 | echo "${ECHO_T}no" >&6 |
| 4230 | fi |
| 4231 | |
| 4232 | test -n "$LEX" && break |
| 4233 | done |
| 4234 | test -n "$LEX" || LEX=":" |
| 4235 | |
| 4236 | if test -z "$LEXLIB" |
| 4237 | then |
| 4238 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 4239 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4240 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4242 | else |
| 4243 | ac_check_lib_save_LIBS=$LIBS |
| 4244 | LIBS="-lfl $LIBS" |
| 4245 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4246 | /* confdefs.h. */ |
| 4247 | _ACEOF |
| 4248 | cat confdefs.h >>conftest.$ac_ext |
| 4249 | cat >>conftest.$ac_ext <<_ACEOF |
| 4250 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4251 | |
| 4252 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4253 | #ifdef __cplusplus |
| 4254 | extern "C" |
| 4255 | #endif |
| 4256 | /* We use char because int might match the return type of a gcc2 |
| 4257 | builtin and then its argument prototype would still apply. */ |
| 4258 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4259 | int |
| 4260 | main () |
| 4261 | { |
| 4262 | yywrap (); |
| 4263 | ; |
| 4264 | return 0; |
| 4265 | } |
| 4266 | _ACEOF |
| 4267 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4269 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4270 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4272 | rm -f conftest.er1 |
| 4273 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4275 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4276 | { ac_try='test -z "$ac_c_werror_flag" |
| 4277 | || test ! -s conftest.err' |
| 4278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4279 | (eval $ac_try) 2>&5 |
| 4280 | ac_status=$? |
| 4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4282 | (exit $ac_status); }; } && |
| 4283 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4285 | (eval $ac_try) 2>&5 |
| 4286 | ac_status=$? |
| 4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4288 | (exit $ac_status); }; }; then |
| 4289 | ac_cv_lib_fl_yywrap=yes |
| 4290 | else |
| 4291 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4293 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4294 | ac_cv_lib_fl_yywrap=no |
| 4295 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4296 | rm -f conftest.err conftest.$ac_objext \ |
| 4297 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4298 | LIBS=$ac_check_lib_save_LIBS |
| 4299 | fi |
| 4300 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 4301 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4302 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4303 | LEXLIB="-lfl" |
| 4304 | else |
| 4305 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 4306 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4307 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4309 | else |
| 4310 | ac_check_lib_save_LIBS=$LIBS |
| 4311 | LIBS="-ll $LIBS" |
| 4312 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4313 | /* confdefs.h. */ |
| 4314 | _ACEOF |
| 4315 | cat confdefs.h >>conftest.$ac_ext |
| 4316 | cat >>conftest.$ac_ext <<_ACEOF |
| 4317 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4318 | |
| 4319 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4320 | #ifdef __cplusplus |
| 4321 | extern "C" |
| 4322 | #endif |
| 4323 | /* We use char because int might match the return type of a gcc2 |
| 4324 | builtin and then its argument prototype would still apply. */ |
| 4325 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4326 | int |
| 4327 | main () |
| 4328 | { |
| 4329 | yywrap (); |
| 4330 | ; |
| 4331 | return 0; |
| 4332 | } |
| 4333 | _ACEOF |
| 4334 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4336 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4337 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4339 | rm -f conftest.er1 |
| 4340 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4342 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4343 | { ac_try='test -z "$ac_c_werror_flag" |
| 4344 | || test ! -s conftest.err' |
| 4345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4346 | (eval $ac_try) 2>&5 |
| 4347 | ac_status=$? |
| 4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4349 | (exit $ac_status); }; } && |
| 4350 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4352 | (eval $ac_try) 2>&5 |
| 4353 | ac_status=$? |
| 4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4355 | (exit $ac_status); }; }; then |
| 4356 | ac_cv_lib_l_yywrap=yes |
| 4357 | else |
| 4358 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4361 | ac_cv_lib_l_yywrap=no |
| 4362 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4363 | rm -f conftest.err conftest.$ac_objext \ |
| 4364 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4365 | LIBS=$ac_check_lib_save_LIBS |
| 4366 | fi |
| 4367 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 4368 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4369 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4370 | LEXLIB="-ll" |
| 4371 | fi |
| 4372 | |
| 4373 | fi |
| 4374 | |
| 4375 | fi |
| 4376 | |
| 4377 | if test "x$LEX" != "x:"; then |
| 4378 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 4379 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4380 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4382 | else |
| 4383 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4384 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 4385 | cat >conftest.l <<_ACEOF |
| 4386 | %% |
| 4387 | %% |
| 4388 | _ACEOF |
| 4389 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4390 | (eval $LEX conftest.l) 2>&5 |
| 4391 | ac_status=$? |
| 4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4393 | (exit $ac_status); } |
| 4394 | if test -f lex.yy.c; then |
| 4395 | ac_cv_prog_lex_root=lex.yy |
| 4396 | elif test -f lexyy.c; then |
| 4397 | ac_cv_prog_lex_root=lexyy |
| 4398 | else |
| 4399 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 4400 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4401 | { (exit 1); exit 1; }; } |
| 4402 | fi |
| 4403 | fi |
| 4404 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 4405 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 4406 | rm -f conftest.l |
| 4407 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4408 | |
| 4409 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 4410 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4411 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4413 | else |
| 4414 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4415 | # default is implementation-dependent. Figure out which it is, since |
| 4416 | # not all implementations provide the %pointer and %array declarations. |
| 4417 | ac_cv_prog_lex_yytext_pointer=no |
| 4418 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4419 | ac_save_LIBS=$LIBS |
| 4420 | LIBS="$LIBS $LEXLIB" |
| 4421 | cat >conftest.$ac_ext <<_ACEOF |
| 4422 | `cat $LEX_OUTPUT_ROOT.c` |
| 4423 | _ACEOF |
| 4424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4426 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4427 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4429 | rm -f conftest.er1 |
| 4430 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4432 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4433 | { ac_try='test -z "$ac_c_werror_flag" |
| 4434 | || test ! -s conftest.err' |
| 4435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4436 | (eval $ac_try) 2>&5 |
| 4437 | ac_status=$? |
| 4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4439 | (exit $ac_status); }; } && |
| 4440 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4442 | (eval $ac_try) 2>&5 |
| 4443 | ac_status=$? |
| 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4445 | (exit $ac_status); }; }; then |
| 4446 | ac_cv_prog_lex_yytext_pointer=yes |
| 4447 | else |
| 4448 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4450 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4451 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4452 | rm -f conftest.err conftest.$ac_objext \ |
| 4453 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4454 | LIBS=$ac_save_LIBS |
| 4455 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4456 | |
| 4457 | fi |
| 4458 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 4459 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4460 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4461 | |
| 4462 | cat >>confdefs.h <<\_ACEOF |
| 4463 | #define YYTEXT_POINTER 1 |
| 4464 | _ACEOF |
| 4465 | |
| 4466 | fi |
| 4467 | |
| 4468 | fi |
| 4469 | |
| 4470 | fi |
| 4471 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 4472 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 4473 | if test "$LEX" != "flex"; then |
| 4474 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 4475 | echo "$as_me: error: flex not found but required" >&2;} |
| 4476 | { (exit 1); exit 1; }; } |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4477 | else |
| 4478 | FLEX=flex |
| 4479 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4480 | fi |
| 4481 | |
| 4482 | echo "$as_me:$LINENO: checking " >&5 |
| 4483 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4484 | if test "${llvm_cv_has_bison+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4486 | else |
| 4487 | for ac_prog in 'bison -y' byacc |
| 4488 | do |
| 4489 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4490 | set dummy $ac_prog; ac_word=$2 |
| 4491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4493 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4495 | else |
| 4496 | if test -n "$YACC"; then |
| 4497 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4498 | else |
| 4499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4500 | for as_dir in $PATH |
| 4501 | do |
| 4502 | IFS=$as_save_IFS |
| 4503 | test -z "$as_dir" && as_dir=. |
| 4504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4506 | ac_cv_prog_YACC="$ac_prog" |
| 4507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4508 | break 2 |
| 4509 | fi |
| 4510 | done |
| 4511 | done |
| 4512 | |
| 4513 | fi |
| 4514 | fi |
| 4515 | YACC=$ac_cv_prog_YACC |
| 4516 | if test -n "$YACC"; then |
| 4517 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4518 | echo "${ECHO_T}$YACC" >&6 |
| 4519 | else |
| 4520 | echo "$as_me:$LINENO: result: no" >&5 |
| 4521 | echo "${ECHO_T}no" >&6 |
| 4522 | fi |
| 4523 | |
| 4524 | test -n "$YACC" && break |
| 4525 | done |
| 4526 | test -n "$YACC" || YACC="yacc" |
| 4527 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4528 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4529 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 4530 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4531 | if test "$YACC" != "bison -y"; then |
| 4532 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 4533 | echo "$as_me: error: bison not found but required" >&2;} |
| 4534 | { (exit 1); exit 1; }; } |
| 4535 | else |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4536 | BISON=bison |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4537 | |
| 4538 | fi |
| 4539 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4540 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 4541 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 4542 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4544 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4545 | llvm_cv_gnu_make_command='' |
| 4546 | for a in "$MAKE" make gmake gnumake ; do |
| 4547 | if test -z "$a" ; then continue ; fi ; |
| 4548 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 4549 | then |
| 4550 | llvm_cv_gnu_make_command=$a ; |
| 4551 | break; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4552 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4553 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4554 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4555 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 4556 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 |
| 4557 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 4558 | ifGNUmake='' ; |
| 4559 | else |
| 4560 | ifGNUmake='#' ; |
| 4561 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 4562 | echo "${ECHO_T}\"Not found\"" >&6; |
| 4563 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4564 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4565 | |
| 4566 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4567 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4568 | LN_S=$as_ln_s |
| 4569 | if test "$LN_S" = "ln -s"; then |
| 4570 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4571 | echo "${ECHO_T}yes" >&6 |
| 4572 | else |
| 4573 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4574 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4575 | fi |
| 4576 | |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 4577 | # Extract the first word of "cmp", so it can be a program name with args. |
| 4578 | set dummy cmp; ac_word=$2 |
| 4579 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4581 | if test "${ac_cv_path_CMP+set}" = set; then |
| 4582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4583 | else |
| 4584 | case $CMP in |
| 4585 | [\\/]* | ?:[\\/]*) |
| 4586 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 4587 | ;; |
| 4588 | *) |
| 4589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4590 | for as_dir in $PATH |
| 4591 | do |
| 4592 | IFS=$as_save_IFS |
| 4593 | test -z "$as_dir" && as_dir=. |
| 4594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4596 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 4597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4598 | break 2 |
| 4599 | fi |
| 4600 | done |
| 4601 | done |
| 4602 | |
| 4603 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 4604 | ;; |
| 4605 | esac |
| 4606 | fi |
| 4607 | CMP=$ac_cv_path_CMP |
| 4608 | |
| 4609 | if test -n "$CMP"; then |
| 4610 | echo "$as_me:$LINENO: result: $CMP" >&5 |
| 4611 | echo "${ECHO_T}$CMP" >&6 |
| 4612 | else |
| 4613 | echo "$as_me:$LINENO: result: no" >&5 |
| 4614 | echo "${ECHO_T}no" >&6 |
| 4615 | fi |
| 4616 | |
| 4617 | # Extract the first word of "cp", so it can be a program name with args. |
| 4618 | set dummy cp; ac_word=$2 |
| 4619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4621 | if test "${ac_cv_path_CP+set}" = set; then |
| 4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4623 | else |
| 4624 | case $CP in |
| 4625 | [\\/]* | ?:[\\/]*) |
| 4626 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4627 | ;; |
| 4628 | *) |
| 4629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4630 | for as_dir in $PATH |
| 4631 | do |
| 4632 | IFS=$as_save_IFS |
| 4633 | test -z "$as_dir" && as_dir=. |
| 4634 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4636 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 4637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4638 | break 2 |
| 4639 | fi |
| 4640 | done |
| 4641 | done |
| 4642 | |
| 4643 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4644 | ;; |
| 4645 | esac |
| 4646 | fi |
| 4647 | CP=$ac_cv_path_CP |
| 4648 | |
| 4649 | if test -n "$CP"; then |
| 4650 | echo "$as_me:$LINENO: result: $CP" >&5 |
| 4651 | echo "${ECHO_T}$CP" >&6 |
| 4652 | else |
| 4653 | echo "$as_me:$LINENO: result: no" >&5 |
| 4654 | echo "${ECHO_T}no" >&6 |
| 4655 | fi |
| 4656 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4657 | # Extract the first word of "date", so it can be a program name with args. |
| 4658 | set dummy date; ac_word=$2 |
| 4659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4661 | if test "${ac_cv_path_DATE+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4663 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4664 | case $DATE in |
| 4665 | [\\/]* | ?:[\\/]*) |
| 4666 | 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] | 4667 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4668 | *) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4670 | for as_dir in $PATH |
| 4671 | do |
| 4672 | IFS=$as_save_IFS |
| 4673 | test -z "$as_dir" && as_dir=. |
| 4674 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4675 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4676 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 4677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4678 | break 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4679 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4680 | done |
| 4681 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4682 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4683 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4684 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4685 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4686 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4687 | DATE=$ac_cv_path_DATE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4688 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4689 | if test -n "$DATE"; then |
| 4690 | echo "$as_me:$LINENO: result: $DATE" >&5 |
| 4691 | echo "${ECHO_T}$DATE" >&6 |
| 4692 | else |
| 4693 | echo "$as_me:$LINENO: result: no" >&5 |
| 4694 | echo "${ECHO_T}no" >&6 |
| 4695 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4696 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4697 | # Extract the first word of "find", so it can be a program name with args. |
| 4698 | set dummy find; ac_word=$2 |
| 4699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4701 | if test "${ac_cv_path_FIND+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4703 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4704 | case $FIND in |
| 4705 | [\\/]* | ?:[\\/]*) |
| 4706 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 4707 | ;; |
| 4708 | *) |
| 4709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4710 | for as_dir in $PATH |
| 4711 | do |
| 4712 | IFS=$as_save_IFS |
| 4713 | test -z "$as_dir" && as_dir=. |
| 4714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4716 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 4717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4718 | break 2 |
| 4719 | fi |
| 4720 | done |
| 4721 | done |
| 4722 | |
| 4723 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 4724 | ;; |
| 4725 | esac |
| 4726 | fi |
| 4727 | FIND=$ac_cv_path_FIND |
| 4728 | |
| 4729 | if test -n "$FIND"; then |
| 4730 | echo "$as_me:$LINENO: result: $FIND" >&5 |
| 4731 | echo "${ECHO_T}$FIND" >&6 |
| 4732 | else |
| 4733 | echo "$as_me:$LINENO: result: no" >&5 |
| 4734 | echo "${ECHO_T}no" >&6 |
| 4735 | fi |
| 4736 | |
| 4737 | # Extract the first word of "grep", so it can be a program name with args. |
| 4738 | set dummy grep; ac_word=$2 |
| 4739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4741 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4743 | else |
| 4744 | case $GREP in |
| 4745 | [\\/]* | ?:[\\/]*) |
| 4746 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 4747 | ;; |
| 4748 | *) |
| 4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4750 | for as_dir in $PATH |
| 4751 | do |
| 4752 | IFS=$as_save_IFS |
| 4753 | test -z "$as_dir" && as_dir=. |
| 4754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4756 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 4757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4758 | break 2 |
| 4759 | fi |
| 4760 | done |
| 4761 | done |
| 4762 | |
| 4763 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 4764 | ;; |
| 4765 | esac |
| 4766 | fi |
| 4767 | GREP=$ac_cv_path_GREP |
| 4768 | |
| 4769 | if test -n "$GREP"; then |
| 4770 | echo "$as_me:$LINENO: result: $GREP" >&5 |
| 4771 | echo "${ECHO_T}$GREP" >&6 |
| 4772 | else |
| 4773 | echo "$as_me:$LINENO: result: no" >&5 |
| 4774 | echo "${ECHO_T}no" >&6 |
| 4775 | fi |
| 4776 | |
| 4777 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 4778 | set dummy mkdir; ac_word=$2 |
| 4779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4781 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4783 | else |
| 4784 | case $MKDIR in |
| 4785 | [\\/]* | ?:[\\/]*) |
| 4786 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 4787 | ;; |
| 4788 | *) |
| 4789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4790 | for as_dir in $PATH |
| 4791 | do |
| 4792 | IFS=$as_save_IFS |
| 4793 | test -z "$as_dir" && as_dir=. |
| 4794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4796 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 4797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4798 | break 2 |
| 4799 | fi |
| 4800 | done |
| 4801 | done |
| 4802 | |
| 4803 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 4804 | ;; |
| 4805 | esac |
| 4806 | fi |
| 4807 | MKDIR=$ac_cv_path_MKDIR |
| 4808 | |
| 4809 | if test -n "$MKDIR"; then |
| 4810 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 4811 | echo "${ECHO_T}$MKDIR" >&6 |
| 4812 | else |
| 4813 | echo "$as_me:$LINENO: result: no" >&5 |
| 4814 | echo "${ECHO_T}no" >&6 |
| 4815 | fi |
| 4816 | |
| 4817 | # Extract the first word of "mv", so it can be a program name with args. |
| 4818 | set dummy mv; ac_word=$2 |
| 4819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4821 | if test "${ac_cv_path_MV+set}" = set; then |
| 4822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4823 | else |
| 4824 | case $MV in |
| 4825 | [\\/]* | ?:[\\/]*) |
| 4826 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4827 | ;; |
| 4828 | *) |
| 4829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4830 | for as_dir in $PATH |
| 4831 | do |
| 4832 | IFS=$as_save_IFS |
| 4833 | test -z "$as_dir" && as_dir=. |
| 4834 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4836 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 4837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4838 | break 2 |
| 4839 | fi |
| 4840 | done |
| 4841 | done |
| 4842 | |
| 4843 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4844 | ;; |
| 4845 | esac |
| 4846 | fi |
| 4847 | MV=$ac_cv_path_MV |
| 4848 | |
| 4849 | if test -n "$MV"; then |
| 4850 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 4851 | echo "${ECHO_T}$MV" >&6 |
| 4852 | else |
| 4853 | echo "$as_me:$LINENO: result: no" >&5 |
| 4854 | echo "${ECHO_T}no" >&6 |
| 4855 | fi |
| 4856 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4857 | if test -n "$ac_tool_prefix"; then |
| 4858 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4859 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4860 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4862 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4864 | else |
| 4865 | if test -n "$RANLIB"; then |
| 4866 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4867 | else |
| 4868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4869 | for as_dir in $PATH |
| 4870 | do |
| 4871 | IFS=$as_save_IFS |
| 4872 | test -z "$as_dir" && as_dir=. |
| 4873 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4874 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4875 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4877 | break 2 |
| 4878 | fi |
| 4879 | done |
| 4880 | done |
| 4881 | |
| 4882 | fi |
| 4883 | fi |
| 4884 | RANLIB=$ac_cv_prog_RANLIB |
| 4885 | if test -n "$RANLIB"; then |
| 4886 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4887 | echo "${ECHO_T}$RANLIB" >&6 |
| 4888 | else |
| 4889 | echo "$as_me:$LINENO: result: no" >&5 |
| 4890 | echo "${ECHO_T}no" >&6 |
| 4891 | fi |
| 4892 | |
| 4893 | fi |
| 4894 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4895 | ac_ct_RANLIB=$RANLIB |
| 4896 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4897 | set dummy ranlib; ac_word=$2 |
| 4898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4900 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4902 | else |
| 4903 | if test -n "$ac_ct_RANLIB"; then |
| 4904 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4905 | else |
| 4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4907 | for as_dir in $PATH |
| 4908 | do |
| 4909 | IFS=$as_save_IFS |
| 4910 | test -z "$as_dir" && as_dir=. |
| 4911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4913 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4915 | break 2 |
| 4916 | fi |
| 4917 | done |
| 4918 | done |
| 4919 | |
| 4920 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4921 | fi |
| 4922 | fi |
| 4923 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4924 | if test -n "$ac_ct_RANLIB"; then |
| 4925 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4926 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4927 | else |
| 4928 | echo "$as_me:$LINENO: result: no" >&5 |
| 4929 | echo "${ECHO_T}no" >&6 |
| 4930 | fi |
| 4931 | |
| 4932 | RANLIB=$ac_ct_RANLIB |
| 4933 | else |
| 4934 | RANLIB="$ac_cv_prog_RANLIB" |
| 4935 | fi |
| 4936 | |
| 4937 | # Extract the first word of "rm", so it can be a program name with args. |
| 4938 | set dummy rm; ac_word=$2 |
| 4939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4941 | if test "${ac_cv_path_RM+set}" = set; then |
| 4942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4943 | else |
| 4944 | case $RM in |
| 4945 | [\\/]* | ?:[\\/]*) |
| 4946 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4947 | ;; |
| 4948 | *) |
| 4949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4950 | for as_dir in $PATH |
| 4951 | do |
| 4952 | IFS=$as_save_IFS |
| 4953 | test -z "$as_dir" && as_dir=. |
| 4954 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4956 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 4957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4958 | break 2 |
| 4959 | fi |
| 4960 | done |
| 4961 | done |
| 4962 | |
| 4963 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4964 | ;; |
| 4965 | esac |
| 4966 | fi |
| 4967 | RM=$ac_cv_path_RM |
| 4968 | |
| 4969 | if test -n "$RM"; then |
| 4970 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 4971 | echo "${ECHO_T}$RM" >&6 |
| 4972 | else |
| 4973 | echo "$as_me:$LINENO: result: no" >&5 |
| 4974 | echo "${ECHO_T}no" >&6 |
| 4975 | fi |
| 4976 | |
| 4977 | # Extract the first word of "sed", so it can be a program name with args. |
| 4978 | set dummy sed; ac_word=$2 |
| 4979 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4981 | if test "${ac_cv_path_SED+set}" = set; then |
| 4982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4983 | else |
| 4984 | case $SED in |
| 4985 | [\\/]* | ?:[\\/]*) |
| 4986 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4987 | ;; |
| 4988 | *) |
| 4989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4990 | for as_dir in $PATH |
| 4991 | do |
| 4992 | IFS=$as_save_IFS |
| 4993 | test -z "$as_dir" && as_dir=. |
| 4994 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4996 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 4997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4998 | break 2 |
| 4999 | fi |
| 5000 | done |
| 5001 | done |
| 5002 | |
| 5003 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 5004 | ;; |
| 5005 | esac |
| 5006 | fi |
| 5007 | SED=$ac_cv_path_SED |
| 5008 | |
| 5009 | if test -n "$SED"; then |
| 5010 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 5011 | echo "${ECHO_T}$SED" >&6 |
| 5012 | else |
| 5013 | echo "$as_me:$LINENO: result: no" >&5 |
| 5014 | echo "${ECHO_T}no" >&6 |
| 5015 | fi |
| 5016 | |
| 5017 | # Extract the first word of "tar", so it can be a program name with args. |
| 5018 | set dummy tar; ac_word=$2 |
| 5019 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5021 | if test "${ac_cv_path_TAR+set}" = set; then |
| 5022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5023 | else |
| 5024 | case $TAR in |
| 5025 | [\\/]* | ?:[\\/]*) |
| 5026 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 5027 | ;; |
| 5028 | *) |
| 5029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5030 | for as_dir in $PATH |
| 5031 | do |
| 5032 | IFS=$as_save_IFS |
| 5033 | test -z "$as_dir" && as_dir=. |
| 5034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5035 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5036 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 5037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5038 | break 2 |
| 5039 | fi |
| 5040 | done |
| 5041 | done |
| 5042 | |
| 5043 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 5044 | ;; |
| 5045 | esac |
| 5046 | fi |
| 5047 | TAR=$ac_cv_path_TAR |
| 5048 | |
| 5049 | if test -n "$TAR"; then |
| 5050 | echo "$as_me:$LINENO: result: $TAR" >&5 |
| 5051 | echo "${ECHO_T}$TAR" >&6 |
| 5052 | else |
| 5053 | echo "$as_me:$LINENO: result: no" >&5 |
| 5054 | echo "${ECHO_T}no" >&6 |
| 5055 | fi |
| 5056 | |
| 5057 | |
| 5058 | # Find a good install program. We prefer a C program (faster), |
| 5059 | # so one script is as good as another. But avoid the broken or |
| 5060 | # incompatible versions: |
| 5061 | # SysV /etc/install, /usr/sbin/install |
| 5062 | # SunOS /usr/etc/install |
| 5063 | # IRIX /sbin/install |
| 5064 | # AIX /bin/install |
| 5065 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5066 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5067 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5068 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5069 | # OS/2's system install, which has a completely different semantic |
| 5070 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5071 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5072 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5073 | if test -z "$INSTALL"; then |
| 5074 | if test "${ac_cv_path_install+set}" = set; then |
| 5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5076 | else |
| 5077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5078 | for as_dir in $PATH |
| 5079 | do |
| 5080 | IFS=$as_save_IFS |
| 5081 | test -z "$as_dir" && as_dir=. |
| 5082 | # Account for people who put trailing slashes in PATH elements. |
| 5083 | case $as_dir/ in |
| 5084 | ./ | .// | /cC/* | \ |
| 5085 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5086 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5087 | /usr/ucb/* ) ;; |
| 5088 | *) |
| 5089 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5090 | # Don't use installbsd from OSF since it installs stuff as root |
| 5091 | # by default. |
| 5092 | for ac_prog in ginstall scoinst install; do |
| 5093 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5094 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5095 | if test $ac_prog = install && |
| 5096 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5097 | # AIX install. It has an incompatible calling convention. |
| 5098 | : |
| 5099 | elif test $ac_prog = install && |
| 5100 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5101 | # program-specific install script used by HP pwplus--don't use. |
| 5102 | : |
| 5103 | else |
| 5104 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5105 | break 3 |
| 5106 | fi |
| 5107 | fi |
| 5108 | done |
| 5109 | done |
| 5110 | ;; |
| 5111 | esac |
| 5112 | done |
| 5113 | |
| 5114 | |
| 5115 | fi |
| 5116 | if test "${ac_cv_path_install+set}" = set; then |
| 5117 | INSTALL=$ac_cv_path_install |
| 5118 | else |
| 5119 | # As a last resort, use the slow shell script. We don't cache a |
| 5120 | # path for INSTALL within a source directory, because that will |
| 5121 | # break other packages using the cache if that directory is |
| 5122 | # removed, or if the path is relative. |
| 5123 | INSTALL=$ac_install_sh |
| 5124 | fi |
| 5125 | fi |
| 5126 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5127 | echo "${ECHO_T}$INSTALL" >&6 |
| 5128 | |
| 5129 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5130 | # It thinks the first close brace ends the variable substitution. |
| 5131 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5132 | |
| 5133 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5134 | |
| 5135 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5136 | |
| 5137 | |
| 5138 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 5139 | set dummy bzip2; ac_word=$2 |
| 5140 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5142 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 5143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5144 | else |
| 5145 | case $BZIP2 in |
| 5146 | [\\/]* | ?:[\\/]*) |
| 5147 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 5148 | ;; |
| 5149 | *) |
| 5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5151 | for as_dir in $PATH |
| 5152 | do |
| 5153 | IFS=$as_save_IFS |
| 5154 | test -z "$as_dir" && as_dir=. |
| 5155 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5157 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 5158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5159 | break 2 |
| 5160 | fi |
| 5161 | done |
| 5162 | done |
| 5163 | |
| 5164 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2" |
| 5165 | ;; |
| 5166 | esac |
| 5167 | fi |
| 5168 | BZIP2=$ac_cv_path_BZIP2 |
| 5169 | |
| 5170 | if test -n "$BZIP2"; then |
| 5171 | echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 5172 | echo "${ECHO_T}$BZIP2" >&6 |
| 5173 | else |
| 5174 | echo "$as_me:$LINENO: result: no" >&5 |
| 5175 | echo "${ECHO_T}no" >&6 |
| 5176 | fi |
| 5177 | |
| 5178 | # Extract the first word of "dot", so it can be a program name with args. |
| 5179 | set dummy dot; ac_word=$2 |
| 5180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5182 | if test "${ac_cv_path_DOT+set}" = set; then |
| 5183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5184 | else |
| 5185 | case $DOT in |
| 5186 | [\\/]* | ?:[\\/]*) |
| 5187 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 5188 | ;; |
| 5189 | *) |
| 5190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5191 | for as_dir in $PATH |
| 5192 | do |
| 5193 | IFS=$as_save_IFS |
| 5194 | test -z "$as_dir" && as_dir=. |
| 5195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5197 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 5198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5199 | break 2 |
| 5200 | fi |
| 5201 | done |
| 5202 | done |
| 5203 | |
| 5204 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" |
| 5205 | ;; |
| 5206 | esac |
| 5207 | fi |
| 5208 | DOT=$ac_cv_path_DOT |
| 5209 | |
| 5210 | if test -n "$DOT"; then |
| 5211 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 5212 | echo "${ECHO_T}$DOT" >&6 |
| 5213 | else |
| 5214 | echo "$as_me:$LINENO: result: no" >&5 |
| 5215 | echo "${ECHO_T}no" >&6 |
| 5216 | fi |
| 5217 | |
| 5218 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 5219 | set dummy doxygen; ac_word=$2 |
| 5220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5222 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 5223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5224 | else |
| 5225 | case $DOXYGEN in |
| 5226 | [\\/]* | ?:[\\/]*) |
| 5227 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 5228 | ;; |
| 5229 | *) |
| 5230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5231 | for as_dir in $PATH |
| 5232 | do |
| 5233 | IFS=$as_save_IFS |
| 5234 | test -z "$as_dir" && as_dir=. |
| 5235 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5237 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 5238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5239 | break 2 |
| 5240 | fi |
| 5241 | done |
| 5242 | done |
| 5243 | |
| 5244 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen" |
| 5245 | ;; |
| 5246 | esac |
| 5247 | fi |
| 5248 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 5249 | |
| 5250 | if test -n "$DOXYGEN"; then |
| 5251 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 5252 | echo "${ECHO_T}$DOXYGEN" >&6 |
| 5253 | else |
| 5254 | echo "$as_me:$LINENO: result: no" >&5 |
| 5255 | echo "${ECHO_T}no" >&6 |
| 5256 | fi |
| 5257 | |
| 5258 | # Extract the first word of "etags", so it can be a program name with args. |
| 5259 | set dummy etags; ac_word=$2 |
| 5260 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5262 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5264 | else |
| 5265 | case $ETAGS in |
| 5266 | [\\/]* | ?:[\\/]*) |
| 5267 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 5268 | ;; |
| 5269 | *) |
| 5270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5271 | for as_dir in $PATH |
| 5272 | do |
| 5273 | IFS=$as_save_IFS |
| 5274 | test -z "$as_dir" && as_dir=. |
| 5275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5277 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 5278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5279 | break 2 |
| 5280 | fi |
| 5281 | done |
| 5282 | done |
| 5283 | |
| 5284 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" |
| 5285 | ;; |
| 5286 | esac |
| 5287 | fi |
| 5288 | ETAGS=$ac_cv_path_ETAGS |
| 5289 | |
| 5290 | if test -n "$ETAGS"; then |
| 5291 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 5292 | echo "${ECHO_T}$ETAGS" >&6 |
| 5293 | else |
| 5294 | echo "$as_me:$LINENO: result: no" >&5 |
| 5295 | echo "${ECHO_T}no" >&6 |
| 5296 | fi |
| 5297 | |
| 5298 | # Extract the first word of "groff", so it can be a program name with args. |
| 5299 | set dummy groff; ac_word=$2 |
| 5300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5302 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 5303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5304 | else |
| 5305 | case $GROFF in |
| 5306 | [\\/]* | ?:[\\/]*) |
| 5307 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 5308 | ;; |
| 5309 | *) |
| 5310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5311 | for as_dir in $PATH |
| 5312 | do |
| 5313 | IFS=$as_save_IFS |
| 5314 | test -z "$as_dir" && as_dir=. |
| 5315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5317 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 5318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5319 | break 2 |
| 5320 | fi |
| 5321 | done |
| 5322 | done |
| 5323 | |
| 5324 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff" |
| 5325 | ;; |
| 5326 | esac |
| 5327 | fi |
| 5328 | GROFF=$ac_cv_path_GROFF |
| 5329 | |
| 5330 | if test -n "$GROFF"; then |
| 5331 | echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 5332 | echo "${ECHO_T}$GROFF" >&6 |
| 5333 | else |
| 5334 | echo "$as_me:$LINENO: result: no" >&5 |
| 5335 | echo "${ECHO_T}no" >&6 |
| 5336 | fi |
| 5337 | |
| 5338 | # Extract the first word of "gzip", so it can be a program name with args. |
| 5339 | set dummy gzip; ac_word=$2 |
| 5340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5342 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 5343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5344 | else |
| 5345 | case $GZIP in |
| 5346 | [\\/]* | ?:[\\/]*) |
| 5347 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 5348 | ;; |
| 5349 | *) |
| 5350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5351 | for as_dir in $PATH |
| 5352 | do |
| 5353 | IFS=$as_save_IFS |
| 5354 | test -z "$as_dir" && as_dir=. |
| 5355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5357 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 5358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5359 | break 2 |
| 5360 | fi |
| 5361 | done |
| 5362 | done |
| 5363 | |
| 5364 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip" |
| 5365 | ;; |
| 5366 | esac |
| 5367 | fi |
| 5368 | GZIP=$ac_cv_path_GZIP |
| 5369 | |
| 5370 | if test -n "$GZIP"; then |
| 5371 | echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 5372 | echo "${ECHO_T}$GZIP" >&6 |
| 5373 | else |
| 5374 | echo "$as_me:$LINENO: result: no" >&5 |
| 5375 | echo "${ECHO_T}no" >&6 |
| 5376 | fi |
| 5377 | |
| 5378 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 5379 | set dummy pod2html; ac_word=$2 |
| 5380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5382 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5384 | else |
| 5385 | case $POD2HTML in |
| 5386 | [\\/]* | ?:[\\/]*) |
| 5387 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 5388 | ;; |
| 5389 | *) |
| 5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5391 | for as_dir in $PATH |
| 5392 | do |
| 5393 | IFS=$as_save_IFS |
| 5394 | test -z "$as_dir" && as_dir=. |
| 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5397 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 5398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5399 | break 2 |
| 5400 | fi |
| 5401 | done |
| 5402 | done |
| 5403 | |
| 5404 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html" |
| 5405 | ;; |
| 5406 | esac |
| 5407 | fi |
| 5408 | POD2HTML=$ac_cv_path_POD2HTML |
| 5409 | |
| 5410 | if test -n "$POD2HTML"; then |
| 5411 | echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 5412 | echo "${ECHO_T}$POD2HTML" >&6 |
| 5413 | else |
| 5414 | echo "$as_me:$LINENO: result: no" >&5 |
| 5415 | echo "${ECHO_T}no" >&6 |
| 5416 | fi |
| 5417 | |
| 5418 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 5419 | set dummy pod2man; ac_word=$2 |
| 5420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5422 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 5423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5424 | else |
| 5425 | case $POD2MAN in |
| 5426 | [\\/]* | ?:[\\/]*) |
| 5427 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 5428 | ;; |
| 5429 | *) |
| 5430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5431 | for as_dir in $PATH |
| 5432 | do |
| 5433 | IFS=$as_save_IFS |
| 5434 | test -z "$as_dir" && as_dir=. |
| 5435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5436 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5437 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 5438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5439 | break 2 |
| 5440 | fi |
| 5441 | done |
| 5442 | done |
| 5443 | |
| 5444 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man" |
| 5445 | ;; |
| 5446 | esac |
| 5447 | fi |
| 5448 | POD2MAN=$ac_cv_path_POD2MAN |
| 5449 | |
| 5450 | if test -n "$POD2MAN"; then |
| 5451 | echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 5452 | echo "${ECHO_T}$POD2MAN" >&6 |
| 5453 | else |
| 5454 | echo "$as_me:$LINENO: result: no" >&5 |
| 5455 | echo "${ECHO_T}no" >&6 |
| 5456 | fi |
| 5457 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5458 | # Extract the first word of "runtest", so it can be a program name with args. |
| 5459 | set dummy runtest; ac_word=$2 |
| 5460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5462 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5464 | else |
| 5465 | case $RUNTEST in |
| 5466 | [\\/]* | ?:[\\/]*) |
| 5467 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 5468 | ;; |
| 5469 | *) |
| 5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5471 | for as_dir in $PATH |
| 5472 | do |
| 5473 | IFS=$as_save_IFS |
| 5474 | test -z "$as_dir" && as_dir=. |
| 5475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5477 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 5478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5479 | break 2 |
| 5480 | fi |
| 5481 | done |
| 5482 | done |
| 5483 | |
| 5484 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" |
| 5485 | ;; |
| 5486 | esac |
| 5487 | fi |
| 5488 | RUNTEST=$ac_cv_path_RUNTEST |
| 5489 | |
| 5490 | if test -n "$RUNTEST"; then |
| 5491 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 5492 | echo "${ECHO_T}$RUNTEST" >&6 |
| 5493 | else |
| 5494 | echo "$as_me:$LINENO: result: no" >&5 |
| 5495 | echo "${ECHO_T}no" >&6 |
| 5496 | fi |
| 5497 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5498 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5499 | no_itcl=true |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5500 | echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 5501 | 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] | 5502 | |
| 5503 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 5504 | if test "${with_tclinclude+set}" = set; then |
| 5505 | withval="$with_tclinclude" |
| 5506 | with_tclinclude=${withval} |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5507 | else |
| 5508 | with_tclinclude='' |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5509 | fi; |
| 5510 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 5511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5512 | else |
| 5513 | |
| 5514 | if test x"${with_tclinclude}" != x ; then |
| 5515 | if test -f ${with_tclinclude}/tclsh ; then |
| 5516 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 5517 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 5518 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 5519 | else |
| 5520 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 5521 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 5522 | { (exit 1); exit 1; }; } |
| 5523 | fi |
| 5524 | fi |
| 5525 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5526 | if test x"${ac_cv_path_tclsh}" = x ; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5527 | echo "$as_me:$LINENO: result: none" >&5 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5528 | echo "${ECHO_T}none" >&6 |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 5529 | 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] | 5530 | do |
| 5531 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5532 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5535 | if test "${ac_cv_path_TCLSH+set}" = set; then |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5537 | else |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5538 | case $TCLSH in |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5539 | [\\/]* | ?:[\\/]*) |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5540 | 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] | 5541 | ;; |
| 5542 | *) |
| 5543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5544 | for as_dir in $PATH |
| 5545 | do |
| 5546 | IFS=$as_save_IFS |
| 5547 | test -z "$as_dir" && as_dir=. |
| 5548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5550 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5552 | break 2 |
| 5553 | fi |
| 5554 | done |
| 5555 | done |
| 5556 | |
| 5557 | ;; |
| 5558 | esac |
| 5559 | fi |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5560 | TCLSH=$ac_cv_path_TCLSH |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5561 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5562 | if test -n "$TCLSH"; then |
| 5563 | echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 5564 | echo "${ECHO_T}$TCLSH" >&6 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5565 | else |
| 5566 | echo "$as_me:$LINENO: result: no" >&5 |
| 5567 | echo "${ECHO_T}no" >&6 |
| 5568 | fi |
| 5569 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5570 | test -n "$TCLSH" && break |
| 5571 | done |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5572 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5573 | if test x"${TCLSH}" = x ; then |
| 5574 | ac_cv_path_tclsh=''; |
| 5575 | else |
| 5576 | ac_cv_path_tclsh="${TCLSH}"; |
| 5577 | fi |
| 5578 | else |
| 5579 | echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 5580 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6 |
| 5581 | TCLSH="${ac_cv_path_tclsh}" |
| 5582 | |
| 5583 | fi |
| 5584 | |
| 5585 | fi |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5586 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5587 | # Extract the first word of "zip", so it can be a program name with args. |
| 5588 | set dummy zip; ac_word=$2 |
| 5589 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5591 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5593 | else |
| 5594 | case $ZIP in |
| 5595 | [\\/]* | ?:[\\/]*) |
| 5596 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 5597 | ;; |
| 5598 | *) |
| 5599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5600 | for as_dir in $PATH |
| 5601 | do |
| 5602 | IFS=$as_save_IFS |
| 5603 | test -z "$as_dir" && as_dir=. |
| 5604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5606 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 5607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5608 | break 2 |
| 5609 | fi |
| 5610 | done |
| 5611 | done |
| 5612 | |
| 5613 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip" |
| 5614 | ;; |
| 5615 | esac |
| 5616 | fi |
| 5617 | ZIP=$ac_cv_path_ZIP |
| 5618 | |
| 5619 | if test -n "$ZIP"; then |
| 5620 | echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 5621 | echo "${ECHO_T}$ZIP" >&6 |
| 5622 | else |
| 5623 | echo "$as_me:$LINENO: result: no" >&5 |
| 5624 | echo "${ECHO_T}no" >&6 |
| 5625 | fi |
| 5626 | |
| 5627 | |
| 5628 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 5629 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 |
| 5630 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5632 | else |
| 5633 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5634 | ac_cpp='$CPP $CPPFLAGS' |
| 5635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5638 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5639 | oldcflags="$CFLAGS" |
| 5640 | CFLAGS="$CFLAGS -Wl,-R." |
| 5641 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5642 | /* confdefs.h. */ |
| 5643 | _ACEOF |
| 5644 | cat confdefs.h >>conftest.$ac_ext |
| 5645 | cat >>conftest.$ac_ext <<_ACEOF |
| 5646 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5647 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5648 | int |
| 5649 | main () |
| 5650 | { |
| 5651 | int main() { return 0; } |
| 5652 | ; |
| 5653 | return 0; |
| 5654 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5655 | _ACEOF |
| 5656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5658 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5659 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5661 | rm -f conftest.er1 |
| 5662 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5664 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5665 | { ac_try='test -z "$ac_c_werror_flag" |
| 5666 | || test ! -s conftest.err' |
| 5667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5668 | (eval $ac_try) 2>&5 |
| 5669 | ac_status=$? |
| 5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5671 | (exit $ac_status); }; } && |
| 5672 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5674 | (eval $ac_try) 2>&5 |
| 5675 | ac_status=$? |
| 5676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5677 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5678 | llvm_cv_link_use_r=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5679 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5680 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5682 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5683 | llvm_cv_link_use_r=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5684 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5685 | rm -f conftest.err conftest.$ac_objext \ |
| 5686 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5687 | CFLAGS="$oldcflags" |
| 5688 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5689 | ac_cpp='$CPP $CPPFLAGS' |
| 5690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5693 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5695 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5696 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 5697 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 |
| 5698 | if test "$llvm_cv_link_use_r" = yes ; then |
| 5699 | |
| 5700 | cat >>confdefs.h <<\_ACEOF |
| 5701 | #define HAVE_LINK_R 1 |
| 5702 | _ACEOF |
| 5703 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5704 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5705 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5706 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5707 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5708 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5709 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5710 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 5711 | if test "${ac_cv_c_const+set}" = set; then |
| 5712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5713 | else |
| 5714 | cat >conftest.$ac_ext <<_ACEOF |
| 5715 | /* confdefs.h. */ |
| 5716 | _ACEOF |
| 5717 | cat confdefs.h >>conftest.$ac_ext |
| 5718 | cat >>conftest.$ac_ext <<_ACEOF |
| 5719 | /* end confdefs.h. */ |
| 5720 | |
| 5721 | int |
| 5722 | main () |
| 5723 | { |
| 5724 | /* FIXME: Include the comments suggested by Paul. */ |
| 5725 | #ifndef __cplusplus |
| 5726 | /* Ultrix mips cc rejects this. */ |
| 5727 | typedef int charset[2]; |
| 5728 | const charset x; |
| 5729 | /* SunOS 4.1.1 cc rejects this. */ |
| 5730 | char const *const *ccp; |
| 5731 | char **p; |
| 5732 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5733 | struct point {int x, y;}; |
| 5734 | static struct point const zero = {0,0}; |
| 5735 | /* AIX XL C 1.02.0.0 rejects this. |
| 5736 | It does not let you subtract one const X* pointer from another in |
| 5737 | an arm of an if-expression whose if-part is not a constant |
| 5738 | expression */ |
| 5739 | const char *g = "string"; |
| 5740 | ccp = &g + (g ? g-g : 0); |
| 5741 | /* HPUX 7.0 cc rejects these. */ |
| 5742 | ++ccp; |
| 5743 | p = (char**) ccp; |
| 5744 | ccp = (char const *const *) p; |
| 5745 | { /* SCO 3.2v4 cc rejects this. */ |
| 5746 | char *t; |
| 5747 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5748 | |
| 5749 | *t++ = 0; |
| 5750 | } |
| 5751 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5752 | int x[] = {25, 17}; |
| 5753 | const int *foo = &x[0]; |
| 5754 | ++foo; |
| 5755 | } |
| 5756 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5757 | typedef const int *iptr; |
| 5758 | iptr p = 0; |
| 5759 | ++p; |
| 5760 | } |
| 5761 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5762 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5763 | struct s { int j; const int *ap[3]; }; |
| 5764 | struct s *b; b->j = 5; |
| 5765 | } |
| 5766 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5767 | const int foo = 10; |
| 5768 | } |
| 5769 | #endif |
| 5770 | |
| 5771 | ; |
| 5772 | return 0; |
| 5773 | } |
| 5774 | _ACEOF |
| 5775 | rm -f conftest.$ac_objext |
| 5776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5777 | (eval $ac_compile) 2>conftest.er1 |
| 5778 | ac_status=$? |
| 5779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5780 | rm -f conftest.er1 |
| 5781 | cat conftest.err >&5 |
| 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5783 | (exit $ac_status); } && |
| 5784 | { ac_try='test -z "$ac_c_werror_flag" |
| 5785 | || test ! -s conftest.err' |
| 5786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5787 | (eval $ac_try) 2>&5 |
| 5788 | ac_status=$? |
| 5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5790 | (exit $ac_status); }; } && |
| 5791 | { ac_try='test -s conftest.$ac_objext' |
| 5792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5793 | (eval $ac_try) 2>&5 |
| 5794 | ac_status=$? |
| 5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5796 | (exit $ac_status); }; }; then |
| 5797 | ac_cv_c_const=yes |
| 5798 | else |
| 5799 | echo "$as_me: failed program was:" >&5 |
| 5800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5801 | |
| 5802 | ac_cv_c_const=no |
| 5803 | fi |
| 5804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5805 | fi |
| 5806 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5807 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 5808 | if test $ac_cv_c_const = no; then |
| 5809 | |
| 5810 | cat >>confdefs.h <<\_ACEOF |
| 5811 | #define const |
| 5812 | _ACEOF |
| 5813 | |
| 5814 | fi |
| 5815 | |
| 5816 | |
| 5817 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5818 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5819 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5821 | else |
| 5822 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5823 | then ac_cv_prog_egrep='grep -E' |
| 5824 | else ac_cv_prog_egrep='egrep' |
| 5825 | fi |
| 5826 | fi |
| 5827 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5828 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5829 | EGREP=$ac_cv_prog_egrep |
| 5830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5831 | |
| 5832 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5833 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5834 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5836 | else |
| 5837 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5838 | /* confdefs.h. */ |
| 5839 | _ACEOF |
| 5840 | cat confdefs.h >>conftest.$ac_ext |
| 5841 | cat >>conftest.$ac_ext <<_ACEOF |
| 5842 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5843 | #include <stdlib.h> |
| 5844 | #include <stdarg.h> |
| 5845 | #include <string.h> |
| 5846 | #include <float.h> |
| 5847 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5848 | int |
| 5849 | main () |
| 5850 | { |
| 5851 | |
| 5852 | ; |
| 5853 | return 0; |
| 5854 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5855 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5856 | rm -f conftest.$ac_objext |
| 5857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5858 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5859 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5861 | rm -f conftest.er1 |
| 5862 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5864 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5865 | { ac_try='test -z "$ac_c_werror_flag" |
| 5866 | || test ! -s conftest.err' |
| 5867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5868 | (eval $ac_try) 2>&5 |
| 5869 | ac_status=$? |
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 | (exit $ac_status); }; } && |
| 5872 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5874 | (eval $ac_try) 2>&5 |
| 5875 | ac_status=$? |
| 5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5877 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5878 | ac_cv_header_stdc=yes |
| 5879 | else |
| 5880 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5882 | |
| 5883 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5884 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5886 | |
| 5887 | if test $ac_cv_header_stdc = yes; then |
| 5888 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5889 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5890 | /* confdefs.h. */ |
| 5891 | _ACEOF |
| 5892 | cat confdefs.h >>conftest.$ac_ext |
| 5893 | cat >>conftest.$ac_ext <<_ACEOF |
| 5894 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5895 | #include <string.h> |
| 5896 | |
| 5897 | _ACEOF |
| 5898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5899 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5900 | : |
| 5901 | else |
| 5902 | ac_cv_header_stdc=no |
| 5903 | fi |
| 5904 | rm -f conftest* |
| 5905 | |
| 5906 | fi |
| 5907 | |
| 5908 | if test $ac_cv_header_stdc = yes; then |
| 5909 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5910 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5911 | /* confdefs.h. */ |
| 5912 | _ACEOF |
| 5913 | cat confdefs.h >>conftest.$ac_ext |
| 5914 | cat >>conftest.$ac_ext <<_ACEOF |
| 5915 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5916 | #include <stdlib.h> |
| 5917 | |
| 5918 | _ACEOF |
| 5919 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5920 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5921 | : |
| 5922 | else |
| 5923 | ac_cv_header_stdc=no |
| 5924 | fi |
| 5925 | rm -f conftest* |
| 5926 | |
| 5927 | fi |
| 5928 | |
| 5929 | if test $ac_cv_header_stdc = yes; then |
| 5930 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5931 | if test "$cross_compiling" = yes; then |
| 5932 | : |
| 5933 | else |
| 5934 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5935 | /* confdefs.h. */ |
| 5936 | _ACEOF |
| 5937 | cat confdefs.h >>conftest.$ac_ext |
| 5938 | cat >>conftest.$ac_ext <<_ACEOF |
| 5939 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5940 | #include <ctype.h> |
| 5941 | #if ((' ' & 0x0FF) == 0x020) |
| 5942 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5943 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5944 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5945 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5946 | (('a' <= (c) && (c) <= 'i') \ |
| 5947 | || ('j' <= (c) && (c) <= 'r') \ |
| 5948 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5949 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5950 | #endif |
| 5951 | |
| 5952 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5953 | int |
| 5954 | main () |
| 5955 | { |
| 5956 | int i; |
| 5957 | for (i = 0; i < 256; i++) |
| 5958 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5959 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5960 | exit(2); |
| 5961 | exit (0); |
| 5962 | } |
| 5963 | _ACEOF |
| 5964 | rm -f conftest$ac_exeext |
| 5965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5966 | (eval $ac_link) 2>&5 |
| 5967 | ac_status=$? |
| 5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5971 | (eval $ac_try) 2>&5 |
| 5972 | ac_status=$? |
| 5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5974 | (exit $ac_status); }; }; then |
| 5975 | : |
| 5976 | else |
| 5977 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5978 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5980 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5981 | ( exit $ac_status ) |
| 5982 | ac_cv_header_stdc=no |
| 5983 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5984 | 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] | 5985 | fi |
| 5986 | fi |
| 5987 | fi |
| 5988 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5989 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5990 | if test $ac_cv_header_stdc = yes; then |
| 5991 | |
| 5992 | cat >>confdefs.h <<\_ACEOF |
| 5993 | #define STDC_HEADERS 1 |
| 5994 | _ACEOF |
| 5995 | |
| 5996 | fi |
| 5997 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5998 | |
| 5999 | |
| 6000 | |
| 6001 | |
| 6002 | |
| 6003 | ac_header_dirent=no |
| 6004 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 6005 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6006 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6007 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 6008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6010 | else |
| 6011 | cat >conftest.$ac_ext <<_ACEOF |
| 6012 | /* confdefs.h. */ |
| 6013 | _ACEOF |
| 6014 | cat confdefs.h >>conftest.$ac_ext |
| 6015 | cat >>conftest.$ac_ext <<_ACEOF |
| 6016 | /* end confdefs.h. */ |
| 6017 | #include <sys/types.h> |
| 6018 | #include <$ac_hdr> |
| 6019 | |
| 6020 | int |
| 6021 | main () |
| 6022 | { |
| 6023 | if ((DIR *) 0) |
| 6024 | return 0; |
| 6025 | ; |
| 6026 | return 0; |
| 6027 | } |
| 6028 | _ACEOF |
| 6029 | rm -f conftest.$ac_objext |
| 6030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6031 | (eval $ac_compile) 2>conftest.er1 |
| 6032 | ac_status=$? |
| 6033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6034 | rm -f conftest.er1 |
| 6035 | cat conftest.err >&5 |
| 6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6037 | (exit $ac_status); } && |
| 6038 | { ac_try='test -z "$ac_c_werror_flag" |
| 6039 | || test ! -s conftest.err' |
| 6040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6041 | (eval $ac_try) 2>&5 |
| 6042 | ac_status=$? |
| 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6044 | (exit $ac_status); }; } && |
| 6045 | { ac_try='test -s conftest.$ac_objext' |
| 6046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6047 | (eval $ac_try) 2>&5 |
| 6048 | ac_status=$? |
| 6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6050 | (exit $ac_status); }; }; then |
| 6051 | eval "$as_ac_Header=yes" |
| 6052 | else |
| 6053 | echo "$as_me: failed program was:" >&5 |
| 6054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6055 | |
| 6056 | eval "$as_ac_Header=no" |
| 6057 | fi |
| 6058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6059 | fi |
| 6060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6063 | cat >>confdefs.h <<_ACEOF |
| 6064 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 6065 | _ACEOF |
| 6066 | |
| 6067 | ac_header_dirent=$ac_hdr; break |
| 6068 | fi |
| 6069 | |
| 6070 | done |
| 6071 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6072 | if test $ac_header_dirent = dirent.h; then |
| 6073 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6074 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6075 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6077 | else |
| 6078 | ac_func_search_save_LIBS=$LIBS |
| 6079 | ac_cv_search_opendir=no |
| 6080 | cat >conftest.$ac_ext <<_ACEOF |
| 6081 | /* confdefs.h. */ |
| 6082 | _ACEOF |
| 6083 | cat confdefs.h >>conftest.$ac_ext |
| 6084 | cat >>conftest.$ac_ext <<_ACEOF |
| 6085 | /* end confdefs.h. */ |
| 6086 | |
| 6087 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6088 | #ifdef __cplusplus |
| 6089 | extern "C" |
| 6090 | #endif |
| 6091 | /* We use char because int might match the return type of a gcc2 |
| 6092 | builtin and then its argument prototype would still apply. */ |
| 6093 | char opendir (); |
| 6094 | int |
| 6095 | main () |
| 6096 | { |
| 6097 | opendir (); |
| 6098 | ; |
| 6099 | return 0; |
| 6100 | } |
| 6101 | _ACEOF |
| 6102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6104 | (eval $ac_link) 2>conftest.er1 |
| 6105 | ac_status=$? |
| 6106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6107 | rm -f conftest.er1 |
| 6108 | cat conftest.err >&5 |
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6110 | (exit $ac_status); } && |
| 6111 | { ac_try='test -z "$ac_c_werror_flag" |
| 6112 | || test ! -s conftest.err' |
| 6113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6114 | (eval $ac_try) 2>&5 |
| 6115 | ac_status=$? |
| 6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6117 | (exit $ac_status); }; } && |
| 6118 | { ac_try='test -s conftest$ac_exeext' |
| 6119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6120 | (eval $ac_try) 2>&5 |
| 6121 | ac_status=$? |
| 6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6123 | (exit $ac_status); }; }; then |
| 6124 | ac_cv_search_opendir="none required" |
| 6125 | else |
| 6126 | echo "$as_me: failed program was:" >&5 |
| 6127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6128 | |
| 6129 | fi |
| 6130 | rm -f conftest.err conftest.$ac_objext \ |
| 6131 | conftest$ac_exeext conftest.$ac_ext |
| 6132 | if test "$ac_cv_search_opendir" = no; then |
| 6133 | for ac_lib in dir; do |
| 6134 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6135 | cat >conftest.$ac_ext <<_ACEOF |
| 6136 | /* confdefs.h. */ |
| 6137 | _ACEOF |
| 6138 | cat confdefs.h >>conftest.$ac_ext |
| 6139 | cat >>conftest.$ac_ext <<_ACEOF |
| 6140 | /* end confdefs.h. */ |
| 6141 | |
| 6142 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6143 | #ifdef __cplusplus |
| 6144 | extern "C" |
| 6145 | #endif |
| 6146 | /* We use char because int might match the return type of a gcc2 |
| 6147 | builtin and then its argument prototype would still apply. */ |
| 6148 | char opendir (); |
| 6149 | int |
| 6150 | main () |
| 6151 | { |
| 6152 | opendir (); |
| 6153 | ; |
| 6154 | return 0; |
| 6155 | } |
| 6156 | _ACEOF |
| 6157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6159 | (eval $ac_link) 2>conftest.er1 |
| 6160 | ac_status=$? |
| 6161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6162 | rm -f conftest.er1 |
| 6163 | cat conftest.err >&5 |
| 6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6165 | (exit $ac_status); } && |
| 6166 | { ac_try='test -z "$ac_c_werror_flag" |
| 6167 | || test ! -s conftest.err' |
| 6168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6169 | (eval $ac_try) 2>&5 |
| 6170 | ac_status=$? |
| 6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6172 | (exit $ac_status); }; } && |
| 6173 | { ac_try='test -s conftest$ac_exeext' |
| 6174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6175 | (eval $ac_try) 2>&5 |
| 6176 | ac_status=$? |
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6178 | (exit $ac_status); }; }; then |
| 6179 | ac_cv_search_opendir="-l$ac_lib" |
| 6180 | break |
| 6181 | else |
| 6182 | echo "$as_me: failed program was:" >&5 |
| 6183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6184 | |
| 6185 | fi |
| 6186 | rm -f conftest.err conftest.$ac_objext \ |
| 6187 | conftest$ac_exeext conftest.$ac_ext |
| 6188 | done |
| 6189 | fi |
| 6190 | LIBS=$ac_func_search_save_LIBS |
| 6191 | fi |
| 6192 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6193 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6194 | if test "$ac_cv_search_opendir" != no; then |
| 6195 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6196 | |
| 6197 | fi |
| 6198 | |
| 6199 | else |
| 6200 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6201 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6202 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6204 | else |
| 6205 | ac_func_search_save_LIBS=$LIBS |
| 6206 | ac_cv_search_opendir=no |
| 6207 | cat >conftest.$ac_ext <<_ACEOF |
| 6208 | /* confdefs.h. */ |
| 6209 | _ACEOF |
| 6210 | cat confdefs.h >>conftest.$ac_ext |
| 6211 | cat >>conftest.$ac_ext <<_ACEOF |
| 6212 | /* end confdefs.h. */ |
| 6213 | |
| 6214 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6215 | #ifdef __cplusplus |
| 6216 | extern "C" |
| 6217 | #endif |
| 6218 | /* We use char because int might match the return type of a gcc2 |
| 6219 | builtin and then its argument prototype would still apply. */ |
| 6220 | char opendir (); |
| 6221 | int |
| 6222 | main () |
| 6223 | { |
| 6224 | opendir (); |
| 6225 | ; |
| 6226 | return 0; |
| 6227 | } |
| 6228 | _ACEOF |
| 6229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6231 | (eval $ac_link) 2>conftest.er1 |
| 6232 | ac_status=$? |
| 6233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6234 | rm -f conftest.er1 |
| 6235 | cat conftest.err >&5 |
| 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6237 | (exit $ac_status); } && |
| 6238 | { ac_try='test -z "$ac_c_werror_flag" |
| 6239 | || test ! -s conftest.err' |
| 6240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6241 | (eval $ac_try) 2>&5 |
| 6242 | ac_status=$? |
| 6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6244 | (exit $ac_status); }; } && |
| 6245 | { ac_try='test -s conftest$ac_exeext' |
| 6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6247 | (eval $ac_try) 2>&5 |
| 6248 | ac_status=$? |
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6250 | (exit $ac_status); }; }; then |
| 6251 | ac_cv_search_opendir="none required" |
| 6252 | else |
| 6253 | echo "$as_me: failed program was:" >&5 |
| 6254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6255 | |
| 6256 | fi |
| 6257 | rm -f conftest.err conftest.$ac_objext \ |
| 6258 | conftest$ac_exeext conftest.$ac_ext |
| 6259 | if test "$ac_cv_search_opendir" = no; then |
| 6260 | for ac_lib in x; do |
| 6261 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6262 | cat >conftest.$ac_ext <<_ACEOF |
| 6263 | /* confdefs.h. */ |
| 6264 | _ACEOF |
| 6265 | cat confdefs.h >>conftest.$ac_ext |
| 6266 | cat >>conftest.$ac_ext <<_ACEOF |
| 6267 | /* end confdefs.h. */ |
| 6268 | |
| 6269 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6270 | #ifdef __cplusplus |
| 6271 | extern "C" |
| 6272 | #endif |
| 6273 | /* We use char because int might match the return type of a gcc2 |
| 6274 | builtin and then its argument prototype would still apply. */ |
| 6275 | char opendir (); |
| 6276 | int |
| 6277 | main () |
| 6278 | { |
| 6279 | opendir (); |
| 6280 | ; |
| 6281 | return 0; |
| 6282 | } |
| 6283 | _ACEOF |
| 6284 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6286 | (eval $ac_link) 2>conftest.er1 |
| 6287 | ac_status=$? |
| 6288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6289 | rm -f conftest.er1 |
| 6290 | cat conftest.err >&5 |
| 6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6292 | (exit $ac_status); } && |
| 6293 | { ac_try='test -z "$ac_c_werror_flag" |
| 6294 | || test ! -s conftest.err' |
| 6295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6296 | (eval $ac_try) 2>&5 |
| 6297 | ac_status=$? |
| 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6299 | (exit $ac_status); }; } && |
| 6300 | { ac_try='test -s conftest$ac_exeext' |
| 6301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6302 | (eval $ac_try) 2>&5 |
| 6303 | ac_status=$? |
| 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6305 | (exit $ac_status); }; }; then |
| 6306 | ac_cv_search_opendir="-l$ac_lib" |
| 6307 | break |
| 6308 | else |
| 6309 | echo "$as_me: failed program was:" >&5 |
| 6310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6311 | |
| 6312 | fi |
| 6313 | rm -f conftest.err conftest.$ac_objext \ |
| 6314 | conftest$ac_exeext conftest.$ac_ext |
| 6315 | done |
| 6316 | fi |
| 6317 | LIBS=$ac_func_search_save_LIBS |
| 6318 | fi |
| 6319 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6320 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6321 | if test "$ac_cv_search_opendir" != no; then |
| 6322 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6323 | |
| 6324 | fi |
| 6325 | |
| 6326 | fi |
| 6327 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6328 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | |
| 6335 | |
| 6336 | |
| 6337 | |
| 6338 | 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] | 6339 | inttypes.h stdint.h unistd.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6340 | do |
| 6341 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6346 | else |
| 6347 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6348 | /* confdefs.h. */ |
| 6349 | _ACEOF |
| 6350 | cat confdefs.h >>conftest.$ac_ext |
| 6351 | cat >>conftest.$ac_ext <<_ACEOF |
| 6352 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6353 | $ac_includes_default |
| 6354 | |
| 6355 | #include <$ac_header> |
| 6356 | _ACEOF |
| 6357 | rm -f conftest.$ac_objext |
| 6358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6359 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6360 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6362 | rm -f conftest.er1 |
| 6363 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6365 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6366 | { ac_try='test -z "$ac_c_werror_flag" |
| 6367 | || test ! -s conftest.err' |
| 6368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6369 | (eval $ac_try) 2>&5 |
| 6370 | ac_status=$? |
| 6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); }; } && |
| 6373 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6375 | (eval $ac_try) 2>&5 |
| 6376 | ac_status=$? |
| 6377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6378 | (exit $ac_status); }; }; then |
| 6379 | eval "$as_ac_Header=yes" |
| 6380 | else |
| 6381 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6384 | eval "$as_ac_Header=no" |
| 6385 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6387 | fi |
| 6388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6389 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6390 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6391 | cat >>confdefs.h <<_ACEOF |
| 6392 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6393 | _ACEOF |
| 6394 | |
| 6395 | fi |
| 6396 | |
| 6397 | done |
| 6398 | |
| 6399 | |
| 6400 | |
| 6401 | for ac_header in dlfcn.h |
| 6402 | do |
| 6403 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6404 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6405 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6409 | fi |
| 6410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6412 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6413 | # Is the header compilable? |
| 6414 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6415 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6416 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6417 | /* confdefs.h. */ |
| 6418 | _ACEOF |
| 6419 | cat confdefs.h >>conftest.$ac_ext |
| 6420 | cat >>conftest.$ac_ext <<_ACEOF |
| 6421 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6422 | $ac_includes_default |
| 6423 | #include <$ac_header> |
| 6424 | _ACEOF |
| 6425 | rm -f conftest.$ac_objext |
| 6426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6427 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6428 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6430 | rm -f conftest.er1 |
| 6431 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6433 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6434 | { ac_try='test -z "$ac_c_werror_flag" |
| 6435 | || test ! -s conftest.err' |
| 6436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6437 | (eval $ac_try) 2>&5 |
| 6438 | ac_status=$? |
| 6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6440 | (exit $ac_status); }; } && |
| 6441 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6443 | (eval $ac_try) 2>&5 |
| 6444 | ac_status=$? |
| 6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6446 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6447 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6448 | else |
| 6449 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6451 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6452 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6453 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6456 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6457 | |
| 6458 | # Is the header present? |
| 6459 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6460 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6461 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6462 | /* confdefs.h. */ |
| 6463 | _ACEOF |
| 6464 | cat confdefs.h >>conftest.$ac_ext |
| 6465 | cat >>conftest.$ac_ext <<_ACEOF |
| 6466 | /* end confdefs.h. */ |
| 6467 | #include <$ac_header> |
| 6468 | _ACEOF |
| 6469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6471 | ac_status=$? |
| 6472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6473 | rm -f conftest.er1 |
| 6474 | cat conftest.err >&5 |
| 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6476 | (exit $ac_status); } >/dev/null; then |
| 6477 | if test -s conftest.err; then |
| 6478 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6480 | else |
| 6481 | ac_cpp_err= |
| 6482 | fi |
| 6483 | else |
| 6484 | ac_cpp_err=yes |
| 6485 | fi |
| 6486 | if test -z "$ac_cpp_err"; then |
| 6487 | ac_header_preproc=yes |
| 6488 | else |
| 6489 | echo "$as_me: failed program was:" >&5 |
| 6490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6491 | |
| 6492 | ac_header_preproc=no |
| 6493 | fi |
| 6494 | rm -f conftest.err conftest.$ac_ext |
| 6495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6496 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6497 | |
| 6498 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6500 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6501 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6502 | 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] | 6503 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6504 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6505 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6506 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6507 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6508 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6509 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6510 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6511 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6512 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6513 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6514 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6515 | 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] | 6516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6517 | 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] | 6518 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6519 | 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] | 6520 | ( |
| 6521 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6522 | ## ----------------------------------- ## |
| 6523 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 6524 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6525 | _ASBOX |
| 6526 | ) | |
| 6527 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6528 | ;; |
| 6529 | esac |
| 6530 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6531 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6534 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6535 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6536 | fi |
| 6537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6539 | |
| 6540 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6541 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6542 | cat >>confdefs.h <<_ACEOF |
| 6543 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6544 | _ACEOF |
| 6545 | |
| 6546 | fi |
| 6547 | |
| 6548 | done |
| 6549 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6550 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. |
| 6551 | if test "${enable_ltdl_install+set}" = set; then |
| 6552 | enableval="$enable_ltdl_install" |
| 6553 | |
| 6554 | fi; |
| 6555 | |
| 6556 | |
| 6557 | |
| 6558 | if test x"${enable_ltdl_install-no}" != xno; then |
| 6559 | INSTALL_LTDL_TRUE= |
| 6560 | INSTALL_LTDL_FALSE='#' |
| 6561 | else |
| 6562 | INSTALL_LTDL_TRUE='#' |
| 6563 | INSTALL_LTDL_FALSE= |
| 6564 | fi |
| 6565 | |
| 6566 | |
| 6567 | |
| 6568 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 6569 | CONVENIENCE_LTDL_TRUE= |
| 6570 | CONVENIENCE_LTDL_FALSE='#' |
| 6571 | else |
| 6572 | CONVENIENCE_LTDL_TRUE='#' |
| 6573 | CONVENIENCE_LTDL_FALSE= |
| 6574 | fi |
| 6575 | |
| 6576 | |
| 6577 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6578 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6579 | library_names_spec= |
| 6580 | libname_spec='lib$name' |
| 6581 | soname_spec= |
| 6582 | shrext_cmds=".so" |
| 6583 | postinstall_cmds= |
| 6584 | postuninstall_cmds= |
| 6585 | finish_cmds= |
| 6586 | finish_eval= |
| 6587 | shlibpath_var= |
| 6588 | shlibpath_overrides_runpath=unknown |
| 6589 | version_type=none |
| 6590 | dynamic_linker="$host_os ld.so" |
| 6591 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6592 | if test "$GCC" = yes; then |
| 6593 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6594 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 6595 | # if the path contains ";" then we assume it to be the separator |
| 6596 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 6597 | # assumed that no part of a normal pathname contains ";" but that should |
| 6598 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 6599 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6600 | else |
| 6601 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6602 | fi |
| 6603 | else |
| 6604 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6605 | fi |
| 6606 | need_lib_prefix=unknown |
| 6607 | hardcode_into_libs=no |
| 6608 | |
| 6609 | # when you set need_version to no, make sure it does not cause -set_version |
| 6610 | # flags to be left without arguments |
| 6611 | need_version=unknown |
| 6612 | |
| 6613 | case $host_os in |
| 6614 | aix3*) |
| 6615 | version_type=linux |
| 6616 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 6617 | shlibpath_var=LIBPATH |
| 6618 | |
| 6619 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 6620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6621 | ;; |
| 6622 | |
| 6623 | aix4* | aix5*) |
| 6624 | version_type=linux |
| 6625 | need_lib_prefix=no |
| 6626 | need_version=no |
| 6627 | hardcode_into_libs=yes |
| 6628 | if test "$host_cpu" = ia64; then |
| 6629 | # AIX 5 supports IA64 |
| 6630 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 6631 | shlibpath_var=LD_LIBRARY_PATH |
| 6632 | else |
| 6633 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6634 | # for dependence libraries. The import file would start with |
| 6635 | # the line `#! .'. This would cause the generated library to |
| 6636 | # depend on `.', always an invalid library. This was fixed in |
| 6637 | # development snapshots of GCC prior to 3.0. |
| 6638 | case $host_os in |
| 6639 | aix4 | aix4.[01] | aix4.[01].*) |
| 6640 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6641 | echo ' yes ' |
| 6642 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6643 | : |
| 6644 | else |
| 6645 | can_build_shared=no |
| 6646 | fi |
| 6647 | ;; |
| 6648 | esac |
| 6649 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 6650 | # soname into executable. Probably we can add versioning support to |
| 6651 | # collect2, so additional links can be useful in future. |
| 6652 | if test "$aix_use_runtimelinking" = yes; then |
| 6653 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6654 | # instead of lib<name>.a to let people know that these are not |
| 6655 | # typical AIX shared libraries. |
| 6656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6657 | else |
| 6658 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6659 | # and later when we are not doing run time linking. |
| 6660 | library_names_spec='${libname}${release}.a $libname.a' |
| 6661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6662 | fi |
| 6663 | shlibpath_var=LIBPATH |
| 6664 | fi |
| 6665 | ;; |
| 6666 | |
| 6667 | amigaos*) |
| 6668 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6669 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6670 | 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' |
| 6671 | ;; |
| 6672 | |
| 6673 | beos*) |
| 6674 | library_names_spec='${libname}${shared_ext}' |
| 6675 | dynamic_linker="$host_os ld.so" |
| 6676 | shlibpath_var=LIBRARY_PATH |
| 6677 | ;; |
| 6678 | |
| 6679 | bsdi[45]*) |
| 6680 | version_type=linux |
| 6681 | need_version=no |
| 6682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6684 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6685 | shlibpath_var=LD_LIBRARY_PATH |
| 6686 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6687 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6688 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6689 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6690 | # libtool to hard-code these into programs |
| 6691 | ;; |
| 6692 | |
| 6693 | cygwin* | mingw* | pw32*) |
| 6694 | version_type=windows |
| 6695 | shrext_cmds=".dll" |
| 6696 | need_version=no |
| 6697 | need_lib_prefix=no |
| 6698 | |
| 6699 | case $GCC,$host_os in |
| 6700 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 6701 | library_names_spec='$libname.dll.a' |
| 6702 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 6703 | postinstall_cmds='base_file=`basename \${file}`~ |
| 6704 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 6705 | dldir=$destdir/`dirname \$dlpath`~ |
| 6706 | test -d \$dldir || mkdir -p \$dldir~ |
| 6707 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 6708 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6709 | dlpath=$dir/\$dldll~ |
| 6710 | $rm \$dlpath' |
| 6711 | shlibpath_overrides_runpath=yes |
| 6712 | |
| 6713 | case $host_os in |
| 6714 | cygwin*) |
| 6715 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 6716 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6717 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 6718 | ;; |
| 6719 | mingw*) |
| 6720 | # MinGW DLLs use traditional 'lib' prefix |
| 6721 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6722 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6723 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 6724 | # It is most probably a Windows format PATH printed by |
| 6725 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 6726 | # path with ; separators, and with drive letters. We can handle the |
| 6727 | # drive letters (cygwin fileutils understands them), so leave them, |
| 6728 | # especially as we might pass files found there to a mingw objdump, |
| 6729 | # which wouldn't understand a cygwinified path. Ahh. |
| 6730 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6731 | else |
| 6732 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6733 | fi |
| 6734 | ;; |
| 6735 | pw32*) |
| 6736 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 6737 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 6738 | ;; |
| 6739 | esac |
| 6740 | ;; |
| 6741 | |
| 6742 | *) |
| 6743 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 6744 | ;; |
| 6745 | esac |
| 6746 | dynamic_linker='Win32 ld.exe' |
| 6747 | # FIXME: first we should search . and the directory the executable is in |
| 6748 | shlibpath_var=PATH |
| 6749 | ;; |
| 6750 | |
| 6751 | darwin* | rhapsody*) |
| 6752 | dynamic_linker="$host_os dyld" |
| 6753 | version_type=darwin |
| 6754 | need_lib_prefix=no |
| 6755 | need_version=no |
| 6756 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 6757 | soname_spec='${libname}${release}${major}$shared_ext' |
| 6758 | shlibpath_overrides_runpath=yes |
| 6759 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6760 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 6761 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 6762 | if test "$GCC" = yes; then |
| 6763 | 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"` |
| 6764 | else |
| 6765 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 6766 | fi |
| 6767 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 6768 | ;; |
| 6769 | |
| 6770 | dgux*) |
| 6771 | version_type=linux |
| 6772 | need_lib_prefix=no |
| 6773 | need_version=no |
| 6774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 6775 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6776 | shlibpath_var=LD_LIBRARY_PATH |
| 6777 | ;; |
| 6778 | |
| 6779 | freebsd1*) |
| 6780 | dynamic_linker=no |
| 6781 | ;; |
| 6782 | |
| 6783 | kfreebsd*-gnu) |
| 6784 | version_type=linux |
| 6785 | need_lib_prefix=no |
| 6786 | need_version=no |
| 6787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 6788 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6789 | shlibpath_var=LD_LIBRARY_PATH |
| 6790 | shlibpath_overrides_runpath=no |
| 6791 | hardcode_into_libs=yes |
| 6792 | dynamic_linker='GNU ld.so' |
| 6793 | ;; |
| 6794 | |
| 6795 | freebsd*) |
| 6796 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6797 | version_type=freebsd-$objformat |
| 6798 | case $version_type in |
| 6799 | freebsd-elf*) |
| 6800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 6801 | need_version=no |
| 6802 | need_lib_prefix=no |
| 6803 | ;; |
| 6804 | freebsd-*) |
| 6805 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 6806 | need_version=yes |
| 6807 | ;; |
| 6808 | esac |
| 6809 | shlibpath_var=LD_LIBRARY_PATH |
| 6810 | case $host_os in |
| 6811 | freebsd2*) |
| 6812 | shlibpath_overrides_runpath=yes |
| 6813 | ;; |
| 6814 | freebsd3.01* | freebsdelf3.01*) |
| 6815 | shlibpath_overrides_runpath=yes |
| 6816 | hardcode_into_libs=yes |
| 6817 | ;; |
| 6818 | *) # from 3.2 on |
| 6819 | shlibpath_overrides_runpath=no |
| 6820 | hardcode_into_libs=yes |
| 6821 | ;; |
| 6822 | esac |
| 6823 | ;; |
| 6824 | |
| 6825 | gnu*) |
| 6826 | version_type=linux |
| 6827 | need_lib_prefix=no |
| 6828 | need_version=no |
| 6829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 6830 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6831 | shlibpath_var=LD_LIBRARY_PATH |
| 6832 | hardcode_into_libs=yes |
| 6833 | ;; |
| 6834 | |
| 6835 | hpux9* | hpux10* | hpux11*) |
| 6836 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6837 | # link against other versions. |
| 6838 | version_type=sunos |
| 6839 | need_lib_prefix=no |
| 6840 | need_version=no |
| 6841 | case "$host_cpu" in |
| 6842 | ia64*) |
| 6843 | shrext_cmds='.so' |
| 6844 | hardcode_into_libs=yes |
| 6845 | dynamic_linker="$host_os dld.so" |
| 6846 | shlibpath_var=LD_LIBRARY_PATH |
| 6847 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 6848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6850 | if test "X$HPUX_IA64_MODE" = X32; then |
| 6851 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 6852 | else |
| 6853 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 6854 | fi |
| 6855 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 6856 | ;; |
| 6857 | hppa*64*) |
| 6858 | shrext_cmds='.sl' |
| 6859 | hardcode_into_libs=yes |
| 6860 | dynamic_linker="$host_os dld.sl" |
| 6861 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 6862 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 6863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6864 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6865 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 6866 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 6867 | ;; |
| 6868 | *) |
| 6869 | shrext_cmds='.sl' |
| 6870 | dynamic_linker="$host_os dld.sl" |
| 6871 | shlibpath_var=SHLIB_PATH |
| 6872 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6874 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6875 | ;; |
| 6876 | esac |
| 6877 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6878 | postinstall_cmds='chmod 555 $lib' |
| 6879 | ;; |
| 6880 | |
| 6881 | irix5* | irix6* | nonstopux*) |
| 6882 | case $host_os in |
| 6883 | nonstopux*) version_type=nonstopux ;; |
| 6884 | *) |
| 6885 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6886 | version_type=linux |
| 6887 | else |
| 6888 | version_type=irix |
| 6889 | fi ;; |
| 6890 | esac |
| 6891 | need_lib_prefix=no |
| 6892 | need_version=no |
| 6893 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 6895 | case $host_os in |
| 6896 | irix5* | nonstopux*) |
| 6897 | libsuff= shlibsuff= |
| 6898 | ;; |
| 6899 | *) |
| 6900 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6901 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 6902 | libsuff= shlibsuff= libmagic=32-bit;; |
| 6903 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 6904 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6905 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 6906 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6907 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6908 | esac |
| 6909 | ;; |
| 6910 | esac |
| 6911 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6912 | shlibpath_overrides_runpath=no |
| 6913 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6914 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6915 | hardcode_into_libs=yes |
| 6916 | ;; |
| 6917 | |
| 6918 | # No shared lib support for Linux oldld, aout, or coff. |
| 6919 | linux*oldld* | linux*aout* | linux*coff*) |
| 6920 | dynamic_linker=no |
| 6921 | ;; |
| 6922 | |
| 6923 | # This must be Linux ELF. |
| 6924 | linux*) |
| 6925 | version_type=linux |
| 6926 | need_lib_prefix=no |
| 6927 | need_version=no |
| 6928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6929 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6930 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6931 | shlibpath_var=LD_LIBRARY_PATH |
| 6932 | shlibpath_overrides_runpath=no |
| 6933 | # This implies no fast_install, which is unacceptable. |
| 6934 | # Some rework will be needed to allow for fast_install |
| 6935 | # before this can be enabled. |
| 6936 | hardcode_into_libs=yes |
| 6937 | |
| 6938 | # Append ld.so.conf contents to the search path |
| 6939 | if test -f /etc/ld.so.conf; then |
| 6940 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 6941 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 6942 | fi |
| 6943 | |
| 6944 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6945 | # powerpc, because MkLinux only supported shared libraries with the |
| 6946 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6947 | # most powerpc-linux boxes support dynamic linking these days and |
| 6948 | # people can always --disable-shared, the test was removed, and we |
| 6949 | # assume the GNU/Linux dynamic linker is in use. |
| 6950 | dynamic_linker='GNU/Linux ld.so' |
| 6951 | ;; |
| 6952 | |
| 6953 | knetbsd*-gnu) |
| 6954 | version_type=linux |
| 6955 | need_lib_prefix=no |
| 6956 | need_version=no |
| 6957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 6958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6959 | shlibpath_var=LD_LIBRARY_PATH |
| 6960 | shlibpath_overrides_runpath=no |
| 6961 | hardcode_into_libs=yes |
| 6962 | dynamic_linker='GNU ld.so' |
| 6963 | ;; |
| 6964 | |
| 6965 | netbsd*) |
| 6966 | version_type=sunos |
| 6967 | need_lib_prefix=no |
| 6968 | need_version=no |
| 6969 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 6971 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6972 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6973 | else |
| 6974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 6975 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6976 | dynamic_linker='NetBSD ld.elf_so' |
| 6977 | fi |
| 6978 | shlibpath_var=LD_LIBRARY_PATH |
| 6979 | shlibpath_overrides_runpath=yes |
| 6980 | hardcode_into_libs=yes |
| 6981 | ;; |
| 6982 | |
| 6983 | newsos6) |
| 6984 | version_type=linux |
| 6985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6986 | shlibpath_var=LD_LIBRARY_PATH |
| 6987 | shlibpath_overrides_runpath=yes |
| 6988 | ;; |
| 6989 | |
| 6990 | nto-qnx*) |
| 6991 | version_type=linux |
| 6992 | need_lib_prefix=no |
| 6993 | need_version=no |
| 6994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6996 | shlibpath_var=LD_LIBRARY_PATH |
| 6997 | shlibpath_overrides_runpath=yes |
| 6998 | ;; |
| 6999 | |
| 7000 | openbsd*) |
| 7001 | version_type=sunos |
| 7002 | need_lib_prefix=no |
| 7003 | need_version=no |
| 7004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7005 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7006 | shlibpath_var=LD_LIBRARY_PATH |
| 7007 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7008 | case $host_os in |
| 7009 | openbsd2.[89] | openbsd2.[89].*) |
| 7010 | shlibpath_overrides_runpath=no |
| 7011 | ;; |
| 7012 | *) |
| 7013 | shlibpath_overrides_runpath=yes |
| 7014 | ;; |
| 7015 | esac |
| 7016 | else |
| 7017 | shlibpath_overrides_runpath=yes |
| 7018 | fi |
| 7019 | ;; |
| 7020 | |
| 7021 | os2*) |
| 7022 | libname_spec='$name' |
| 7023 | shrext_cmds=".dll" |
| 7024 | need_lib_prefix=no |
| 7025 | library_names_spec='$libname${shared_ext} $libname.a' |
| 7026 | dynamic_linker='OS/2 ld.exe' |
| 7027 | shlibpath_var=LIBPATH |
| 7028 | ;; |
| 7029 | |
| 7030 | osf3* | osf4* | osf5*) |
| 7031 | version_type=osf |
| 7032 | need_lib_prefix=no |
| 7033 | need_version=no |
| 7034 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7036 | shlibpath_var=LD_LIBRARY_PATH |
| 7037 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7038 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7039 | ;; |
| 7040 | |
| 7041 | sco3.2v5*) |
| 7042 | version_type=osf |
| 7043 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7045 | shlibpath_var=LD_LIBRARY_PATH |
| 7046 | ;; |
| 7047 | |
| 7048 | solaris*) |
| 7049 | version_type=linux |
| 7050 | need_lib_prefix=no |
| 7051 | need_version=no |
| 7052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7054 | shlibpath_var=LD_LIBRARY_PATH |
| 7055 | shlibpath_overrides_runpath=yes |
| 7056 | hardcode_into_libs=yes |
| 7057 | # ldd complains unless libraries are executable |
| 7058 | postinstall_cmds='chmod +x $lib' |
| 7059 | ;; |
| 7060 | |
| 7061 | sunos4*) |
| 7062 | version_type=sunos |
| 7063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7064 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7065 | shlibpath_var=LD_LIBRARY_PATH |
| 7066 | shlibpath_overrides_runpath=yes |
| 7067 | if test "$with_gnu_ld" = yes; then |
| 7068 | need_lib_prefix=no |
| 7069 | fi |
| 7070 | need_version=yes |
| 7071 | ;; |
| 7072 | |
| 7073 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7074 | version_type=linux |
| 7075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7076 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7077 | shlibpath_var=LD_LIBRARY_PATH |
| 7078 | case $host_vendor in |
| 7079 | sni) |
| 7080 | shlibpath_overrides_runpath=no |
| 7081 | need_lib_prefix=no |
| 7082 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7083 | runpath_var=LD_RUN_PATH |
| 7084 | ;; |
| 7085 | siemens) |
| 7086 | need_lib_prefix=no |
| 7087 | ;; |
| 7088 | motorola) |
| 7089 | need_lib_prefix=no |
| 7090 | need_version=no |
| 7091 | shlibpath_overrides_runpath=no |
| 7092 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7093 | ;; |
| 7094 | esac |
| 7095 | ;; |
| 7096 | |
| 7097 | sysv4*MP*) |
| 7098 | if test -d /usr/nec ;then |
| 7099 | version_type=linux |
| 7100 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7101 | soname_spec='$libname${shared_ext}.$major' |
| 7102 | shlibpath_var=LD_LIBRARY_PATH |
| 7103 | fi |
| 7104 | ;; |
| 7105 | |
| 7106 | uts4*) |
| 7107 | version_type=linux |
| 7108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7109 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7110 | shlibpath_var=LD_LIBRARY_PATH |
| 7111 | ;; |
| 7112 | |
| 7113 | *) |
| 7114 | dynamic_linker=no |
| 7115 | ;; |
| 7116 | esac |
| 7117 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 7118 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7119 | test "$dynamic_linker" = no && can_build_shared=no |
| 7120 | |
| 7121 | |
| 7122 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 7123 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 |
| 7124 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 7125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7126 | else |
| 7127 | |
| 7128 | module=yes |
| 7129 | eval libltdl_cv_shlibext=$shrext_cmds |
| 7130 | |
| 7131 | fi |
| 7132 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 7133 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 |
| 7134 | if test -n "$libltdl_cv_shlibext"; then |
| 7135 | |
| 7136 | cat >>confdefs.h <<_ACEOF |
| 7137 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 7138 | _ACEOF |
| 7139 | |
| 7140 | fi |
| 7141 | |
| 7142 | |
| 7143 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 7144 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 |
| 7145 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 7146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7147 | else |
| 7148 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 7149 | fi |
| 7150 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 7151 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 |
| 7152 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 7153 | |
| 7154 | cat >>confdefs.h <<_ACEOF |
| 7155 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 7156 | _ACEOF |
| 7157 | |
| 7158 | fi |
| 7159 | |
| 7160 | |
| 7161 | echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 7162 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 |
| 7163 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7165 | else |
| 7166 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 7167 | fi |
| 7168 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 7169 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 |
| 7170 | if test -n "$libltdl_cv_sys_search_path"; then |
| 7171 | sys_search_path= |
| 7172 | for dir in $libltdl_cv_sys_search_path; do |
| 7173 | if test -z "$sys_search_path"; then |
| 7174 | sys_search_path="$dir" |
| 7175 | else |
| 7176 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 7177 | fi |
| 7178 | done |
| 7179 | |
| 7180 | cat >>confdefs.h <<_ACEOF |
| 7181 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 7182 | _ACEOF |
| 7183 | |
| 7184 | fi |
| 7185 | |
| 7186 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 7187 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 7188 | if test "${libltdl_cv_objdir+set}" = set; then |
| 7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7190 | else |
| 7191 | libltdl_cv_objdir="$objdir" |
| 7192 | if test -n "$objdir"; then |
| 7193 | : |
| 7194 | else |
| 7195 | rm -f .libs 2>/dev/null |
| 7196 | mkdir .libs 2>/dev/null |
| 7197 | if test -d .libs; then |
| 7198 | libltdl_cv_objdir=.libs |
| 7199 | else |
| 7200 | # MS-DOS does not allow filenames that begin with a dot. |
| 7201 | libltdl_cv_objdir=_libs |
| 7202 | fi |
| 7203 | rmdir .libs 2>/dev/null |
| 7204 | fi |
| 7205 | |
| 7206 | fi |
| 7207 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 7208 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 |
| 7209 | |
| 7210 | cat >>confdefs.h <<_ACEOF |
| 7211 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 7212 | _ACEOF |
| 7213 | |
| 7214 | |
| 7215 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 7216 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 7217 | if test "${lt_cv_path_NM+set}" = set; then |
| 7218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7219 | else |
| 7220 | if test -n "$NM"; then |
| 7221 | # Let the user override the test. |
| 7222 | lt_cv_path_NM="$NM" |
| 7223 | else |
| 7224 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7225 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 7226 | IFS="$lt_save_ifs" |
| 7227 | test -z "$ac_dir" && ac_dir=. |
| 7228 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 7229 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 7230 | # Check to see if the nm accepts a BSD-compat flag. |
| 7231 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 7232 | # nm: unknown option "B" ignored |
| 7233 | # Tru64's nm complains that /dev/null is an invalid object file |
| 7234 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 7235 | */dev/null* | *'Invalid file or object type'*) |
| 7236 | lt_cv_path_NM="$tmp_nm -B" |
| 7237 | break |
| 7238 | ;; |
| 7239 | *) |
| 7240 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 7241 | */dev/null*) |
| 7242 | lt_cv_path_NM="$tmp_nm -p" |
| 7243 | break |
| 7244 | ;; |
| 7245 | *) |
| 7246 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 7247 | continue # so that we can try to find one that supports BSD flags |
| 7248 | ;; |
| 7249 | esac |
| 7250 | esac |
| 7251 | fi |
| 7252 | done |
| 7253 | IFS="$lt_save_ifs" |
| 7254 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 7255 | fi |
| 7256 | fi |
| 7257 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 7258 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 7259 | NM="$lt_cv_path_NM" |
| 7260 | |
| 7261 | |
| 7262 | |
| 7263 | |
| 7264 | |
| 7265 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7266 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 7267 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 7268 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 7269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7270 | else |
| 7271 | |
| 7272 | # These are sane defaults that work on at least a few old systems. |
| 7273 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7274 | |
| 7275 | # Character class describing NM global symbol codes. |
| 7276 | symcode='[BCDEGRST]' |
| 7277 | |
| 7278 | # Regexp to match symbols that can be accessed directly from C. |
| 7279 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7280 | |
| 7281 | # Transform the above into a raw symbol and a C symbol. |
| 7282 | symxfrm='\1 \2\3 \3' |
| 7283 | |
| 7284 | # Transform an extracted symbol line into a proper C declaration |
| 7285 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 7286 | |
| 7287 | # Transform an extracted symbol line into symbol name and symbol address |
| 7288 | 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'" |
| 7289 | |
| 7290 | # Define system-specific variables. |
| 7291 | case $host_os in |
| 7292 | aix*) |
| 7293 | symcode='[BCDT]' |
| 7294 | ;; |
| 7295 | cygwin* | mingw* | pw32*) |
| 7296 | symcode='[ABCDGISTW]' |
| 7297 | ;; |
| 7298 | hpux*) # Its linker distinguishes data from code symbols |
| 7299 | if test "$host_cpu" = ia64; then |
| 7300 | symcode='[ABCDEGRST]' |
| 7301 | fi |
| 7302 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7303 | 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'" |
| 7304 | ;; |
| 7305 | linux*) |
| 7306 | if test "$host_cpu" = ia64; then |
| 7307 | symcode='[ABCDGIRSTW]' |
| 7308 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7309 | 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'" |
| 7310 | fi |
| 7311 | ;; |
| 7312 | irix* | nonstopux*) |
| 7313 | symcode='[BCDEGRST]' |
| 7314 | ;; |
| 7315 | osf*) |
| 7316 | symcode='[BCDEGQRST]' |
| 7317 | ;; |
| 7318 | solaris* | sysv5*) |
| 7319 | symcode='[BDRT]' |
| 7320 | ;; |
| 7321 | sysv4) |
| 7322 | symcode='[DFNSTU]' |
| 7323 | ;; |
| 7324 | esac |
| 7325 | |
| 7326 | # Handle CRLF in mingw tool chain |
| 7327 | opt_cr= |
| 7328 | case $build_os in |
| 7329 | mingw*) |
| 7330 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7331 | ;; |
| 7332 | esac |
| 7333 | |
| 7334 | # If we're using GNU nm, then use its standard symbol codes. |
| 7335 | case `$NM -V 2>&1` in |
| 7336 | *GNU* | *'with BFD'*) |
| 7337 | symcode='[ABCDGIRSTW]' ;; |
| 7338 | esac |
| 7339 | |
| 7340 | # Try without a prefix undercore, then with it. |
| 7341 | for ac_symprfx in "" "_"; do |
| 7342 | |
| 7343 | # Write the raw and C identifiers. |
| 7344 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 7345 | |
| 7346 | # Check to see that the pipe works correctly. |
| 7347 | pipe_works=no |
| 7348 | |
| 7349 | rm -f conftest* |
| 7350 | cat > conftest.$ac_ext <<EOF |
| 7351 | #ifdef __cplusplus |
| 7352 | extern "C" { |
| 7353 | #endif |
| 7354 | char nm_test_var; |
| 7355 | void nm_test_func(){} |
| 7356 | #ifdef __cplusplus |
| 7357 | } |
| 7358 | #endif |
| 7359 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7360 | EOF |
| 7361 | |
| 7362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7363 | (eval $ac_compile) 2>&5 |
| 7364 | ac_status=$? |
| 7365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7366 | (exit $ac_status); }; then |
| 7367 | # Now try to grab the symbols. |
| 7368 | nlist=conftest.nm |
| 7369 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 7370 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 7371 | ac_status=$? |
| 7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7373 | (exit $ac_status); } && test -s "$nlist"; then |
| 7374 | # Try sorting and uniquifying the output. |
| 7375 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7376 | mv -f "$nlist"T "$nlist" |
| 7377 | else |
| 7378 | rm -f "$nlist"T |
| 7379 | fi |
| 7380 | |
| 7381 | # Make sure that we snagged all the symbols we need. |
| 7382 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 7383 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 7384 | cat <<EOF > conftest.$ac_ext |
| 7385 | #ifdef __cplusplus |
| 7386 | extern "C" { |
| 7387 | #endif |
| 7388 | |
| 7389 | EOF |
| 7390 | # Now generate the symbol file. |
| 7391 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 7392 | |
| 7393 | cat <<EOF >> conftest.$ac_ext |
| 7394 | #if defined (__STDC__) && __STDC__ |
| 7395 | # define lt_ptr_t void * |
| 7396 | #else |
| 7397 | # define lt_ptr_t char * |
| 7398 | # define const |
| 7399 | #endif |
| 7400 | |
| 7401 | /* The mapping between symbol names and symbols. */ |
| 7402 | const struct { |
| 7403 | const char *name; |
| 7404 | lt_ptr_t address; |
| 7405 | } |
| 7406 | lt_preloaded_symbols[] = |
| 7407 | { |
| 7408 | EOF |
| 7409 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 7410 | cat <<\EOF >> conftest.$ac_ext |
| 7411 | {0, (lt_ptr_t) 0} |
| 7412 | }; |
| 7413 | |
| 7414 | #ifdef __cplusplus |
| 7415 | } |
| 7416 | #endif |
| 7417 | EOF |
| 7418 | # Now try linking the two files. |
| 7419 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7420 | lt_save_LIBS="$LIBS" |
| 7421 | lt_save_CFLAGS="$CFLAGS" |
| 7422 | LIBS="conftstm.$ac_objext" |
| 7423 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7425 | (eval $ac_link) 2>&5 |
| 7426 | ac_status=$? |
| 7427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7428 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 7429 | pipe_works=yes |
| 7430 | fi |
| 7431 | LIBS="$lt_save_LIBS" |
| 7432 | CFLAGS="$lt_save_CFLAGS" |
| 7433 | else |
| 7434 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7435 | fi |
| 7436 | else |
| 7437 | echo "cannot find nm_test_var in $nlist" >&5 |
| 7438 | fi |
| 7439 | else |
| 7440 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7441 | fi |
| 7442 | else |
| 7443 | echo "$progname: failed program was:" >&5 |
| 7444 | cat conftest.$ac_ext >&5 |
| 7445 | fi |
| 7446 | rm -f conftest* conftst* |
| 7447 | |
| 7448 | # Do not use the global_symbol_pipe unless it works. |
| 7449 | if test "$pipe_works" = yes; then |
| 7450 | break |
| 7451 | else |
| 7452 | lt_cv_sys_global_symbol_pipe= |
| 7453 | fi |
| 7454 | done |
| 7455 | |
| 7456 | fi |
| 7457 | |
| 7458 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7459 | lt_cv_sys_global_symbol_to_cdecl= |
| 7460 | fi |
| 7461 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7462 | echo "$as_me:$LINENO: result: failed" >&5 |
| 7463 | echo "${ECHO_T}failed" >&6 |
| 7464 | else |
| 7465 | echo "$as_me:$LINENO: result: ok" >&5 |
| 7466 | echo "${ECHO_T}ok" >&6 |
| 7467 | fi |
| 7468 | |
| 7469 | |
| 7470 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 7471 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 |
| 7472 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 7473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7474 | else |
| 7475 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 7476 | libltdl_cv_preloaded_symbols=yes |
| 7477 | else |
| 7478 | libltdl_cv_preloaded_symbols=no |
| 7479 | fi |
| 7480 | |
| 7481 | fi |
| 7482 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 7483 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 |
| 7484 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 7485 | |
| 7486 | cat >>confdefs.h <<\_ACEOF |
| 7487 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 7488 | _ACEOF |
| 7489 | |
| 7490 | fi |
| 7491 | |
| 7492 | LIBADD_DL= |
| 7493 | |
| 7494 | ac_ext=c |
| 7495 | ac_cpp='$CPP $CPPFLAGS' |
| 7496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7499 | |
| 7500 | |
| 7501 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 7502 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7503 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7505 | else |
| 7506 | cat >conftest.$ac_ext <<_ACEOF |
| 7507 | /* confdefs.h. */ |
| 7508 | _ACEOF |
| 7509 | cat confdefs.h >>conftest.$ac_ext |
| 7510 | cat >>conftest.$ac_ext <<_ACEOF |
| 7511 | /* end confdefs.h. */ |
| 7512 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 7513 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7514 | #define shl_load innocuous_shl_load |
| 7515 | |
| 7516 | /* System header to define __stub macros and hopefully few prototypes, |
| 7517 | which can conflict with char shl_load (); below. |
| 7518 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7519 | <limits.h> exists even on freestanding compilers. */ |
| 7520 | |
| 7521 | #ifdef __STDC__ |
| 7522 | # include <limits.h> |
| 7523 | #else |
| 7524 | # include <assert.h> |
| 7525 | #endif |
| 7526 | |
| 7527 | #undef shl_load |
| 7528 | |
| 7529 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7530 | #ifdef __cplusplus |
| 7531 | extern "C" |
| 7532 | { |
| 7533 | #endif |
| 7534 | /* We use char because int might match the return type of a gcc2 |
| 7535 | builtin and then its argument prototype would still apply. */ |
| 7536 | char shl_load (); |
| 7537 | /* The GNU C library defines this for functions which it implements |
| 7538 | to always fail with ENOSYS. Some functions are actually named |
| 7539 | something starting with __ and the normal name is an alias. */ |
| 7540 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7541 | choke me |
| 7542 | #else |
| 7543 | char (*f) () = shl_load; |
| 7544 | #endif |
| 7545 | #ifdef __cplusplus |
| 7546 | } |
| 7547 | #endif |
| 7548 | |
| 7549 | int |
| 7550 | main () |
| 7551 | { |
| 7552 | return f != shl_load; |
| 7553 | ; |
| 7554 | return 0; |
| 7555 | } |
| 7556 | _ACEOF |
| 7557 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7559 | (eval $ac_link) 2>conftest.er1 |
| 7560 | ac_status=$? |
| 7561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7562 | rm -f conftest.er1 |
| 7563 | cat conftest.err >&5 |
| 7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7565 | (exit $ac_status); } && |
| 7566 | { ac_try='test -z "$ac_c_werror_flag" |
| 7567 | || test ! -s conftest.err' |
| 7568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7569 | (eval $ac_try) 2>&5 |
| 7570 | ac_status=$? |
| 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7572 | (exit $ac_status); }; } && |
| 7573 | { ac_try='test -s conftest$ac_exeext' |
| 7574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7575 | (eval $ac_try) 2>&5 |
| 7576 | ac_status=$? |
| 7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7578 | (exit $ac_status); }; }; then |
| 7579 | ac_cv_func_shl_load=yes |
| 7580 | else |
| 7581 | echo "$as_me: failed program was:" >&5 |
| 7582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7583 | |
| 7584 | ac_cv_func_shl_load=no |
| 7585 | fi |
| 7586 | rm -f conftest.err conftest.$ac_objext \ |
| 7587 | conftest$ac_exeext conftest.$ac_ext |
| 7588 | fi |
| 7589 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 7590 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7591 | if test $ac_cv_func_shl_load = yes; then |
| 7592 | |
| 7593 | cat >>confdefs.h <<\_ACEOF |
| 7594 | #define HAVE_SHL_LOAD 1 |
| 7595 | _ACEOF |
| 7596 | |
| 7597 | else |
| 7598 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 7599 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7600 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7602 | else |
| 7603 | ac_check_lib_save_LIBS=$LIBS |
| 7604 | LIBS="-ldld $LIBS" |
| 7605 | cat >conftest.$ac_ext <<_ACEOF |
| 7606 | /* confdefs.h. */ |
| 7607 | _ACEOF |
| 7608 | cat confdefs.h >>conftest.$ac_ext |
| 7609 | cat >>conftest.$ac_ext <<_ACEOF |
| 7610 | /* end confdefs.h. */ |
| 7611 | |
| 7612 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7613 | #ifdef __cplusplus |
| 7614 | extern "C" |
| 7615 | #endif |
| 7616 | /* We use char because int might match the return type of a gcc2 |
| 7617 | builtin and then its argument prototype would still apply. */ |
| 7618 | char shl_load (); |
| 7619 | int |
| 7620 | main () |
| 7621 | { |
| 7622 | shl_load (); |
| 7623 | ; |
| 7624 | return 0; |
| 7625 | } |
| 7626 | _ACEOF |
| 7627 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7629 | (eval $ac_link) 2>conftest.er1 |
| 7630 | ac_status=$? |
| 7631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7632 | rm -f conftest.er1 |
| 7633 | cat conftest.err >&5 |
| 7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7635 | (exit $ac_status); } && |
| 7636 | { ac_try='test -z "$ac_c_werror_flag" |
| 7637 | || test ! -s conftest.err' |
| 7638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7639 | (eval $ac_try) 2>&5 |
| 7640 | ac_status=$? |
| 7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7642 | (exit $ac_status); }; } && |
| 7643 | { ac_try='test -s conftest$ac_exeext' |
| 7644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7645 | (eval $ac_try) 2>&5 |
| 7646 | ac_status=$? |
| 7647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7648 | (exit $ac_status); }; }; then |
| 7649 | ac_cv_lib_dld_shl_load=yes |
| 7650 | else |
| 7651 | echo "$as_me: failed program was:" >&5 |
| 7652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7653 | |
| 7654 | ac_cv_lib_dld_shl_load=no |
| 7655 | fi |
| 7656 | rm -f conftest.err conftest.$ac_objext \ |
| 7657 | conftest$ac_exeext conftest.$ac_ext |
| 7658 | LIBS=$ac_check_lib_save_LIBS |
| 7659 | fi |
| 7660 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7661 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7662 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7663 | |
| 7664 | cat >>confdefs.h <<\_ACEOF |
| 7665 | #define HAVE_SHL_LOAD 1 |
| 7666 | _ACEOF |
| 7667 | |
| 7668 | LIBADD_DL="$LIBADD_DL -ldld" |
| 7669 | else |
| 7670 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7671 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7672 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7674 | else |
| 7675 | ac_check_lib_save_LIBS=$LIBS |
| 7676 | LIBS="-ldl $LIBS" |
| 7677 | cat >conftest.$ac_ext <<_ACEOF |
| 7678 | /* confdefs.h. */ |
| 7679 | _ACEOF |
| 7680 | cat confdefs.h >>conftest.$ac_ext |
| 7681 | cat >>conftest.$ac_ext <<_ACEOF |
| 7682 | /* end confdefs.h. */ |
| 7683 | |
| 7684 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7685 | #ifdef __cplusplus |
| 7686 | extern "C" |
| 7687 | #endif |
| 7688 | /* We use char because int might match the return type of a gcc2 |
| 7689 | builtin and then its argument prototype would still apply. */ |
| 7690 | char dlopen (); |
| 7691 | int |
| 7692 | main () |
| 7693 | { |
| 7694 | dlopen (); |
| 7695 | ; |
| 7696 | return 0; |
| 7697 | } |
| 7698 | _ACEOF |
| 7699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7701 | (eval $ac_link) 2>conftest.er1 |
| 7702 | ac_status=$? |
| 7703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7704 | rm -f conftest.er1 |
| 7705 | cat conftest.err >&5 |
| 7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7707 | (exit $ac_status); } && |
| 7708 | { ac_try='test -z "$ac_c_werror_flag" |
| 7709 | || test ! -s conftest.err' |
| 7710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7711 | (eval $ac_try) 2>&5 |
| 7712 | ac_status=$? |
| 7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7714 | (exit $ac_status); }; } && |
| 7715 | { ac_try='test -s conftest$ac_exeext' |
| 7716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7717 | (eval $ac_try) 2>&5 |
| 7718 | ac_status=$? |
| 7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7720 | (exit $ac_status); }; }; then |
| 7721 | ac_cv_lib_dl_dlopen=yes |
| 7722 | else |
| 7723 | echo "$as_me: failed program was:" >&5 |
| 7724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7725 | |
| 7726 | ac_cv_lib_dl_dlopen=no |
| 7727 | fi |
| 7728 | rm -f conftest.err conftest.$ac_objext \ |
| 7729 | conftest$ac_exeext conftest.$ac_ext |
| 7730 | LIBS=$ac_check_lib_save_LIBS |
| 7731 | fi |
| 7732 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7733 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7734 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7735 | |
| 7736 | cat >>confdefs.h <<\_ACEOF |
| 7737 | #define HAVE_LIBDL 1 |
| 7738 | _ACEOF |
| 7739 | |
| 7740 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 7741 | else |
| 7742 | cat >conftest.$ac_ext <<_ACEOF |
| 7743 | /* confdefs.h. */ |
| 7744 | _ACEOF |
| 7745 | cat confdefs.h >>conftest.$ac_ext |
| 7746 | cat >>conftest.$ac_ext <<_ACEOF |
| 7747 | /* end confdefs.h. */ |
| 7748 | #if HAVE_DLFCN_H |
| 7749 | # include <dlfcn.h> |
| 7750 | #endif |
| 7751 | |
| 7752 | int |
| 7753 | main () |
| 7754 | { |
| 7755 | dlopen(0, 0); |
| 7756 | ; |
| 7757 | return 0; |
| 7758 | } |
| 7759 | _ACEOF |
| 7760 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7762 | (eval $ac_link) 2>conftest.er1 |
| 7763 | ac_status=$? |
| 7764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7765 | rm -f conftest.er1 |
| 7766 | cat conftest.err >&5 |
| 7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7768 | (exit $ac_status); } && |
| 7769 | { ac_try='test -z "$ac_c_werror_flag" |
| 7770 | || test ! -s conftest.err' |
| 7771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7772 | (eval $ac_try) 2>&5 |
| 7773 | ac_status=$? |
| 7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7775 | (exit $ac_status); }; } && |
| 7776 | { ac_try='test -s conftest$ac_exeext' |
| 7777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7778 | (eval $ac_try) 2>&5 |
| 7779 | ac_status=$? |
| 7780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7781 | (exit $ac_status); }; }; then |
| 7782 | |
| 7783 | cat >>confdefs.h <<\_ACEOF |
| 7784 | #define HAVE_LIBDL 1 |
| 7785 | _ACEOF |
| 7786 | libltdl_cv_func_dlopen="yes" |
| 7787 | else |
| 7788 | echo "$as_me: failed program was:" >&5 |
| 7789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7790 | |
| 7791 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 7792 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 7793 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 7794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7795 | else |
| 7796 | ac_check_lib_save_LIBS=$LIBS |
| 7797 | LIBS="-lsvld $LIBS" |
| 7798 | cat >conftest.$ac_ext <<_ACEOF |
| 7799 | /* confdefs.h. */ |
| 7800 | _ACEOF |
| 7801 | cat confdefs.h >>conftest.$ac_ext |
| 7802 | cat >>conftest.$ac_ext <<_ACEOF |
| 7803 | /* end confdefs.h. */ |
| 7804 | |
| 7805 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7806 | #ifdef __cplusplus |
| 7807 | extern "C" |
| 7808 | #endif |
| 7809 | /* We use char because int might match the return type of a gcc2 |
| 7810 | builtin and then its argument prototype would still apply. */ |
| 7811 | char dlopen (); |
| 7812 | int |
| 7813 | main () |
| 7814 | { |
| 7815 | dlopen (); |
| 7816 | ; |
| 7817 | return 0; |
| 7818 | } |
| 7819 | _ACEOF |
| 7820 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7822 | (eval $ac_link) 2>conftest.er1 |
| 7823 | ac_status=$? |
| 7824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7825 | rm -f conftest.er1 |
| 7826 | cat conftest.err >&5 |
| 7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7828 | (exit $ac_status); } && |
| 7829 | { ac_try='test -z "$ac_c_werror_flag" |
| 7830 | || test ! -s conftest.err' |
| 7831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7832 | (eval $ac_try) 2>&5 |
| 7833 | ac_status=$? |
| 7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7835 | (exit $ac_status); }; } && |
| 7836 | { ac_try='test -s conftest$ac_exeext' |
| 7837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7838 | (eval $ac_try) 2>&5 |
| 7839 | ac_status=$? |
| 7840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7841 | (exit $ac_status); }; }; then |
| 7842 | ac_cv_lib_svld_dlopen=yes |
| 7843 | else |
| 7844 | echo "$as_me: failed program was:" >&5 |
| 7845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7846 | |
| 7847 | ac_cv_lib_svld_dlopen=no |
| 7848 | fi |
| 7849 | rm -f conftest.err conftest.$ac_objext \ |
| 7850 | conftest$ac_exeext conftest.$ac_ext |
| 7851 | LIBS=$ac_check_lib_save_LIBS |
| 7852 | fi |
| 7853 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 7854 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 7855 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 7856 | |
| 7857 | cat >>confdefs.h <<\_ACEOF |
| 7858 | #define HAVE_LIBDL 1 |
| 7859 | _ACEOF |
| 7860 | |
| 7861 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 7862 | else |
| 7863 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 7864 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 7865 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 7866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7867 | else |
| 7868 | ac_check_lib_save_LIBS=$LIBS |
| 7869 | LIBS="-ldld $LIBS" |
| 7870 | cat >conftest.$ac_ext <<_ACEOF |
| 7871 | /* confdefs.h. */ |
| 7872 | _ACEOF |
| 7873 | cat confdefs.h >>conftest.$ac_ext |
| 7874 | cat >>conftest.$ac_ext <<_ACEOF |
| 7875 | /* end confdefs.h. */ |
| 7876 | |
| 7877 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7878 | #ifdef __cplusplus |
| 7879 | extern "C" |
| 7880 | #endif |
| 7881 | /* We use char because int might match the return type of a gcc2 |
| 7882 | builtin and then its argument prototype would still apply. */ |
| 7883 | char dld_link (); |
| 7884 | int |
| 7885 | main () |
| 7886 | { |
| 7887 | dld_link (); |
| 7888 | ; |
| 7889 | return 0; |
| 7890 | } |
| 7891 | _ACEOF |
| 7892 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7894 | (eval $ac_link) 2>conftest.er1 |
| 7895 | ac_status=$? |
| 7896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7897 | rm -f conftest.er1 |
| 7898 | cat conftest.err >&5 |
| 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7900 | (exit $ac_status); } && |
| 7901 | { ac_try='test -z "$ac_c_werror_flag" |
| 7902 | || test ! -s conftest.err' |
| 7903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7904 | (eval $ac_try) 2>&5 |
| 7905 | ac_status=$? |
| 7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7907 | (exit $ac_status); }; } && |
| 7908 | { ac_try='test -s conftest$ac_exeext' |
| 7909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7910 | (eval $ac_try) 2>&5 |
| 7911 | ac_status=$? |
| 7912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7913 | (exit $ac_status); }; }; then |
| 7914 | ac_cv_lib_dld_dld_link=yes |
| 7915 | else |
| 7916 | echo "$as_me: failed program was:" >&5 |
| 7917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7918 | |
| 7919 | ac_cv_lib_dld_dld_link=no |
| 7920 | fi |
| 7921 | rm -f conftest.err conftest.$ac_objext \ |
| 7922 | conftest$ac_exeext conftest.$ac_ext |
| 7923 | LIBS=$ac_check_lib_save_LIBS |
| 7924 | fi |
| 7925 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 7926 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 7927 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 7928 | |
| 7929 | cat >>confdefs.h <<\_ACEOF |
| 7930 | #define HAVE_DLD 1 |
| 7931 | _ACEOF |
| 7932 | |
| 7933 | LIBADD_DL="$LIBADD_DL -ldld" |
| 7934 | else |
| 7935 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 7936 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 |
| 7937 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 7938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7939 | else |
| 7940 | cat >conftest.$ac_ext <<_ACEOF |
| 7941 | /* confdefs.h. */ |
| 7942 | _ACEOF |
| 7943 | cat confdefs.h >>conftest.$ac_ext |
| 7944 | cat >>conftest.$ac_ext <<_ACEOF |
| 7945 | /* end confdefs.h. */ |
| 7946 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 7947 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7948 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 7949 | |
| 7950 | /* System header to define __stub macros and hopefully few prototypes, |
| 7951 | which can conflict with char _dyld_func_lookup (); below. |
| 7952 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7953 | <limits.h> exists even on freestanding compilers. */ |
| 7954 | |
| 7955 | #ifdef __STDC__ |
| 7956 | # include <limits.h> |
| 7957 | #else |
| 7958 | # include <assert.h> |
| 7959 | #endif |
| 7960 | |
| 7961 | #undef _dyld_func_lookup |
| 7962 | |
| 7963 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7964 | #ifdef __cplusplus |
| 7965 | extern "C" |
| 7966 | { |
| 7967 | #endif |
| 7968 | /* We use char because int might match the return type of a gcc2 |
| 7969 | builtin and then its argument prototype would still apply. */ |
| 7970 | char _dyld_func_lookup (); |
| 7971 | /* The GNU C library defines this for functions which it implements |
| 7972 | to always fail with ENOSYS. Some functions are actually named |
| 7973 | something starting with __ and the normal name is an alias. */ |
| 7974 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) |
| 7975 | choke me |
| 7976 | #else |
| 7977 | char (*f) () = _dyld_func_lookup; |
| 7978 | #endif |
| 7979 | #ifdef __cplusplus |
| 7980 | } |
| 7981 | #endif |
| 7982 | |
| 7983 | int |
| 7984 | main () |
| 7985 | { |
| 7986 | return f != _dyld_func_lookup; |
| 7987 | ; |
| 7988 | return 0; |
| 7989 | } |
| 7990 | _ACEOF |
| 7991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7993 | (eval $ac_link) 2>conftest.er1 |
| 7994 | ac_status=$? |
| 7995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7996 | rm -f conftest.er1 |
| 7997 | cat conftest.err >&5 |
| 7998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7999 | (exit $ac_status); } && |
| 8000 | { ac_try='test -z "$ac_c_werror_flag" |
| 8001 | || test ! -s conftest.err' |
| 8002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8003 | (eval $ac_try) 2>&5 |
| 8004 | ac_status=$? |
| 8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8006 | (exit $ac_status); }; } && |
| 8007 | { ac_try='test -s conftest$ac_exeext' |
| 8008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8009 | (eval $ac_try) 2>&5 |
| 8010 | ac_status=$? |
| 8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8012 | (exit $ac_status); }; }; then |
| 8013 | ac_cv_func__dyld_func_lookup=yes |
| 8014 | else |
| 8015 | echo "$as_me: failed program was:" >&5 |
| 8016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8017 | |
| 8018 | ac_cv_func__dyld_func_lookup=no |
| 8019 | fi |
| 8020 | rm -f conftest.err conftest.$ac_objext \ |
| 8021 | conftest$ac_exeext conftest.$ac_ext |
| 8022 | fi |
| 8023 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 8024 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 |
| 8025 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 8026 | |
| 8027 | cat >>confdefs.h <<\_ACEOF |
| 8028 | #define HAVE_DYLD 1 |
| 8029 | _ACEOF |
| 8030 | |
| 8031 | fi |
| 8032 | |
| 8033 | |
| 8034 | fi |
| 8035 | |
| 8036 | |
| 8037 | fi |
| 8038 | |
| 8039 | |
| 8040 | fi |
| 8041 | rm -f conftest.err conftest.$ac_objext \ |
| 8042 | conftest$ac_exeext conftest.$ac_ext |
| 8043 | |
| 8044 | fi |
| 8045 | |
| 8046 | |
| 8047 | fi |
| 8048 | |
| 8049 | |
| 8050 | fi |
| 8051 | |
| 8052 | |
| 8053 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 8054 | then |
| 8055 | lt_save_LIBS="$LIBS" |
| 8056 | LIBS="$LIBS $LIBADD_DL" |
| 8057 | |
| 8058 | for ac_func in dlerror |
| 8059 | do |
| 8060 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8061 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8062 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8063 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8065 | else |
| 8066 | cat >conftest.$ac_ext <<_ACEOF |
| 8067 | /* confdefs.h. */ |
| 8068 | _ACEOF |
| 8069 | cat confdefs.h >>conftest.$ac_ext |
| 8070 | cat >>conftest.$ac_ext <<_ACEOF |
| 8071 | /* end confdefs.h. */ |
| 8072 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8073 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8074 | #define $ac_func innocuous_$ac_func |
| 8075 | |
| 8076 | /* System header to define __stub macros and hopefully few prototypes, |
| 8077 | which can conflict with char $ac_func (); below. |
| 8078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8079 | <limits.h> exists even on freestanding compilers. */ |
| 8080 | |
| 8081 | #ifdef __STDC__ |
| 8082 | # include <limits.h> |
| 8083 | #else |
| 8084 | # include <assert.h> |
| 8085 | #endif |
| 8086 | |
| 8087 | #undef $ac_func |
| 8088 | |
| 8089 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8090 | #ifdef __cplusplus |
| 8091 | extern "C" |
| 8092 | { |
| 8093 | #endif |
| 8094 | /* We use char because int might match the return type of a gcc2 |
| 8095 | builtin and then its argument prototype would still apply. */ |
| 8096 | char $ac_func (); |
| 8097 | /* The GNU C library defines this for functions which it implements |
| 8098 | to always fail with ENOSYS. Some functions are actually named |
| 8099 | something starting with __ and the normal name is an alias. */ |
| 8100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8101 | choke me |
| 8102 | #else |
| 8103 | char (*f) () = $ac_func; |
| 8104 | #endif |
| 8105 | #ifdef __cplusplus |
| 8106 | } |
| 8107 | #endif |
| 8108 | |
| 8109 | int |
| 8110 | main () |
| 8111 | { |
| 8112 | return f != $ac_func; |
| 8113 | ; |
| 8114 | return 0; |
| 8115 | } |
| 8116 | _ACEOF |
| 8117 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8119 | (eval $ac_link) 2>conftest.er1 |
| 8120 | ac_status=$? |
| 8121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8122 | rm -f conftest.er1 |
| 8123 | cat conftest.err >&5 |
| 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8125 | (exit $ac_status); } && |
| 8126 | { ac_try='test -z "$ac_c_werror_flag" |
| 8127 | || test ! -s conftest.err' |
| 8128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8129 | (eval $ac_try) 2>&5 |
| 8130 | ac_status=$? |
| 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8132 | (exit $ac_status); }; } && |
| 8133 | { ac_try='test -s conftest$ac_exeext' |
| 8134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8135 | (eval $ac_try) 2>&5 |
| 8136 | ac_status=$? |
| 8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8138 | (exit $ac_status); }; }; then |
| 8139 | eval "$as_ac_var=yes" |
| 8140 | else |
| 8141 | echo "$as_me: failed program was:" >&5 |
| 8142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8143 | |
| 8144 | eval "$as_ac_var=no" |
| 8145 | fi |
| 8146 | rm -f conftest.err conftest.$ac_objext \ |
| 8147 | conftest$ac_exeext conftest.$ac_ext |
| 8148 | fi |
| 8149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8150 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8151 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8152 | cat >>confdefs.h <<_ACEOF |
| 8153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8154 | _ACEOF |
| 8155 | |
| 8156 | fi |
| 8157 | done |
| 8158 | |
| 8159 | LIBS="$lt_save_LIBS" |
| 8160 | fi |
| 8161 | ac_ext=c |
| 8162 | ac_cpp='$CPP $CPPFLAGS' |
| 8163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8166 | |
| 8167 | |
| 8168 | |
| 8169 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 8170 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 |
| 8171 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 8172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8173 | else |
| 8174 | ac_cv_sys_symbol_underscore=no |
| 8175 | cat > conftest.$ac_ext <<EOF |
| 8176 | void nm_test_func(){} |
| 8177 | int main(){nm_test_func;return 0;} |
| 8178 | EOF |
| 8179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8180 | (eval $ac_compile) 2>&5 |
| 8181 | ac_status=$? |
| 8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8183 | (exit $ac_status); }; then |
| 8184 | # Now try to grab the symbols. |
| 8185 | ac_nlist=conftest.nm |
| 8186 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 8187 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 8188 | ac_status=$? |
| 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8190 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 8191 | # See whether the symbols have a leading underscore. |
| 8192 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 8193 | ac_cv_sys_symbol_underscore=yes |
| 8194 | else |
| 8195 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 8196 | : |
| 8197 | else |
| 8198 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 8199 | fi |
| 8200 | fi |
| 8201 | else |
| 8202 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8203 | fi |
| 8204 | else |
| 8205 | echo "configure: failed program was:" >&5 |
| 8206 | cat conftest.c >&5 |
| 8207 | fi |
| 8208 | rm -rf conftest* |
| 8209 | |
| 8210 | fi |
| 8211 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 8212 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 |
| 8213 | |
| 8214 | |
| 8215 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 8216 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 8217 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 8218 | echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 8219 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 |
| 8220 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 8221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8222 | else |
| 8223 | libltdl_cv_need_uscore=unknown |
| 8224 | save_LIBS="$LIBS" |
| 8225 | LIBS="$LIBS $LIBADD_DL" |
| 8226 | if test "$cross_compiling" = yes; then : |
| 8227 | libltdl_cv_need_uscore=cross |
| 8228 | else |
| 8229 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8230 | lt_status=$lt_dlunknown |
| 8231 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 8232 | #line 8232 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8233 | #include "confdefs.h" |
| 8234 | |
| 8235 | #if HAVE_DLFCN_H |
| 8236 | #include <dlfcn.h> |
| 8237 | #endif |
| 8238 | |
| 8239 | #include <stdio.h> |
| 8240 | |
| 8241 | #ifdef RTLD_GLOBAL |
| 8242 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8243 | #else |
| 8244 | # ifdef DL_GLOBAL |
| 8245 | # define LT_DLGLOBAL DL_GLOBAL |
| 8246 | # else |
| 8247 | # define LT_DLGLOBAL 0 |
| 8248 | # endif |
| 8249 | #endif |
| 8250 | |
| 8251 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8252 | find out it does not work in some platform. */ |
| 8253 | #ifndef LT_DLLAZY_OR_NOW |
| 8254 | # ifdef RTLD_LAZY |
| 8255 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8256 | # else |
| 8257 | # ifdef DL_LAZY |
| 8258 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8259 | # else |
| 8260 | # ifdef RTLD_NOW |
| 8261 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8262 | # else |
| 8263 | # ifdef DL_NOW |
| 8264 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8265 | # else |
| 8266 | # define LT_DLLAZY_OR_NOW 0 |
| 8267 | # endif |
| 8268 | # endif |
| 8269 | # endif |
| 8270 | # endif |
| 8271 | #endif |
| 8272 | |
| 8273 | #ifdef __cplusplus |
| 8274 | extern "C" void exit (int); |
| 8275 | #endif |
| 8276 | |
| 8277 | void fnord() { int i=42;} |
| 8278 | int main () |
| 8279 | { |
| 8280 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8281 | int status = $lt_dlunknown; |
| 8282 | |
| 8283 | if (self) |
| 8284 | { |
| 8285 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8286 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8287 | /* dlclose (self); */ |
| 8288 | } |
| 8289 | |
| 8290 | exit (status); |
| 8291 | } |
| 8292 | EOF |
| 8293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8294 | (eval $ac_link) 2>&5 |
| 8295 | ac_status=$? |
| 8296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8297 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8298 | (./conftest; exit; ) 2>/dev/null |
| 8299 | lt_status=$? |
| 8300 | case x$lt_status in |
| 8301 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 8302 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 8303 | x$lt_unknown|x*) ;; |
| 8304 | esac |
| 8305 | else : |
| 8306 | # compilation failed |
| 8307 | |
| 8308 | fi |
| 8309 | fi |
| 8310 | rm -fr conftest* |
| 8311 | |
| 8312 | LIBS="$save_LIBS" |
| 8313 | |
| 8314 | fi |
| 8315 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 8316 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 |
| 8317 | fi |
| 8318 | fi |
| 8319 | |
| 8320 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 8321 | |
| 8322 | cat >>confdefs.h <<\_ACEOF |
| 8323 | #define NEED_USCORE 1 |
| 8324 | _ACEOF |
| 8325 | |
| 8326 | fi |
| 8327 | |
| 8328 | |
| 8329 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 8330 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 |
| 8331 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 8332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8333 | else |
| 8334 | # PORTME does your system automatically load deplibs for dlopen? |
| 8335 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 8336 | # For now, we just catch OSes we know something about -- in the |
| 8337 | # future, we'll try test this programmatically. |
| 8338 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8339 | case "$host_os" in |
| 8340 | aix3*|aix4.1.*|aix4.2.*) |
| 8341 | # Unknown whether this is true for these versions of AIX, but |
| 8342 | # we want this `case' here to explicitly catch those versions. |
| 8343 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8344 | ;; |
| 8345 | aix[45]*) |
| 8346 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8347 | ;; |
| 8348 | darwin*) |
| 8349 | # Assuming the user has installed a libdl from somewhere, this is true |
| 8350 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 8351 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8352 | ;; |
| 8353 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 8354 | # GNU and its variants, using gnu ld.so (Glibc) |
| 8355 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8356 | ;; |
| 8357 | hpux10*|hpux11*) |
| 8358 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8359 | ;; |
| 8360 | irix[12345]*|irix6.[01]*) |
| 8361 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 8362 | # know how it worked for any of those versions. |
| 8363 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8364 | ;; |
| 8365 | irix*) |
| 8366 | # The case above catches anything before 6.2, and it's known that |
| 8367 | # at 6.2 and later dlopen does load deplibs. |
| 8368 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8369 | ;; |
| 8370 | netbsd*) |
| 8371 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8372 | ;; |
| 8373 | openbsd*) |
| 8374 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8375 | ;; |
| 8376 | osf[1234]*) |
| 8377 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 8378 | # it did *not* use an RPATH in a shared library to find objects the |
| 8379 | # library depends on, so we explictly say `no'. |
| 8380 | libltdl_cv_sys_dlopen_deplibs=no |
| 8381 | ;; |
| 8382 | osf5.0|osf5.0a|osf5.1) |
| 8383 | # dlopen *does* load deplibs and with the right loader patch applied |
| 8384 | # it even uses RPATH in a shared library to search for shared objects |
| 8385 | # that the library depends on, but there's no easy way to know if that |
| 8386 | # patch is installed. Since this is the case, all we can really |
| 8387 | # say is unknown -- it depends on the patch being installed. If |
| 8388 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 8389 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8390 | ;; |
| 8391 | osf*) |
| 8392 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 8393 | # the comments above for what we know about them. |
| 8394 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 8395 | # is used to find them so we can finally say `yes'. |
| 8396 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8397 | ;; |
| 8398 | solaris*) |
| 8399 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8400 | ;; |
| 8401 | esac |
| 8402 | |
| 8403 | fi |
| 8404 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 8405 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 |
| 8406 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 8407 | |
| 8408 | cat >>confdefs.h <<\_ACEOF |
| 8409 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 8410 | _ACEOF |
| 8411 | |
| 8412 | fi |
| 8413 | |
| 8414 | |
| 8415 | for ac_header in argz.h |
| 8416 | do |
| 8417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8423 | fi |
| 8424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8426 | else |
| 8427 | # Is the header compilable? |
| 8428 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8429 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8430 | cat >conftest.$ac_ext <<_ACEOF |
| 8431 | /* confdefs.h. */ |
| 8432 | _ACEOF |
| 8433 | cat confdefs.h >>conftest.$ac_ext |
| 8434 | cat >>conftest.$ac_ext <<_ACEOF |
| 8435 | /* end confdefs.h. */ |
| 8436 | $ac_includes_default |
| 8437 | #include <$ac_header> |
| 8438 | _ACEOF |
| 8439 | rm -f conftest.$ac_objext |
| 8440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8441 | (eval $ac_compile) 2>conftest.er1 |
| 8442 | ac_status=$? |
| 8443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8444 | rm -f conftest.er1 |
| 8445 | cat conftest.err >&5 |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); } && |
| 8448 | { ac_try='test -z "$ac_c_werror_flag" |
| 8449 | || test ! -s conftest.err' |
| 8450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8451 | (eval $ac_try) 2>&5 |
| 8452 | ac_status=$? |
| 8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8454 | (exit $ac_status); }; } && |
| 8455 | { ac_try='test -s conftest.$ac_objext' |
| 8456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8457 | (eval $ac_try) 2>&5 |
| 8458 | ac_status=$? |
| 8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8460 | (exit $ac_status); }; }; then |
| 8461 | ac_header_compiler=yes |
| 8462 | else |
| 8463 | echo "$as_me: failed program was:" >&5 |
| 8464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8465 | |
| 8466 | ac_header_compiler=no |
| 8467 | fi |
| 8468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8470 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8471 | |
| 8472 | # Is the header present? |
| 8473 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8474 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8475 | cat >conftest.$ac_ext <<_ACEOF |
| 8476 | /* confdefs.h. */ |
| 8477 | _ACEOF |
| 8478 | cat confdefs.h >>conftest.$ac_ext |
| 8479 | cat >>conftest.$ac_ext <<_ACEOF |
| 8480 | /* end confdefs.h. */ |
| 8481 | #include <$ac_header> |
| 8482 | _ACEOF |
| 8483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8485 | ac_status=$? |
| 8486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8487 | rm -f conftest.er1 |
| 8488 | cat conftest.err >&5 |
| 8489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8490 | (exit $ac_status); } >/dev/null; then |
| 8491 | if test -s conftest.err; then |
| 8492 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8494 | else |
| 8495 | ac_cpp_err= |
| 8496 | fi |
| 8497 | else |
| 8498 | ac_cpp_err=yes |
| 8499 | fi |
| 8500 | if test -z "$ac_cpp_err"; then |
| 8501 | ac_header_preproc=yes |
| 8502 | else |
| 8503 | echo "$as_me: failed program was:" >&5 |
| 8504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8505 | |
| 8506 | ac_header_preproc=no |
| 8507 | fi |
| 8508 | rm -f conftest.err conftest.$ac_ext |
| 8509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8510 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8511 | |
| 8512 | # So? What about this header? |
| 8513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8514 | yes:no: ) |
| 8515 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8516 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8518 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8519 | ac_header_preproc=yes |
| 8520 | ;; |
| 8521 | no:yes:* ) |
| 8522 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8523 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8524 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8525 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8527 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8528 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8529 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8531 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8532 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8533 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8534 | ( |
| 8535 | cat <<\_ASBOX |
| 8536 | ## ----------------------------------- ## |
| 8537 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8538 | ## ----------------------------------- ## |
| 8539 | _ASBOX |
| 8540 | ) | |
| 8541 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8542 | ;; |
| 8543 | esac |
| 8544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8548 | else |
| 8549 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8550 | fi |
| 8551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8552 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8553 | |
| 8554 | fi |
| 8555 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8556 | cat >>confdefs.h <<_ACEOF |
| 8557 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8558 | _ACEOF |
| 8559 | |
| 8560 | fi |
| 8561 | |
| 8562 | done |
| 8563 | |
| 8564 | |
| 8565 | echo "$as_me:$LINENO: checking for error_t" >&5 |
| 8566 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 |
| 8567 | if test "${ac_cv_type_error_t+set}" = set; then |
| 8568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8569 | else |
| 8570 | cat >conftest.$ac_ext <<_ACEOF |
| 8571 | /* confdefs.h. */ |
| 8572 | _ACEOF |
| 8573 | cat confdefs.h >>conftest.$ac_ext |
| 8574 | cat >>conftest.$ac_ext <<_ACEOF |
| 8575 | /* end confdefs.h. */ |
| 8576 | #if HAVE_ARGZ_H |
| 8577 | # include <argz.h> |
| 8578 | #endif |
| 8579 | |
| 8580 | int |
| 8581 | main () |
| 8582 | { |
| 8583 | if ((error_t *) 0) |
| 8584 | return 0; |
| 8585 | if (sizeof (error_t)) |
| 8586 | return 0; |
| 8587 | ; |
| 8588 | return 0; |
| 8589 | } |
| 8590 | _ACEOF |
| 8591 | rm -f conftest.$ac_objext |
| 8592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8593 | (eval $ac_compile) 2>conftest.er1 |
| 8594 | ac_status=$? |
| 8595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8596 | rm -f conftest.er1 |
| 8597 | cat conftest.err >&5 |
| 8598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8599 | (exit $ac_status); } && |
| 8600 | { ac_try='test -z "$ac_c_werror_flag" |
| 8601 | || test ! -s conftest.err' |
| 8602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8603 | (eval $ac_try) 2>&5 |
| 8604 | ac_status=$? |
| 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8606 | (exit $ac_status); }; } && |
| 8607 | { ac_try='test -s conftest.$ac_objext' |
| 8608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8609 | (eval $ac_try) 2>&5 |
| 8610 | ac_status=$? |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); }; }; then |
| 8613 | ac_cv_type_error_t=yes |
| 8614 | else |
| 8615 | echo "$as_me: failed program was:" >&5 |
| 8616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8617 | |
| 8618 | ac_cv_type_error_t=no |
| 8619 | fi |
| 8620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8621 | fi |
| 8622 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 8623 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 |
| 8624 | if test $ac_cv_type_error_t = yes; then |
| 8625 | |
| 8626 | cat >>confdefs.h <<_ACEOF |
| 8627 | #define HAVE_ERROR_T 1 |
| 8628 | _ACEOF |
| 8629 | |
| 8630 | |
| 8631 | else |
| 8632 | |
| 8633 | cat >>confdefs.h <<\_ACEOF |
| 8634 | #define error_t int |
| 8635 | _ACEOF |
| 8636 | |
| 8637 | fi |
| 8638 | |
| 8639 | |
| 8640 | |
| 8641 | |
| 8642 | |
| 8643 | |
| 8644 | |
| 8645 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 8646 | do |
| 8647 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8648 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8649 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8650 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8652 | else |
| 8653 | cat >conftest.$ac_ext <<_ACEOF |
| 8654 | /* confdefs.h. */ |
| 8655 | _ACEOF |
| 8656 | cat confdefs.h >>conftest.$ac_ext |
| 8657 | cat >>conftest.$ac_ext <<_ACEOF |
| 8658 | /* end confdefs.h. */ |
| 8659 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8660 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8661 | #define $ac_func innocuous_$ac_func |
| 8662 | |
| 8663 | /* System header to define __stub macros and hopefully few prototypes, |
| 8664 | which can conflict with char $ac_func (); below. |
| 8665 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8666 | <limits.h> exists even on freestanding compilers. */ |
| 8667 | |
| 8668 | #ifdef __STDC__ |
| 8669 | # include <limits.h> |
| 8670 | #else |
| 8671 | # include <assert.h> |
| 8672 | #endif |
| 8673 | |
| 8674 | #undef $ac_func |
| 8675 | |
| 8676 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8677 | #ifdef __cplusplus |
| 8678 | extern "C" |
| 8679 | { |
| 8680 | #endif |
| 8681 | /* We use char because int might match the return type of a gcc2 |
| 8682 | builtin and then its argument prototype would still apply. */ |
| 8683 | char $ac_func (); |
| 8684 | /* The GNU C library defines this for functions which it implements |
| 8685 | to always fail with ENOSYS. Some functions are actually named |
| 8686 | something starting with __ and the normal name is an alias. */ |
| 8687 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8688 | choke me |
| 8689 | #else |
| 8690 | char (*f) () = $ac_func; |
| 8691 | #endif |
| 8692 | #ifdef __cplusplus |
| 8693 | } |
| 8694 | #endif |
| 8695 | |
| 8696 | int |
| 8697 | main () |
| 8698 | { |
| 8699 | return f != $ac_func; |
| 8700 | ; |
| 8701 | return 0; |
| 8702 | } |
| 8703 | _ACEOF |
| 8704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8706 | (eval $ac_link) 2>conftest.er1 |
| 8707 | ac_status=$? |
| 8708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8709 | rm -f conftest.er1 |
| 8710 | cat conftest.err >&5 |
| 8711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8712 | (exit $ac_status); } && |
| 8713 | { ac_try='test -z "$ac_c_werror_flag" |
| 8714 | || test ! -s conftest.err' |
| 8715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8716 | (eval $ac_try) 2>&5 |
| 8717 | ac_status=$? |
| 8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8719 | (exit $ac_status); }; } && |
| 8720 | { ac_try='test -s conftest$ac_exeext' |
| 8721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8722 | (eval $ac_try) 2>&5 |
| 8723 | ac_status=$? |
| 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8725 | (exit $ac_status); }; }; then |
| 8726 | eval "$as_ac_var=yes" |
| 8727 | else |
| 8728 | echo "$as_me: failed program was:" >&5 |
| 8729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8730 | |
| 8731 | eval "$as_ac_var=no" |
| 8732 | fi |
| 8733 | rm -f conftest.err conftest.$ac_objext \ |
| 8734 | conftest$ac_exeext conftest.$ac_ext |
| 8735 | fi |
| 8736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8737 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8738 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8739 | cat >>confdefs.h <<_ACEOF |
| 8740 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8741 | _ACEOF |
| 8742 | |
| 8743 | fi |
| 8744 | done |
| 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 | |
| 8770 | |
| 8771 | |
| 8772 | |
| 8773 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 8774 | stdio.h unistd.h |
| 8775 | do |
| 8776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8782 | fi |
| 8783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8785 | else |
| 8786 | # Is the header compilable? |
| 8787 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8789 | cat >conftest.$ac_ext <<_ACEOF |
| 8790 | /* confdefs.h. */ |
| 8791 | _ACEOF |
| 8792 | cat confdefs.h >>conftest.$ac_ext |
| 8793 | cat >>conftest.$ac_ext <<_ACEOF |
| 8794 | /* end confdefs.h. */ |
| 8795 | $ac_includes_default |
| 8796 | #include <$ac_header> |
| 8797 | _ACEOF |
| 8798 | rm -f conftest.$ac_objext |
| 8799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8800 | (eval $ac_compile) 2>conftest.er1 |
| 8801 | ac_status=$? |
| 8802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8803 | rm -f conftest.er1 |
| 8804 | cat conftest.err >&5 |
| 8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8806 | (exit $ac_status); } && |
| 8807 | { ac_try='test -z "$ac_c_werror_flag" |
| 8808 | || test ! -s conftest.err' |
| 8809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8810 | (eval $ac_try) 2>&5 |
| 8811 | ac_status=$? |
| 8812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8813 | (exit $ac_status); }; } && |
| 8814 | { ac_try='test -s conftest.$ac_objext' |
| 8815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8816 | (eval $ac_try) 2>&5 |
| 8817 | ac_status=$? |
| 8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8819 | (exit $ac_status); }; }; then |
| 8820 | ac_header_compiler=yes |
| 8821 | else |
| 8822 | echo "$as_me: failed program was:" >&5 |
| 8823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8824 | |
| 8825 | ac_header_compiler=no |
| 8826 | fi |
| 8827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8828 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8829 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8830 | |
| 8831 | # Is the header present? |
| 8832 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8834 | cat >conftest.$ac_ext <<_ACEOF |
| 8835 | /* confdefs.h. */ |
| 8836 | _ACEOF |
| 8837 | cat confdefs.h >>conftest.$ac_ext |
| 8838 | cat >>conftest.$ac_ext <<_ACEOF |
| 8839 | /* end confdefs.h. */ |
| 8840 | #include <$ac_header> |
| 8841 | _ACEOF |
| 8842 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8843 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8844 | ac_status=$? |
| 8845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8846 | rm -f conftest.er1 |
| 8847 | cat conftest.err >&5 |
| 8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8849 | (exit $ac_status); } >/dev/null; then |
| 8850 | if test -s conftest.err; then |
| 8851 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8853 | else |
| 8854 | ac_cpp_err= |
| 8855 | fi |
| 8856 | else |
| 8857 | ac_cpp_err=yes |
| 8858 | fi |
| 8859 | if test -z "$ac_cpp_err"; then |
| 8860 | ac_header_preproc=yes |
| 8861 | else |
| 8862 | echo "$as_me: failed program was:" >&5 |
| 8863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8864 | |
| 8865 | ac_header_preproc=no |
| 8866 | fi |
| 8867 | rm -f conftest.err conftest.$ac_ext |
| 8868 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8869 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8870 | |
| 8871 | # So? What about this header? |
| 8872 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8873 | yes:no: ) |
| 8874 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8875 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8877 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8878 | ac_header_preproc=yes |
| 8879 | ;; |
| 8880 | no:yes:* ) |
| 8881 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8882 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8883 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8884 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8885 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8886 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8887 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8888 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8890 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8891 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8892 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8893 | ( |
| 8894 | cat <<\_ASBOX |
| 8895 | ## ----------------------------------- ## |
| 8896 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8897 | ## ----------------------------------- ## |
| 8898 | _ASBOX |
| 8899 | ) | |
| 8900 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8901 | ;; |
| 8902 | esac |
| 8903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8907 | else |
| 8908 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8909 | fi |
| 8910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8912 | |
| 8913 | fi |
| 8914 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8915 | cat >>confdefs.h <<_ACEOF |
| 8916 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8917 | _ACEOF |
| 8918 | |
| 8919 | fi |
| 8920 | |
| 8921 | done |
| 8922 | |
| 8923 | |
| 8924 | |
| 8925 | |
| 8926 | |
| 8927 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 8928 | do |
| 8929 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8931 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8935 | fi |
| 8936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8938 | else |
| 8939 | # Is the header compilable? |
| 8940 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8941 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8942 | cat >conftest.$ac_ext <<_ACEOF |
| 8943 | /* confdefs.h. */ |
| 8944 | _ACEOF |
| 8945 | cat confdefs.h >>conftest.$ac_ext |
| 8946 | cat >>conftest.$ac_ext <<_ACEOF |
| 8947 | /* end confdefs.h. */ |
| 8948 | $ac_includes_default |
| 8949 | #include <$ac_header> |
| 8950 | _ACEOF |
| 8951 | rm -f conftest.$ac_objext |
| 8952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8953 | (eval $ac_compile) 2>conftest.er1 |
| 8954 | ac_status=$? |
| 8955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8956 | rm -f conftest.er1 |
| 8957 | cat conftest.err >&5 |
| 8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8959 | (exit $ac_status); } && |
| 8960 | { ac_try='test -z "$ac_c_werror_flag" |
| 8961 | || test ! -s conftest.err' |
| 8962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8963 | (eval $ac_try) 2>&5 |
| 8964 | ac_status=$? |
| 8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8966 | (exit $ac_status); }; } && |
| 8967 | { ac_try='test -s conftest.$ac_objext' |
| 8968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8969 | (eval $ac_try) 2>&5 |
| 8970 | ac_status=$? |
| 8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8972 | (exit $ac_status); }; }; then |
| 8973 | ac_header_compiler=yes |
| 8974 | else |
| 8975 | echo "$as_me: failed program was:" >&5 |
| 8976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8977 | |
| 8978 | ac_header_compiler=no |
| 8979 | fi |
| 8980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8981 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8982 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8983 | |
| 8984 | # Is the header present? |
| 8985 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8986 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8987 | cat >conftest.$ac_ext <<_ACEOF |
| 8988 | /* confdefs.h. */ |
| 8989 | _ACEOF |
| 8990 | cat confdefs.h >>conftest.$ac_ext |
| 8991 | cat >>conftest.$ac_ext <<_ACEOF |
| 8992 | /* end confdefs.h. */ |
| 8993 | #include <$ac_header> |
| 8994 | _ACEOF |
| 8995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8997 | ac_status=$? |
| 8998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8999 | rm -f conftest.er1 |
| 9000 | cat conftest.err >&5 |
| 9001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9002 | (exit $ac_status); } >/dev/null; then |
| 9003 | if test -s conftest.err; then |
| 9004 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9006 | else |
| 9007 | ac_cpp_err= |
| 9008 | fi |
| 9009 | else |
| 9010 | ac_cpp_err=yes |
| 9011 | fi |
| 9012 | if test -z "$ac_cpp_err"; then |
| 9013 | ac_header_preproc=yes |
| 9014 | else |
| 9015 | echo "$as_me: failed program was:" >&5 |
| 9016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9017 | |
| 9018 | ac_header_preproc=no |
| 9019 | fi |
| 9020 | rm -f conftest.err conftest.$ac_ext |
| 9021 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9022 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9023 | |
| 9024 | # So? What about this header? |
| 9025 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9026 | yes:no: ) |
| 9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9031 | ac_header_preproc=yes |
| 9032 | ;; |
| 9033 | no:yes:* ) |
| 9034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9046 | ( |
| 9047 | cat <<\_ASBOX |
| 9048 | ## ----------------------------------- ## |
| 9049 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9050 | ## ----------------------------------- ## |
| 9051 | _ASBOX |
| 9052 | ) | |
| 9053 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9054 | ;; |
| 9055 | esac |
| 9056 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9060 | else |
| 9061 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9062 | fi |
| 9063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9065 | |
| 9066 | fi |
| 9067 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9068 | cat >>confdefs.h <<_ACEOF |
| 9069 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9070 | _ACEOF |
| 9071 | |
| 9072 | fi |
| 9073 | |
| 9074 | done |
| 9075 | |
| 9076 | |
| 9077 | |
| 9078 | for ac_header in string.h strings.h |
| 9079 | do |
| 9080 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9086 | fi |
| 9087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9089 | else |
| 9090 | # Is the header compilable? |
| 9091 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9092 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9093 | cat >conftest.$ac_ext <<_ACEOF |
| 9094 | /* confdefs.h. */ |
| 9095 | _ACEOF |
| 9096 | cat confdefs.h >>conftest.$ac_ext |
| 9097 | cat >>conftest.$ac_ext <<_ACEOF |
| 9098 | /* end confdefs.h. */ |
| 9099 | $ac_includes_default |
| 9100 | #include <$ac_header> |
| 9101 | _ACEOF |
| 9102 | rm -f conftest.$ac_objext |
| 9103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9104 | (eval $ac_compile) 2>conftest.er1 |
| 9105 | ac_status=$? |
| 9106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9107 | rm -f conftest.er1 |
| 9108 | cat conftest.err >&5 |
| 9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9110 | (exit $ac_status); } && |
| 9111 | { ac_try='test -z "$ac_c_werror_flag" |
| 9112 | || test ! -s conftest.err' |
| 9113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9114 | (eval $ac_try) 2>&5 |
| 9115 | ac_status=$? |
| 9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9117 | (exit $ac_status); }; } && |
| 9118 | { ac_try='test -s conftest.$ac_objext' |
| 9119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9120 | (eval $ac_try) 2>&5 |
| 9121 | ac_status=$? |
| 9122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9123 | (exit $ac_status); }; }; then |
| 9124 | ac_header_compiler=yes |
| 9125 | else |
| 9126 | echo "$as_me: failed program was:" >&5 |
| 9127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9128 | |
| 9129 | ac_header_compiler=no |
| 9130 | fi |
| 9131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9132 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9133 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9134 | |
| 9135 | # Is the header present? |
| 9136 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9138 | cat >conftest.$ac_ext <<_ACEOF |
| 9139 | /* confdefs.h. */ |
| 9140 | _ACEOF |
| 9141 | cat confdefs.h >>conftest.$ac_ext |
| 9142 | cat >>conftest.$ac_ext <<_ACEOF |
| 9143 | /* end confdefs.h. */ |
| 9144 | #include <$ac_header> |
| 9145 | _ACEOF |
| 9146 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9147 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9148 | ac_status=$? |
| 9149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9150 | rm -f conftest.er1 |
| 9151 | cat conftest.err >&5 |
| 9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9153 | (exit $ac_status); } >/dev/null; then |
| 9154 | if test -s conftest.err; then |
| 9155 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9156 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9157 | else |
| 9158 | ac_cpp_err= |
| 9159 | fi |
| 9160 | else |
| 9161 | ac_cpp_err=yes |
| 9162 | fi |
| 9163 | if test -z "$ac_cpp_err"; then |
| 9164 | ac_header_preproc=yes |
| 9165 | else |
| 9166 | echo "$as_me: failed program was:" >&5 |
| 9167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9168 | |
| 9169 | ac_header_preproc=no |
| 9170 | fi |
| 9171 | rm -f conftest.err conftest.$ac_ext |
| 9172 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9173 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9174 | |
| 9175 | # So? What about this header? |
| 9176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9177 | yes:no: ) |
| 9178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9182 | ac_header_preproc=yes |
| 9183 | ;; |
| 9184 | no:yes:* ) |
| 9185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9197 | ( |
| 9198 | cat <<\_ASBOX |
| 9199 | ## ----------------------------------- ## |
| 9200 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9201 | ## ----------------------------------- ## |
| 9202 | _ASBOX |
| 9203 | ) | |
| 9204 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9205 | ;; |
| 9206 | esac |
| 9207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9211 | else |
| 9212 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9213 | fi |
| 9214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9216 | |
| 9217 | fi |
| 9218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9219 | cat >>confdefs.h <<_ACEOF |
| 9220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9221 | _ACEOF |
| 9222 | break |
| 9223 | fi |
| 9224 | |
| 9225 | done |
| 9226 | |
| 9227 | |
| 9228 | |
| 9229 | |
| 9230 | for ac_func in strchr index |
| 9231 | do |
| 9232 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9233 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9234 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9235 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9237 | else |
| 9238 | cat >conftest.$ac_ext <<_ACEOF |
| 9239 | /* confdefs.h. */ |
| 9240 | _ACEOF |
| 9241 | cat confdefs.h >>conftest.$ac_ext |
| 9242 | cat >>conftest.$ac_ext <<_ACEOF |
| 9243 | /* end confdefs.h. */ |
| 9244 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9245 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9246 | #define $ac_func innocuous_$ac_func |
| 9247 | |
| 9248 | /* System header to define __stub macros and hopefully few prototypes, |
| 9249 | which can conflict with char $ac_func (); below. |
| 9250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9251 | <limits.h> exists even on freestanding compilers. */ |
| 9252 | |
| 9253 | #ifdef __STDC__ |
| 9254 | # include <limits.h> |
| 9255 | #else |
| 9256 | # include <assert.h> |
| 9257 | #endif |
| 9258 | |
| 9259 | #undef $ac_func |
| 9260 | |
| 9261 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9262 | #ifdef __cplusplus |
| 9263 | extern "C" |
| 9264 | { |
| 9265 | #endif |
| 9266 | /* We use char because int might match the return type of a gcc2 |
| 9267 | builtin and then its argument prototype would still apply. */ |
| 9268 | char $ac_func (); |
| 9269 | /* The GNU C library defines this for functions which it implements |
| 9270 | to always fail with ENOSYS. Some functions are actually named |
| 9271 | something starting with __ and the normal name is an alias. */ |
| 9272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9273 | choke me |
| 9274 | #else |
| 9275 | char (*f) () = $ac_func; |
| 9276 | #endif |
| 9277 | #ifdef __cplusplus |
| 9278 | } |
| 9279 | #endif |
| 9280 | |
| 9281 | int |
| 9282 | main () |
| 9283 | { |
| 9284 | return f != $ac_func; |
| 9285 | ; |
| 9286 | return 0; |
| 9287 | } |
| 9288 | _ACEOF |
| 9289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9291 | (eval $ac_link) 2>conftest.er1 |
| 9292 | ac_status=$? |
| 9293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9294 | rm -f conftest.er1 |
| 9295 | cat conftest.err >&5 |
| 9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9297 | (exit $ac_status); } && |
| 9298 | { ac_try='test -z "$ac_c_werror_flag" |
| 9299 | || test ! -s conftest.err' |
| 9300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9301 | (eval $ac_try) 2>&5 |
| 9302 | ac_status=$? |
| 9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9304 | (exit $ac_status); }; } && |
| 9305 | { ac_try='test -s conftest$ac_exeext' |
| 9306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9307 | (eval $ac_try) 2>&5 |
| 9308 | ac_status=$? |
| 9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9310 | (exit $ac_status); }; }; then |
| 9311 | eval "$as_ac_var=yes" |
| 9312 | else |
| 9313 | echo "$as_me: failed program was:" >&5 |
| 9314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9315 | |
| 9316 | eval "$as_ac_var=no" |
| 9317 | fi |
| 9318 | rm -f conftest.err conftest.$ac_objext \ |
| 9319 | conftest$ac_exeext conftest.$ac_ext |
| 9320 | fi |
| 9321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9322 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9323 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9324 | cat >>confdefs.h <<_ACEOF |
| 9325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9326 | _ACEOF |
| 9327 | break |
| 9328 | fi |
| 9329 | done |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | for ac_func in strrchr rindex |
| 9334 | do |
| 9335 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9336 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9337 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9338 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9340 | else |
| 9341 | cat >conftest.$ac_ext <<_ACEOF |
| 9342 | /* confdefs.h. */ |
| 9343 | _ACEOF |
| 9344 | cat confdefs.h >>conftest.$ac_ext |
| 9345 | cat >>conftest.$ac_ext <<_ACEOF |
| 9346 | /* end confdefs.h. */ |
| 9347 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9348 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9349 | #define $ac_func innocuous_$ac_func |
| 9350 | |
| 9351 | /* System header to define __stub macros and hopefully few prototypes, |
| 9352 | which can conflict with char $ac_func (); below. |
| 9353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9354 | <limits.h> exists even on freestanding compilers. */ |
| 9355 | |
| 9356 | #ifdef __STDC__ |
| 9357 | # include <limits.h> |
| 9358 | #else |
| 9359 | # include <assert.h> |
| 9360 | #endif |
| 9361 | |
| 9362 | #undef $ac_func |
| 9363 | |
| 9364 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9365 | #ifdef __cplusplus |
| 9366 | extern "C" |
| 9367 | { |
| 9368 | #endif |
| 9369 | /* We use char because int might match the return type of a gcc2 |
| 9370 | builtin and then its argument prototype would still apply. */ |
| 9371 | char $ac_func (); |
| 9372 | /* The GNU C library defines this for functions which it implements |
| 9373 | to always fail with ENOSYS. Some functions are actually named |
| 9374 | something starting with __ and the normal name is an alias. */ |
| 9375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9376 | choke me |
| 9377 | #else |
| 9378 | char (*f) () = $ac_func; |
| 9379 | #endif |
| 9380 | #ifdef __cplusplus |
| 9381 | } |
| 9382 | #endif |
| 9383 | |
| 9384 | int |
| 9385 | main () |
| 9386 | { |
| 9387 | return f != $ac_func; |
| 9388 | ; |
| 9389 | return 0; |
| 9390 | } |
| 9391 | _ACEOF |
| 9392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9394 | (eval $ac_link) 2>conftest.er1 |
| 9395 | ac_status=$? |
| 9396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9397 | rm -f conftest.er1 |
| 9398 | cat conftest.err >&5 |
| 9399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9400 | (exit $ac_status); } && |
| 9401 | { ac_try='test -z "$ac_c_werror_flag" |
| 9402 | || test ! -s conftest.err' |
| 9403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9404 | (eval $ac_try) 2>&5 |
| 9405 | ac_status=$? |
| 9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9407 | (exit $ac_status); }; } && |
| 9408 | { ac_try='test -s conftest$ac_exeext' |
| 9409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9410 | (eval $ac_try) 2>&5 |
| 9411 | ac_status=$? |
| 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9413 | (exit $ac_status); }; }; then |
| 9414 | eval "$as_ac_var=yes" |
| 9415 | else |
| 9416 | echo "$as_me: failed program was:" >&5 |
| 9417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9418 | |
| 9419 | eval "$as_ac_var=no" |
| 9420 | fi |
| 9421 | rm -f conftest.err conftest.$ac_objext \ |
| 9422 | conftest$ac_exeext conftest.$ac_ext |
| 9423 | fi |
| 9424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9425 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9426 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9427 | cat >>confdefs.h <<_ACEOF |
| 9428 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9429 | _ACEOF |
| 9430 | break |
| 9431 | fi |
| 9432 | done |
| 9433 | |
| 9434 | |
| 9435 | |
| 9436 | for ac_func in memcpy bcopy |
| 9437 | do |
| 9438 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9439 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9440 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9441 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9443 | else |
| 9444 | cat >conftest.$ac_ext <<_ACEOF |
| 9445 | /* confdefs.h. */ |
| 9446 | _ACEOF |
| 9447 | cat confdefs.h >>conftest.$ac_ext |
| 9448 | cat >>conftest.$ac_ext <<_ACEOF |
| 9449 | /* end confdefs.h. */ |
| 9450 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9452 | #define $ac_func innocuous_$ac_func |
| 9453 | |
| 9454 | /* System header to define __stub macros and hopefully few prototypes, |
| 9455 | which can conflict with char $ac_func (); below. |
| 9456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9457 | <limits.h> exists even on freestanding compilers. */ |
| 9458 | |
| 9459 | #ifdef __STDC__ |
| 9460 | # include <limits.h> |
| 9461 | #else |
| 9462 | # include <assert.h> |
| 9463 | #endif |
| 9464 | |
| 9465 | #undef $ac_func |
| 9466 | |
| 9467 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9468 | #ifdef __cplusplus |
| 9469 | extern "C" |
| 9470 | { |
| 9471 | #endif |
| 9472 | /* We use char because int might match the return type of a gcc2 |
| 9473 | builtin and then its argument prototype would still apply. */ |
| 9474 | char $ac_func (); |
| 9475 | /* The GNU C library defines this for functions which it implements |
| 9476 | to always fail with ENOSYS. Some functions are actually named |
| 9477 | something starting with __ and the normal name is an alias. */ |
| 9478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9479 | choke me |
| 9480 | #else |
| 9481 | char (*f) () = $ac_func; |
| 9482 | #endif |
| 9483 | #ifdef __cplusplus |
| 9484 | } |
| 9485 | #endif |
| 9486 | |
| 9487 | int |
| 9488 | main () |
| 9489 | { |
| 9490 | return f != $ac_func; |
| 9491 | ; |
| 9492 | return 0; |
| 9493 | } |
| 9494 | _ACEOF |
| 9495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9497 | (eval $ac_link) 2>conftest.er1 |
| 9498 | ac_status=$? |
| 9499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9500 | rm -f conftest.er1 |
| 9501 | cat conftest.err >&5 |
| 9502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9503 | (exit $ac_status); } && |
| 9504 | { ac_try='test -z "$ac_c_werror_flag" |
| 9505 | || test ! -s conftest.err' |
| 9506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9507 | (eval $ac_try) 2>&5 |
| 9508 | ac_status=$? |
| 9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9510 | (exit $ac_status); }; } && |
| 9511 | { ac_try='test -s conftest$ac_exeext' |
| 9512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9513 | (eval $ac_try) 2>&5 |
| 9514 | ac_status=$? |
| 9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9516 | (exit $ac_status); }; }; then |
| 9517 | eval "$as_ac_var=yes" |
| 9518 | else |
| 9519 | echo "$as_me: failed program was:" >&5 |
| 9520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9521 | |
| 9522 | eval "$as_ac_var=no" |
| 9523 | fi |
| 9524 | rm -f conftest.err conftest.$ac_objext \ |
| 9525 | conftest$ac_exeext conftest.$ac_ext |
| 9526 | fi |
| 9527 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9528 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9529 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9530 | cat >>confdefs.h <<_ACEOF |
| 9531 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9532 | _ACEOF |
| 9533 | break |
| 9534 | fi |
| 9535 | done |
| 9536 | |
| 9537 | |
| 9538 | |
| 9539 | for ac_func in memmove strcmp |
| 9540 | do |
| 9541 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9542 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9543 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9544 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9546 | else |
| 9547 | cat >conftest.$ac_ext <<_ACEOF |
| 9548 | /* confdefs.h. */ |
| 9549 | _ACEOF |
| 9550 | cat confdefs.h >>conftest.$ac_ext |
| 9551 | cat >>conftest.$ac_ext <<_ACEOF |
| 9552 | /* end confdefs.h. */ |
| 9553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9555 | #define $ac_func innocuous_$ac_func |
| 9556 | |
| 9557 | /* System header to define __stub macros and hopefully few prototypes, |
| 9558 | which can conflict with char $ac_func (); below. |
| 9559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9560 | <limits.h> exists even on freestanding compilers. */ |
| 9561 | |
| 9562 | #ifdef __STDC__ |
| 9563 | # include <limits.h> |
| 9564 | #else |
| 9565 | # include <assert.h> |
| 9566 | #endif |
| 9567 | |
| 9568 | #undef $ac_func |
| 9569 | |
| 9570 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9571 | #ifdef __cplusplus |
| 9572 | extern "C" |
| 9573 | { |
| 9574 | #endif |
| 9575 | /* We use char because int might match the return type of a gcc2 |
| 9576 | builtin and then its argument prototype would still apply. */ |
| 9577 | char $ac_func (); |
| 9578 | /* The GNU C library defines this for functions which it implements |
| 9579 | to always fail with ENOSYS. Some functions are actually named |
| 9580 | something starting with __ and the normal name is an alias. */ |
| 9581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9582 | choke me |
| 9583 | #else |
| 9584 | char (*f) () = $ac_func; |
| 9585 | #endif |
| 9586 | #ifdef __cplusplus |
| 9587 | } |
| 9588 | #endif |
| 9589 | |
| 9590 | int |
| 9591 | main () |
| 9592 | { |
| 9593 | return f != $ac_func; |
| 9594 | ; |
| 9595 | return 0; |
| 9596 | } |
| 9597 | _ACEOF |
| 9598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9600 | (eval $ac_link) 2>conftest.er1 |
| 9601 | ac_status=$? |
| 9602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9603 | rm -f conftest.er1 |
| 9604 | cat conftest.err >&5 |
| 9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9606 | (exit $ac_status); } && |
| 9607 | { ac_try='test -z "$ac_c_werror_flag" |
| 9608 | || test ! -s conftest.err' |
| 9609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9610 | (eval $ac_try) 2>&5 |
| 9611 | ac_status=$? |
| 9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9613 | (exit $ac_status); }; } && |
| 9614 | { ac_try='test -s conftest$ac_exeext' |
| 9615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9616 | (eval $ac_try) 2>&5 |
| 9617 | ac_status=$? |
| 9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9619 | (exit $ac_status); }; }; then |
| 9620 | eval "$as_ac_var=yes" |
| 9621 | else |
| 9622 | echo "$as_me: failed program was:" >&5 |
| 9623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9624 | |
| 9625 | eval "$as_ac_var=no" |
| 9626 | fi |
| 9627 | rm -f conftest.err conftest.$ac_objext \ |
| 9628 | conftest$ac_exeext conftest.$ac_ext |
| 9629 | fi |
| 9630 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9631 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9632 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9633 | cat >>confdefs.h <<_ACEOF |
| 9634 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9635 | _ACEOF |
| 9636 | |
| 9637 | fi |
| 9638 | done |
| 9639 | |
| 9640 | |
| 9641 | |
| 9642 | |
| 9643 | for ac_func in closedir opendir readdir |
| 9644 | do |
| 9645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9646 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9648 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9650 | else |
| 9651 | cat >conftest.$ac_ext <<_ACEOF |
| 9652 | /* confdefs.h. */ |
| 9653 | _ACEOF |
| 9654 | cat confdefs.h >>conftest.$ac_ext |
| 9655 | cat >>conftest.$ac_ext <<_ACEOF |
| 9656 | /* end confdefs.h. */ |
| 9657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9659 | #define $ac_func innocuous_$ac_func |
| 9660 | |
| 9661 | /* System header to define __stub macros and hopefully few prototypes, |
| 9662 | which can conflict with char $ac_func (); below. |
| 9663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9664 | <limits.h> exists even on freestanding compilers. */ |
| 9665 | |
| 9666 | #ifdef __STDC__ |
| 9667 | # include <limits.h> |
| 9668 | #else |
| 9669 | # include <assert.h> |
| 9670 | #endif |
| 9671 | |
| 9672 | #undef $ac_func |
| 9673 | |
| 9674 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9675 | #ifdef __cplusplus |
| 9676 | extern "C" |
| 9677 | { |
| 9678 | #endif |
| 9679 | /* We use char because int might match the return type of a gcc2 |
| 9680 | builtin and then its argument prototype would still apply. */ |
| 9681 | char $ac_func (); |
| 9682 | /* The GNU C library defines this for functions which it implements |
| 9683 | to always fail with ENOSYS. Some functions are actually named |
| 9684 | something starting with __ and the normal name is an alias. */ |
| 9685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9686 | choke me |
| 9687 | #else |
| 9688 | char (*f) () = $ac_func; |
| 9689 | #endif |
| 9690 | #ifdef __cplusplus |
| 9691 | } |
| 9692 | #endif |
| 9693 | |
| 9694 | int |
| 9695 | main () |
| 9696 | { |
| 9697 | return f != $ac_func; |
| 9698 | ; |
| 9699 | return 0; |
| 9700 | } |
| 9701 | _ACEOF |
| 9702 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9704 | (eval $ac_link) 2>conftest.er1 |
| 9705 | ac_status=$? |
| 9706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9707 | rm -f conftest.er1 |
| 9708 | cat conftest.err >&5 |
| 9709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9710 | (exit $ac_status); } && |
| 9711 | { ac_try='test -z "$ac_c_werror_flag" |
| 9712 | || test ! -s conftest.err' |
| 9713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9714 | (eval $ac_try) 2>&5 |
| 9715 | ac_status=$? |
| 9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9717 | (exit $ac_status); }; } && |
| 9718 | { ac_try='test -s conftest$ac_exeext' |
| 9719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9720 | (eval $ac_try) 2>&5 |
| 9721 | ac_status=$? |
| 9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9723 | (exit $ac_status); }; }; then |
| 9724 | eval "$as_ac_var=yes" |
| 9725 | else |
| 9726 | echo "$as_me: failed program was:" >&5 |
| 9727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9728 | |
| 9729 | eval "$as_ac_var=no" |
| 9730 | fi |
| 9731 | rm -f conftest.err conftest.$ac_objext \ |
| 9732 | conftest$ac_exeext conftest.$ac_ext |
| 9733 | fi |
| 9734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9735 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9736 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9737 | cat >>confdefs.h <<_ACEOF |
| 9738 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9739 | _ACEOF |
| 9740 | |
| 9741 | fi |
| 9742 | done |
| 9743 | |
| 9744 | |
| 9745 | # Check whether --enable-shared or --disable-shared was given. |
| 9746 | if test "${enable_shared+set}" = set; then |
| 9747 | enableval="$enable_shared" |
| 9748 | p=${PACKAGE-default} |
| 9749 | case $enableval in |
| 9750 | yes) enable_shared=yes ;; |
| 9751 | no) enable_shared=no ;; |
| 9752 | *) |
| 9753 | enable_shared=no |
| 9754 | # Look at the argument we got. We use all the common list separators. |
| 9755 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9756 | for pkg in $enableval; do |
| 9757 | IFS="$lt_save_ifs" |
| 9758 | if test "X$pkg" = "X$p"; then |
| 9759 | enable_shared=yes |
| 9760 | fi |
| 9761 | done |
| 9762 | IFS="$lt_save_ifs" |
| 9763 | ;; |
| 9764 | esac |
| 9765 | else |
| 9766 | enable_shared=yes |
| 9767 | fi; |
| 9768 | |
| 9769 | # Check whether --enable-static or --disable-static was given. |
| 9770 | if test "${enable_static+set}" = set; then |
| 9771 | enableval="$enable_static" |
| 9772 | p=${PACKAGE-default} |
| 9773 | case $enableval in |
| 9774 | yes) enable_static=yes ;; |
| 9775 | no) enable_static=no ;; |
| 9776 | *) |
| 9777 | enable_static=no |
| 9778 | # Look at the argument we got. We use all the common list separators. |
| 9779 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9780 | for pkg in $enableval; do |
| 9781 | IFS="$lt_save_ifs" |
| 9782 | if test "X$pkg" = "X$p"; then |
| 9783 | enable_static=yes |
| 9784 | fi |
| 9785 | done |
| 9786 | IFS="$lt_save_ifs" |
| 9787 | ;; |
| 9788 | esac |
| 9789 | else |
| 9790 | enable_static=yes |
| 9791 | fi; |
| 9792 | |
| 9793 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 9794 | if test "${enable_fast_install+set}" = set; then |
| 9795 | enableval="$enable_fast_install" |
| 9796 | p=${PACKAGE-default} |
| 9797 | case $enableval in |
| 9798 | yes) enable_fast_install=yes ;; |
| 9799 | no) enable_fast_install=no ;; |
| 9800 | *) |
| 9801 | enable_fast_install=no |
| 9802 | # Look at the argument we got. We use all the common list separators. |
| 9803 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9804 | for pkg in $enableval; do |
| 9805 | IFS="$lt_save_ifs" |
| 9806 | if test "X$pkg" = "X$p"; then |
| 9807 | enable_fast_install=yes |
| 9808 | fi |
| 9809 | done |
| 9810 | IFS="$lt_save_ifs" |
| 9811 | ;; |
| 9812 | esac |
| 9813 | else |
| 9814 | enable_fast_install=yes |
| 9815 | fi; |
| 9816 | |
| 9817 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 9818 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 9819 | if test "${lt_cv_path_SED+set}" = set; then |
| 9820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9821 | else |
| 9822 | # Loop through the user's path and test for sed and gsed. |
| 9823 | # Then use that list of sed's as ones to test for truncation. |
| 9824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9825 | for as_dir in $PATH |
| 9826 | do |
| 9827 | IFS=$as_save_IFS |
| 9828 | test -z "$as_dir" && as_dir=. |
| 9829 | for lt_ac_prog in sed gsed; do |
| 9830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9831 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 9832 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 9833 | fi |
| 9834 | done |
| 9835 | done |
| 9836 | done |
| 9837 | lt_ac_max=0 |
| 9838 | lt_ac_count=0 |
| 9839 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 9840 | # along with /bin/sed that truncates output. |
| 9841 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 9842 | test ! -f $lt_ac_sed && break |
| 9843 | cat /dev/null > conftest.in |
| 9844 | lt_ac_count=0 |
| 9845 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 9846 | # Check for GNU sed and select it if it is found. |
| 9847 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 9848 | lt_cv_path_SED=$lt_ac_sed |
| 9849 | break |
| 9850 | fi |
| 9851 | while true; do |
| 9852 | cat conftest.in conftest.in >conftest.tmp |
| 9853 | mv conftest.tmp conftest.in |
| 9854 | cp conftest.in conftest.nl |
| 9855 | echo >>conftest.nl |
| 9856 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 9857 | cmp -s conftest.out conftest.nl || break |
| 9858 | # 10000 chars as input seems more than enough |
| 9859 | test $lt_ac_count -gt 10 && break |
| 9860 | lt_ac_count=`expr $lt_ac_count + 1` |
| 9861 | if test $lt_ac_count -gt $lt_ac_max; then |
| 9862 | lt_ac_max=$lt_ac_count |
| 9863 | lt_cv_path_SED=$lt_ac_sed |
| 9864 | fi |
| 9865 | done |
| 9866 | done |
| 9867 | |
| 9868 | fi |
| 9869 | |
| 9870 | SED=$lt_cv_path_SED |
| 9871 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 9872 | echo "${ECHO_T}$SED" >&6 |
| 9873 | |
| 9874 | |
| 9875 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9876 | if test "${with_gnu_ld+set}" = set; then |
| 9877 | withval="$with_gnu_ld" |
| 9878 | test "$withval" = no || with_gnu_ld=yes |
| 9879 | else |
| 9880 | with_gnu_ld=no |
| 9881 | fi; |
| 9882 | ac_prog=ld |
| 9883 | if test "$GCC" = yes; then |
| 9884 | # Check if gcc -print-prog-name=ld gives a path. |
| 9885 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 9886 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 9887 | case $host in |
| 9888 | *-*-mingw*) |
| 9889 | # gcc leaves a trailing carriage return which upsets mingw |
| 9890 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9891 | *) |
| 9892 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9893 | esac |
| 9894 | case $ac_prog in |
| 9895 | # Accept absolute paths. |
| 9896 | [\\/]* | ?:[\\/]*) |
| 9897 | re_direlt='/[^/][^/]*/\.\./' |
| 9898 | # Canonicalize the pathname of ld |
| 9899 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9900 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9901 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9902 | done |
| 9903 | test -z "$LD" && LD="$ac_prog" |
| 9904 | ;; |
| 9905 | "") |
| 9906 | # If it fails, then pretend we aren't using GCC. |
| 9907 | ac_prog=ld |
| 9908 | ;; |
| 9909 | *) |
| 9910 | # If it is relative, then search for the first ld in PATH. |
| 9911 | with_gnu_ld=unknown |
| 9912 | ;; |
| 9913 | esac |
| 9914 | elif test "$with_gnu_ld" = yes; then |
| 9915 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9916 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9917 | else |
| 9918 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9919 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9920 | fi |
| 9921 | if test "${lt_cv_path_LD+set}" = set; then |
| 9922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9923 | else |
| 9924 | if test -z "$LD"; then |
| 9925 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9926 | for ac_dir in $PATH; do |
| 9927 | IFS="$lt_save_ifs" |
| 9928 | test -z "$ac_dir" && ac_dir=. |
| 9929 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9930 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9931 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9932 | # but apparently some GNU ld's only accept -v. |
| 9933 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9934 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9935 | *GNU* | *'with BFD'*) |
| 9936 | test "$with_gnu_ld" != no && break |
| 9937 | ;; |
| 9938 | *) |
| 9939 | test "$with_gnu_ld" != yes && break |
| 9940 | ;; |
| 9941 | esac |
| 9942 | fi |
| 9943 | done |
| 9944 | IFS="$lt_save_ifs" |
| 9945 | else |
| 9946 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9947 | fi |
| 9948 | fi |
| 9949 | |
| 9950 | LD="$lt_cv_path_LD" |
| 9951 | if test -n "$LD"; then |
| 9952 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9953 | echo "${ECHO_T}$LD" >&6 |
| 9954 | else |
| 9955 | echo "$as_me:$LINENO: result: no" >&5 |
| 9956 | echo "${ECHO_T}no" >&6 |
| 9957 | fi |
| 9958 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9959 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9960 | { (exit 1); exit 1; }; } |
| 9961 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9962 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9963 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9965 | else |
| 9966 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9967 | case `$LD -v 2>&1 </dev/null` in |
| 9968 | *GNU* | *'with BFD'*) |
| 9969 | lt_cv_prog_gnu_ld=yes |
| 9970 | ;; |
| 9971 | *) |
| 9972 | lt_cv_prog_gnu_ld=no |
| 9973 | ;; |
| 9974 | esac |
| 9975 | fi |
| 9976 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9977 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9978 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9979 | |
| 9980 | |
| 9981 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 9982 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 9983 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 9984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9985 | else |
| 9986 | lt_cv_ld_reload_flag='-r' |
| 9987 | fi |
| 9988 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 9989 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 9990 | reload_flag=$lt_cv_ld_reload_flag |
| 9991 | case $reload_flag in |
| 9992 | "" | " "*) ;; |
| 9993 | *) reload_flag=" $reload_flag" ;; |
| 9994 | esac |
| 9995 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 9996 | case $host_os in |
| 9997 | darwin*) |
| 9998 | if test "$GCC" = yes; then |
| 9999 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
| 10000 | else |
| 10001 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10002 | fi |
| 10003 | ;; |
| 10004 | esac |
| 10005 | |
| 10006 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 10007 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 10008 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 10009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10010 | else |
| 10011 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 10012 | lt_cv_file_magic_test_file= |
| 10013 | lt_cv_deplibs_check_method='unknown' |
| 10014 | # Need to set the preceding variable on all platforms that support |
| 10015 | # interlibrary dependencies. |
| 10016 | # 'none' -- dependencies not supported. |
| 10017 | # `unknown' -- same as none, but documents that we really don't know. |
| 10018 | # 'pass_all' -- all dependencies passed with no checks. |
| 10019 | # 'test_compile' -- check by making test program. |
| 10020 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 10021 | # which responds to the $file_magic_cmd with a given extended regex. |
| 10022 | # If you have `file' or equivalent on your system and you're not sure |
| 10023 | # whether `pass_all' will *always* work, you probably want this one. |
| 10024 | |
| 10025 | case $host_os in |
| 10026 | aix4* | aix5*) |
| 10027 | lt_cv_deplibs_check_method=pass_all |
| 10028 | ;; |
| 10029 | |
| 10030 | beos*) |
| 10031 | lt_cv_deplibs_check_method=pass_all |
| 10032 | ;; |
| 10033 | |
| 10034 | bsdi[45]*) |
| 10035 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 10036 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 10037 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 10038 | ;; |
| 10039 | |
| 10040 | cygwin*) |
| 10041 | # func_win32_libid is a shell function defined in ltmain.sh |
| 10042 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10043 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10044 | ;; |
| 10045 | |
| 10046 | mingw* | pw32*) |
| 10047 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 10048 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 10049 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 10050 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10051 | ;; |
| 10052 | |
| 10053 | darwin* | rhapsody*) |
| 10054 | lt_cv_deplibs_check_method=pass_all |
| 10055 | ;; |
| 10056 | |
| 10057 | freebsd* | kfreebsd*-gnu) |
| 10058 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10059 | case $host_cpu in |
| 10060 | i*86 ) |
| 10061 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 10062 | # Let's accept both of them until this is cleared up. |
| 10063 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 10064 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10065 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 10066 | ;; |
| 10067 | esac |
| 10068 | else |
| 10069 | lt_cv_deplibs_check_method=pass_all |
| 10070 | fi |
| 10071 | ;; |
| 10072 | |
| 10073 | gnu*) |
| 10074 | lt_cv_deplibs_check_method=pass_all |
| 10075 | ;; |
| 10076 | |
| 10077 | hpux10.20* | hpux11*) |
| 10078 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10079 | case "$host_cpu" in |
| 10080 | ia64*) |
| 10081 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 10082 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 10083 | ;; |
| 10084 | hppa*64*) |
| 10085 | 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]' |
| 10086 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 10087 | ;; |
| 10088 | *) |
| 10089 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 10090 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 10091 | ;; |
| 10092 | esac |
| 10093 | ;; |
| 10094 | |
| 10095 | irix5* | irix6* | nonstopux*) |
| 10096 | case $LD in |
| 10097 | *-32|*"-32 ") libmagic=32-bit;; |
| 10098 | *-n32|*"-n32 ") libmagic=N32;; |
| 10099 | *-64|*"-64 ") libmagic=64-bit;; |
| 10100 | *) libmagic=never-match;; |
| 10101 | esac |
| 10102 | lt_cv_deplibs_check_method=pass_all |
| 10103 | ;; |
| 10104 | |
| 10105 | # This must be Linux ELF. |
| 10106 | linux*) |
| 10107 | lt_cv_deplibs_check_method=pass_all |
| 10108 | ;; |
| 10109 | |
| 10110 | netbsd*) |
| 10111 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10112 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10113 | else |
| 10114 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 10115 | fi |
| 10116 | ;; |
| 10117 | |
| 10118 | newos6*) |
| 10119 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 10120 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10121 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 10122 | ;; |
| 10123 | |
| 10124 | nto-qnx*) |
| 10125 | lt_cv_deplibs_check_method=unknown |
| 10126 | ;; |
| 10127 | |
| 10128 | openbsd*) |
| 10129 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10130 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 10131 | else |
| 10132 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10133 | fi |
| 10134 | ;; |
| 10135 | |
| 10136 | osf3* | osf4* | osf5*) |
| 10137 | lt_cv_deplibs_check_method=pass_all |
| 10138 | ;; |
| 10139 | |
| 10140 | sco3.2v5*) |
| 10141 | lt_cv_deplibs_check_method=pass_all |
| 10142 | ;; |
| 10143 | |
| 10144 | solaris*) |
| 10145 | lt_cv_deplibs_check_method=pass_all |
| 10146 | ;; |
| 10147 | |
| 10148 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10149 | case $host_vendor in |
| 10150 | motorola) |
| 10151 | 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]' |
| 10152 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 10153 | ;; |
| 10154 | ncr) |
| 10155 | lt_cv_deplibs_check_method=pass_all |
| 10156 | ;; |
| 10157 | sequent) |
| 10158 | lt_cv_file_magic_cmd='/bin/file' |
| 10159 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 10160 | ;; |
| 10161 | sni) |
| 10162 | lt_cv_file_magic_cmd='/bin/file' |
| 10163 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 10164 | lt_cv_file_magic_test_file=/lib/libc.so |
| 10165 | ;; |
| 10166 | siemens) |
| 10167 | lt_cv_deplibs_check_method=pass_all |
| 10168 | ;; |
| 10169 | esac |
| 10170 | ;; |
| 10171 | |
| 10172 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 10173 | lt_cv_deplibs_check_method=pass_all |
| 10174 | ;; |
| 10175 | esac |
| 10176 | |
| 10177 | fi |
| 10178 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 10179 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 10180 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 10181 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 10182 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 10183 | |
| 10184 | |
| 10185 | |
| 10186 | # If no C compiler was specified, use CC. |
| 10187 | LTCC=${LTCC-"$CC"} |
| 10188 | |
| 10189 | # Allow CC to be a program name with arguments. |
| 10190 | compiler=$CC |
| 10191 | |
| 10192 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 10193 | if test "${enable_libtool_lock+set}" = set; then |
| 10194 | enableval="$enable_libtool_lock" |
| 10195 | |
| 10196 | fi; |
| 10197 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 10198 | |
| 10199 | # Some flags need to be propagated to the compiler or linker for good |
| 10200 | # libtool support. |
| 10201 | case $host in |
| 10202 | ia64-*-hpux*) |
| 10203 | # Find out which ABI we are using. |
| 10204 | echo 'int i;' > conftest.$ac_ext |
| 10205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10206 | (eval $ac_compile) 2>&5 |
| 10207 | ac_status=$? |
| 10208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10209 | (exit $ac_status); }; then |
| 10210 | case `/usr/bin/file conftest.$ac_objext` in |
| 10211 | *ELF-32*) |
| 10212 | HPUX_IA64_MODE="32" |
| 10213 | ;; |
| 10214 | *ELF-64*) |
| 10215 | HPUX_IA64_MODE="64" |
| 10216 | ;; |
| 10217 | esac |
| 10218 | fi |
| 10219 | rm -rf conftest* |
| 10220 | ;; |
| 10221 | *-*-irix6*) |
| 10222 | # Find out which ABI we are using. |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10223 | echo '#line 10223 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10225 | (eval $ac_compile) 2>&5 |
| 10226 | ac_status=$? |
| 10227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10228 | (exit $ac_status); }; then |
| 10229 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10230 | case `/usr/bin/file conftest.$ac_objext` in |
| 10231 | *32-bit*) |
| 10232 | LD="${LD-ld} -melf32bsmip" |
| 10233 | ;; |
| 10234 | *N32*) |
| 10235 | LD="${LD-ld} -melf32bmipn32" |
| 10236 | ;; |
| 10237 | *64-bit*) |
| 10238 | LD="${LD-ld} -melf64bmip" |
| 10239 | ;; |
| 10240 | esac |
| 10241 | else |
| 10242 | case `/usr/bin/file conftest.$ac_objext` in |
| 10243 | *32-bit*) |
| 10244 | LD="${LD-ld} -32" |
| 10245 | ;; |
| 10246 | *N32*) |
| 10247 | LD="${LD-ld} -n32" |
| 10248 | ;; |
| 10249 | *64-bit*) |
| 10250 | LD="${LD-ld} -64" |
| 10251 | ;; |
| 10252 | esac |
| 10253 | fi |
| 10254 | fi |
| 10255 | rm -rf conftest* |
| 10256 | ;; |
| 10257 | |
| 10258 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 10259 | # Find out which ABI we are using. |
| 10260 | echo 'int i;' > conftest.$ac_ext |
| 10261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10262 | (eval $ac_compile) 2>&5 |
| 10263 | ac_status=$? |
| 10264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10265 | (exit $ac_status); }; then |
| 10266 | case "`/usr/bin/file conftest.o`" in |
| 10267 | *32-bit*) |
| 10268 | case $host in |
| 10269 | x86_64-*linux*) |
| 10270 | LD="${LD-ld} -m elf_i386" |
| 10271 | ;; |
| 10272 | ppc64-*linux*|powerpc64-*linux*) |
| 10273 | LD="${LD-ld} -m elf32ppclinux" |
| 10274 | ;; |
| 10275 | s390x-*linux*) |
| 10276 | LD="${LD-ld} -m elf_s390" |
| 10277 | ;; |
| 10278 | sparc64-*linux*) |
| 10279 | LD="${LD-ld} -m elf32_sparc" |
| 10280 | ;; |
| 10281 | esac |
| 10282 | ;; |
| 10283 | *64-bit*) |
| 10284 | case $host in |
| 10285 | x86_64-*linux*) |
| 10286 | LD="${LD-ld} -m elf_x86_64" |
| 10287 | ;; |
| 10288 | ppc*-*linux*|powerpc*-*linux*) |
| 10289 | LD="${LD-ld} -m elf64ppc" |
| 10290 | ;; |
| 10291 | s390*-*linux*) |
| 10292 | LD="${LD-ld} -m elf64_s390" |
| 10293 | ;; |
| 10294 | sparc*-*linux*) |
| 10295 | LD="${LD-ld} -m elf64_sparc" |
| 10296 | ;; |
| 10297 | esac |
| 10298 | ;; |
| 10299 | esac |
| 10300 | fi |
| 10301 | rm -rf conftest* |
| 10302 | ;; |
| 10303 | |
| 10304 | *-*-sco3.2v5*) |
| 10305 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 10306 | SAVE_CFLAGS="$CFLAGS" |
| 10307 | CFLAGS="$CFLAGS -belf" |
| 10308 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 10309 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 10310 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 10311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10312 | else |
| 10313 | ac_ext=c |
| 10314 | ac_cpp='$CPP $CPPFLAGS' |
| 10315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10318 | |
| 10319 | cat >conftest.$ac_ext <<_ACEOF |
| 10320 | /* confdefs.h. */ |
| 10321 | _ACEOF |
| 10322 | cat confdefs.h >>conftest.$ac_ext |
| 10323 | cat >>conftest.$ac_ext <<_ACEOF |
| 10324 | /* end confdefs.h. */ |
| 10325 | |
| 10326 | _ACEOF |
| 10327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10329 | (eval $ac_link) 2>conftest.er1 |
| 10330 | ac_status=$? |
| 10331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10332 | rm -f conftest.er1 |
| 10333 | cat conftest.err >&5 |
| 10334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10335 | (exit $ac_status); } && |
| 10336 | { ac_try='test -z "$ac_c_werror_flag" |
| 10337 | || test ! -s conftest.err' |
| 10338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10339 | (eval $ac_try) 2>&5 |
| 10340 | ac_status=$? |
| 10341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10342 | (exit $ac_status); }; } && |
| 10343 | { ac_try='test -s conftest$ac_exeext' |
| 10344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10345 | (eval $ac_try) 2>&5 |
| 10346 | ac_status=$? |
| 10347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10348 | (exit $ac_status); }; }; then |
| 10349 | lt_cv_cc_needs_belf=yes |
| 10350 | else |
| 10351 | echo "$as_me: failed program was:" >&5 |
| 10352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10353 | |
| 10354 | lt_cv_cc_needs_belf=no |
| 10355 | fi |
| 10356 | rm -f conftest.err conftest.$ac_objext \ |
| 10357 | conftest$ac_exeext conftest.$ac_ext |
| 10358 | ac_ext=c |
| 10359 | ac_cpp='$CPP $CPPFLAGS' |
| 10360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10363 | |
| 10364 | fi |
| 10365 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 10366 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 10367 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 10368 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 10369 | CFLAGS="$SAVE_CFLAGS" |
| 10370 | fi |
| 10371 | ;; |
| 10372 | |
| 10373 | esac |
| 10374 | |
| 10375 | need_locks="$enable_libtool_lock" |
| 10376 | |
| 10377 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10378 | |
| 10379 | |
| 10380 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10381 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10382 | (test "X$CXX" != "Xg++"))) ; then |
| 10383 | ac_ext=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10384 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10385 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10386 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10387 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10388 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 10389 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 10390 | if test -z "$CXXCPP"; then |
| 10391 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10393 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10394 | # Double quotes because CXXCPP needs to be expanded |
| 10395 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 10396 | do |
| 10397 | ac_preproc_ok=false |
| 10398 | for ac_cxx_preproc_warn_flag in '' yes |
| 10399 | do |
| 10400 | # Use a header file that comes with gcc, so configuring glibc |
| 10401 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10402 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10403 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10404 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10405 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10406 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10407 | /* confdefs.h. */ |
| 10408 | _ACEOF |
| 10409 | cat confdefs.h >>conftest.$ac_ext |
| 10410 | cat >>conftest.$ac_ext <<_ACEOF |
| 10411 | /* end confdefs.h. */ |
| 10412 | #ifdef __STDC__ |
| 10413 | # include <limits.h> |
| 10414 | #else |
| 10415 | # include <assert.h> |
| 10416 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10417 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10418 | _ACEOF |
| 10419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10421 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10422 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10423 | rm -f conftest.er1 |
| 10424 | cat conftest.err >&5 |
| 10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10426 | (exit $ac_status); } >/dev/null; then |
| 10427 | if test -s conftest.err; then |
| 10428 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10429 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10430 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10431 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10432 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10433 | else |
| 10434 | ac_cpp_err=yes |
| 10435 | fi |
| 10436 | if test -z "$ac_cpp_err"; then |
| 10437 | : |
| 10438 | else |
| 10439 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10441 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10442 | # Broken: fails on valid input. |
| 10443 | continue |
| 10444 | fi |
| 10445 | rm -f conftest.err conftest.$ac_ext |
| 10446 | |
| 10447 | # OK, works on sane cases. Now check whether non-existent headers |
| 10448 | # can be detected and how. |
| 10449 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10450 | /* confdefs.h. */ |
| 10451 | _ACEOF |
| 10452 | cat confdefs.h >>conftest.$ac_ext |
| 10453 | cat >>conftest.$ac_ext <<_ACEOF |
| 10454 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10455 | #include <ac_nonexistent.h> |
| 10456 | _ACEOF |
| 10457 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10458 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10459 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10460 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10461 | rm -f conftest.er1 |
| 10462 | cat conftest.err >&5 |
| 10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10464 | (exit $ac_status); } >/dev/null; then |
| 10465 | if test -s conftest.err; then |
| 10466 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10467 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10468 | else |
| 10469 | ac_cpp_err= |
| 10470 | fi |
| 10471 | else |
| 10472 | ac_cpp_err=yes |
| 10473 | fi |
| 10474 | if test -z "$ac_cpp_err"; then |
| 10475 | # Broken: success on invalid input. |
| 10476 | continue |
| 10477 | else |
| 10478 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10480 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10481 | # Passes both tests. |
| 10482 | ac_preproc_ok=: |
| 10483 | break |
| 10484 | fi |
| 10485 | rm -f conftest.err conftest.$ac_ext |
| 10486 | |
| 10487 | done |
| 10488 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10489 | rm -f conftest.err conftest.$ac_ext |
| 10490 | if $ac_preproc_ok; then |
| 10491 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10492 | fi |
| 10493 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10494 | done |
| 10495 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10496 | |
| 10497 | fi |
| 10498 | CXXCPP=$ac_cv_prog_CXXCPP |
| 10499 | else |
| 10500 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10501 | fi |
| 10502 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 10503 | echo "${ECHO_T}$CXXCPP" >&6 |
| 10504 | ac_preproc_ok=false |
| 10505 | for ac_cxx_preproc_warn_flag in '' yes |
| 10506 | do |
| 10507 | # Use a header file that comes with gcc, so configuring glibc |
| 10508 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10509 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10510 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10511 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10512 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10513 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10514 | /* confdefs.h. */ |
| 10515 | _ACEOF |
| 10516 | cat confdefs.h >>conftest.$ac_ext |
| 10517 | cat >>conftest.$ac_ext <<_ACEOF |
| 10518 | /* end confdefs.h. */ |
| 10519 | #ifdef __STDC__ |
| 10520 | # include <limits.h> |
| 10521 | #else |
| 10522 | # include <assert.h> |
| 10523 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10524 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10525 | _ACEOF |
| 10526 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10527 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10528 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10529 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10530 | rm -f conftest.er1 |
| 10531 | cat conftest.err >&5 |
| 10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10533 | (exit $ac_status); } >/dev/null; then |
| 10534 | if test -s conftest.err; then |
| 10535 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10536 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10537 | else |
| 10538 | ac_cpp_err= |
| 10539 | fi |
| 10540 | else |
| 10541 | ac_cpp_err=yes |
| 10542 | fi |
| 10543 | if test -z "$ac_cpp_err"; then |
| 10544 | : |
| 10545 | else |
| 10546 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10548 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10549 | # Broken: fails on valid input. |
| 10550 | continue |
| 10551 | fi |
| 10552 | rm -f conftest.err conftest.$ac_ext |
| 10553 | |
| 10554 | # OK, works on sane cases. Now check whether non-existent headers |
| 10555 | # can be detected and how. |
| 10556 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10557 | /* confdefs.h. */ |
| 10558 | _ACEOF |
| 10559 | cat confdefs.h >>conftest.$ac_ext |
| 10560 | cat >>conftest.$ac_ext <<_ACEOF |
| 10561 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10562 | #include <ac_nonexistent.h> |
| 10563 | _ACEOF |
| 10564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10566 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10567 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10568 | rm -f conftest.er1 |
| 10569 | cat conftest.err >&5 |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); } >/dev/null; then |
| 10572 | if test -s conftest.err; then |
| 10573 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10574 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10575 | else |
| 10576 | ac_cpp_err= |
| 10577 | fi |
| 10578 | else |
| 10579 | ac_cpp_err=yes |
| 10580 | fi |
| 10581 | if test -z "$ac_cpp_err"; then |
| 10582 | # Broken: success on invalid input. |
| 10583 | continue |
| 10584 | else |
| 10585 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10587 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10588 | # Passes both tests. |
| 10589 | ac_preproc_ok=: |
| 10590 | break |
| 10591 | fi |
| 10592 | rm -f conftest.err conftest.$ac_ext |
| 10593 | |
| 10594 | done |
| 10595 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10596 | rm -f conftest.err conftest.$ac_ext |
| 10597 | if $ac_preproc_ok; then |
| 10598 | : |
| 10599 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10600 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 10601 | See \`config.log' for more details." >&5 |
| 10602 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 10603 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10604 | { (exit 1); exit 1; }; } |
| 10605 | fi |
| 10606 | |
| 10607 | ac_ext=cc |
| 10608 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10609 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10610 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10611 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10612 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10613 | fi |
| 10614 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10615 | |
| 10616 | ac_ext=f |
| 10617 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 10618 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10619 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 10620 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10621 | 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] | 10622 | do |
| 10623 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10624 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10627 | if test "${ac_cv_prog_F77+set}" = set; then |
| 10628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10629 | else |
| 10630 | if test -n "$F77"; then |
| 10631 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 10632 | else |
| 10633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10634 | for as_dir in $PATH |
| 10635 | do |
| 10636 | IFS=$as_save_IFS |
| 10637 | test -z "$as_dir" && as_dir=. |
| 10638 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10640 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 10641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10642 | break 2 |
| 10643 | fi |
| 10644 | done |
| 10645 | done |
| 10646 | |
| 10647 | fi |
| 10648 | fi |
| 10649 | F77=$ac_cv_prog_F77 |
| 10650 | if test -n "$F77"; then |
| 10651 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 10652 | echo "${ECHO_T}$F77" >&6 |
| 10653 | else |
| 10654 | echo "$as_me:$LINENO: result: no" >&5 |
| 10655 | echo "${ECHO_T}no" >&6 |
| 10656 | fi |
| 10657 | |
| 10658 | test -n "$F77" && break |
| 10659 | done |
| 10660 | fi |
| 10661 | if test -z "$F77"; then |
| 10662 | ac_ct_F77=$F77 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10663 | 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] | 10664 | do |
| 10665 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10666 | set dummy $ac_prog; ac_word=$2 |
| 10667 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10669 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 10670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10671 | else |
| 10672 | if test -n "$ac_ct_F77"; then |
| 10673 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 10674 | else |
| 10675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10676 | for as_dir in $PATH |
| 10677 | do |
| 10678 | IFS=$as_save_IFS |
| 10679 | test -z "$as_dir" && as_dir=. |
| 10680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10681 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10682 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 10683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10684 | break 2 |
| 10685 | fi |
| 10686 | done |
| 10687 | done |
| 10688 | |
| 10689 | fi |
| 10690 | fi |
| 10691 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 10692 | if test -n "$ac_ct_F77"; then |
| 10693 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 10694 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 10695 | else |
| 10696 | echo "$as_me:$LINENO: result: no" >&5 |
| 10697 | echo "${ECHO_T}no" >&6 |
| 10698 | fi |
| 10699 | |
| 10700 | test -n "$ac_ct_F77" && break |
| 10701 | done |
| 10702 | |
| 10703 | F77=$ac_ct_F77 |
| 10704 | fi |
| 10705 | |
| 10706 | |
| 10707 | # Provide some information about the compiler. |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 10708 | echo "$as_me:10708:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10709 | "checking for Fortran 77 compiler version" >&5 |
| 10710 | ac_compiler=`set X $ac_compile; echo $2` |
| 10711 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 10712 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 10713 | ac_status=$? |
| 10714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10715 | (exit $ac_status); } |
| 10716 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 10717 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 10718 | ac_status=$? |
| 10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10720 | (exit $ac_status); } |
| 10721 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 10722 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 10723 | ac_status=$? |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10726 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10727 | |
| 10728 | # 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] | 10729 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10730 | ac_save_ext=$ac_ext |
| 10731 | ac_ext=F |
| 10732 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 10733 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 10734 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 10735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10736 | else |
| 10737 | cat >conftest.$ac_ext <<_ACEOF |
| 10738 | program main |
| 10739 | #ifndef __GNUC__ |
| 10740 | choke me |
| 10741 | #endif |
| 10742 | |
| 10743 | end |
| 10744 | _ACEOF |
| 10745 | rm -f conftest.$ac_objext |
| 10746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10747 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10748 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10750 | rm -f conftest.er1 |
| 10751 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10753 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10754 | { ac_try='test -z "$ac_f77_werror_flag" |
| 10755 | || test ! -s conftest.err' |
| 10756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10757 | (eval $ac_try) 2>&5 |
| 10758 | ac_status=$? |
| 10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10760 | (exit $ac_status); }; } && |
| 10761 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10763 | (eval $ac_try) 2>&5 |
| 10764 | ac_status=$? |
| 10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10766 | (exit $ac_status); }; }; then |
| 10767 | ac_compiler_gnu=yes |
| 10768 | else |
| 10769 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10771 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10772 | ac_compiler_gnu=no |
| 10773 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10775 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 10776 | |
| 10777 | fi |
| 10778 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 10779 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 10780 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10781 | ac_test_FFLAGS=${FFLAGS+set} |
| 10782 | ac_save_FFLAGS=$FFLAGS |
| 10783 | FFLAGS= |
| 10784 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 10785 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 10786 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 10787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10788 | else |
| 10789 | FFLAGS=-g |
| 10790 | cat >conftest.$ac_ext <<_ACEOF |
| 10791 | program main |
| 10792 | |
| 10793 | end |
| 10794 | _ACEOF |
| 10795 | rm -f conftest.$ac_objext |
| 10796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10797 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10798 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10800 | rm -f conftest.er1 |
| 10801 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10803 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10804 | { ac_try='test -z "$ac_f77_werror_flag" |
| 10805 | || test ! -s conftest.err' |
| 10806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10807 | (eval $ac_try) 2>&5 |
| 10808 | ac_status=$? |
| 10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); }; } && |
| 10811 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10813 | (eval $ac_try) 2>&5 |
| 10814 | ac_status=$? |
| 10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10816 | (exit $ac_status); }; }; then |
| 10817 | ac_cv_prog_f77_g=yes |
| 10818 | else |
| 10819 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10821 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10822 | ac_cv_prog_f77_g=no |
| 10823 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10825 | |
| 10826 | fi |
| 10827 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 10828 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 10829 | if test "$ac_test_FFLAGS" = set; then |
| 10830 | FFLAGS=$ac_save_FFLAGS |
| 10831 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10832 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10833 | FFLAGS="-g -O2" |
| 10834 | else |
| 10835 | FFLAGS="-g" |
| 10836 | fi |
| 10837 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10838 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10839 | FFLAGS="-O2" |
| 10840 | else |
| 10841 | FFLAGS= |
| 10842 | fi |
| 10843 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10844 | |
| 10845 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10846 | ac_ext=c |
| 10847 | ac_cpp='$CPP $CPPFLAGS' |
| 10848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10851 | |
| 10852 | |
| 10853 | |
| 10854 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 10855 | |
| 10856 | # find the maximum length of command line arguments |
| 10857 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 10858 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 10859 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 10860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10861 | else |
| 10862 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10863 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10864 | |
| 10865 | case $build_os in |
| 10866 | msdosdjgpp*) |
| 10867 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 10868 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 10869 | # during glob expansion). Even if it were fixed, the result of this |
| 10870 | # check would be larger than it should be. |
| 10871 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 10872 | ;; |
| 10873 | |
| 10874 | gnu*) |
| 10875 | # Under GNU Hurd, this test is not required because there is |
| 10876 | # no limit to the length of command line arguments. |
| 10877 | # Libtool will interpret -1 as no limit whatsoever |
| 10878 | lt_cv_sys_max_cmd_len=-1; |
| 10879 | ;; |
| 10880 | |
| 10881 | cygwin* | mingw*) |
| 10882 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 10883 | # about 5 minutes as the teststring grows exponentially. |
| 10884 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 10885 | # you end up with a "frozen" computer, even though with patience |
| 10886 | # the test eventually succeeds (with a max line length of 256k). |
| 10887 | # Instead, let's just punt: use the minimum linelength reported by |
| 10888 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 10889 | lt_cv_sys_max_cmd_len=8192; |
| 10890 | ;; |
| 10891 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10892 | amigaos*) |
| 10893 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 10894 | # So we just punt and use a minimum line length of 8192. |
| 10895 | lt_cv_sys_max_cmd_len=8192; |
| 10896 | ;; |
| 10897 | |
| 10898 | netbsd* | freebsd* | openbsd* | darwin* ) |
| 10899 | # This has been around since 386BSD, at least. Likely further. |
| 10900 | if test -x /sbin/sysctl; then |
| 10901 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 10902 | elif test -x /usr/sbin/sysctl; then |
| 10903 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 10904 | else |
| 10905 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
| 10906 | fi |
| 10907 | # And add a safety zone |
| 10908 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10909 | ;; |
| 10910 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10911 | *) |
| 10912 | # If test is not a shell built-in, we'll probably end up computing a |
| 10913 | # maximum length that is only half of the actual maximum length, but |
| 10914 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10915 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 10916 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 10917 | = "XX$teststring") >/dev/null 2>&1 && |
| 10918 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10919 | lt_cv_sys_max_cmd_len=$new_result && |
| 10920 | test $i != 17 # 1/2 MB should be enough |
| 10921 | do |
| 10922 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10923 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10924 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10925 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10926 | # Add a significant safety factor because C++ compilers can tack on massive |
| 10927 | # amounts of additional arguments before passing them to the linker. |
| 10928 | # It appears as though 1/2 is a usable value. |
| 10929 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 10930 | ;; |
| 10931 | esac |
| 10932 | |
| 10933 | fi |
| 10934 | |
| 10935 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 10936 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 10937 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 10938 | else |
| 10939 | echo "$as_me:$LINENO: result: none" >&5 |
| 10940 | echo "${ECHO_T}none" >&6 |
| 10941 | fi |
| 10942 | |
| 10943 | |
| 10944 | |
| 10945 | |
| 10946 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 10947 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10948 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 10949 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10951 | else |
| 10952 | |
| 10953 | # These are sane defaults that work on at least a few old systems. |
| 10954 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10955 | |
| 10956 | # Character class describing NM global symbol codes. |
| 10957 | symcode='[BCDEGRST]' |
| 10958 | |
| 10959 | # Regexp to match symbols that can be accessed directly from C. |
| 10960 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10961 | |
| 10962 | # Transform the above into a raw symbol and a C symbol. |
| 10963 | symxfrm='\1 \2\3 \3' |
| 10964 | |
| 10965 | # Transform an extracted symbol line into a proper C declaration |
| 10966 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10967 | |
| 10968 | # Transform an extracted symbol line into symbol name and symbol address |
| 10969 | 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'" |
| 10970 | |
| 10971 | # Define system-specific variables. |
| 10972 | case $host_os in |
| 10973 | aix*) |
| 10974 | symcode='[BCDT]' |
| 10975 | ;; |
| 10976 | cygwin* | mingw* | pw32*) |
| 10977 | symcode='[ABCDGISTW]' |
| 10978 | ;; |
| 10979 | hpux*) # Its linker distinguishes data from code symbols |
| 10980 | if test "$host_cpu" = ia64; then |
| 10981 | symcode='[ABCDEGRST]' |
| 10982 | fi |
| 10983 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10984 | 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'" |
| 10985 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10986 | linux*) |
| 10987 | if test "$host_cpu" = ia64; then |
| 10988 | symcode='[ABCDGIRSTW]' |
| 10989 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10990 | 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'" |
| 10991 | fi |
| 10992 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10993 | irix* | nonstopux*) |
| 10994 | symcode='[BCDEGRST]' |
| 10995 | ;; |
| 10996 | osf*) |
| 10997 | symcode='[BCDEGQRST]' |
| 10998 | ;; |
| 10999 | solaris* | sysv5*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11000 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11001 | ;; |
| 11002 | sysv4) |
| 11003 | symcode='[DFNSTU]' |
| 11004 | ;; |
| 11005 | esac |
| 11006 | |
| 11007 | # Handle CRLF in mingw tool chain |
| 11008 | opt_cr= |
| 11009 | case $build_os in |
| 11010 | mingw*) |
| 11011 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 11012 | ;; |
| 11013 | esac |
| 11014 | |
| 11015 | # If we're using GNU nm, then use its standard symbol codes. |
| 11016 | case `$NM -V 2>&1` in |
| 11017 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11018 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11019 | esac |
| 11020 | |
| 11021 | # Try without a prefix undercore, then with it. |
| 11022 | for ac_symprfx in "" "_"; do |
| 11023 | |
| 11024 | # Write the raw and C identifiers. |
| 11025 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 11026 | |
| 11027 | # Check to see that the pipe works correctly. |
| 11028 | pipe_works=no |
| 11029 | |
| 11030 | rm -f conftest* |
| 11031 | cat > conftest.$ac_ext <<EOF |
| 11032 | #ifdef __cplusplus |
| 11033 | extern "C" { |
| 11034 | #endif |
| 11035 | char nm_test_var; |
| 11036 | void nm_test_func(){} |
| 11037 | #ifdef __cplusplus |
| 11038 | } |
| 11039 | #endif |
| 11040 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 11041 | EOF |
| 11042 | |
| 11043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11044 | (eval $ac_compile) 2>&5 |
| 11045 | ac_status=$? |
| 11046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11047 | (exit $ac_status); }; then |
| 11048 | # Now try to grab the symbols. |
| 11049 | nlist=conftest.nm |
| 11050 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 11051 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 11052 | ac_status=$? |
| 11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11054 | (exit $ac_status); } && test -s "$nlist"; then |
| 11055 | # Try sorting and uniquifying the output. |
| 11056 | if sort "$nlist" | uniq > "$nlist"T; then |
| 11057 | mv -f "$nlist"T "$nlist" |
| 11058 | else |
| 11059 | rm -f "$nlist"T |
| 11060 | fi |
| 11061 | |
| 11062 | # Make sure that we snagged all the symbols we need. |
| 11063 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 11064 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 11065 | cat <<EOF > conftest.$ac_ext |
| 11066 | #ifdef __cplusplus |
| 11067 | extern "C" { |
| 11068 | #endif |
| 11069 | |
| 11070 | EOF |
| 11071 | # Now generate the symbol file. |
| 11072 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 11073 | |
| 11074 | cat <<EOF >> conftest.$ac_ext |
| 11075 | #if defined (__STDC__) && __STDC__ |
| 11076 | # define lt_ptr_t void * |
| 11077 | #else |
| 11078 | # define lt_ptr_t char * |
| 11079 | # define const |
| 11080 | #endif |
| 11081 | |
| 11082 | /* The mapping between symbol names and symbols. */ |
| 11083 | const struct { |
| 11084 | const char *name; |
| 11085 | lt_ptr_t address; |
| 11086 | } |
| 11087 | lt_preloaded_symbols[] = |
| 11088 | { |
| 11089 | EOF |
| 11090 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 11091 | cat <<\EOF >> conftest.$ac_ext |
| 11092 | {0, (lt_ptr_t) 0} |
| 11093 | }; |
| 11094 | |
| 11095 | #ifdef __cplusplus |
| 11096 | } |
| 11097 | #endif |
| 11098 | EOF |
| 11099 | # Now try linking the two files. |
| 11100 | mv conftest.$ac_objext conftstm.$ac_objext |
| 11101 | lt_save_LIBS="$LIBS" |
| 11102 | lt_save_CFLAGS="$CFLAGS" |
| 11103 | LIBS="conftstm.$ac_objext" |
| 11104 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 11105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11106 | (eval $ac_link) 2>&5 |
| 11107 | ac_status=$? |
| 11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11109 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 11110 | pipe_works=yes |
| 11111 | fi |
| 11112 | LIBS="$lt_save_LIBS" |
| 11113 | CFLAGS="$lt_save_CFLAGS" |
| 11114 | else |
| 11115 | echo "cannot find nm_test_func in $nlist" >&5 |
| 11116 | fi |
| 11117 | else |
| 11118 | echo "cannot find nm_test_var in $nlist" >&5 |
| 11119 | fi |
| 11120 | else |
| 11121 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11122 | fi |
| 11123 | else |
| 11124 | echo "$progname: failed program was:" >&5 |
| 11125 | cat conftest.$ac_ext >&5 |
| 11126 | fi |
| 11127 | rm -f conftest* conftst* |
| 11128 | |
| 11129 | # Do not use the global_symbol_pipe unless it works. |
| 11130 | if test "$pipe_works" = yes; then |
| 11131 | break |
| 11132 | else |
| 11133 | lt_cv_sys_global_symbol_pipe= |
| 11134 | fi |
| 11135 | done |
| 11136 | |
| 11137 | fi |
| 11138 | |
| 11139 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 11140 | lt_cv_sys_global_symbol_to_cdecl= |
| 11141 | fi |
| 11142 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 11143 | echo "$as_me:$LINENO: result: failed" >&5 |
| 11144 | echo "${ECHO_T}failed" >&6 |
| 11145 | else |
| 11146 | echo "$as_me:$LINENO: result: ok" >&5 |
| 11147 | echo "${ECHO_T}ok" >&6 |
| 11148 | fi |
| 11149 | |
| 11150 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 11151 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 11152 | if test "${lt_cv_objdir+set}" = set; then |
| 11153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11154 | else |
| 11155 | rm -f .libs 2>/dev/null |
| 11156 | mkdir .libs 2>/dev/null |
| 11157 | if test -d .libs; then |
| 11158 | lt_cv_objdir=.libs |
| 11159 | else |
| 11160 | # MS-DOS does not allow filenames that begin with a dot. |
| 11161 | lt_cv_objdir=_libs |
| 11162 | fi |
| 11163 | rmdir .libs 2>/dev/null |
| 11164 | fi |
| 11165 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 11166 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 11167 | objdir=$lt_cv_objdir |
| 11168 | |
| 11169 | |
| 11170 | |
| 11171 | |
| 11172 | |
| 11173 | case $host_os in |
| 11174 | aix3*) |
| 11175 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11176 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11177 | # vanish in a puff of smoke. |
| 11178 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11179 | COLLECT_NAMES= |
| 11180 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11181 | fi |
| 11182 | ;; |
| 11183 | esac |
| 11184 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11185 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 11186 | # metacharacters that are still active within double-quoted strings. |
| 11187 | Xsed='sed -e s/^X//' |
| 11188 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 11189 | |
| 11190 | # Same as above, but do not quote variable references. |
| 11191 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 11192 | |
| 11193 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 11194 | # double_quote_subst'ed string. |
| 11195 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 11196 | |
| 11197 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 11198 | no_glob_subst='s/\*/\\\*/g' |
| 11199 | |
| 11200 | # Constants: |
| 11201 | rm="rm -f" |
| 11202 | |
| 11203 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 11204 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11205 | can_build_shared=yes |
| 11206 | |
| 11207 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 11208 | # which needs '.lib'). |
| 11209 | libext=a |
| 11210 | ltmain="$ac_aux_dir/ltmain.sh" |
| 11211 | ofile="$default_ofile" |
| 11212 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 11213 | |
| 11214 | if test -n "$ac_tool_prefix"; then |
| 11215 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 11216 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 11217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11219 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11221 | else |
| 11222 | if test -n "$AR"; then |
| 11223 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11224 | else |
| 11225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11226 | for as_dir in $PATH |
| 11227 | do |
| 11228 | IFS=$as_save_IFS |
| 11229 | test -z "$as_dir" && as_dir=. |
| 11230 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11232 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11234 | break 2 |
| 11235 | fi |
| 11236 | done |
| 11237 | done |
| 11238 | |
| 11239 | fi |
| 11240 | fi |
| 11241 | AR=$ac_cv_prog_AR |
| 11242 | if test -n "$AR"; then |
| 11243 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 11244 | echo "${ECHO_T}$AR" >&6 |
| 11245 | else |
| 11246 | echo "$as_me:$LINENO: result: no" >&5 |
| 11247 | echo "${ECHO_T}no" >&6 |
| 11248 | fi |
| 11249 | |
| 11250 | fi |
| 11251 | if test -z "$ac_cv_prog_AR"; then |
| 11252 | ac_ct_AR=$AR |
| 11253 | # Extract the first word of "ar", so it can be a program name with args. |
| 11254 | set dummy ar; ac_word=$2 |
| 11255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11257 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11259 | else |
| 11260 | if test -n "$ac_ct_AR"; then |
| 11261 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 11262 | else |
| 11263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11264 | for as_dir in $PATH |
| 11265 | do |
| 11266 | IFS=$as_save_IFS |
| 11267 | test -z "$as_dir" && as_dir=. |
| 11268 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11270 | ac_cv_prog_ac_ct_AR="ar" |
| 11271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11272 | break 2 |
| 11273 | fi |
| 11274 | done |
| 11275 | done |
| 11276 | |
| 11277 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 11278 | fi |
| 11279 | fi |
| 11280 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11281 | if test -n "$ac_ct_AR"; then |
| 11282 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11283 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 11284 | else |
| 11285 | echo "$as_me:$LINENO: result: no" >&5 |
| 11286 | echo "${ECHO_T}no" >&6 |
| 11287 | fi |
| 11288 | |
| 11289 | AR=$ac_ct_AR |
| 11290 | else |
| 11291 | AR="$ac_cv_prog_AR" |
| 11292 | fi |
| 11293 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11294 | if test -n "$ac_tool_prefix"; then |
| 11295 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11296 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11299 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11301 | else |
| 11302 | if test -n "$RANLIB"; then |
| 11303 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11304 | else |
| 11305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11306 | for as_dir in $PATH |
| 11307 | do |
| 11308 | IFS=$as_save_IFS |
| 11309 | test -z "$as_dir" && as_dir=. |
| 11310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11312 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11314 | break 2 |
| 11315 | fi |
| 11316 | done |
| 11317 | done |
| 11318 | |
| 11319 | fi |
| 11320 | fi |
| 11321 | RANLIB=$ac_cv_prog_RANLIB |
| 11322 | if test -n "$RANLIB"; then |
| 11323 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11324 | echo "${ECHO_T}$RANLIB" >&6 |
| 11325 | else |
| 11326 | echo "$as_me:$LINENO: result: no" >&5 |
| 11327 | echo "${ECHO_T}no" >&6 |
| 11328 | fi |
| 11329 | |
| 11330 | fi |
| 11331 | if test -z "$ac_cv_prog_RANLIB"; then |
| 11332 | ac_ct_RANLIB=$RANLIB |
| 11333 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11334 | set dummy ranlib; ac_word=$2 |
| 11335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11337 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11339 | else |
| 11340 | if test -n "$ac_ct_RANLIB"; then |
| 11341 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11342 | else |
| 11343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11344 | for as_dir in $PATH |
| 11345 | do |
| 11346 | IFS=$as_save_IFS |
| 11347 | test -z "$as_dir" && as_dir=. |
| 11348 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11350 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11352 | break 2 |
| 11353 | fi |
| 11354 | done |
| 11355 | done |
| 11356 | |
| 11357 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 11358 | fi |
| 11359 | fi |
| 11360 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11361 | if test -n "$ac_ct_RANLIB"; then |
| 11362 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11363 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 11364 | else |
| 11365 | echo "$as_me:$LINENO: result: no" >&5 |
| 11366 | echo "${ECHO_T}no" >&6 |
| 11367 | fi |
| 11368 | |
| 11369 | RANLIB=$ac_ct_RANLIB |
| 11370 | else |
| 11371 | RANLIB="$ac_cv_prog_RANLIB" |
| 11372 | fi |
| 11373 | |
| 11374 | if test -n "$ac_tool_prefix"; then |
| 11375 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 11376 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 11377 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11379 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11381 | else |
| 11382 | if test -n "$STRIP"; then |
| 11383 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11384 | else |
| 11385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11386 | for as_dir in $PATH |
| 11387 | do |
| 11388 | IFS=$as_save_IFS |
| 11389 | test -z "$as_dir" && as_dir=. |
| 11390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11391 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11392 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11394 | break 2 |
| 11395 | fi |
| 11396 | done |
| 11397 | done |
| 11398 | |
| 11399 | fi |
| 11400 | fi |
| 11401 | STRIP=$ac_cv_prog_STRIP |
| 11402 | if test -n "$STRIP"; then |
| 11403 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11404 | echo "${ECHO_T}$STRIP" >&6 |
| 11405 | else |
| 11406 | echo "$as_me:$LINENO: result: no" >&5 |
| 11407 | echo "${ECHO_T}no" >&6 |
| 11408 | fi |
| 11409 | |
| 11410 | fi |
| 11411 | if test -z "$ac_cv_prog_STRIP"; then |
| 11412 | ac_ct_STRIP=$STRIP |
| 11413 | # Extract the first word of "strip", so it can be a program name with args. |
| 11414 | set dummy strip; ac_word=$2 |
| 11415 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11417 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11419 | else |
| 11420 | if test -n "$ac_ct_STRIP"; then |
| 11421 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11422 | else |
| 11423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11424 | for as_dir in $PATH |
| 11425 | do |
| 11426 | IFS=$as_save_IFS |
| 11427 | test -z "$as_dir" && as_dir=. |
| 11428 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11430 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11432 | break 2 |
| 11433 | fi |
| 11434 | done |
| 11435 | done |
| 11436 | |
| 11437 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 11438 | fi |
| 11439 | fi |
| 11440 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11441 | if test -n "$ac_ct_STRIP"; then |
| 11442 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11443 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 11444 | else |
| 11445 | echo "$as_me:$LINENO: result: no" >&5 |
| 11446 | echo "${ECHO_T}no" >&6 |
| 11447 | fi |
| 11448 | |
| 11449 | STRIP=$ac_ct_STRIP |
| 11450 | else |
| 11451 | STRIP="$ac_cv_prog_STRIP" |
| 11452 | fi |
| 11453 | |
| 11454 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11455 | old_CC="$CC" |
| 11456 | old_CFLAGS="$CFLAGS" |
| 11457 | |
| 11458 | # Set sane defaults for various variables |
| 11459 | test -z "$AR" && AR=ar |
| 11460 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 11461 | test -z "$AS" && AS=as |
| 11462 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11463 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11464 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11465 | test -z "$LD" && LD=ld |
| 11466 | test -z "$LN_S" && LN_S="ln -s" |
| 11467 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 11468 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11469 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11470 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 11471 | test -z "$RANLIB" && RANLIB=: |
| 11472 | test -z "$STRIP" && STRIP=: |
| 11473 | test -z "$ac_objext" && ac_objext=o |
| 11474 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11475 | # Determine commands to create old-style static archives. |
| 11476 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 11477 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11478 | old_postuninstall_cmds= |
| 11479 | |
| 11480 | if test -n "$RANLIB"; then |
| 11481 | case $host_os in |
| 11482 | openbsd*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11483 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11484 | ;; |
| 11485 | *) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11486 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11487 | ;; |
| 11488 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11489 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11490 | fi |
| 11491 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11492 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 11493 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11494 | # Only perform the check for file, if the check method requires it |
| 11495 | case $deplibs_check_method in |
| 11496 | file_magic*) |
| 11497 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 11498 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 11499 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 11500 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 11501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11502 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11503 | case $MAGIC_CMD in |
| 11504 | [\\/*] | ?:[\\/]*) |
| 11505 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11506 | ;; |
| 11507 | *) |
| 11508 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11509 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11510 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11511 | for ac_dir in $ac_dummy; do |
| 11512 | IFS="$lt_save_ifs" |
| 11513 | test -z "$ac_dir" && ac_dir=. |
| 11514 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 11515 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 11516 | if test -n "$file_magic_test_file"; then |
| 11517 | case $deplibs_check_method in |
| 11518 | "file_magic "*) |
| 11519 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 11520 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11521 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11522 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11523 | : |
| 11524 | else |
| 11525 | cat <<EOF 1>&2 |
| 11526 | |
| 11527 | *** Warning: the command libtool uses to detect shared libraries, |
| 11528 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11529 | *** The result is that libtool may fail to recognize shared libraries |
| 11530 | *** as such. This will affect the creation of libtool libraries that |
| 11531 | *** depend on shared libraries, but programs linked with such libtool |
| 11532 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11533 | *** may want to report the problem to your system manager and/or to |
| 11534 | *** bug-libtool@gnu.org |
| 11535 | |
| 11536 | EOF |
| 11537 | fi ;; |
| 11538 | esac |
| 11539 | fi |
| 11540 | break |
| 11541 | fi |
| 11542 | done |
| 11543 | IFS="$lt_save_ifs" |
| 11544 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11545 | ;; |
| 11546 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11547 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11548 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11549 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11550 | if test -n "$MAGIC_CMD"; then |
| 11551 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 11552 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 11553 | else |
| 11554 | echo "$as_me:$LINENO: result: no" >&5 |
| 11555 | echo "${ECHO_T}no" >&6 |
| 11556 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11557 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11558 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 11559 | if test -n "$ac_tool_prefix"; then |
| 11560 | echo "$as_me:$LINENO: checking for file" >&5 |
| 11561 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 11562 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 11563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11564 | else |
| 11565 | case $MAGIC_CMD in |
| 11566 | [\\/*] | ?:[\\/]*) |
| 11567 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11568 | ;; |
| 11569 | *) |
| 11570 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11571 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11572 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11573 | for ac_dir in $ac_dummy; do |
| 11574 | IFS="$lt_save_ifs" |
| 11575 | test -z "$ac_dir" && ac_dir=. |
| 11576 | if test -f $ac_dir/file; then |
| 11577 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 11578 | if test -n "$file_magic_test_file"; then |
| 11579 | case $deplibs_check_method in |
| 11580 | "file_magic "*) |
| 11581 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 11582 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11583 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11584 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11585 | : |
| 11586 | else |
| 11587 | cat <<EOF 1>&2 |
| 11588 | |
| 11589 | *** Warning: the command libtool uses to detect shared libraries, |
| 11590 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11591 | *** The result is that libtool may fail to recognize shared libraries |
| 11592 | *** as such. This will affect the creation of libtool libraries that |
| 11593 | *** depend on shared libraries, but programs linked with such libtool |
| 11594 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11595 | *** may want to report the problem to your system manager and/or to |
| 11596 | *** bug-libtool@gnu.org |
| 11597 | |
| 11598 | EOF |
| 11599 | fi ;; |
| 11600 | esac |
| 11601 | fi |
| 11602 | break |
| 11603 | fi |
| 11604 | done |
| 11605 | IFS="$lt_save_ifs" |
| 11606 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11607 | ;; |
| 11608 | esac |
| 11609 | fi |
| 11610 | |
| 11611 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11612 | if test -n "$MAGIC_CMD"; then |
| 11613 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 11614 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 11615 | else |
| 11616 | echo "$as_me:$LINENO: result: no" >&5 |
| 11617 | echo "${ECHO_T}no" >&6 |
| 11618 | fi |
| 11619 | |
| 11620 | else |
| 11621 | MAGIC_CMD=: |
| 11622 | fi |
| 11623 | fi |
| 11624 | |
| 11625 | fi |
| 11626 | ;; |
| 11627 | esac |
| 11628 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 11629 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11630 | enable_win32_dll=no |
| 11631 | |
| 11632 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 11633 | if test "${enable_libtool_lock+set}" = set; then |
| 11634 | enableval="$enable_libtool_lock" |
| 11635 | |
| 11636 | fi; |
| 11637 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 11638 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11639 | |
| 11640 | # Check whether --with-pic or --without-pic was given. |
| 11641 | if test "${with_pic+set}" = set; then |
| 11642 | withval="$with_pic" |
| 11643 | pic_mode="$withval" |
| 11644 | else |
| 11645 | pic_mode=default |
| 11646 | fi; |
| 11647 | test -z "$pic_mode" && pic_mode=default |
| 11648 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11649 | # Use C for the default configuration in the libtool script |
| 11650 | tagname= |
| 11651 | lt_save_CC="$CC" |
| 11652 | ac_ext=c |
| 11653 | ac_cpp='$CPP $CPPFLAGS' |
| 11654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11657 | |
| 11658 | |
| 11659 | # Source file extension for C test sources. |
| 11660 | ac_ext=c |
| 11661 | |
| 11662 | # Object file extension for compiled C test sources. |
| 11663 | objext=o |
| 11664 | objext=$objext |
| 11665 | |
| 11666 | # Code to be used in simple compile tests |
| 11667 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 11668 | |
| 11669 | # Code to be used in simple link tests |
| 11670 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 11671 | |
| 11672 | |
| 11673 | # If no C compiler was specified, use CC. |
| 11674 | LTCC=${LTCC-"$CC"} |
| 11675 | |
| 11676 | # Allow CC to be a program name with arguments. |
| 11677 | compiler=$CC |
| 11678 | |
| 11679 | |
| 11680 | # |
| 11681 | # Check for any special shared library compilation flags. |
| 11682 | # |
| 11683 | lt_prog_cc_shlib= |
| 11684 | if test "$GCC" = no; then |
| 11685 | case $host_os in |
| 11686 | sco3.2v5*) |
| 11687 | lt_prog_cc_shlib='-belf' |
| 11688 | ;; |
| 11689 | esac |
| 11690 | fi |
| 11691 | if test -n "$lt_prog_cc_shlib"; then |
| 11692 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 11693 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 11694 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 11695 | else |
| 11696 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 11697 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 11698 | lt_cv_prog_cc_can_build_shared=no |
| 11699 | fi |
| 11700 | fi |
| 11701 | |
| 11702 | |
| 11703 | # |
| 11704 | # Check to make sure the static flag actually works. |
| 11705 | # |
| 11706 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 11707 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 11708 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11710 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11711 | lt_prog_compiler_static_works=no |
| 11712 | save_LDFLAGS="$LDFLAGS" |
| 11713 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 11714 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11715 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11716 | # The compiler can only warn and ignore the option if not recognized |
| 11717 | # So say no if there are warnings |
| 11718 | if test -s conftest.err; then |
| 11719 | # Append any errors to the config.log. |
| 11720 | cat conftest.err 1>&5 |
| 11721 | else |
| 11722 | lt_prog_compiler_static_works=yes |
| 11723 | fi |
| 11724 | fi |
| 11725 | $rm conftest* |
| 11726 | LDFLAGS="$save_LDFLAGS" |
| 11727 | |
| 11728 | fi |
| 11729 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 11730 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 11731 | |
| 11732 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 11733 | : |
| 11734 | else |
| 11735 | lt_prog_compiler_static= |
| 11736 | fi |
| 11737 | |
| 11738 | |
| 11739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11740 | |
| 11741 | lt_prog_compiler_no_builtin_flag= |
| 11742 | |
| 11743 | if test "$GCC" = yes; then |
| 11744 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 11745 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11746 | |
| 11747 | 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] | 11748 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 11749 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 11750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11751 | else |
| 11752 | lt_cv_prog_compiler_rtti_exceptions=no |
| 11753 | ac_outfile=conftest.$ac_objext |
| 11754 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11755 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 11756 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11757 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11758 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11759 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11760 | # The option is referenced via a variable to avoid confusing sed. |
| 11761 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11762 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11763 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11764 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 11765 | (eval echo "\"\$as_me:11765: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11766 | (eval "$lt_compile" 2>conftest.err) |
| 11767 | ac_status=$? |
| 11768 | cat conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 11769 | echo "$as_me:11769: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11770 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11771 | # The compiler can only warn and ignore the option if not recognized |
| 11772 | # So say no if there are warnings |
| 11773 | if test ! -s conftest.err; then |
| 11774 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 11775 | fi |
| 11776 | fi |
| 11777 | $rm conftest* |
| 11778 | |
| 11779 | fi |
| 11780 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 11781 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 11782 | |
| 11783 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 11784 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 11785 | else |
| 11786 | : |
| 11787 | fi |
| 11788 | |
| 11789 | fi |
| 11790 | |
| 11791 | lt_prog_compiler_wl= |
| 11792 | lt_prog_compiler_pic= |
| 11793 | lt_prog_compiler_static= |
| 11794 | |
| 11795 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 11796 | 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] | 11797 | |
| 11798 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11799 | lt_prog_compiler_wl='-Wl,' |
| 11800 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11801 | |
| 11802 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11803 | aix*) |
| 11804 | # All AIX code is PIC. |
| 11805 | if test "$host_cpu" = ia64; then |
| 11806 | # AIX 5 now supports IA64 processor |
| 11807 | lt_prog_compiler_static='-Bstatic' |
| 11808 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11809 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11811 | amigaos*) |
| 11812 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11813 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11814 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11815 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11816 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11817 | |
| 11818 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11819 | # PIC is the default for these OSes. |
| 11820 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11821 | |
| 11822 | mingw* | pw32* | os2*) |
| 11823 | # This hack is so that the source file can tell whether it is being |
| 11824 | # built for inclusion in a dll (and should export symbols for example). |
| 11825 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11826 | ;; |
| 11827 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11828 | darwin* | rhapsody*) |
| 11829 | # PIC is the default on this platform |
| 11830 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11831 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11832 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11833 | |
| 11834 | msdosdjgpp*) |
| 11835 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 11836 | # on systems that don't support them. |
| 11837 | lt_prog_compiler_can_build_shared=no |
| 11838 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11839 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11840 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11841 | sysv4*MP*) |
| 11842 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11843 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11844 | fi |
| 11845 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11846 | |
| 11847 | hpux*) |
| 11848 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11849 | # not for PA HP-UX. |
| 11850 | case "$host_cpu" in |
| 11851 | hppa*64*|ia64*) |
| 11852 | # +Z the default |
| 11853 | ;; |
| 11854 | *) |
| 11855 | lt_prog_compiler_pic='-fPIC' |
| 11856 | ;; |
| 11857 | esac |
| 11858 | ;; |
| 11859 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11860 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11861 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11862 | ;; |
| 11863 | esac |
| 11864 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11865 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11866 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11867 | aix*) |
| 11868 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11869 | if test "$host_cpu" = ia64; then |
| 11870 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11871 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11872 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11873 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11874 | fi |
| 11875 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11876 | darwin*) |
| 11877 | # PIC is the default on this platform |
| 11878 | # Common symbols not allowed in MH_DYLIB files |
| 11879 | case "$cc_basename" in |
| 11880 | xlc*) |
| 11881 | lt_prog_compiler_pic='-qnocommon' |
| 11882 | lt_prog_compiler_wl='-Wl,' |
| 11883 | ;; |
| 11884 | esac |
| 11885 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11886 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11887 | mingw* | pw32* | os2*) |
| 11888 | # This hack is so that the source file can tell whether it is being |
| 11889 | # built for inclusion in a dll (and should export symbols for example). |
| 11890 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11891 | ;; |
| 11892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11893 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11894 | lt_prog_compiler_wl='-Wl,' |
| 11895 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11896 | # not for PA HP-UX. |
| 11897 | case "$host_cpu" in |
| 11898 | hppa*64*|ia64*) |
| 11899 | # +Z the default |
| 11900 | ;; |
| 11901 | *) |
| 11902 | lt_prog_compiler_pic='+Z' |
| 11903 | ;; |
| 11904 | esac |
| 11905 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 11906 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11907 | ;; |
| 11908 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11909 | irix5* | irix6* | nonstopux*) |
| 11910 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11911 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11912 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11913 | ;; |
| 11914 | |
| 11915 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11916 | lt_prog_compiler_pic='-KPIC' |
| 11917 | lt_prog_compiler_static='-Bstatic' |
| 11918 | ;; |
| 11919 | |
| 11920 | linux*) |
| 11921 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11922 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11923 | lt_prog_compiler_wl='-Wl,' |
| 11924 | lt_prog_compiler_pic='-KPIC' |
| 11925 | lt_prog_compiler_static='-static' |
| 11926 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11927 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11928 | lt_prog_compiler_wl='-Wl,' |
| 11929 | # All Alpha code is PIC. |
| 11930 | lt_prog_compiler_static='-non_shared' |
| 11931 | ;; |
| 11932 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11933 | ;; |
| 11934 | |
| 11935 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11936 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11937 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11938 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11939 | ;; |
| 11940 | |
| 11941 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11942 | lt_prog_compiler_pic='-Kpic' |
| 11943 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11944 | ;; |
| 11945 | |
| 11946 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11947 | lt_prog_compiler_wl='-Wl,' |
| 11948 | lt_prog_compiler_pic='-KPIC' |
| 11949 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11950 | ;; |
| 11951 | |
| 11952 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11953 | lt_prog_compiler_wl='-Qoption ld ' |
| 11954 | lt_prog_compiler_pic='-PIC' |
| 11955 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11956 | ;; |
| 11957 | |
| 11958 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11959 | lt_prog_compiler_wl='-Wl,' |
| 11960 | lt_prog_compiler_pic='-KPIC' |
| 11961 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11962 | ;; |
| 11963 | |
| 11964 | sysv4*MP*) |
| 11965 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11966 | lt_prog_compiler_pic='-Kconform_pic' |
| 11967 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11968 | fi |
| 11969 | ;; |
| 11970 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11971 | uts4*) |
| 11972 | lt_prog_compiler_pic='-pic' |
| 11973 | lt_prog_compiler_static='-Bstatic' |
| 11974 | ;; |
| 11975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11976 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11977 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11978 | ;; |
| 11979 | esac |
| 11980 | fi |
| 11981 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11982 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 11983 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11984 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11985 | # |
| 11986 | # Check to make sure the PIC flag actually works. |
| 11987 | # |
| 11988 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11989 | |
| 11990 | 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] | 11991 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 11992 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11994 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11995 | lt_prog_compiler_pic_works=no |
| 11996 | ac_outfile=conftest.$ac_objext |
| 11997 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11998 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 11999 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12000 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12001 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12002 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12003 | # The option is referenced via a variable to avoid confusing sed. |
| 12004 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12005 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12006 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12007 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12008 | (eval echo "\"\$as_me:12008: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12009 | (eval "$lt_compile" 2>conftest.err) |
| 12010 | ac_status=$? |
| 12011 | cat conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12012 | echo "$as_me:12012: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12013 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12014 | # The compiler can only warn and ignore the option if not recognized |
| 12015 | # So say no if there are warnings |
| 12016 | if test ! -s conftest.err; then |
| 12017 | lt_prog_compiler_pic_works=yes |
| 12018 | fi |
| 12019 | fi |
| 12020 | $rm conftest* |
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 | fi |
| 12023 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 12024 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12025 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12026 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 12027 | case $lt_prog_compiler_pic in |
| 12028 | "" | " "*) ;; |
| 12029 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 12030 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12031 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12032 | lt_prog_compiler_pic= |
| 12033 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12034 | fi |
| 12035 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12036 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12037 | case "$host_os" in |
| 12038 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12039 | *djgpp*) |
| 12040 | lt_prog_compiler_pic= |
| 12041 | ;; |
| 12042 | *) |
| 12043 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 12044 | ;; |
| 12045 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12046 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12047 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12048 | 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] | 12049 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12051 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12052 | lt_cv_prog_compiler_c_o=no |
| 12053 | $rm -r conftest 2>/dev/null |
| 12054 | mkdir conftest |
| 12055 | cd conftest |
| 12056 | mkdir out |
| 12057 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12058 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12059 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12060 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12061 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12062 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12063 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12064 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12065 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12066 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12067 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12068 | (eval echo "\"\$as_me:12068: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12069 | (eval "$lt_compile" 2>out/conftest.err) |
| 12070 | ac_status=$? |
| 12071 | cat out/conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12072 | echo "$as_me:12072: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12073 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12074 | then |
| 12075 | # The compiler can only warn and ignore the option if not recognized |
| 12076 | # So say no if there are warnings |
| 12077 | if test ! -s out/conftest.err; then |
| 12078 | lt_cv_prog_compiler_c_o=yes |
| 12079 | fi |
| 12080 | fi |
| 12081 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12082 | $rm conftest* |
| 12083 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12084 | # template instantiation |
| 12085 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12086 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12087 | cd .. |
| 12088 | rmdir conftest |
| 12089 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12090 | |
| 12091 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12092 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12093 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12094 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12095 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12096 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12097 | 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] | 12098 | # do not overwrite the value of need_locks provided by the user |
| 12099 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12100 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12101 | hard_links=yes |
| 12102 | $rm conftest* |
| 12103 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12104 | touch conftest.a |
| 12105 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12106 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12107 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12108 | echo "${ECHO_T}$hard_links" >&6 |
| 12109 | if test "$hard_links" = no; then |
| 12110 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12111 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12112 | need_locks=warn |
| 12113 | fi |
| 12114 | else |
| 12115 | need_locks=no |
| 12116 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12117 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12118 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12119 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12120 | |
| 12121 | runpath_var= |
| 12122 | allow_undefined_flag= |
| 12123 | enable_shared_with_static_runtimes=no |
| 12124 | archive_cmds= |
| 12125 | archive_expsym_cmds= |
| 12126 | old_archive_From_new_cmds= |
| 12127 | old_archive_from_expsyms_cmds= |
| 12128 | export_dynamic_flag_spec= |
| 12129 | whole_archive_flag_spec= |
| 12130 | thread_safe_flag_spec= |
| 12131 | hardcode_libdir_flag_spec= |
| 12132 | hardcode_libdir_flag_spec_ld= |
| 12133 | hardcode_libdir_separator= |
| 12134 | hardcode_direct=no |
| 12135 | hardcode_minus_L=no |
| 12136 | hardcode_shlibpath_var=unsupported |
| 12137 | link_all_deplibs=unknown |
| 12138 | hardcode_automatic=no |
| 12139 | module_cmds= |
| 12140 | module_expsym_cmds= |
| 12141 | always_export_symbols=no |
| 12142 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12143 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12144 | # included in the symbol list |
| 12145 | include_expsyms= |
| 12146 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12147 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12148 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12149 | # as well as any symbol that contains `d'. |
| 12150 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 12151 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12152 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12153 | # the symbol is explicitly referenced. Since portable code cannot |
| 12154 | # rely on this symbol name, it's probably fine to never include it in |
| 12155 | # preloaded symbol tables. |
| 12156 | extract_expsyms_cmds= |
| 12157 | |
| 12158 | case $host_os in |
| 12159 | cygwin* | mingw* | pw32*) |
| 12160 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12161 | # When not using gcc, we currently assume that we are using |
| 12162 | # Microsoft Visual C++. |
| 12163 | if test "$GCC" != yes; then |
| 12164 | with_gnu_ld=no |
| 12165 | fi |
| 12166 | ;; |
| 12167 | openbsd*) |
| 12168 | with_gnu_ld=no |
| 12169 | ;; |
| 12170 | esac |
| 12171 | |
| 12172 | ld_shlibs=yes |
| 12173 | if test "$with_gnu_ld" = yes; then |
| 12174 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12175 | wlarc='${wl}' |
| 12176 | |
| 12177 | # See if GNU ld supports shared libraries. |
| 12178 | case $host_os in |
| 12179 | aix3* | aix4* | aix5*) |
| 12180 | # On AIX/PPC, the GNU linker is very broken |
| 12181 | if test "$host_cpu" != ia64; then |
| 12182 | ld_shlibs=no |
| 12183 | cat <<EOF 1>&2 |
| 12184 | |
| 12185 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12186 | *** to be unable to reliably create shared libraries on AIX. |
| 12187 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12188 | *** really care for shared libraries, you may want to modify your PATH |
| 12189 | *** so that a non-GNU linker is found, and then restart. |
| 12190 | |
| 12191 | EOF |
| 12192 | fi |
| 12193 | ;; |
| 12194 | |
| 12195 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12196 | 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] | 12197 | hardcode_libdir_flag_spec='-L$libdir' |
| 12198 | hardcode_minus_L=yes |
| 12199 | |
| 12200 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12201 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12202 | # to version 4, is to share data among multiple programs linked |
| 12203 | # with the same dynamic library. Since this doesn't match the |
| 12204 | # behavior of shared libraries on other platforms, we can't use |
| 12205 | # them. |
| 12206 | ld_shlibs=no |
| 12207 | ;; |
| 12208 | |
| 12209 | beos*) |
| 12210 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12211 | allow_undefined_flag=unsupported |
| 12212 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12213 | # support --undefined. This deserves some investigation. FIXME |
| 12214 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12215 | else |
| 12216 | ld_shlibs=no |
| 12217 | fi |
| 12218 | ;; |
| 12219 | |
| 12220 | cygwin* | mingw* | pw32*) |
| 12221 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12222 | # as there is no search path for DLLs. |
| 12223 | hardcode_libdir_flag_spec='-L$libdir' |
| 12224 | allow_undefined_flag=unsupported |
| 12225 | always_export_symbols=no |
| 12226 | enable_shared_with_static_runtimes=yes |
| 12227 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12228 | |
| 12229 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12230 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12231 | # If the export-symbols file already is a .def file (1st line |
| 12232 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12233 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12234 | cp $export_symbols $output_objdir/$soname.def; |
| 12235 | else |
| 12236 | echo EXPORTS > $output_objdir/$soname.def; |
| 12237 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12238 | fi~ |
| 12239 | $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] | 12240 | else |
| 12241 | ld_shlibs=no |
| 12242 | fi |
| 12243 | ;; |
| 12244 | |
| 12245 | netbsd*) |
| 12246 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12247 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12248 | wlarc= |
| 12249 | else |
| 12250 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12251 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12252 | fi |
| 12253 | ;; |
| 12254 | |
| 12255 | solaris* | sysv5*) |
| 12256 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12257 | ld_shlibs=no |
| 12258 | cat <<EOF 1>&2 |
| 12259 | |
| 12260 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12261 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12262 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12263 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12264 | *** your PATH or compiler configuration so that the native linker is |
| 12265 | *** used, and then restart. |
| 12266 | |
| 12267 | EOF |
| 12268 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12269 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12270 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12271 | else |
| 12272 | ld_shlibs=no |
| 12273 | fi |
| 12274 | ;; |
| 12275 | |
| 12276 | sunos4*) |
| 12277 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12278 | wlarc= |
| 12279 | hardcode_direct=yes |
| 12280 | hardcode_shlibpath_var=no |
| 12281 | ;; |
| 12282 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12283 | linux*) |
| 12284 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12285 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12286 | archive_cmds="$tmp_archive_cmds" |
| 12287 | supports_anon_versioning=no |
| 12288 | case `$LD -v 2>/dev/null` in |
| 12289 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12290 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12291 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12292 | *\ 2.11.*) ;; # other 2.11 versions |
| 12293 | *) supports_anon_versioning=yes ;; |
| 12294 | esac |
| 12295 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12296 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 12297 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12298 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12299 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12300 | else |
| 12301 | archive_expsym_cmds="$tmp_archive_cmds" |
| 12302 | fi |
| 12303 | else |
| 12304 | ld_shlibs=no |
| 12305 | fi |
| 12306 | ;; |
| 12307 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12308 | *) |
| 12309 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12310 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12311 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12312 | else |
| 12313 | ld_shlibs=no |
| 12314 | fi |
| 12315 | ;; |
| 12316 | esac |
| 12317 | |
| 12318 | if test "$ld_shlibs" = yes; then |
| 12319 | runpath_var=LD_RUN_PATH |
| 12320 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 12321 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 12322 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12323 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12324 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12325 | else |
| 12326 | whole_archive_flag_spec= |
| 12327 | fi |
| 12328 | fi |
| 12329 | else |
| 12330 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12331 | case $host_os in |
| 12332 | aix3*) |
| 12333 | allow_undefined_flag=unsupported |
| 12334 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12335 | 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] | 12336 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12337 | # are no directories specified by -L. |
| 12338 | hardcode_minus_L=yes |
| 12339 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12340 | # Neither direct hardcoding nor static linking is supported with a |
| 12341 | # broken collect2. |
| 12342 | hardcode_direct=unsupported |
| 12343 | fi |
| 12344 | ;; |
| 12345 | |
| 12346 | aix4* | aix5*) |
| 12347 | if test "$host_cpu" = ia64; then |
| 12348 | # On IA64, the linker does run time linking by default, so we don't |
| 12349 | # have to do anything special. |
| 12350 | aix_use_runtimelinking=no |
| 12351 | exp_sym_flag='-Bexport' |
| 12352 | no_entry_flag="" |
| 12353 | else |
| 12354 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12355 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12356 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12357 | 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' |
| 12358 | else |
| 12359 | 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' |
| 12360 | fi |
| 12361 | aix_use_runtimelinking=no |
| 12362 | |
| 12363 | # Test if we are trying to use run time linking or normal |
| 12364 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12365 | # need to do runtime linking. |
| 12366 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 12367 | for ld_flag in $LDFLAGS; do |
| 12368 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 12369 | aix_use_runtimelinking=yes |
| 12370 | break |
| 12371 | fi |
| 12372 | done |
| 12373 | esac |
| 12374 | |
| 12375 | exp_sym_flag='-bexport' |
| 12376 | no_entry_flag='-bnoentry' |
| 12377 | fi |
| 12378 | |
| 12379 | # When large executables or shared objects are built, AIX ld can |
| 12380 | # have problems creating the table of contents. If linking a library |
| 12381 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12382 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12383 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12384 | |
| 12385 | archive_cmds='' |
| 12386 | hardcode_direct=yes |
| 12387 | hardcode_libdir_separator=':' |
| 12388 | link_all_deplibs=yes |
| 12389 | |
| 12390 | if test "$GCC" = yes; then |
| 12391 | case $host_os in aix4.012|aix4.012.*) |
| 12392 | # We only want to do this on AIX 4.2 and lower, the check |
| 12393 | # below for broken collect2 doesn't work under 4.3+ |
| 12394 | collect2name=`${CC} -print-prog-name=collect2` |
| 12395 | if test -f "$collect2name" && \ |
| 12396 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 12397 | then |
| 12398 | # We have reworked collect2 |
| 12399 | hardcode_direct=yes |
| 12400 | else |
| 12401 | # We have old collect2 |
| 12402 | hardcode_direct=unsupported |
| 12403 | # It fails to find uninstalled libraries when the uninstalled |
| 12404 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12405 | # to unsupported forces relinking |
| 12406 | hardcode_minus_L=yes |
| 12407 | hardcode_libdir_flag_spec='-L$libdir' |
| 12408 | hardcode_libdir_separator= |
| 12409 | fi |
| 12410 | esac |
| 12411 | shared_flag='-shared' |
| 12412 | else |
| 12413 | # not using gcc |
| 12414 | if test "$host_cpu" = ia64; then |
| 12415 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12416 | # chokes on -Wl,-G. The following line is correct: |
| 12417 | shared_flag='-G' |
| 12418 | else |
| 12419 | if test "$aix_use_runtimelinking" = yes; then |
| 12420 | shared_flag='${wl}-G' |
| 12421 | else |
| 12422 | shared_flag='${wl}-bM:SRE' |
| 12423 | fi |
| 12424 | fi |
| 12425 | fi |
| 12426 | |
| 12427 | # It seems that -bexpall does not export symbols beginning with |
| 12428 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12429 | always_export_symbols=yes |
| 12430 | if test "$aix_use_runtimelinking" = yes; then |
| 12431 | # Warning - without using the other runtime loading flags (-brtl), |
| 12432 | # -berok will link without error, but may produce a broken library. |
| 12433 | allow_undefined_flag='-berok' |
| 12434 | # Determine the default libpath from the value encoded in an empty executable. |
| 12435 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12436 | /* confdefs.h. */ |
| 12437 | _ACEOF |
| 12438 | cat confdefs.h >>conftest.$ac_ext |
| 12439 | cat >>conftest.$ac_ext <<_ACEOF |
| 12440 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12442 | int |
| 12443 | main () |
| 12444 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12445 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12446 | ; |
| 12447 | return 0; |
| 12448 | } |
| 12449 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12452 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12453 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12455 | rm -f conftest.er1 |
| 12456 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12458 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12459 | { ac_try='test -z "$ac_c_werror_flag" |
| 12460 | || test ! -s conftest.err' |
| 12461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12462 | (eval $ac_try) 2>&5 |
| 12463 | ac_status=$? |
| 12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12465 | (exit $ac_status); }; } && |
| 12466 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12468 | (eval $ac_try) 2>&5 |
| 12469 | ac_status=$? |
| 12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12471 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12472 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12473 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12474 | }'` |
| 12475 | # Check for a 64-bit object if we didn't find anything. |
| 12476 | 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; } |
| 12477 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12478 | else |
| 12479 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12481 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12482 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12483 | rm -f conftest.err conftest.$ac_objext \ |
| 12484 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12485 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12486 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12487 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12488 | 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" |
| 12489 | else |
| 12490 | if test "$host_cpu" = ia64; then |
| 12491 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 12492 | allow_undefined_flag="-z nodefs" |
| 12493 | 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" |
| 12494 | else |
| 12495 | # Determine the default libpath from the value encoded in an empty executable. |
| 12496 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12497 | /* confdefs.h. */ |
| 12498 | _ACEOF |
| 12499 | cat confdefs.h >>conftest.$ac_ext |
| 12500 | cat >>conftest.$ac_ext <<_ACEOF |
| 12501 | /* end confdefs.h. */ |
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 | int |
| 12504 | main () |
| 12505 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12506 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12507 | ; |
| 12508 | return 0; |
| 12509 | } |
| 12510 | _ACEOF |
| 12511 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12513 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12514 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12516 | rm -f conftest.er1 |
| 12517 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12519 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12520 | { ac_try='test -z "$ac_c_werror_flag" |
| 12521 | || test ! -s conftest.err' |
| 12522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12523 | (eval $ac_try) 2>&5 |
| 12524 | ac_status=$? |
| 12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12526 | (exit $ac_status); }; } && |
| 12527 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12529 | (eval $ac_try) 2>&5 |
| 12530 | ac_status=$? |
| 12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12532 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12533 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12534 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12535 | }'` |
| 12536 | # Check for a 64-bit object if we didn't find anything. |
| 12537 | 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; } |
| 12538 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12539 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12540 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12542 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12543 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12544 | rm -f conftest.err conftest.$ac_objext \ |
| 12545 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12546 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12547 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12548 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12549 | # Warning - without using the other run time loading flags, |
| 12550 | # -berok will link without error, but may produce a broken library. |
| 12551 | no_undefined_flag=' ${wl}-bernotok' |
| 12552 | allow_undefined_flag=' ${wl}-berok' |
| 12553 | # -bexpall does not export symbols beginning with underscore (_) |
| 12554 | always_export_symbols=yes |
| 12555 | # Exported symbols can be pulled into shared objects from archives |
| 12556 | whole_archive_flag_spec=' ' |
| 12557 | archive_cmds_need_lc=yes |
| 12558 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12559 | 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] | 12560 | fi |
| 12561 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12562 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12563 | |
| 12564 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12565 | 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] | 12566 | hardcode_libdir_flag_spec='-L$libdir' |
| 12567 | hardcode_minus_L=yes |
| 12568 | # see comment about different semantics on the GNU ld section |
| 12569 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12570 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12571 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12572 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12573 | export_dynamic_flag_spec=-rdynamic |
| 12574 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12575 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12576 | cygwin* | mingw* | pw32*) |
| 12577 | # When not using gcc, we currently assume that we are using |
| 12578 | # Microsoft Visual C++. |
| 12579 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12580 | # no search path for DLLs. |
| 12581 | hardcode_libdir_flag_spec=' ' |
| 12582 | allow_undefined_flag=unsupported |
| 12583 | # Tell ltmain to make .lib files, not .a files. |
| 12584 | libext=lib |
| 12585 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12586 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12587 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12588 | 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] | 12589 | # The linker will automatically build a .lib file if we build a DLL. |
| 12590 | old_archive_From_new_cmds='true' |
| 12591 | # FIXME: Should let the user specify the lib program. |
| 12592 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 12593 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 12594 | enable_shared_with_static_runtimes=yes |
| 12595 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12596 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12597 | darwin* | rhapsody*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12598 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12599 | rhapsody* | darwin1.[012]) |
| 12600 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 12601 | ;; |
| 12602 | *) # Darwin 1.3 on |
| 12603 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 12604 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12605 | else |
| 12606 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 12607 | 10.[012]) |
| 12608 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12609 | ;; |
| 12610 | 10.*) |
| 12611 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 12612 | ;; |
| 12613 | esac |
| 12614 | fi |
| 12615 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12616 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12617 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12618 | hardcode_direct=no |
| 12619 | hardcode_automatic=yes |
| 12620 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12621 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12622 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12623 | if test "$GCC" = yes ; then |
| 12624 | output_verbose_link_cmd='echo' |
| 12625 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 12626 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12627 | # 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] | 12628 | 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}' |
| 12629 | 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] | 12630 | else |
| 12631 | case "$cc_basename" in |
| 12632 | xlc*) |
| 12633 | output_verbose_link_cmd='echo' |
| 12634 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 12635 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12636 | # 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] | 12637 | 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}' |
| 12638 | 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] | 12639 | ;; |
| 12640 | *) |
| 12641 | ld_shlibs=no |
| 12642 | ;; |
| 12643 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12644 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12645 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12646 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12647 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12648 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12649 | hardcode_libdir_flag_spec='-L$libdir' |
| 12650 | hardcode_shlibpath_var=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 | freebsd1*) |
| 12654 | ld_shlibs=no |
| 12655 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12656 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12657 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 12658 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 12659 | # does not break anything, and helps significantly (at the cost of a little |
| 12660 | # extra space). |
| 12661 | freebsd2.2*) |
| 12662 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 12663 | hardcode_libdir_flag_spec='-R$libdir' |
| 12664 | hardcode_direct=yes |
| 12665 | hardcode_shlibpath_var=no |
| 12666 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12667 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12668 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 12669 | freebsd2*) |
| 12670 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12671 | hardcode_direct=yes |
| 12672 | hardcode_minus_L=yes |
| 12673 | hardcode_shlibpath_var=no |
| 12674 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12675 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12676 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12677 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12678 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 12679 | hardcode_libdir_flag_spec='-R$libdir' |
| 12680 | hardcode_direct=yes |
| 12681 | hardcode_shlibpath_var=no |
| 12682 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12684 | hpux9*) |
| 12685 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12686 | 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] | 12687 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12688 | 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] | 12689 | fi |
| 12690 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12691 | hardcode_libdir_separator=: |
| 12692 | hardcode_direct=yes |
| 12693 | |
| 12694 | # hardcode_minus_L: Not really in the search PATH, |
| 12695 | # but as the default location of the library. |
| 12696 | hardcode_minus_L=yes |
| 12697 | export_dynamic_flag_spec='${wl}-E' |
| 12698 | ;; |
| 12699 | |
| 12700 | hpux10* | hpux11*) |
| 12701 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 12702 | case "$host_cpu" in |
| 12703 | hppa*64*|ia64*) |
| 12704 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12705 | ;; |
| 12706 | *) |
| 12707 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12708 | ;; |
| 12709 | esac |
| 12710 | else |
| 12711 | case "$host_cpu" in |
| 12712 | hppa*64*|ia64*) |
| 12713 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12714 | ;; |
| 12715 | *) |
| 12716 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12717 | ;; |
| 12718 | esac |
| 12719 | fi |
| 12720 | if test "$with_gnu_ld" = no; then |
| 12721 | case "$host_cpu" in |
| 12722 | hppa*64*) |
| 12723 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12724 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 12725 | hardcode_libdir_separator=: |
| 12726 | hardcode_direct=no |
| 12727 | hardcode_shlibpath_var=no |
| 12728 | ;; |
| 12729 | ia64*) |
| 12730 | hardcode_libdir_flag_spec='-L$libdir' |
| 12731 | hardcode_direct=no |
| 12732 | hardcode_shlibpath_var=no |
| 12733 | |
| 12734 | # hardcode_minus_L: Not really in the search PATH, |
| 12735 | # but as the default location of the library. |
| 12736 | hardcode_minus_L=yes |
| 12737 | ;; |
| 12738 | *) |
| 12739 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12740 | hardcode_libdir_separator=: |
| 12741 | hardcode_direct=yes |
| 12742 | export_dynamic_flag_spec='${wl}-E' |
| 12743 | |
| 12744 | # hardcode_minus_L: Not really in the search PATH, |
| 12745 | # but as the default location of the library. |
| 12746 | hardcode_minus_L=yes |
| 12747 | ;; |
| 12748 | esac |
| 12749 | fi |
| 12750 | ;; |
| 12751 | |
| 12752 | irix5* | irix6* | nonstopux*) |
| 12753 | if test "$GCC" = yes; then |
| 12754 | 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' |
| 12755 | else |
| 12756 | 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' |
| 12757 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 12758 | fi |
| 12759 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12760 | hardcode_libdir_separator=: |
| 12761 | link_all_deplibs=yes |
| 12762 | ;; |
| 12763 | |
| 12764 | netbsd*) |
| 12765 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12766 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12767 | else |
| 12768 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12769 | fi |
| 12770 | hardcode_libdir_flag_spec='-R$libdir' |
| 12771 | hardcode_direct=yes |
| 12772 | hardcode_shlibpath_var=no |
| 12773 | ;; |
| 12774 | |
| 12775 | newsos6) |
| 12776 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12777 | hardcode_direct=yes |
| 12778 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12779 | hardcode_libdir_separator=: |
| 12780 | hardcode_shlibpath_var=no |
| 12781 | ;; |
| 12782 | |
| 12783 | openbsd*) |
| 12784 | hardcode_direct=yes |
| 12785 | hardcode_shlibpath_var=no |
| 12786 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12787 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12788 | 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] | 12789 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12790 | export_dynamic_flag_spec='${wl}-E' |
| 12791 | else |
| 12792 | case $host_os in |
| 12793 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 12794 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12795 | hardcode_libdir_flag_spec='-R$libdir' |
| 12796 | ;; |
| 12797 | *) |
| 12798 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12799 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12800 | ;; |
| 12801 | esac |
| 12802 | fi |
| 12803 | ;; |
| 12804 | |
| 12805 | os2*) |
| 12806 | hardcode_libdir_flag_spec='-L$libdir' |
| 12807 | hardcode_minus_L=yes |
| 12808 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12809 | 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] | 12810 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 12811 | ;; |
| 12812 | |
| 12813 | osf3*) |
| 12814 | if test "$GCC" = yes; then |
| 12815 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12816 | 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' |
| 12817 | else |
| 12818 | allow_undefined_flag=' -expect_unresolved \*' |
| 12819 | 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' |
| 12820 | fi |
| 12821 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12822 | hardcode_libdir_separator=: |
| 12823 | ;; |
| 12824 | |
| 12825 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12826 | if test "$GCC" = yes; then |
| 12827 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 12828 | 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' |
| 12829 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12830 | else |
| 12831 | allow_undefined_flag=' -expect_unresolved \*' |
| 12832 | 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] | 12833 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 12834 | $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' |
| 12835 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12836 | # Both c and cxx compiler support -rpath directly |
| 12837 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 12838 | fi |
| 12839 | hardcode_libdir_separator=: |
| 12840 | ;; |
| 12841 | |
| 12842 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12843 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12844 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12845 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12846 | runpath_var=LD_RUN_PATH |
| 12847 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12848 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12849 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12850 | solaris*) |
| 12851 | no_undefined_flag=' -z text' |
| 12852 | if test "$GCC" = yes; then |
| 12853 | 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] | 12854 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12855 | $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] | 12856 | else |
| 12857 | 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] | 12858 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12859 | $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] | 12860 | fi |
| 12861 | hardcode_libdir_flag_spec='-R$libdir' |
| 12862 | hardcode_shlibpath_var=no |
| 12863 | case $host_os in |
| 12864 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12865 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12866 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 12867 | esac |
| 12868 | link_all_deplibs=yes |
| 12869 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12870 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12871 | sunos4*) |
| 12872 | if test "x$host_vendor" = xsequent; then |
| 12873 | # Use $CC to link under sequent, because it throws in some extra .o |
| 12874 | # files that make .init and .fini sections work. |
| 12875 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12876 | else |
| 12877 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12878 | fi |
| 12879 | hardcode_libdir_flag_spec='-L$libdir' |
| 12880 | hardcode_direct=yes |
| 12881 | hardcode_minus_L=yes |
| 12882 | hardcode_shlibpath_var=no |
| 12883 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12884 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12885 | sysv4) |
| 12886 | case $host_vendor in |
| 12887 | sni) |
| 12888 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12889 | hardcode_direct=yes # is this really true??? |
| 12890 | ;; |
| 12891 | siemens) |
| 12892 | ## LD is ld it makes a PLAMLIB |
| 12893 | ## CC just makes a GrossModule. |
| 12894 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12895 | reload_cmds='$CC -r -o $output$reload_objs' |
| 12896 | hardcode_direct=no |
| 12897 | ;; |
| 12898 | motorola) |
| 12899 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12900 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12901 | ;; |
| 12902 | esac |
| 12903 | runpath_var='LD_RUN_PATH' |
| 12904 | hardcode_shlibpath_var=no |
| 12905 | ;; |
| 12906 | |
| 12907 | sysv4.3*) |
| 12908 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12909 | hardcode_shlibpath_var=no |
| 12910 | export_dynamic_flag_spec='-Bexport' |
| 12911 | ;; |
| 12912 | |
| 12913 | sysv4*MP*) |
| 12914 | if test -d /usr/nec; then |
| 12915 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12916 | hardcode_shlibpath_var=no |
| 12917 | runpath_var=LD_RUN_PATH |
| 12918 | hardcode_runpath_var=yes |
| 12919 | ld_shlibs=yes |
| 12920 | fi |
| 12921 | ;; |
| 12922 | |
| 12923 | sysv4.2uw2*) |
| 12924 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12925 | hardcode_direct=yes |
| 12926 | hardcode_minus_L=no |
| 12927 | hardcode_shlibpath_var=no |
| 12928 | hardcode_runpath_var=yes |
| 12929 | runpath_var=LD_RUN_PATH |
| 12930 | ;; |
| 12931 | |
| 12932 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 12933 | no_undefined_flag='${wl}-z ${wl}text' |
| 12934 | if test "$GCC" = yes; then |
| 12935 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12936 | else |
| 12937 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12938 | fi |
| 12939 | runpath_var='LD_RUN_PATH' |
| 12940 | hardcode_shlibpath_var=no |
| 12941 | ;; |
| 12942 | |
| 12943 | sysv5*) |
| 12944 | no_undefined_flag=' -z text' |
| 12945 | # $CC -shared without GNU ld will not create a library from C++ |
| 12946 | # object files and a static libstdc++, better avoid it by now |
| 12947 | 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] | 12948 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12949 | $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] | 12950 | hardcode_libdir_flag_spec= |
| 12951 | hardcode_shlibpath_var=no |
| 12952 | runpath_var='LD_RUN_PATH' |
| 12953 | ;; |
| 12954 | |
| 12955 | uts4*) |
| 12956 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12957 | hardcode_libdir_flag_spec='-L$libdir' |
| 12958 | hardcode_shlibpath_var=no |
| 12959 | ;; |
| 12960 | |
| 12961 | *) |
| 12962 | ld_shlibs=no |
| 12963 | ;; |
| 12964 | esac |
| 12965 | fi |
| 12966 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12967 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 12968 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 12969 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12970 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12971 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 12972 | if test "$GCC" = yes; then |
| 12973 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 12974 | fi |
| 12975 | |
| 12976 | # |
| 12977 | # Do we need to explicitly link libc? |
| 12978 | # |
| 12979 | case "x$archive_cmds_need_lc" in |
| 12980 | x|xyes) |
| 12981 | # Assume -lc should be added |
| 12982 | archive_cmds_need_lc=yes |
| 12983 | |
| 12984 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12985 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12986 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12987 | # FIXME: we may have to deal with multi-command sequences. |
| 12988 | ;; |
| 12989 | '$CC '*) |
| 12990 | # Test whether the compiler implicitly links with -lc since on some |
| 12991 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12992 | # to ld, don't add -lc before -lgcc. |
| 12993 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12994 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 12995 | $rm conftest* |
| 12996 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12997 | |
| 12998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12999 | (eval $ac_compile) 2>&5 |
| 13000 | ac_status=$? |
| 13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13002 | (exit $ac_status); } 2>conftest.err; then |
| 13003 | soname=conftest |
| 13004 | lib=conftest |
| 13005 | libobjs=conftest.$ac_objext |
| 13006 | deplibs= |
| 13007 | wl=$lt_prog_compiler_wl |
| 13008 | compiler_flags=-v |
| 13009 | linker_flags=-v |
| 13010 | verstring= |
| 13011 | output_objdir=. |
| 13012 | libname=conftest |
| 13013 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13014 | allow_undefined_flag= |
| 13015 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13016 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13017 | ac_status=$? |
| 13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13019 | (exit $ac_status); } |
| 13020 | then |
| 13021 | archive_cmds_need_lc=no |
| 13022 | else |
| 13023 | archive_cmds_need_lc=yes |
| 13024 | fi |
| 13025 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13026 | else |
| 13027 | cat conftest.err 1>&5 |
| 13028 | fi |
| 13029 | $rm conftest* |
| 13030 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 13031 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 13032 | ;; |
| 13033 | esac |
| 13034 | fi |
| 13035 | ;; |
| 13036 | esac |
| 13037 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13038 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13039 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13040 | library_names_spec= |
| 13041 | libname_spec='lib$name' |
| 13042 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13043 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13044 | postinstall_cmds= |
| 13045 | postuninstall_cmds= |
| 13046 | finish_cmds= |
| 13047 | finish_eval= |
| 13048 | shlibpath_var= |
| 13049 | shlibpath_overrides_runpath=unknown |
| 13050 | version_type=none |
| 13051 | dynamic_linker="$host_os ld.so" |
| 13052 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13053 | if test "$GCC" = yes; then |
| 13054 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13055 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13056 | # if the path contains ";" then we assume it to be the separator |
| 13057 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13058 | # assumed that no part of a normal pathname contains ";" but that should |
| 13059 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13060 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13061 | else |
| 13062 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13063 | fi |
| 13064 | else |
| 13065 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13066 | fi |
| 13067 | need_lib_prefix=unknown |
| 13068 | hardcode_into_libs=no |
| 13069 | |
| 13070 | # when you set need_version to no, make sure it does not cause -set_version |
| 13071 | # flags to be left without arguments |
| 13072 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13073 | |
| 13074 | case $host_os in |
| 13075 | aix3*) |
| 13076 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13077 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13078 | shlibpath_var=LIBPATH |
| 13079 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13080 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13081 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13082 | ;; |
| 13083 | |
| 13084 | aix4* | aix5*) |
| 13085 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13086 | need_lib_prefix=no |
| 13087 | need_version=no |
| 13088 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13089 | if test "$host_cpu" = ia64; then |
| 13090 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13091 | 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] | 13092 | shlibpath_var=LD_LIBRARY_PATH |
| 13093 | else |
| 13094 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13095 | # for dependence libraries. The import file would start with |
| 13096 | # the line `#! .'. This would cause the generated library to |
| 13097 | # depend on `.', always an invalid library. This was fixed in |
| 13098 | # development snapshots of GCC prior to 3.0. |
| 13099 | case $host_os in |
| 13100 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13101 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13102 | echo ' yes ' |
| 13103 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13104 | : |
| 13105 | else |
| 13106 | can_build_shared=no |
| 13107 | fi |
| 13108 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13109 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13110 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13111 | # soname into executable. Probably we can add versioning support to |
| 13112 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13113 | if test "$aix_use_runtimelinking" = yes; then |
| 13114 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13115 | # instead of lib<name>.a to let people know that these are not |
| 13116 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13117 | 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] | 13118 | else |
| 13119 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13120 | # and later when we are not doing run time linking. |
| 13121 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13122 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13123 | fi |
| 13124 | shlibpath_var=LIBPATH |
| 13125 | fi |
| 13126 | ;; |
| 13127 | |
| 13128 | amigaos*) |
| 13129 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13130 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13131 | 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] | 13132 | ;; |
| 13133 | |
| 13134 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13135 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13136 | dynamic_linker="$host_os ld.so" |
| 13137 | shlibpath_var=LIBRARY_PATH |
| 13138 | ;; |
| 13139 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13140 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13141 | version_type=linux |
| 13142 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13144 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13145 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13146 | shlibpath_var=LD_LIBRARY_PATH |
| 13147 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13148 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13149 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13150 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13151 | # libtool to hard-code these into programs |
| 13152 | ;; |
| 13153 | |
| 13154 | cygwin* | mingw* | pw32*) |
| 13155 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13156 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13157 | need_version=no |
| 13158 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13159 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13160 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13161 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13162 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13163 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13164 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13165 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13166 | dldir=$destdir/`dirname \$dlpath`~ |
| 13167 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13168 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13169 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13170 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13171 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13172 | shlibpath_overrides_runpath=yes |
| 13173 | |
| 13174 | case $host_os in |
| 13175 | cygwin*) |
| 13176 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13177 | 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] | 13178 | 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] | 13179 | ;; |
| 13180 | mingw*) |
| 13181 | # MinGW DLLs use traditional 'lib' prefix |
| 13182 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13183 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13184 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13185 | # It is most probably a Windows format PATH printed by |
| 13186 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13187 | # path with ; separators, and with drive letters. We can handle the |
| 13188 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13189 | # especially as we might pass files found there to a mingw objdump, |
| 13190 | # which wouldn't understand a cygwinified path. Ahh. |
| 13191 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13192 | else |
| 13193 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13194 | fi |
| 13195 | ;; |
| 13196 | pw32*) |
| 13197 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13198 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13199 | ;; |
| 13200 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13201 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13202 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13203 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13204 | 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] | 13205 | ;; |
| 13206 | esac |
| 13207 | dynamic_linker='Win32 ld.exe' |
| 13208 | # FIXME: first we should search . and the directory the executable is in |
| 13209 | shlibpath_var=PATH |
| 13210 | ;; |
| 13211 | |
| 13212 | darwin* | rhapsody*) |
| 13213 | dynamic_linker="$host_os dyld" |
| 13214 | version_type=darwin |
| 13215 | need_lib_prefix=no |
| 13216 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13217 | 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] | 13218 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13219 | shlibpath_overrides_runpath=yes |
| 13220 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13221 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13222 | # 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] | 13223 | if test "$GCC" = yes; then |
| 13224 | 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"` |
| 13225 | else |
| 13226 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13227 | fi |
| 13228 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13229 | ;; |
| 13230 | |
| 13231 | dgux*) |
| 13232 | version_type=linux |
| 13233 | need_lib_prefix=no |
| 13234 | need_version=no |
| 13235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13236 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13237 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13238 | ;; |
| 13239 | |
| 13240 | freebsd1*) |
| 13241 | dynamic_linker=no |
| 13242 | ;; |
| 13243 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13244 | kfreebsd*-gnu) |
| 13245 | version_type=linux |
| 13246 | need_lib_prefix=no |
| 13247 | need_version=no |
| 13248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13249 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13250 | shlibpath_var=LD_LIBRARY_PATH |
| 13251 | shlibpath_overrides_runpath=no |
| 13252 | hardcode_into_libs=yes |
| 13253 | dynamic_linker='GNU ld.so' |
| 13254 | ;; |
| 13255 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13256 | freebsd*) |
| 13257 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13258 | version_type=freebsd-$objformat |
| 13259 | case $version_type in |
| 13260 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13261 | 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] | 13262 | need_version=no |
| 13263 | need_lib_prefix=no |
| 13264 | ;; |
| 13265 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13266 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13267 | need_version=yes |
| 13268 | ;; |
| 13269 | esac |
| 13270 | shlibpath_var=LD_LIBRARY_PATH |
| 13271 | case $host_os in |
| 13272 | freebsd2*) |
| 13273 | shlibpath_overrides_runpath=yes |
| 13274 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13275 | freebsd3.01* | freebsdelf3.01*) |
| 13276 | shlibpath_overrides_runpath=yes |
| 13277 | hardcode_into_libs=yes |
| 13278 | ;; |
| 13279 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13280 | shlibpath_overrides_runpath=no |
| 13281 | hardcode_into_libs=yes |
| 13282 | ;; |
| 13283 | esac |
| 13284 | ;; |
| 13285 | |
| 13286 | gnu*) |
| 13287 | version_type=linux |
| 13288 | need_lib_prefix=no |
| 13289 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13291 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13292 | shlibpath_var=LD_LIBRARY_PATH |
| 13293 | hardcode_into_libs=yes |
| 13294 | ;; |
| 13295 | |
| 13296 | hpux9* | hpux10* | hpux11*) |
| 13297 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13298 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13299 | version_type=sunos |
| 13300 | need_lib_prefix=no |
| 13301 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13302 | case "$host_cpu" in |
| 13303 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13304 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13305 | hardcode_into_libs=yes |
| 13306 | dynamic_linker="$host_os dld.so" |
| 13307 | shlibpath_var=LD_LIBRARY_PATH |
| 13308 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13310 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13311 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13312 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13313 | else |
| 13314 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13315 | fi |
| 13316 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13317 | ;; |
| 13318 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13319 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13320 | hardcode_into_libs=yes |
| 13321 | dynamic_linker="$host_os dld.sl" |
| 13322 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13323 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13325 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13326 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13327 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13328 | ;; |
| 13329 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13330 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13331 | dynamic_linker="$host_os dld.sl" |
| 13332 | shlibpath_var=SHLIB_PATH |
| 13333 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13335 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13336 | ;; |
| 13337 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13338 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13339 | postinstall_cmds='chmod 555 $lib' |
| 13340 | ;; |
| 13341 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13342 | irix5* | irix6* | nonstopux*) |
| 13343 | case $host_os in |
| 13344 | nonstopux*) version_type=nonstopux ;; |
| 13345 | *) |
| 13346 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13347 | version_type=linux |
| 13348 | else |
| 13349 | version_type=irix |
| 13350 | fi ;; |
| 13351 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13352 | need_lib_prefix=no |
| 13353 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13354 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13355 | 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] | 13356 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13357 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13358 | libsuff= shlibsuff= |
| 13359 | ;; |
| 13360 | *) |
| 13361 | 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] | 13362 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13363 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13364 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13365 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13366 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13367 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13368 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13369 | esac |
| 13370 | ;; |
| 13371 | esac |
| 13372 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13373 | shlibpath_overrides_runpath=no |
| 13374 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13375 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13376 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13377 | ;; |
| 13378 | |
| 13379 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13380 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13381 | dynamic_linker=no |
| 13382 | ;; |
| 13383 | |
| 13384 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13385 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13386 | version_type=linux |
| 13387 | need_lib_prefix=no |
| 13388 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13390 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13391 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13392 | shlibpath_var=LD_LIBRARY_PATH |
| 13393 | shlibpath_overrides_runpath=no |
| 13394 | # This implies no fast_install, which is unacceptable. |
| 13395 | # Some rework will be needed to allow for fast_install |
| 13396 | # before this can be enabled. |
| 13397 | hardcode_into_libs=yes |
| 13398 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13399 | # Append ld.so.conf contents to the search path |
| 13400 | if test -f /etc/ld.so.conf; then |
| 13401 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 13402 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13403 | fi |
| 13404 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13405 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13406 | # powerpc, because MkLinux only supported shared libraries with the |
| 13407 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13408 | # most powerpc-linux boxes support dynamic linking these days and |
| 13409 | # people can always --disable-shared, the test was removed, and we |
| 13410 | # assume the GNU/Linux dynamic linker is in use. |
| 13411 | dynamic_linker='GNU/Linux ld.so' |
| 13412 | ;; |
| 13413 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13414 | knetbsd*-gnu) |
| 13415 | version_type=linux |
| 13416 | need_lib_prefix=no |
| 13417 | need_version=no |
| 13418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13419 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13420 | shlibpath_var=LD_LIBRARY_PATH |
| 13421 | shlibpath_overrides_runpath=no |
| 13422 | hardcode_into_libs=yes |
| 13423 | dynamic_linker='GNU ld.so' |
| 13424 | ;; |
| 13425 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13426 | netbsd*) |
| 13427 | version_type=sunos |
| 13428 | need_lib_prefix=no |
| 13429 | need_version=no |
| 13430 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13432 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13433 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13434 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13435 | 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] | 13436 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13437 | dynamic_linker='NetBSD ld.elf_so' |
| 13438 | fi |
| 13439 | shlibpath_var=LD_LIBRARY_PATH |
| 13440 | shlibpath_overrides_runpath=yes |
| 13441 | hardcode_into_libs=yes |
| 13442 | ;; |
| 13443 | |
| 13444 | newsos6) |
| 13445 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13446 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13447 | shlibpath_var=LD_LIBRARY_PATH |
| 13448 | shlibpath_overrides_runpath=yes |
| 13449 | ;; |
| 13450 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13451 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13452 | version_type=linux |
| 13453 | need_lib_prefix=no |
| 13454 | need_version=no |
| 13455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13456 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13457 | shlibpath_var=LD_LIBRARY_PATH |
| 13458 | shlibpath_overrides_runpath=yes |
| 13459 | ;; |
| 13460 | |
| 13461 | openbsd*) |
| 13462 | version_type=sunos |
| 13463 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 13464 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13466 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13467 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13468 | 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] | 13469 | case $host_os in |
| 13470 | openbsd2.[89] | openbsd2.[89].*) |
| 13471 | shlibpath_overrides_runpath=no |
| 13472 | ;; |
| 13473 | *) |
| 13474 | shlibpath_overrides_runpath=yes |
| 13475 | ;; |
| 13476 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13477 | else |
| 13478 | shlibpath_overrides_runpath=yes |
| 13479 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13480 | ;; |
| 13481 | |
| 13482 | os2*) |
| 13483 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13484 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13485 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13486 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13487 | dynamic_linker='OS/2 ld.exe' |
| 13488 | shlibpath_var=LIBPATH |
| 13489 | ;; |
| 13490 | |
| 13491 | osf3* | osf4* | osf5*) |
| 13492 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13493 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13494 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13495 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13496 | 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] | 13497 | shlibpath_var=LD_LIBRARY_PATH |
| 13498 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13499 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13500 | ;; |
| 13501 | |
| 13502 | sco3.2v5*) |
| 13503 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13504 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13505 | 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] | 13506 | shlibpath_var=LD_LIBRARY_PATH |
| 13507 | ;; |
| 13508 | |
| 13509 | solaris*) |
| 13510 | version_type=linux |
| 13511 | need_lib_prefix=no |
| 13512 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13514 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13515 | shlibpath_var=LD_LIBRARY_PATH |
| 13516 | shlibpath_overrides_runpath=yes |
| 13517 | hardcode_into_libs=yes |
| 13518 | # ldd complains unless libraries are executable |
| 13519 | postinstall_cmds='chmod +x $lib' |
| 13520 | ;; |
| 13521 | |
| 13522 | sunos4*) |
| 13523 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13525 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13526 | shlibpath_var=LD_LIBRARY_PATH |
| 13527 | shlibpath_overrides_runpath=yes |
| 13528 | if test "$with_gnu_ld" = yes; then |
| 13529 | need_lib_prefix=no |
| 13530 | fi |
| 13531 | need_version=yes |
| 13532 | ;; |
| 13533 | |
| 13534 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13535 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13537 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13538 | shlibpath_var=LD_LIBRARY_PATH |
| 13539 | case $host_vendor in |
| 13540 | sni) |
| 13541 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13542 | need_lib_prefix=no |
| 13543 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13544 | runpath_var=LD_RUN_PATH |
| 13545 | ;; |
| 13546 | siemens) |
| 13547 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13548 | ;; |
| 13549 | motorola) |
| 13550 | need_lib_prefix=no |
| 13551 | need_version=no |
| 13552 | shlibpath_overrides_runpath=no |
| 13553 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13554 | ;; |
| 13555 | esac |
| 13556 | ;; |
| 13557 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13558 | sysv4*MP*) |
| 13559 | if test -d /usr/nec ;then |
| 13560 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13561 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13562 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13563 | shlibpath_var=LD_LIBRARY_PATH |
| 13564 | fi |
| 13565 | ;; |
| 13566 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13567 | uts4*) |
| 13568 | version_type=linux |
| 13569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13571 | shlibpath_var=LD_LIBRARY_PATH |
| 13572 | ;; |
| 13573 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13574 | *) |
| 13575 | dynamic_linker=no |
| 13576 | ;; |
| 13577 | esac |
| 13578 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13579 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 13580 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13581 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13582 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13583 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 13584 | hardcode_action= |
| 13585 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 13586 | test -n "$runpath_var" || \ |
| 13587 | test "X$hardcode_automatic" = "Xyes" ; then |
| 13588 | |
| 13589 | # We can hardcode non-existant directories. |
| 13590 | if test "$hardcode_direct" != no && |
| 13591 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13592 | # have to relink, otherwise we might link with an installed library |
| 13593 | # when we should be linking with a yet-to-be-installed one |
| 13594 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 13595 | test "$hardcode_minus_L" != no; then |
| 13596 | # Linking always hardcodes the temporary library directory. |
| 13597 | hardcode_action=relink |
| 13598 | else |
| 13599 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13600 | hardcode_action=immediate |
| 13601 | fi |
| 13602 | else |
| 13603 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13604 | # directories. |
| 13605 | hardcode_action=unsupported |
| 13606 | fi |
| 13607 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 13608 | echo "${ECHO_T}$hardcode_action" >&6 |
| 13609 | |
| 13610 | if test "$hardcode_action" = relink; then |
| 13611 | # Fast installation is not supported |
| 13612 | enable_fast_install=no |
| 13613 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13614 | test "$enable_shared" = no; then |
| 13615 | # Fast installation is not necessary |
| 13616 | enable_fast_install=needless |
| 13617 | fi |
| 13618 | |
| 13619 | striplib= |
| 13620 | old_striplib= |
| 13621 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 13622 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 13623 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 13624 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13625 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 13626 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13627 | echo "${ECHO_T}yes" >&6 |
| 13628 | else |
| 13629 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13630 | case $host_os in |
| 13631 | darwin*) |
| 13632 | if test -n "$STRIP" ; then |
| 13633 | striplib="$STRIP -x" |
| 13634 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13635 | echo "${ECHO_T}yes" >&6 |
| 13636 | else |
| 13637 | echo "$as_me:$LINENO: result: no" >&5 |
| 13638 | echo "${ECHO_T}no" >&6 |
| 13639 | fi |
| 13640 | ;; |
| 13641 | *) |
| 13642 | echo "$as_me:$LINENO: result: no" >&5 |
| 13643 | echo "${ECHO_T}no" >&6 |
| 13644 | ;; |
| 13645 | esac |
| 13646 | fi |
| 13647 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13648 | if test "x$enable_dlopen" != xyes; then |
| 13649 | enable_dlopen=unknown |
| 13650 | enable_dlopen_self=unknown |
| 13651 | enable_dlopen_self_static=unknown |
| 13652 | else |
| 13653 | lt_cv_dlopen=no |
| 13654 | lt_cv_dlopen_libs= |
| 13655 | |
| 13656 | case $host_os in |
| 13657 | beos*) |
| 13658 | lt_cv_dlopen="load_add_on" |
| 13659 | lt_cv_dlopen_libs= |
| 13660 | lt_cv_dlopen_self=yes |
| 13661 | ;; |
| 13662 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13663 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13664 | lt_cv_dlopen="LoadLibrary" |
| 13665 | lt_cv_dlopen_libs= |
| 13666 | ;; |
| 13667 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13668 | cygwin*) |
| 13669 | lt_cv_dlopen="dlopen" |
| 13670 | lt_cv_dlopen_libs= |
| 13671 | ;; |
| 13672 | |
| 13673 | darwin*) |
| 13674 | # if libdl is installed we need to link against it |
| 13675 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13676 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13677 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13679 | else |
| 13680 | ac_check_lib_save_LIBS=$LIBS |
| 13681 | LIBS="-ldl $LIBS" |
| 13682 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13683 | /* confdefs.h. */ |
| 13684 | _ACEOF |
| 13685 | cat confdefs.h >>conftest.$ac_ext |
| 13686 | cat >>conftest.$ac_ext <<_ACEOF |
| 13687 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13688 | |
| 13689 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13690 | #ifdef __cplusplus |
| 13691 | extern "C" |
| 13692 | #endif |
| 13693 | /* We use char because int might match the return type of a gcc2 |
| 13694 | builtin and then its argument prototype would still apply. */ |
| 13695 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13696 | int |
| 13697 | main () |
| 13698 | { |
| 13699 | dlopen (); |
| 13700 | ; |
| 13701 | return 0; |
| 13702 | } |
| 13703 | _ACEOF |
| 13704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13706 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13707 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13709 | rm -f conftest.er1 |
| 13710 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13712 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13713 | { ac_try='test -z "$ac_c_werror_flag" |
| 13714 | || test ! -s conftest.err' |
| 13715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13716 | (eval $ac_try) 2>&5 |
| 13717 | ac_status=$? |
| 13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13719 | (exit $ac_status); }; } && |
| 13720 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13722 | (eval $ac_try) 2>&5 |
| 13723 | ac_status=$? |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); }; }; then |
| 13726 | ac_cv_lib_dl_dlopen=yes |
| 13727 | else |
| 13728 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13730 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13731 | ac_cv_lib_dl_dlopen=no |
| 13732 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13733 | rm -f conftest.err conftest.$ac_objext \ |
| 13734 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13735 | LIBS=$ac_check_lib_save_LIBS |
| 13736 | fi |
| 13737 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13738 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13739 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13740 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 13741 | else |
| 13742 | |
| 13743 | lt_cv_dlopen="dyld" |
| 13744 | lt_cv_dlopen_libs= |
| 13745 | lt_cv_dlopen_self=yes |
| 13746 | |
| 13747 | fi |
| 13748 | |
| 13749 | ;; |
| 13750 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13751 | *) |
| 13752 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 13753 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 13754 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 13755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13756 | else |
| 13757 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13758 | /* confdefs.h. */ |
| 13759 | _ACEOF |
| 13760 | cat confdefs.h >>conftest.$ac_ext |
| 13761 | cat >>conftest.$ac_ext <<_ACEOF |
| 13762 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13763 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 13764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13765 | #define shl_load innocuous_shl_load |
| 13766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13767 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13768 | which can conflict with char shl_load (); below. |
| 13769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13770 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13771 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13772 | #ifdef __STDC__ |
| 13773 | # include <limits.h> |
| 13774 | #else |
| 13775 | # include <assert.h> |
| 13776 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13777 | |
| 13778 | #undef shl_load |
| 13779 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13780 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13781 | #ifdef __cplusplus |
| 13782 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13783 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13784 | #endif |
| 13785 | /* We use char because int might match the return type of a gcc2 |
| 13786 | builtin and then its argument prototype would still apply. */ |
| 13787 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13788 | /* The GNU C library defines this for functions which it implements |
| 13789 | to always fail with ENOSYS. Some functions are actually named |
| 13790 | something starting with __ and the normal name is an alias. */ |
| 13791 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 13792 | choke me |
| 13793 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13794 | char (*f) () = shl_load; |
| 13795 | #endif |
| 13796 | #ifdef __cplusplus |
| 13797 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13798 | #endif |
| 13799 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13800 | int |
| 13801 | main () |
| 13802 | { |
| 13803 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13804 | ; |
| 13805 | return 0; |
| 13806 | } |
| 13807 | _ACEOF |
| 13808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13810 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13811 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13813 | rm -f conftest.er1 |
| 13814 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13816 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13817 | { ac_try='test -z "$ac_c_werror_flag" |
| 13818 | || test ! -s conftest.err' |
| 13819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13820 | (eval $ac_try) 2>&5 |
| 13821 | ac_status=$? |
| 13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13823 | (exit $ac_status); }; } && |
| 13824 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13826 | (eval $ac_try) 2>&5 |
| 13827 | ac_status=$? |
| 13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13829 | (exit $ac_status); }; }; then |
| 13830 | ac_cv_func_shl_load=yes |
| 13831 | else |
| 13832 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13834 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13835 | ac_cv_func_shl_load=no |
| 13836 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13837 | rm -f conftest.err conftest.$ac_objext \ |
| 13838 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13839 | fi |
| 13840 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 13841 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 13842 | if test $ac_cv_func_shl_load = yes; then |
| 13843 | lt_cv_dlopen="shl_load" |
| 13844 | else |
| 13845 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13846 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 13847 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 13848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13849 | else |
| 13850 | ac_check_lib_save_LIBS=$LIBS |
| 13851 | LIBS="-ldld $LIBS" |
| 13852 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13853 | /* confdefs.h. */ |
| 13854 | _ACEOF |
| 13855 | cat confdefs.h >>conftest.$ac_ext |
| 13856 | cat >>conftest.$ac_ext <<_ACEOF |
| 13857 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13858 | |
| 13859 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13860 | #ifdef __cplusplus |
| 13861 | extern "C" |
| 13862 | #endif |
| 13863 | /* We use char because int might match the return type of a gcc2 |
| 13864 | builtin and then its argument prototype would still apply. */ |
| 13865 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13866 | int |
| 13867 | main () |
| 13868 | { |
| 13869 | shl_load (); |
| 13870 | ; |
| 13871 | return 0; |
| 13872 | } |
| 13873 | _ACEOF |
| 13874 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13876 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13877 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13879 | rm -f conftest.er1 |
| 13880 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13882 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13883 | { ac_try='test -z "$ac_c_werror_flag" |
| 13884 | || test ! -s conftest.err' |
| 13885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13886 | (eval $ac_try) 2>&5 |
| 13887 | ac_status=$? |
| 13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13889 | (exit $ac_status); }; } && |
| 13890 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13892 | (eval $ac_try) 2>&5 |
| 13893 | ac_status=$? |
| 13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13895 | (exit $ac_status); }; }; then |
| 13896 | ac_cv_lib_dld_shl_load=yes |
| 13897 | else |
| 13898 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13901 | ac_cv_lib_dld_shl_load=no |
| 13902 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13903 | rm -f conftest.err conftest.$ac_objext \ |
| 13904 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13905 | LIBS=$ac_check_lib_save_LIBS |
| 13906 | fi |
| 13907 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13908 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 13909 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 13910 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 13911 | else |
| 13912 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 13913 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 13914 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 13915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13916 | else |
| 13917 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13918 | /* confdefs.h. */ |
| 13919 | _ACEOF |
| 13920 | cat confdefs.h >>conftest.$ac_ext |
| 13921 | cat >>conftest.$ac_ext <<_ACEOF |
| 13922 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13923 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 13924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13925 | #define dlopen innocuous_dlopen |
| 13926 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13927 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13928 | which can conflict with char dlopen (); below. |
| 13929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13930 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13931 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13932 | #ifdef __STDC__ |
| 13933 | # include <limits.h> |
| 13934 | #else |
| 13935 | # include <assert.h> |
| 13936 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13937 | |
| 13938 | #undef dlopen |
| 13939 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13940 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13941 | #ifdef __cplusplus |
| 13942 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13943 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13944 | #endif |
| 13945 | /* We use char because int might match the return type of a gcc2 |
| 13946 | builtin and then its argument prototype would still apply. */ |
| 13947 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13948 | /* The GNU C library defines this for functions which it implements |
| 13949 | to always fail with ENOSYS. Some functions are actually named |
| 13950 | something starting with __ and the normal name is an alias. */ |
| 13951 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 13952 | choke me |
| 13953 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13954 | char (*f) () = dlopen; |
| 13955 | #endif |
| 13956 | #ifdef __cplusplus |
| 13957 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13958 | #endif |
| 13959 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13960 | int |
| 13961 | main () |
| 13962 | { |
| 13963 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13964 | ; |
| 13965 | return 0; |
| 13966 | } |
| 13967 | _ACEOF |
| 13968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13970 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13971 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13973 | rm -f conftest.er1 |
| 13974 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13976 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13977 | { ac_try='test -z "$ac_c_werror_flag" |
| 13978 | || test ! -s conftest.err' |
| 13979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13980 | (eval $ac_try) 2>&5 |
| 13981 | ac_status=$? |
| 13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13983 | (exit $ac_status); }; } && |
| 13984 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13986 | (eval $ac_try) 2>&5 |
| 13987 | ac_status=$? |
| 13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13989 | (exit $ac_status); }; }; then |
| 13990 | ac_cv_func_dlopen=yes |
| 13991 | else |
| 13992 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13994 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13995 | ac_cv_func_dlopen=no |
| 13996 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13997 | rm -f conftest.err conftest.$ac_objext \ |
| 13998 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13999 | fi |
| 14000 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 14001 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 14002 | if test $ac_cv_func_dlopen = yes; then |
| 14003 | lt_cv_dlopen="dlopen" |
| 14004 | else |
| 14005 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14006 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 14007 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14009 | else |
| 14010 | ac_check_lib_save_LIBS=$LIBS |
| 14011 | LIBS="-ldl $LIBS" |
| 14012 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14013 | /* confdefs.h. */ |
| 14014 | _ACEOF |
| 14015 | cat confdefs.h >>conftest.$ac_ext |
| 14016 | cat >>conftest.$ac_ext <<_ACEOF |
| 14017 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14018 | |
| 14019 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14020 | #ifdef __cplusplus |
| 14021 | extern "C" |
| 14022 | #endif |
| 14023 | /* We use char because int might match the return type of a gcc2 |
| 14024 | builtin and then its argument prototype would still apply. */ |
| 14025 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14026 | int |
| 14027 | main () |
| 14028 | { |
| 14029 | dlopen (); |
| 14030 | ; |
| 14031 | return 0; |
| 14032 | } |
| 14033 | _ACEOF |
| 14034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14036 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14037 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14039 | rm -f conftest.er1 |
| 14040 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14042 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14043 | { ac_try='test -z "$ac_c_werror_flag" |
| 14044 | || test ! -s conftest.err' |
| 14045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14046 | (eval $ac_try) 2>&5 |
| 14047 | ac_status=$? |
| 14048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14049 | (exit $ac_status); }; } && |
| 14050 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14052 | (eval $ac_try) 2>&5 |
| 14053 | ac_status=$? |
| 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); }; }; then |
| 14056 | ac_cv_lib_dl_dlopen=yes |
| 14057 | else |
| 14058 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14060 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14061 | ac_cv_lib_dl_dlopen=no |
| 14062 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14063 | rm -f conftest.err conftest.$ac_objext \ |
| 14064 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14065 | LIBS=$ac_check_lib_save_LIBS |
| 14066 | fi |
| 14067 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14068 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 14069 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 14070 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14071 | else |
| 14072 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 14073 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 14074 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 14075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14076 | else |
| 14077 | ac_check_lib_save_LIBS=$LIBS |
| 14078 | LIBS="-lsvld $LIBS" |
| 14079 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14080 | /* confdefs.h. */ |
| 14081 | _ACEOF |
| 14082 | cat confdefs.h >>conftest.$ac_ext |
| 14083 | cat >>conftest.$ac_ext <<_ACEOF |
| 14084 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14085 | |
| 14086 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14087 | #ifdef __cplusplus |
| 14088 | extern "C" |
| 14089 | #endif |
| 14090 | /* We use char because int might match the return type of a gcc2 |
| 14091 | builtin and then its argument prototype would still apply. */ |
| 14092 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14093 | int |
| 14094 | main () |
| 14095 | { |
| 14096 | dlopen (); |
| 14097 | ; |
| 14098 | return 0; |
| 14099 | } |
| 14100 | _ACEOF |
| 14101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14103 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14104 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14106 | rm -f conftest.er1 |
| 14107 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14109 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14110 | { ac_try='test -z "$ac_c_werror_flag" |
| 14111 | || test ! -s conftest.err' |
| 14112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14113 | (eval $ac_try) 2>&5 |
| 14114 | ac_status=$? |
| 14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14116 | (exit $ac_status); }; } && |
| 14117 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14119 | (eval $ac_try) 2>&5 |
| 14120 | ac_status=$? |
| 14121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14122 | (exit $ac_status); }; }; then |
| 14123 | ac_cv_lib_svld_dlopen=yes |
| 14124 | else |
| 14125 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14127 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14128 | ac_cv_lib_svld_dlopen=no |
| 14129 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14130 | rm -f conftest.err conftest.$ac_objext \ |
| 14131 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14132 | LIBS=$ac_check_lib_save_LIBS |
| 14133 | fi |
| 14134 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 14135 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 14136 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 14137 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 14138 | else |
| 14139 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 14140 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 14141 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 14142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14143 | else |
| 14144 | ac_check_lib_save_LIBS=$LIBS |
| 14145 | LIBS="-ldld $LIBS" |
| 14146 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14147 | /* confdefs.h. */ |
| 14148 | _ACEOF |
| 14149 | cat confdefs.h >>conftest.$ac_ext |
| 14150 | cat >>conftest.$ac_ext <<_ACEOF |
| 14151 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14152 | |
| 14153 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14154 | #ifdef __cplusplus |
| 14155 | extern "C" |
| 14156 | #endif |
| 14157 | /* We use char because int might match the return type of a gcc2 |
| 14158 | builtin and then its argument prototype would still apply. */ |
| 14159 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14160 | int |
| 14161 | main () |
| 14162 | { |
| 14163 | dld_link (); |
| 14164 | ; |
| 14165 | return 0; |
| 14166 | } |
| 14167 | _ACEOF |
| 14168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14170 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14171 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14173 | rm -f conftest.er1 |
| 14174 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14176 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14177 | { ac_try='test -z "$ac_c_werror_flag" |
| 14178 | || test ! -s conftest.err' |
| 14179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14180 | (eval $ac_try) 2>&5 |
| 14181 | ac_status=$? |
| 14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14183 | (exit $ac_status); }; } && |
| 14184 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14186 | (eval $ac_try) 2>&5 |
| 14187 | ac_status=$? |
| 14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14189 | (exit $ac_status); }; }; then |
| 14190 | ac_cv_lib_dld_dld_link=yes |
| 14191 | else |
| 14192 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14194 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14195 | ac_cv_lib_dld_dld_link=no |
| 14196 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14197 | rm -f conftest.err conftest.$ac_objext \ |
| 14198 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14199 | LIBS=$ac_check_lib_save_LIBS |
| 14200 | fi |
| 14201 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 14202 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 14203 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 14204 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 14205 | fi |
| 14206 | |
| 14207 | |
| 14208 | fi |
| 14209 | |
| 14210 | |
| 14211 | fi |
| 14212 | |
| 14213 | |
| 14214 | fi |
| 14215 | |
| 14216 | |
| 14217 | fi |
| 14218 | |
| 14219 | |
| 14220 | fi |
| 14221 | |
| 14222 | ;; |
| 14223 | esac |
| 14224 | |
| 14225 | if test "x$lt_cv_dlopen" != xno; then |
| 14226 | enable_dlopen=yes |
| 14227 | else |
| 14228 | enable_dlopen=no |
| 14229 | fi |
| 14230 | |
| 14231 | case $lt_cv_dlopen in |
| 14232 | dlopen) |
| 14233 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14234 | 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] | 14235 | |
| 14236 | save_LDFLAGS="$LDFLAGS" |
| 14237 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14238 | |
| 14239 | save_LIBS="$LIBS" |
| 14240 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14241 | |
| 14242 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 14243 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 14244 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 14245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14246 | else |
| 14247 | if test "$cross_compiling" = yes; then : |
| 14248 | lt_cv_dlopen_self=cross |
| 14249 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14250 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14251 | lt_status=$lt_dlunknown |
| 14252 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14253 | #line 14253 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14254 | #include "confdefs.h" |
| 14255 | |
| 14256 | #if HAVE_DLFCN_H |
| 14257 | #include <dlfcn.h> |
| 14258 | #endif |
| 14259 | |
| 14260 | #include <stdio.h> |
| 14261 | |
| 14262 | #ifdef RTLD_GLOBAL |
| 14263 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14264 | #else |
| 14265 | # ifdef DL_GLOBAL |
| 14266 | # define LT_DLGLOBAL DL_GLOBAL |
| 14267 | # else |
| 14268 | # define LT_DLGLOBAL 0 |
| 14269 | # endif |
| 14270 | #endif |
| 14271 | |
| 14272 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14273 | find out it does not work in some platform. */ |
| 14274 | #ifndef LT_DLLAZY_OR_NOW |
| 14275 | # ifdef RTLD_LAZY |
| 14276 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14277 | # else |
| 14278 | # ifdef DL_LAZY |
| 14279 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14280 | # else |
| 14281 | # ifdef RTLD_NOW |
| 14282 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14283 | # else |
| 14284 | # ifdef DL_NOW |
| 14285 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14286 | # else |
| 14287 | # define LT_DLLAZY_OR_NOW 0 |
| 14288 | # endif |
| 14289 | # endif |
| 14290 | # endif |
| 14291 | # endif |
| 14292 | #endif |
| 14293 | |
| 14294 | #ifdef __cplusplus |
| 14295 | extern "C" void exit (int); |
| 14296 | #endif |
| 14297 | |
| 14298 | void fnord() { int i=42;} |
| 14299 | int main () |
| 14300 | { |
| 14301 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14302 | int status = $lt_dlunknown; |
| 14303 | |
| 14304 | if (self) |
| 14305 | { |
| 14306 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14307 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14308 | /* dlclose (self); */ |
| 14309 | } |
| 14310 | |
| 14311 | exit (status); |
| 14312 | } |
| 14313 | EOF |
| 14314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14315 | (eval $ac_link) 2>&5 |
| 14316 | ac_status=$? |
| 14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14318 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14319 | (./conftest; exit; ) 2>/dev/null |
| 14320 | lt_status=$? |
| 14321 | case x$lt_status in |
| 14322 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14323 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14324 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 14325 | esac |
| 14326 | else : |
| 14327 | # compilation failed |
| 14328 | lt_cv_dlopen_self=no |
| 14329 | fi |
| 14330 | fi |
| 14331 | rm -fr conftest* |
| 14332 | |
| 14333 | |
| 14334 | fi |
| 14335 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 14336 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 14337 | |
| 14338 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 14339 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 14340 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 14341 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 14342 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 14343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14344 | else |
| 14345 | if test "$cross_compiling" = yes; then : |
| 14346 | lt_cv_dlopen_self_static=cross |
| 14347 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14348 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14349 | lt_status=$lt_dlunknown |
| 14350 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 14351 | #line 14351 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14352 | #include "confdefs.h" |
| 14353 | |
| 14354 | #if HAVE_DLFCN_H |
| 14355 | #include <dlfcn.h> |
| 14356 | #endif |
| 14357 | |
| 14358 | #include <stdio.h> |
| 14359 | |
| 14360 | #ifdef RTLD_GLOBAL |
| 14361 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14362 | #else |
| 14363 | # ifdef DL_GLOBAL |
| 14364 | # define LT_DLGLOBAL DL_GLOBAL |
| 14365 | # else |
| 14366 | # define LT_DLGLOBAL 0 |
| 14367 | # endif |
| 14368 | #endif |
| 14369 | |
| 14370 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14371 | find out it does not work in some platform. */ |
| 14372 | #ifndef LT_DLLAZY_OR_NOW |
| 14373 | # ifdef RTLD_LAZY |
| 14374 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14375 | # else |
| 14376 | # ifdef DL_LAZY |
| 14377 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14378 | # else |
| 14379 | # ifdef RTLD_NOW |
| 14380 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14381 | # else |
| 14382 | # ifdef DL_NOW |
| 14383 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14384 | # else |
| 14385 | # define LT_DLLAZY_OR_NOW 0 |
| 14386 | # endif |
| 14387 | # endif |
| 14388 | # endif |
| 14389 | # endif |
| 14390 | #endif |
| 14391 | |
| 14392 | #ifdef __cplusplus |
| 14393 | extern "C" void exit (int); |
| 14394 | #endif |
| 14395 | |
| 14396 | void fnord() { int i=42;} |
| 14397 | int main () |
| 14398 | { |
| 14399 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14400 | int status = $lt_dlunknown; |
| 14401 | |
| 14402 | if (self) |
| 14403 | { |
| 14404 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14405 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14406 | /* dlclose (self); */ |
| 14407 | } |
| 14408 | |
| 14409 | exit (status); |
| 14410 | } |
| 14411 | EOF |
| 14412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14413 | (eval $ac_link) 2>&5 |
| 14414 | ac_status=$? |
| 14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14416 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14417 | (./conftest; exit; ) 2>/dev/null |
| 14418 | lt_status=$? |
| 14419 | case x$lt_status in |
| 14420 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14421 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14422 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14423 | esac |
| 14424 | else : |
| 14425 | # compilation failed |
| 14426 | lt_cv_dlopen_self_static=no |
| 14427 | fi |
| 14428 | fi |
| 14429 | rm -fr conftest* |
| 14430 | |
| 14431 | |
| 14432 | fi |
| 14433 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 14434 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 14435 | fi |
| 14436 | |
| 14437 | CPPFLAGS="$save_CPPFLAGS" |
| 14438 | LDFLAGS="$save_LDFLAGS" |
| 14439 | LIBS="$save_LIBS" |
| 14440 | ;; |
| 14441 | esac |
| 14442 | |
| 14443 | case $lt_cv_dlopen_self in |
| 14444 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14445 | *) enable_dlopen_self=unknown ;; |
| 14446 | esac |
| 14447 | |
| 14448 | case $lt_cv_dlopen_self_static in |
| 14449 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14450 | *) enable_dlopen_self_static=unknown ;; |
| 14451 | esac |
| 14452 | fi |
| 14453 | |
| 14454 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14455 | # Report which librarie types wil actually be built |
| 14456 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14457 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 14458 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14459 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14460 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14461 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14462 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 14463 | test "$can_build_shared" = "no" && enable_shared=no |
| 14464 | |
| 14465 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14466 | # are all built from PIC. |
| 14467 | case "$host_os" in |
| 14468 | aix3*) |
| 14469 | test "$enable_shared" = yes && enable_static=no |
| 14470 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14471 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14472 | postinstall_cmds='$RANLIB $lib' |
| 14473 | fi |
| 14474 | ;; |
| 14475 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14476 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14477 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14478 | test "$enable_shared" = yes && enable_static=no |
| 14479 | fi |
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 | esac |
| 14482 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14483 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14484 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14485 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14486 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 14487 | # Make sure either enable_shared or enable_static is yes. |
| 14488 | test "$enable_shared" = yes || enable_static=yes |
| 14489 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14490 | echo "${ECHO_T}$enable_static" >&6 |
| 14491 | |
| 14492 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14493 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14494 | # with your package, and you will get complaints that there are |
| 14495 | # no rules to generate ltmain.sh. |
| 14496 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14497 | # See if we are running on zsh, and set the options which allow our commands through |
| 14498 | # without removal of \ escapes. |
| 14499 | if test -n "${ZSH_VERSION+set}" ; then |
| 14500 | setopt NO_GLOB_SUBST |
| 14501 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14502 | # Now quote all the things that may contain metacharacters while being |
| 14503 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14504 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14505 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 14506 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14507 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14508 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14509 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14510 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14511 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14512 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14513 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14514 | compiler \ |
| 14515 | CC \ |
| 14516 | LD \ |
| 14517 | lt_prog_compiler_wl \ |
| 14518 | lt_prog_compiler_pic \ |
| 14519 | lt_prog_compiler_static \ |
| 14520 | lt_prog_compiler_no_builtin_flag \ |
| 14521 | export_dynamic_flag_spec \ |
| 14522 | thread_safe_flag_spec \ |
| 14523 | whole_archive_flag_spec \ |
| 14524 | enable_shared_with_static_runtimes \ |
| 14525 | old_archive_cmds \ |
| 14526 | old_archive_from_new_cmds \ |
| 14527 | predep_objects \ |
| 14528 | postdep_objects \ |
| 14529 | predeps \ |
| 14530 | postdeps \ |
| 14531 | compiler_lib_search_path \ |
| 14532 | archive_cmds \ |
| 14533 | archive_expsym_cmds \ |
| 14534 | postinstall_cmds \ |
| 14535 | postuninstall_cmds \ |
| 14536 | old_archive_from_expsyms_cmds \ |
| 14537 | allow_undefined_flag \ |
| 14538 | no_undefined_flag \ |
| 14539 | export_symbols_cmds \ |
| 14540 | hardcode_libdir_flag_spec \ |
| 14541 | hardcode_libdir_flag_spec_ld \ |
| 14542 | hardcode_libdir_separator \ |
| 14543 | hardcode_automatic \ |
| 14544 | module_cmds \ |
| 14545 | module_expsym_cmds \ |
| 14546 | lt_cv_prog_compiler_c_o \ |
| 14547 | exclude_expsyms \ |
| 14548 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14549 | |
| 14550 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14551 | old_archive_cmds | \ |
| 14552 | old_archive_from_new_cmds | \ |
| 14553 | archive_cmds | \ |
| 14554 | archive_expsym_cmds | \ |
| 14555 | module_cmds | \ |
| 14556 | module_expsym_cmds | \ |
| 14557 | old_archive_from_expsyms_cmds | \ |
| 14558 | export_symbols_cmds | \ |
| 14559 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14560 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14561 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14562 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14563 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14564 | 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] | 14565 | ;; |
| 14566 | *) |
| 14567 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14568 | ;; |
| 14569 | esac |
| 14570 | done |
| 14571 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14572 | case $lt_echo in |
| 14573 | *'\$0 --fallback-echo"') |
| 14574 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14575 | ;; |
| 14576 | esac |
| 14577 | |
| 14578 | cfgfile="${ofile}T" |
| 14579 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 14580 | $rm -f "$cfgfile" |
| 14581 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 14582 | echo "$as_me: creating $ofile" >&6;} |
| 14583 | |
| 14584 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14585 | #! $SHELL |
| 14586 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14587 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14588 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 14589 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 14590 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14591 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 14592 | # Free Software Foundation, Inc. |
| 14593 | # |
| 14594 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14595 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 14596 | # |
| 14597 | # This program is free software; you can redistribute it and/or modify |
| 14598 | # it under the terms of the GNU General Public License as published by |
| 14599 | # the Free Software Foundation; either version 2 of the License, or |
| 14600 | # (at your option) any later version. |
| 14601 | # |
| 14602 | # This program is distributed in the hope that it will be useful, but |
| 14603 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14604 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14605 | # General Public License for more details. |
| 14606 | # |
| 14607 | # You should have received a copy of the GNU General Public License |
| 14608 | # along with this program; if not, write to the Free Software |
| 14609 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 14610 | # |
| 14611 | # As a special exception to the GNU General Public License, if you |
| 14612 | # distribute this file as part of a program that contains a |
| 14613 | # configuration script generated by Autoconf, you may include it under |
| 14614 | # the same distribution terms that you use for the rest of that program. |
| 14615 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14616 | # A sed program that does not truncate output. |
| 14617 | SED=$lt_SED |
| 14618 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14619 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14620 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14621 | |
| 14622 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 14623 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14624 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14625 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14626 | # The names of the tagged configurations supported by this script. |
| 14627 | available_tags= |
| 14628 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14629 | # ### BEGIN LIBTOOL CONFIG |
| 14630 | |
| 14631 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14632 | |
| 14633 | # Shell to use when invoking shell scripts. |
| 14634 | SHELL=$lt_SHELL |
| 14635 | |
| 14636 | # Whether or not to build shared libraries. |
| 14637 | build_libtool_libs=$enable_shared |
| 14638 | |
| 14639 | # Whether or not to build static libraries. |
| 14640 | build_old_libs=$enable_static |
| 14641 | |
| 14642 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14643 | build_libtool_need_lc=$archive_cmds_need_lc |
| 14644 | |
| 14645 | # Whether or not to disallow shared libs when runtime libs are static |
| 14646 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14647 | |
| 14648 | # Whether or not to optimize for fast installation. |
| 14649 | fast_install=$enable_fast_install |
| 14650 | |
| 14651 | # The host system. |
| 14652 | host_alias=$host_alias |
| 14653 | host=$host |
| 14654 | |
| 14655 | # An echo program that does not interpret backslashes. |
| 14656 | echo=$lt_echo |
| 14657 | |
| 14658 | # The archiver. |
| 14659 | AR=$lt_AR |
| 14660 | AR_FLAGS=$lt_AR_FLAGS |
| 14661 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14662 | # A C compiler. |
| 14663 | LTCC=$lt_LTCC |
| 14664 | |
| 14665 | # A language-specific compiler. |
| 14666 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14667 | |
| 14668 | # Is the compiler the GNU C compiler? |
| 14669 | with_gcc=$GCC |
| 14670 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14671 | # An ERE matcher. |
| 14672 | EGREP=$lt_EGREP |
| 14673 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14674 | # The linker used to build libraries. |
| 14675 | LD=$lt_LD |
| 14676 | |
| 14677 | # Whether we need hard or soft links. |
| 14678 | LN_S=$lt_LN_S |
| 14679 | |
| 14680 | # A BSD-compatible nm program. |
| 14681 | NM=$lt_NM |
| 14682 | |
| 14683 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14684 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14685 | |
| 14686 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14687 | MAGIC_CMD=$MAGIC_CMD |
| 14688 | |
| 14689 | # Used on cygwin: DLL creation program. |
| 14690 | DLLTOOL="$DLLTOOL" |
| 14691 | |
| 14692 | # Used on cygwin: object dumper. |
| 14693 | OBJDUMP="$OBJDUMP" |
| 14694 | |
| 14695 | # Used on cygwin: assembler. |
| 14696 | AS="$AS" |
| 14697 | |
| 14698 | # The name of the directory that contains temporary libtool files. |
| 14699 | objdir=$objdir |
| 14700 | |
| 14701 | # How to create reloadable object files. |
| 14702 | reload_flag=$lt_reload_flag |
| 14703 | reload_cmds=$lt_reload_cmds |
| 14704 | |
| 14705 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14706 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14707 | |
| 14708 | # Object file suffix (normally "o"). |
| 14709 | objext="$ac_objext" |
| 14710 | |
| 14711 | # Old archive suffix (normally "a"). |
| 14712 | libext="$libext" |
| 14713 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14714 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14715 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14716 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14717 | # Executable file suffix (normally ""). |
| 14718 | exeext="$exeext" |
| 14719 | |
| 14720 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14721 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14722 | pic_mode=$pic_mode |
| 14723 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14724 | # What is the maximum length of a command? |
| 14725 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14726 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14727 | # Does compiler simultaneously support -c and -o options? |
| 14728 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14729 | |
| 14730 | # Must we lock files when doing compilation ? |
| 14731 | need_locks=$lt_need_locks |
| 14732 | |
| 14733 | # Do we need the lib prefix for modules? |
| 14734 | need_lib_prefix=$need_lib_prefix |
| 14735 | |
| 14736 | # Do we need a version for libraries? |
| 14737 | need_version=$need_version |
| 14738 | |
| 14739 | # Whether dlopen is supported. |
| 14740 | dlopen_support=$enable_dlopen |
| 14741 | |
| 14742 | # Whether dlopen of programs is supported. |
| 14743 | dlopen_self=$enable_dlopen_self |
| 14744 | |
| 14745 | # Whether dlopen of statically linked programs is supported. |
| 14746 | dlopen_self_static=$enable_dlopen_self_static |
| 14747 | |
| 14748 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14749 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14750 | |
| 14751 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14752 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14753 | |
| 14754 | # Compiler flag to allow reflexive dlopens. |
| 14755 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 14756 | |
| 14757 | # Compiler flag to generate shared objects directly from archives. |
| 14758 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 14759 | |
| 14760 | # Compiler flag to generate thread-safe objects. |
| 14761 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 14762 | |
| 14763 | # Library versioning type. |
| 14764 | version_type=$version_type |
| 14765 | |
| 14766 | # Format of library name prefix. |
| 14767 | libname_spec=$lt_libname_spec |
| 14768 | |
| 14769 | # List of archive names. First name is the real one, the rest are links. |
| 14770 | # The last name is the one that the linker finds with -lNAME. |
| 14771 | library_names_spec=$lt_library_names_spec |
| 14772 | |
| 14773 | # The coded name of the library, if different from the real name. |
| 14774 | soname_spec=$lt_soname_spec |
| 14775 | |
| 14776 | # Commands used to build and install an old-style archive. |
| 14777 | RANLIB=$lt_RANLIB |
| 14778 | old_archive_cmds=$lt_old_archive_cmds |
| 14779 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14780 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14781 | |
| 14782 | # Create an old-style archive from a shared archive. |
| 14783 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 14784 | |
| 14785 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14786 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 14787 | |
| 14788 | # Commands used to build and install a shared archive. |
| 14789 | archive_cmds=$lt_archive_cmds |
| 14790 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 14791 | postinstall_cmds=$lt_postinstall_cmds |
| 14792 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14793 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14794 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14795 | module_cmds=$lt_module_cmds |
| 14796 | module_expsym_cmds=$lt_module_expsym_cmds |
| 14797 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14798 | # Commands to strip libraries. |
| 14799 | old_striplib=$lt_old_striplib |
| 14800 | striplib=$lt_striplib |
| 14801 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14802 | # Dependencies to place before the objects being linked to create a |
| 14803 | # shared library. |
| 14804 | predep_objects=$lt_predep_objects |
| 14805 | |
| 14806 | # Dependencies to place after the objects being linked to create a |
| 14807 | # shared library. |
| 14808 | postdep_objects=$lt_postdep_objects |
| 14809 | |
| 14810 | # Dependencies to place before the objects being linked to create a |
| 14811 | # shared library. |
| 14812 | predeps=$lt_predeps |
| 14813 | |
| 14814 | # Dependencies to place after the objects being linked to create a |
| 14815 | # shared library. |
| 14816 | postdeps=$lt_postdeps |
| 14817 | |
| 14818 | # The library search path used internally by the compiler when linking |
| 14819 | # a shared library. |
| 14820 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 14821 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14822 | # Method to check whether dependent libraries are shared objects. |
| 14823 | deplibs_check_method=$lt_deplibs_check_method |
| 14824 | |
| 14825 | # Command to use when deplibs_check_method == file_magic. |
| 14826 | file_magic_cmd=$lt_file_magic_cmd |
| 14827 | |
| 14828 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14829 | allow_undefined_flag=$lt_allow_undefined_flag |
| 14830 | |
| 14831 | # Flag that forces no undefined symbols. |
| 14832 | no_undefined_flag=$lt_no_undefined_flag |
| 14833 | |
| 14834 | # Commands used to finish a libtool library installation in a directory. |
| 14835 | finish_cmds=$lt_finish_cmds |
| 14836 | |
| 14837 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14838 | finish_eval=$lt_finish_eval |
| 14839 | |
| 14840 | # 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] | 14841 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14842 | |
| 14843 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14844 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14845 | |
| 14846 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14847 | 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] | 14848 | |
| 14849 | # This is the shared library runtime path variable. |
| 14850 | runpath_var=$runpath_var |
| 14851 | |
| 14852 | # This is the shared library path variable. |
| 14853 | shlibpath_var=$shlibpath_var |
| 14854 | |
| 14855 | # Is shlibpath searched before the hard-coded library search path? |
| 14856 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14857 | |
| 14858 | # How to hardcode a shared library path into an executable. |
| 14859 | hardcode_action=$hardcode_action |
| 14860 | |
| 14861 | # Whether we should hardcode library paths into libraries. |
| 14862 | hardcode_into_libs=$hardcode_into_libs |
| 14863 | |
| 14864 | # Flag to hardcode \$libdir into a binary during linking. |
| 14865 | # This must work even if \$libdir does not exist. |
| 14866 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 14867 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14868 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14869 | # a binary during linking. This must work even if \$libdir does |
| 14870 | # not exist. |
| 14871 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 14872 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14873 | # Whether we need a single -rpath flag with a separated argument. |
| 14874 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 14875 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14876 | # 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] | 14877 | # resulting binary. |
| 14878 | hardcode_direct=$hardcode_direct |
| 14879 | |
| 14880 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14881 | # resulting binary. |
| 14882 | hardcode_minus_L=$hardcode_minus_L |
| 14883 | |
| 14884 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14885 | # the resulting binary. |
| 14886 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 14887 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14888 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14889 | # and all subsequent libraries and executables linked against it. |
| 14890 | hardcode_automatic=$hardcode_automatic |
| 14891 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14892 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14893 | # restored at relink time. |
| 14894 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14895 | |
| 14896 | # Whether libtool must link a program against all its dependency libraries. |
| 14897 | link_all_deplibs=$link_all_deplibs |
| 14898 | |
| 14899 | # Compile-time system search path for libraries |
| 14900 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14901 | |
| 14902 | # Run-time system search path for libraries |
| 14903 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14904 | |
| 14905 | # Fix the shell variable \$srcfile for the compiler. |
| 14906 | fix_srcfile_path="$fix_srcfile_path" |
| 14907 | |
| 14908 | # Set to yes if exported symbols are required. |
| 14909 | always_export_symbols=$always_export_symbols |
| 14910 | |
| 14911 | # The commands to list exported symbols. |
| 14912 | export_symbols_cmds=$lt_export_symbols_cmds |
| 14913 | |
| 14914 | # The commands to extract the exported symbol list from a shared archive. |
| 14915 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14916 | |
| 14917 | # Symbols that should not be listed in the preloaded symbols. |
| 14918 | exclude_expsyms=$lt_exclude_expsyms |
| 14919 | |
| 14920 | # Symbols that must always be exported. |
| 14921 | include_expsyms=$lt_include_expsyms |
| 14922 | |
| 14923 | # ### END LIBTOOL CONFIG |
| 14924 | |
| 14925 | __EOF__ |
| 14926 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14927 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14928 | case $host_os in |
| 14929 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14930 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14931 | |
| 14932 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14933 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14934 | # vanish in a puff of smoke. |
| 14935 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14936 | COLLECT_NAMES= |
| 14937 | export COLLECT_NAMES |
| 14938 | fi |
| 14939 | EOF |
| 14940 | ;; |
| 14941 | esac |
| 14942 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14943 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 14944 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 14945 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 14946 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14947 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14948 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14949 | mv -f "$cfgfile" "$ofile" || \ |
| 14950 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14951 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 | |
| 14953 | else |
| 14954 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14955 | # `config.status --recheck' to rerun these tests and create the |
| 14956 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14957 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 14958 | if test -f "$ltmain_in"; then |
| 14959 | test -f Makefile && make "$ltmain" |
| 14960 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14961 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14962 | |
| 14963 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14964 | ac_ext=c |
| 14965 | ac_cpp='$CPP $CPPFLAGS' |
| 14966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14969 | |
| 14970 | CC="$lt_save_CC" |
| 14971 | |
| 14972 | |
| 14973 | # Check whether --with-tags or --without-tags was given. |
| 14974 | if test "${with_tags+set}" = set; then |
| 14975 | withval="$with_tags" |
| 14976 | tagnames="$withval" |
| 14977 | fi; |
| 14978 | |
| 14979 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 14980 | if test ! -f "${ofile}"; then |
| 14981 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 14982 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 14983 | fi |
| 14984 | |
| 14985 | if test -z "$LTCC"; then |
| 14986 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 14987 | if test -z "$LTCC"; then |
| 14988 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 14989 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 14990 | else |
| 14991 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 14992 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 14993 | fi |
| 14994 | fi |
| 14995 | |
| 14996 | # Extract list of available tagged configurations in $ofile. |
| 14997 | # Note that this assumes the entire list is on one line. |
| 14998 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 14999 | |
| 15000 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 15001 | for tagname in $tagnames; do |
| 15002 | IFS="$lt_save_ifs" |
| 15003 | # Check whether tagname contains only valid characters |
| 15004 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 15005 | "") ;; |
| 15006 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 15007 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 15008 | { (exit 1); exit 1; }; } |
| 15009 | ;; |
| 15010 | esac |
| 15011 | |
| 15012 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 15013 | then |
| 15014 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 15015 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 15016 | { (exit 1); exit 1; }; } |
| 15017 | fi |
| 15018 | |
| 15019 | # Update the list of available tags. |
| 15020 | if test -n "$tagname"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15021 | echo appending configuration tag "$tagname" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15022 | |
| 15023 | case $tagname in |
| 15024 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15025 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 15026 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 15027 | (test "X$CXX" != "Xg++"))) ; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15028 | ac_ext=cc |
| 15029 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15030 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15031 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15032 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15033 | |
| 15034 | |
| 15035 | |
| 15036 | |
| 15037 | archive_cmds_need_lc_CXX=no |
| 15038 | allow_undefined_flag_CXX= |
| 15039 | always_export_symbols_CXX=no |
| 15040 | archive_expsym_cmds_CXX= |
| 15041 | export_dynamic_flag_spec_CXX= |
| 15042 | hardcode_direct_CXX=no |
| 15043 | hardcode_libdir_flag_spec_CXX= |
| 15044 | hardcode_libdir_flag_spec_ld_CXX= |
| 15045 | hardcode_libdir_separator_CXX= |
| 15046 | hardcode_minus_L_CXX=no |
| 15047 | hardcode_automatic_CXX=no |
| 15048 | module_cmds_CXX= |
| 15049 | module_expsym_cmds_CXX= |
| 15050 | link_all_deplibs_CXX=unknown |
| 15051 | old_archive_cmds_CXX=$old_archive_cmds |
| 15052 | no_undefined_flag_CXX= |
| 15053 | whole_archive_flag_spec_CXX= |
| 15054 | enable_shared_with_static_runtimes_CXX=no |
| 15055 | |
| 15056 | # Dependencies to place before and after the object being linked: |
| 15057 | predep_objects_CXX= |
| 15058 | postdep_objects_CXX= |
| 15059 | predeps_CXX= |
| 15060 | postdeps_CXX= |
| 15061 | compiler_lib_search_path_CXX= |
| 15062 | |
| 15063 | # Source file extension for C++ test sources. |
| 15064 | ac_ext=cc |
| 15065 | |
| 15066 | # Object file extension for compiled C++ test sources. |
| 15067 | objext=o |
| 15068 | objext_CXX=$objext |
| 15069 | |
| 15070 | # Code to be used in simple compile tests |
| 15071 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 15072 | |
| 15073 | # Code to be used in simple link tests |
| 15074 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 15075 | |
| 15076 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15077 | |
| 15078 | # If no C compiler was specified, use CC. |
| 15079 | LTCC=${LTCC-"$CC"} |
| 15080 | |
| 15081 | # Allow CC to be a program name with arguments. |
| 15082 | compiler=$CC |
| 15083 | |
| 15084 | |
| 15085 | # Allow CC to be a program name with arguments. |
| 15086 | lt_save_CC=$CC |
| 15087 | lt_save_LD=$LD |
| 15088 | lt_save_GCC=$GCC |
| 15089 | GCC=$GXX |
| 15090 | lt_save_with_gnu_ld=$with_gnu_ld |
| 15091 | lt_save_path_LD=$lt_cv_path_LD |
| 15092 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 15093 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 15094 | else |
| 15095 | unset lt_cv_prog_gnu_ld |
| 15096 | fi |
| 15097 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 15098 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 15099 | else |
| 15100 | unset lt_cv_path_LD |
| 15101 | fi |
| 15102 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 15103 | CC=${CXX-"c++"} |
| 15104 | compiler=$CC |
| 15105 | compiler_CXX=$CC |
| 15106 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 15107 | |
| 15108 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 15109 | # no_builtin_flag separately |
| 15110 | if test "$GXX" = yes; then |
| 15111 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 15112 | else |
| 15113 | lt_prog_compiler_no_builtin_flag_CXX= |
| 15114 | fi |
| 15115 | |
| 15116 | if test "$GXX" = yes; then |
| 15117 | # Set up default GNU C++ configuration |
| 15118 | |
| 15119 | |
| 15120 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 15121 | if test "${with_gnu_ld+set}" = set; then |
| 15122 | withval="$with_gnu_ld" |
| 15123 | test "$withval" = no || with_gnu_ld=yes |
| 15124 | else |
| 15125 | with_gnu_ld=no |
| 15126 | fi; |
| 15127 | ac_prog=ld |
| 15128 | if test "$GCC" = yes; then |
| 15129 | # Check if gcc -print-prog-name=ld gives a path. |
| 15130 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 15131 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 15132 | case $host in |
| 15133 | *-*-mingw*) |
| 15134 | # gcc leaves a trailing carriage return which upsets mingw |
| 15135 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 15136 | *) |
| 15137 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 15138 | esac |
| 15139 | case $ac_prog in |
| 15140 | # Accept absolute paths. |
| 15141 | [\\/]* | ?:[\\/]*) |
| 15142 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15143 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15144 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 15145 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 15146 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 15147 | done |
| 15148 | test -z "$LD" && LD="$ac_prog" |
| 15149 | ;; |
| 15150 | "") |
| 15151 | # If it fails, then pretend we aren't using GCC. |
| 15152 | ac_prog=ld |
| 15153 | ;; |
| 15154 | *) |
| 15155 | # If it is relative, then search for the first ld in PATH. |
| 15156 | with_gnu_ld=unknown |
| 15157 | ;; |
| 15158 | esac |
| 15159 | elif test "$with_gnu_ld" = yes; then |
| 15160 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 15161 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 15162 | else |
| 15163 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 15164 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 15165 | fi |
| 15166 | if test "${lt_cv_path_LD+set}" = set; then |
| 15167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15168 | else |
| 15169 | if test -z "$LD"; then |
| 15170 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 15171 | for ac_dir in $PATH; do |
| 15172 | IFS="$lt_save_ifs" |
| 15173 | test -z "$ac_dir" && ac_dir=. |
| 15174 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 15175 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 15176 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 15177 | # but apparently some GNU ld's only accept -v. |
| 15178 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 15179 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 15180 | *GNU* | *'with BFD'*) |
| 15181 | test "$with_gnu_ld" != no && break |
| 15182 | ;; |
| 15183 | *) |
| 15184 | test "$with_gnu_ld" != yes && break |
| 15185 | ;; |
| 15186 | esac |
| 15187 | fi |
| 15188 | done |
| 15189 | IFS="$lt_save_ifs" |
| 15190 | else |
| 15191 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 15192 | fi |
| 15193 | fi |
| 15194 | |
| 15195 | LD="$lt_cv_path_LD" |
| 15196 | if test -n "$LD"; then |
| 15197 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 15198 | echo "${ECHO_T}$LD" >&6 |
| 15199 | else |
| 15200 | echo "$as_me:$LINENO: result: no" >&5 |
| 15201 | echo "${ECHO_T}no" >&6 |
| 15202 | fi |
| 15203 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 15204 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 15205 | { (exit 1); exit 1; }; } |
| 15206 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 15207 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 15208 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 15209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15210 | else |
| 15211 | # 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] | 15212 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15213 | *GNU* | *'with BFD'*) |
| 15214 | lt_cv_prog_gnu_ld=yes |
| 15215 | ;; |
| 15216 | *) |
| 15217 | lt_cv_prog_gnu_ld=no |
| 15218 | ;; |
| 15219 | esac |
| 15220 | fi |
| 15221 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 15222 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 15223 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 15224 | |
| 15225 | |
| 15226 | |
| 15227 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 15228 | # archiving commands below assume that GNU ld is being used. |
| 15229 | if test "$with_gnu_ld" = yes; then |
| 15230 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15231 | 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' |
| 15232 | |
| 15233 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 15234 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15235 | |
| 15236 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15237 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 15238 | # investigate it a little bit more. (MM) |
| 15239 | wlarc='${wl}' |
| 15240 | |
| 15241 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15242 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 15243 | grep 'no-whole-archive' > /dev/null; then |
| 15244 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15245 | else |
| 15246 | whole_archive_flag_spec_CXX= |
| 15247 | fi |
| 15248 | else |
| 15249 | with_gnu_ld=no |
| 15250 | wlarc= |
| 15251 | |
| 15252 | # A generic and very simple default shared library creation |
| 15253 | # command for GNU C++ for the case where it uses the native |
| 15254 | # linker, instead of GNU ld. If possible, this setting should |
| 15255 | # overridden to take advantage of the native linker features on |
| 15256 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15257 | 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] | 15258 | fi |
| 15259 | |
| 15260 | # Commands to make compiler produce verbose output that lists |
| 15261 | # what "hidden" libraries, object files and flags are used when |
| 15262 | # linking a shared library. |
| 15263 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15264 | |
| 15265 | else |
| 15266 | GXX=no |
| 15267 | with_gnu_ld=no |
| 15268 | wlarc= |
| 15269 | fi |
| 15270 | |
| 15271 | # PORTME: fill in a description of your system's C++ link characteristics |
| 15272 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15273 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15274 | ld_shlibs_CXX=yes |
| 15275 | case $host_os in |
| 15276 | aix3*) |
| 15277 | # FIXME: insert proper C++ library support |
| 15278 | ld_shlibs_CXX=no |
| 15279 | ;; |
| 15280 | aix4* | aix5*) |
| 15281 | if test "$host_cpu" = ia64; then |
| 15282 | # On IA64, the linker does run time linking by default, so we don't |
| 15283 | # have to do anything special. |
| 15284 | aix_use_runtimelinking=no |
| 15285 | exp_sym_flag='-Bexport' |
| 15286 | no_entry_flag="" |
| 15287 | else |
| 15288 | aix_use_runtimelinking=no |
| 15289 | |
| 15290 | # Test if we are trying to use run time linking or normal |
| 15291 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15292 | # need to do runtime linking. |
| 15293 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15294 | for ld_flag in $LDFLAGS; do |
| 15295 | case $ld_flag in |
| 15296 | *-brtl*) |
| 15297 | aix_use_runtimelinking=yes |
| 15298 | break |
| 15299 | ;; |
| 15300 | esac |
| 15301 | done |
| 15302 | esac |
| 15303 | |
| 15304 | exp_sym_flag='-bexport' |
| 15305 | no_entry_flag='-bnoentry' |
| 15306 | fi |
| 15307 | |
| 15308 | # When large executables or shared objects are built, AIX ld can |
| 15309 | # have problems creating the table of contents. If linking a library |
| 15310 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15311 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15312 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15313 | |
| 15314 | archive_cmds_CXX='' |
| 15315 | hardcode_direct_CXX=yes |
| 15316 | hardcode_libdir_separator_CXX=':' |
| 15317 | link_all_deplibs_CXX=yes |
| 15318 | |
| 15319 | if test "$GXX" = yes; then |
| 15320 | case $host_os in aix4.012|aix4.012.*) |
| 15321 | # We only want to do this on AIX 4.2 and lower, the check |
| 15322 | # below for broken collect2 doesn't work under 4.3+ |
| 15323 | collect2name=`${CC} -print-prog-name=collect2` |
| 15324 | if test -f "$collect2name" && \ |
| 15325 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15326 | then |
| 15327 | # We have reworked collect2 |
| 15328 | hardcode_direct_CXX=yes |
| 15329 | else |
| 15330 | # We have old collect2 |
| 15331 | hardcode_direct_CXX=unsupported |
| 15332 | # It fails to find uninstalled libraries when the uninstalled |
| 15333 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15334 | # to unsupported forces relinking |
| 15335 | hardcode_minus_L_CXX=yes |
| 15336 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15337 | hardcode_libdir_separator_CXX= |
| 15338 | fi |
| 15339 | esac |
| 15340 | shared_flag='-shared' |
| 15341 | else |
| 15342 | # not using gcc |
| 15343 | if test "$host_cpu" = ia64; then |
| 15344 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15345 | # chokes on -Wl,-G. The following line is correct: |
| 15346 | shared_flag='-G' |
| 15347 | else |
| 15348 | if test "$aix_use_runtimelinking" = yes; then |
| 15349 | shared_flag='${wl}-G' |
| 15350 | else |
| 15351 | shared_flag='${wl}-bM:SRE' |
| 15352 | fi |
| 15353 | fi |
| 15354 | fi |
| 15355 | |
| 15356 | # It seems that -bexpall does not export symbols beginning with |
| 15357 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15358 | always_export_symbols_CXX=yes |
| 15359 | if test "$aix_use_runtimelinking" = yes; then |
| 15360 | # Warning - without using the other runtime loading flags (-brtl), |
| 15361 | # -berok will link without error, but may produce a broken library. |
| 15362 | allow_undefined_flag_CXX='-berok' |
| 15363 | # Determine the default libpath from the value encoded in an empty executable. |
| 15364 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15365 | /* confdefs.h. */ |
| 15366 | _ACEOF |
| 15367 | cat confdefs.h >>conftest.$ac_ext |
| 15368 | cat >>conftest.$ac_ext <<_ACEOF |
| 15369 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15370 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15371 | int |
| 15372 | main () |
| 15373 | { |
| 15374 | |
| 15375 | ; |
| 15376 | return 0; |
| 15377 | } |
| 15378 | _ACEOF |
| 15379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15381 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15382 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15384 | rm -f conftest.er1 |
| 15385 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15387 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15388 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 15389 | || test ! -s conftest.err' |
| 15390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15391 | (eval $ac_try) 2>&5 |
| 15392 | ac_status=$? |
| 15393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15394 | (exit $ac_status); }; } && |
| 15395 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15397 | (eval $ac_try) 2>&5 |
| 15398 | ac_status=$? |
| 15399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15400 | (exit $ac_status); }; }; then |
| 15401 | |
| 15402 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15403 | }'` |
| 15404 | # Check for a 64-bit object if we didn't find anything. |
| 15405 | 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; } |
| 15406 | }'`; fi |
| 15407 | else |
| 15408 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15411 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15412 | rm -f conftest.err conftest.$ac_objext \ |
| 15413 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15414 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15415 | |
| 15416 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15417 | |
| 15418 | 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" |
| 15419 | else |
| 15420 | if test "$host_cpu" = ia64; then |
| 15421 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 15422 | allow_undefined_flag_CXX="-z nodefs" |
| 15423 | 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" |
| 15424 | else |
| 15425 | # Determine the default libpath from the value encoded in an empty executable. |
| 15426 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15427 | /* confdefs.h. */ |
| 15428 | _ACEOF |
| 15429 | cat confdefs.h >>conftest.$ac_ext |
| 15430 | cat >>conftest.$ac_ext <<_ACEOF |
| 15431 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15432 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15433 | int |
| 15434 | main () |
| 15435 | { |
| 15436 | |
| 15437 | ; |
| 15438 | return 0; |
| 15439 | } |
| 15440 | _ACEOF |
| 15441 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15443 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15444 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15446 | rm -f conftest.er1 |
| 15447 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15449 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15450 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 15451 | || test ! -s conftest.err' |
| 15452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15453 | (eval $ac_try) 2>&5 |
| 15454 | ac_status=$? |
| 15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15456 | (exit $ac_status); }; } && |
| 15457 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15459 | (eval $ac_try) 2>&5 |
| 15460 | ac_status=$? |
| 15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15462 | (exit $ac_status); }; }; then |
| 15463 | |
| 15464 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15465 | }'` |
| 15466 | # Check for a 64-bit object if we didn't find anything. |
| 15467 | 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; } |
| 15468 | }'`; fi |
| 15469 | else |
| 15470 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15472 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15473 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15474 | rm -f conftest.err conftest.$ac_objext \ |
| 15475 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15476 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15477 | |
| 15478 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15479 | # Warning - without using the other run time loading flags, |
| 15480 | # -berok will link without error, but may produce a broken library. |
| 15481 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 15482 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 15483 | # -bexpall does not export symbols beginning with underscore (_) |
| 15484 | always_export_symbols_CXX=yes |
| 15485 | # Exported symbols can be pulled into shared objects from archives |
| 15486 | whole_archive_flag_spec_CXX=' ' |
| 15487 | archive_cmds_need_lc_CXX=yes |
| 15488 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15489 | 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] | 15490 | fi |
| 15491 | fi |
| 15492 | ;; |
| 15493 | chorus*) |
| 15494 | case $cc_basename in |
| 15495 | *) |
| 15496 | # FIXME: insert proper C++ library support |
| 15497 | ld_shlibs_CXX=no |
| 15498 | ;; |
| 15499 | esac |
| 15500 | ;; |
| 15501 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15502 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15503 | cygwin* | mingw* | pw32*) |
| 15504 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 15505 | # as there is no search path for DLLs. |
| 15506 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15507 | allow_undefined_flag_CXX=unsupported |
| 15508 | always_export_symbols_CXX=no |
| 15509 | enable_shared_with_static_runtimes_CXX=yes |
| 15510 | |
| 15511 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15512 | 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' |
| 15513 | # If the export-symbols file already is a .def file (1st line |
| 15514 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15515 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15516 | cp $export_symbols $output_objdir/$soname.def; |
| 15517 | else |
| 15518 | echo EXPORTS > $output_objdir/$soname.def; |
| 15519 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15520 | fi~ |
| 15521 | $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] | 15522 | else |
| 15523 | ld_shlibs_CXX=no |
| 15524 | fi |
| 15525 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15526 | darwin* | rhapsody*) |
| 15527 | case "$host_os" in |
| 15528 | rhapsody* | darwin1.[012]) |
| 15529 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 15530 | ;; |
| 15531 | *) # Darwin 1.3 on |
| 15532 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15533 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15534 | else |
| 15535 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15536 | 10.[012]) |
| 15537 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15538 | ;; |
| 15539 | 10.*) |
| 15540 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 15541 | ;; |
| 15542 | esac |
| 15543 | fi |
| 15544 | ;; |
| 15545 | esac |
| 15546 | archive_cmds_need_lc_CXX=no |
| 15547 | hardcode_direct_CXX=no |
| 15548 | hardcode_automatic_CXX=yes |
| 15549 | hardcode_shlibpath_var_CXX=unsupported |
| 15550 | whole_archive_flag_spec_CXX='' |
| 15551 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15552 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15553 | if test "$GXX" = yes ; then |
| 15554 | lt_int_apple_cc_single_mod=no |
| 15555 | output_verbose_link_cmd='echo' |
| 15556 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 15557 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15558 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15559 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15560 | 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] | 15561 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15562 | 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] | 15563 | fi |
| 15564 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15565 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15566 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15567 | 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] | 15568 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15569 | 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] | 15570 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15571 | 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] | 15572 | else |
| 15573 | case "$cc_basename" in |
| 15574 | xlc*) |
| 15575 | output_verbose_link_cmd='echo' |
| 15576 | 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' |
| 15577 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15578 | # 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] | 15579 | 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}' |
| 15580 | 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] | 15581 | ;; |
| 15582 | *) |
| 15583 | ld_shlibs_CXX=no |
| 15584 | ;; |
| 15585 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15586 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15587 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15588 | |
| 15589 | dgux*) |
| 15590 | case $cc_basename in |
| 15591 | ec++) |
| 15592 | # FIXME: insert proper C++ library support |
| 15593 | ld_shlibs_CXX=no |
| 15594 | ;; |
| 15595 | ghcx) |
| 15596 | # Green Hills C++ Compiler |
| 15597 | # FIXME: insert proper C++ library support |
| 15598 | ld_shlibs_CXX=no |
| 15599 | ;; |
| 15600 | *) |
| 15601 | # FIXME: insert proper C++ library support |
| 15602 | ld_shlibs_CXX=no |
| 15603 | ;; |
| 15604 | esac |
| 15605 | ;; |
| 15606 | freebsd12*) |
| 15607 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 15608 | ld_shlibs_CXX=no |
| 15609 | ;; |
| 15610 | freebsd-elf*) |
| 15611 | archive_cmds_need_lc_CXX=no |
| 15612 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15613 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15614 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 15615 | # conventions |
| 15616 | ld_shlibs_CXX=yes |
| 15617 | ;; |
| 15618 | gnu*) |
| 15619 | ;; |
| 15620 | hpux9*) |
| 15621 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15622 | hardcode_libdir_separator_CXX=: |
| 15623 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15624 | hardcode_direct_CXX=yes |
| 15625 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15626 | # but as the default |
| 15627 | # location of the library. |
| 15628 | |
| 15629 | case $cc_basename in |
| 15630 | CC) |
| 15631 | # FIXME: insert proper C++ library support |
| 15632 | ld_shlibs_CXX=no |
| 15633 | ;; |
| 15634 | aCC) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15635 | 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] | 15636 | # Commands to make compiler produce verbose output that lists |
| 15637 | # what "hidden" libraries, object files and flags are used when |
| 15638 | # linking a shared library. |
| 15639 | # |
| 15640 | # There doesn't appear to be a way to prevent this compiler from |
| 15641 | # explicitly linking system object files so we need to strip them |
| 15642 | # from the output so that they don't get included in the library |
| 15643 | # dependencies. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15644 | 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] | 15645 | ;; |
| 15646 | *) |
| 15647 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15648 | 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] | 15649 | else |
| 15650 | # FIXME: insert proper C++ library support |
| 15651 | ld_shlibs_CXX=no |
| 15652 | fi |
| 15653 | ;; |
| 15654 | esac |
| 15655 | ;; |
| 15656 | hpux10*|hpux11*) |
| 15657 | if test $with_gnu_ld = no; then |
| 15658 | case "$host_cpu" in |
| 15659 | hppa*64*) |
| 15660 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15661 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 15662 | hardcode_libdir_separator_CXX=: |
| 15663 | ;; |
| 15664 | ia64*) |
| 15665 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15666 | ;; |
| 15667 | *) |
| 15668 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15669 | hardcode_libdir_separator_CXX=: |
| 15670 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15671 | ;; |
| 15672 | esac |
| 15673 | fi |
| 15674 | case "$host_cpu" in |
| 15675 | hppa*64*) |
| 15676 | hardcode_direct_CXX=no |
| 15677 | hardcode_shlibpath_var_CXX=no |
| 15678 | ;; |
| 15679 | ia64*) |
| 15680 | hardcode_direct_CXX=no |
| 15681 | hardcode_shlibpath_var_CXX=no |
| 15682 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15683 | # but as the default |
| 15684 | # location of the library. |
| 15685 | ;; |
| 15686 | *) |
| 15687 | hardcode_direct_CXX=yes |
| 15688 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15689 | # but as the default |
| 15690 | # location of the library. |
| 15691 | ;; |
| 15692 | esac |
| 15693 | |
| 15694 | case $cc_basename in |
| 15695 | CC) |
| 15696 | # FIXME: insert proper C++ library support |
| 15697 | ld_shlibs_CXX=no |
| 15698 | ;; |
| 15699 | aCC) |
| 15700 | case "$host_cpu" in |
| 15701 | hppa*64*|ia64*) |
| 15702 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 15703 | ;; |
| 15704 | *) |
| 15705 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15706 | ;; |
| 15707 | esac |
| 15708 | # Commands to make compiler produce verbose output that lists |
| 15709 | # what "hidden" libraries, object files and flags are used when |
| 15710 | # linking a shared library. |
| 15711 | # |
| 15712 | # There doesn't appear to be a way to prevent this compiler from |
| 15713 | # explicitly linking system object files so we need to strip them |
| 15714 | # from the output so that they don't get included in the library |
| 15715 | # dependencies. |
| 15716 | 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' |
| 15717 | ;; |
| 15718 | *) |
| 15719 | if test "$GXX" = yes; then |
| 15720 | if test $with_gnu_ld = no; then |
| 15721 | case "$host_cpu" in |
| 15722 | ia64*|hppa*64*) |
| 15723 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 15724 | ;; |
| 15725 | *) |
| 15726 | 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' |
| 15727 | ;; |
| 15728 | esac |
| 15729 | fi |
| 15730 | else |
| 15731 | # FIXME: insert proper C++ library support |
| 15732 | ld_shlibs_CXX=no |
| 15733 | fi |
| 15734 | ;; |
| 15735 | esac |
| 15736 | ;; |
| 15737 | irix5* | irix6*) |
| 15738 | case $cc_basename in |
| 15739 | CC) |
| 15740 | # SGI C++ |
| 15741 | 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' |
| 15742 | |
| 15743 | # Archives containing C++ object files must be created using |
| 15744 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 15745 | # necessary to make sure instantiated templates are included |
| 15746 | # in the archive. |
| 15747 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 15748 | ;; |
| 15749 | *) |
| 15750 | if test "$GXX" = yes; then |
| 15751 | if test "$with_gnu_ld" = no; then |
| 15752 | 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' |
| 15753 | else |
| 15754 | 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' |
| 15755 | fi |
| 15756 | fi |
| 15757 | link_all_deplibs_CXX=yes |
| 15758 | ;; |
| 15759 | esac |
| 15760 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15761 | hardcode_libdir_separator_CXX=: |
| 15762 | ;; |
| 15763 | linux*) |
| 15764 | case $cc_basename in |
| 15765 | KCC) |
| 15766 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15767 | |
| 15768 | # KCC will only create a shared library if the output file |
| 15769 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15770 | # to its proper name (with version) after linking. |
| 15771 | 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' |
| 15772 | 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' |
| 15773 | # Commands to make compiler produce verbose output that lists |
| 15774 | # what "hidden" libraries, object files and flags are used when |
| 15775 | # linking a shared library. |
| 15776 | # |
| 15777 | # There doesn't appear to be a way to prevent this compiler from |
| 15778 | # explicitly linking system object files so we need to strip them |
| 15779 | # from the output so that they don't get included in the library |
| 15780 | # dependencies. |
| 15781 | 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' |
| 15782 | |
| 15783 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 15784 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15785 | |
| 15786 | # Archives containing C++ object files must be created using |
| 15787 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15788 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15789 | ;; |
| 15790 | icpc) |
| 15791 | # Intel C++ |
| 15792 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15793 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 15794 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 15795 | # earlier do not add the objects themselves. |
| 15796 | case `$CC -V 2>&1` in |
| 15797 | *"Version 7."*) |
| 15798 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15799 | 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' |
| 15800 | ;; |
| 15801 | *) # Version 8.0 or newer |
| 15802 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15803 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15804 | ;; |
| 15805 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15806 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15807 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15808 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15809 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 15810 | ;; |
| 15811 | cxx) |
| 15812 | # Compaq C++ |
| 15813 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15814 | 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' |
| 15815 | |
| 15816 | runpath_var=LD_RUN_PATH |
| 15817 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15818 | hardcode_libdir_separator_CXX=: |
| 15819 | |
| 15820 | # Commands to make compiler produce verbose output that lists |
| 15821 | # what "hidden" libraries, object files and flags are used when |
| 15822 | # linking a shared library. |
| 15823 | # |
| 15824 | # There doesn't appear to be a way to prevent this compiler from |
| 15825 | # explicitly linking system object files so we need to strip them |
| 15826 | # from the output so that they don't get included in the library |
| 15827 | # dependencies. |
| 15828 | 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' |
| 15829 | ;; |
| 15830 | esac |
| 15831 | ;; |
| 15832 | lynxos*) |
| 15833 | # FIXME: insert proper C++ library support |
| 15834 | ld_shlibs_CXX=no |
| 15835 | ;; |
| 15836 | m88k*) |
| 15837 | # FIXME: insert proper C++ library support |
| 15838 | ld_shlibs_CXX=no |
| 15839 | ;; |
| 15840 | mvs*) |
| 15841 | case $cc_basename in |
| 15842 | cxx) |
| 15843 | # FIXME: insert proper C++ library support |
| 15844 | ld_shlibs_CXX=no |
| 15845 | ;; |
| 15846 | *) |
| 15847 | # FIXME: insert proper C++ library support |
| 15848 | ld_shlibs_CXX=no |
| 15849 | ;; |
| 15850 | esac |
| 15851 | ;; |
| 15852 | netbsd*) |
| 15853 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15854 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 15855 | wlarc= |
| 15856 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15857 | hardcode_direct_CXX=yes |
| 15858 | hardcode_shlibpath_var_CXX=no |
| 15859 | fi |
| 15860 | # Workaround some broken pre-1.5 toolchains |
| 15861 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 15862 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15863 | openbsd2*) |
| 15864 | # C++ shared libraries are fairly broken |
| 15865 | ld_shlibs_CXX=no |
| 15866 | ;; |
| 15867 | openbsd*) |
| 15868 | hardcode_direct_CXX=yes |
| 15869 | hardcode_shlibpath_var_CXX=no |
| 15870 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 15871 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15872 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15873 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 15874 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15875 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15876 | fi |
| 15877 | output_verbose_link_cmd='echo' |
| 15878 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15879 | osf3*) |
| 15880 | case $cc_basename in |
| 15881 | KCC) |
| 15882 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15883 | |
| 15884 | # KCC will only create a shared library if the output file |
| 15885 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15886 | # to its proper name (with version) after linking. |
| 15887 | 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' |
| 15888 | |
| 15889 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15890 | hardcode_libdir_separator_CXX=: |
| 15891 | |
| 15892 | # Archives containing C++ object files must be created using |
| 15893 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15894 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15895 | |
| 15896 | ;; |
| 15897 | RCC) |
| 15898 | # Rational C++ 2.4.1 |
| 15899 | # FIXME: insert proper C++ library support |
| 15900 | ld_shlibs_CXX=no |
| 15901 | ;; |
| 15902 | cxx) |
| 15903 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15904 | 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' |
| 15905 | |
| 15906 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15907 | hardcode_libdir_separator_CXX=: |
| 15908 | |
| 15909 | # Commands to make compiler produce verbose output that lists |
| 15910 | # what "hidden" libraries, object files and flags are used when |
| 15911 | # linking a shared library. |
| 15912 | # |
| 15913 | # There doesn't appear to be a way to prevent this compiler from |
| 15914 | # explicitly linking system object files so we need to strip them |
| 15915 | # from the output so that they don't get included in the library |
| 15916 | # dependencies. |
| 15917 | 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' |
| 15918 | ;; |
| 15919 | *) |
| 15920 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15921 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15922 | 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' |
| 15923 | |
| 15924 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15925 | hardcode_libdir_separator_CXX=: |
| 15926 | |
| 15927 | # Commands to make compiler produce verbose output that lists |
| 15928 | # what "hidden" libraries, object files and flags are used when |
| 15929 | # linking a shared library. |
| 15930 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15931 | |
| 15932 | else |
| 15933 | # FIXME: insert proper C++ library support |
| 15934 | ld_shlibs_CXX=no |
| 15935 | fi |
| 15936 | ;; |
| 15937 | esac |
| 15938 | ;; |
| 15939 | osf4* | osf5*) |
| 15940 | case $cc_basename in |
| 15941 | KCC) |
| 15942 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15943 | |
| 15944 | # KCC will only create a shared library if the output file |
| 15945 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15946 | # to its proper name (with version) after linking. |
| 15947 | 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' |
| 15948 | |
| 15949 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15950 | hardcode_libdir_separator_CXX=: |
| 15951 | |
| 15952 | # Archives containing C++ object files must be created using |
| 15953 | # the KAI C++ compiler. |
| 15954 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 15955 | ;; |
| 15956 | RCC) |
| 15957 | # Rational C++ 2.4.1 |
| 15958 | # FIXME: insert proper C++ library support |
| 15959 | ld_shlibs_CXX=no |
| 15960 | ;; |
| 15961 | cxx) |
| 15962 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 15963 | 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] | 15964 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 15965 | echo "-hidden">> $lib.exp~ |
| 15966 | $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~ |
| 15967 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15968 | |
| 15969 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15970 | hardcode_libdir_separator_CXX=: |
| 15971 | |
| 15972 | # Commands to make compiler produce verbose output that lists |
| 15973 | # what "hidden" libraries, object files and flags are used when |
| 15974 | # linking a shared library. |
| 15975 | # |
| 15976 | # There doesn't appear to be a way to prevent this compiler from |
| 15977 | # explicitly linking system object files so we need to strip them |
| 15978 | # from the output so that they don't get included in the library |
| 15979 | # dependencies. |
| 15980 | 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' |
| 15981 | ;; |
| 15982 | *) |
| 15983 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15984 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15985 | 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' |
| 15986 | |
| 15987 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15988 | hardcode_libdir_separator_CXX=: |
| 15989 | |
| 15990 | # Commands to make compiler produce verbose output that lists |
| 15991 | # what "hidden" libraries, object files and flags are used when |
| 15992 | # linking a shared library. |
| 15993 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15994 | |
| 15995 | else |
| 15996 | # FIXME: insert proper C++ library support |
| 15997 | ld_shlibs_CXX=no |
| 15998 | fi |
| 15999 | ;; |
| 16000 | esac |
| 16001 | ;; |
| 16002 | psos*) |
| 16003 | # FIXME: insert proper C++ library support |
| 16004 | ld_shlibs_CXX=no |
| 16005 | ;; |
| 16006 | sco*) |
| 16007 | archive_cmds_need_lc_CXX=no |
| 16008 | case $cc_basename in |
| 16009 | CC) |
| 16010 | # FIXME: insert proper C++ library support |
| 16011 | ld_shlibs_CXX=no |
| 16012 | ;; |
| 16013 | *) |
| 16014 | # FIXME: insert proper C++ library support |
| 16015 | ld_shlibs_CXX=no |
| 16016 | ;; |
| 16017 | esac |
| 16018 | ;; |
| 16019 | sunos4*) |
| 16020 | case $cc_basename in |
| 16021 | CC) |
| 16022 | # Sun C++ 4.x |
| 16023 | # FIXME: insert proper C++ library support |
| 16024 | ld_shlibs_CXX=no |
| 16025 | ;; |
| 16026 | lcc) |
| 16027 | # Lucid |
| 16028 | # FIXME: insert proper C++ library support |
| 16029 | ld_shlibs_CXX=no |
| 16030 | ;; |
| 16031 | *) |
| 16032 | # FIXME: insert proper C++ library support |
| 16033 | ld_shlibs_CXX=no |
| 16034 | ;; |
| 16035 | esac |
| 16036 | ;; |
| 16037 | solaris*) |
| 16038 | case $cc_basename in |
| 16039 | CC) |
| 16040 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16041 | no_undefined_flag_CXX=' -zdefs' |
| 16042 | 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] | 16043 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16044 | $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] | 16045 | |
| 16046 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16047 | hardcode_shlibpath_var_CXX=no |
| 16048 | case $host_os in |
| 16049 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 16050 | *) |
| 16051 | # The C++ compiler is used as linker so we must use $wl |
| 16052 | # flag to pass the commands to the underlying system |
| 16053 | # linker. |
| 16054 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16055 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 16056 | ;; |
| 16057 | esac |
| 16058 | link_all_deplibs_CXX=yes |
| 16059 | |
| 16060 | # Commands to make compiler produce verbose output that lists |
| 16061 | # what "hidden" libraries, object files and flags are used when |
| 16062 | # linking a shared library. |
| 16063 | # |
| 16064 | # There doesn't appear to be a way to prevent this compiler from |
| 16065 | # explicitly linking system object files so we need to strip them |
| 16066 | # from the output so that they don't get included in the library |
| 16067 | # dependencies. |
| 16068 | 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' |
| 16069 | |
| 16070 | # Archives containing C++ object files must be created using |
| 16071 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 16072 | # necessary to make sure instantiated templates are included |
| 16073 | # in the archive. |
| 16074 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 16075 | ;; |
| 16076 | gcx) |
| 16077 | # Green Hills C++ Compiler |
| 16078 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 16079 | |
| 16080 | # The C++ compiler must be used to create the archive. |
| 16081 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 16082 | ;; |
| 16083 | *) |
| 16084 | # GNU C++ compiler with Solaris linker |
| 16085 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16086 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 16087 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16088 | 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] | 16089 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16090 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 16091 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16092 | # Commands to make compiler produce verbose output that lists |
| 16093 | # what "hidden" libraries, object files and flags are used when |
| 16094 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16095 | 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] | 16096 | else |
| 16097 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 16098 | # platform. |
| 16099 | 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] | 16100 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16101 | $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] | 16102 | |
| 16103 | # Commands to make compiler produce verbose output that lists |
| 16104 | # what "hidden" libraries, object files and flags are used when |
| 16105 | # linking a shared library. |
| 16106 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 16107 | fi |
| 16108 | |
| 16109 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 16110 | fi |
| 16111 | ;; |
| 16112 | esac |
| 16113 | ;; |
| 16114 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16115 | archive_cmds_need_lc_CXX=no |
| 16116 | ;; |
| 16117 | tandem*) |
| 16118 | case $cc_basename in |
| 16119 | NCC) |
| 16120 | # NonStop-UX NCC 3.20 |
| 16121 | # FIXME: insert proper C++ library support |
| 16122 | ld_shlibs_CXX=no |
| 16123 | ;; |
| 16124 | *) |
| 16125 | # FIXME: insert proper C++ library support |
| 16126 | ld_shlibs_CXX=no |
| 16127 | ;; |
| 16128 | esac |
| 16129 | ;; |
| 16130 | vxworks*) |
| 16131 | # FIXME: insert proper C++ library support |
| 16132 | ld_shlibs_CXX=no |
| 16133 | ;; |
| 16134 | *) |
| 16135 | # FIXME: insert proper C++ library support |
| 16136 | ld_shlibs_CXX=no |
| 16137 | ;; |
| 16138 | esac |
| 16139 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 16140 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 16141 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16142 | |
| 16143 | GCC_CXX="$GXX" |
| 16144 | LD_CXX="$LD" |
| 16145 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16146 | |
| 16147 | cat > conftest.$ac_ext <<EOF |
| 16148 | class Foo |
| 16149 | { |
| 16150 | public: |
| 16151 | Foo (void) { a = 0; } |
| 16152 | private: |
| 16153 | int a; |
| 16154 | }; |
| 16155 | EOF |
| 16156 | |
| 16157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16158 | (eval $ac_compile) 2>&5 |
| 16159 | ac_status=$? |
| 16160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16161 | (exit $ac_status); }; then |
| 16162 | # Parse the compiler output and extract the necessary |
| 16163 | # objects, libraries and library flags. |
| 16164 | |
| 16165 | # Sentinel used to keep track of whether or not we are before |
| 16166 | # the conftest object file. |
| 16167 | pre_test_object_deps_done=no |
| 16168 | |
| 16169 | # The `*' in the case matches for architectures that use `case' in |
| 16170 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 16171 | # eval without this substitution. |
| 16172 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 16173 | |
| 16174 | for p in `eval $output_verbose_link_cmd`; do |
| 16175 | case $p in |
| 16176 | |
| 16177 | -L* | -R* | -l*) |
| 16178 | # Some compilers place space between "-{L,R}" and the path. |
| 16179 | # Remove the space. |
| 16180 | if test $p = "-L" \ |
| 16181 | || test $p = "-R"; then |
| 16182 | prev=$p |
| 16183 | continue |
| 16184 | else |
| 16185 | prev= |
| 16186 | fi |
| 16187 | |
| 16188 | if test "$pre_test_object_deps_done" = no; then |
| 16189 | case $p in |
| 16190 | -L* | -R*) |
| 16191 | # Internal compiler library paths should come after those |
| 16192 | # provided the user. The postdeps already come after the |
| 16193 | # user supplied libs so there is no need to process them. |
| 16194 | if test -z "$compiler_lib_search_path_CXX"; then |
| 16195 | compiler_lib_search_path_CXX="${prev}${p}" |
| 16196 | else |
| 16197 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 16198 | fi |
| 16199 | ;; |
| 16200 | # The "-l" case would never come before the object being |
| 16201 | # linked, so don't bother handling this case. |
| 16202 | esac |
| 16203 | else |
| 16204 | if test -z "$postdeps_CXX"; then |
| 16205 | postdeps_CXX="${prev}${p}" |
| 16206 | else |
| 16207 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 16208 | fi |
| 16209 | fi |
| 16210 | ;; |
| 16211 | |
| 16212 | *.$objext) |
| 16213 | # This assumes that the test object file only shows up |
| 16214 | # once in the compiler output. |
| 16215 | if test "$p" = "conftest.$objext"; then |
| 16216 | pre_test_object_deps_done=yes |
| 16217 | continue |
| 16218 | fi |
| 16219 | |
| 16220 | if test "$pre_test_object_deps_done" = no; then |
| 16221 | if test -z "$predep_objects_CXX"; then |
| 16222 | predep_objects_CXX="$p" |
| 16223 | else |
| 16224 | predep_objects_CXX="$predep_objects_CXX $p" |
| 16225 | fi |
| 16226 | else |
| 16227 | if test -z "$postdep_objects_CXX"; then |
| 16228 | postdep_objects_CXX="$p" |
| 16229 | else |
| 16230 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 16231 | fi |
| 16232 | fi |
| 16233 | ;; |
| 16234 | |
| 16235 | *) ;; # Ignore the rest. |
| 16236 | |
| 16237 | esac |
| 16238 | done |
| 16239 | |
| 16240 | # Clean up. |
| 16241 | rm -f a.out a.exe |
| 16242 | else |
| 16243 | echo "libtool.m4: error: problem compiling CXX test program" |
| 16244 | fi |
| 16245 | |
| 16246 | $rm -f confest.$objext |
| 16247 | |
| 16248 | case " $postdeps_CXX " in |
| 16249 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 16250 | esac |
| 16251 | |
| 16252 | lt_prog_compiler_wl_CXX= |
| 16253 | lt_prog_compiler_pic_CXX= |
| 16254 | lt_prog_compiler_static_CXX= |
| 16255 | |
| 16256 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16257 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 16258 | |
| 16259 | # C++ specific cases for pic, static, wl, etc. |
| 16260 | if test "$GXX" = yes; then |
| 16261 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16262 | lt_prog_compiler_static_CXX='-static' |
| 16263 | |
| 16264 | case $host_os in |
| 16265 | aix*) |
| 16266 | # All AIX code is PIC. |
| 16267 | if test "$host_cpu" = ia64; then |
| 16268 | # AIX 5 now supports IA64 processor |
| 16269 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16270 | fi |
| 16271 | ;; |
| 16272 | amigaos*) |
| 16273 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16274 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16275 | # like `-m68040'. |
| 16276 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 16277 | ;; |
| 16278 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16279 | # PIC is the default for these OSes. |
| 16280 | ;; |
| 16281 | mingw* | os2* | pw32*) |
| 16282 | # This hack is so that the source file can tell whether it is being |
| 16283 | # built for inclusion in a dll (and should export symbols for example). |
| 16284 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16285 | ;; |
| 16286 | darwin* | rhapsody*) |
| 16287 | # PIC is the default on this platform |
| 16288 | # Common symbols not allowed in MH_DYLIB files |
| 16289 | lt_prog_compiler_pic_CXX='-fno-common' |
| 16290 | ;; |
| 16291 | *djgpp*) |
| 16292 | # DJGPP does not support shared libraries at all |
| 16293 | lt_prog_compiler_pic_CXX= |
| 16294 | ;; |
| 16295 | sysv4*MP*) |
| 16296 | if test -d /usr/nec; then |
| 16297 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 16298 | fi |
| 16299 | ;; |
| 16300 | hpux*) |
| 16301 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16302 | # not for PA HP-UX. |
| 16303 | case "$host_cpu" in |
| 16304 | hppa*64*|ia64*) |
| 16305 | ;; |
| 16306 | *) |
| 16307 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16308 | ;; |
| 16309 | esac |
| 16310 | ;; |
| 16311 | *) |
| 16312 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16313 | ;; |
| 16314 | esac |
| 16315 | else |
| 16316 | case $host_os in |
| 16317 | aix4* | aix5*) |
| 16318 | # All AIX code is PIC. |
| 16319 | if test "$host_cpu" = ia64; then |
| 16320 | # AIX 5 now supports IA64 processor |
| 16321 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16322 | else |
| 16323 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 16324 | fi |
| 16325 | ;; |
| 16326 | chorus*) |
| 16327 | case $cc_basename in |
| 16328 | cxch68) |
| 16329 | # Green Hills C++ Compiler |
| 16330 | # _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" |
| 16331 | ;; |
| 16332 | esac |
| 16333 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16334 | darwin*) |
| 16335 | # PIC is the default on this platform |
| 16336 | # Common symbols not allowed in MH_DYLIB files |
| 16337 | case "$cc_basename" in |
| 16338 | xlc*) |
| 16339 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 16340 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16341 | ;; |
| 16342 | esac |
| 16343 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16344 | dgux*) |
| 16345 | case $cc_basename in |
| 16346 | ec++) |
| 16347 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16348 | ;; |
| 16349 | ghcx) |
| 16350 | # Green Hills C++ Compiler |
| 16351 | lt_prog_compiler_pic_CXX='-pic' |
| 16352 | ;; |
| 16353 | *) |
| 16354 | ;; |
| 16355 | esac |
| 16356 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16357 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16358 | # FreeBSD uses GNU C++ |
| 16359 | ;; |
| 16360 | hpux9* | hpux10* | hpux11*) |
| 16361 | case $cc_basename in |
| 16362 | CC) |
| 16363 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16364 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16365 | if test "$host_cpu" != ia64; then |
| 16366 | lt_prog_compiler_pic_CXX='+Z' |
| 16367 | fi |
| 16368 | ;; |
| 16369 | aCC) |
| 16370 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16371 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16372 | case "$host_cpu" in |
| 16373 | hppa*64*|ia64*) |
| 16374 | # +Z the default |
| 16375 | ;; |
| 16376 | *) |
| 16377 | lt_prog_compiler_pic_CXX='+Z' |
| 16378 | ;; |
| 16379 | esac |
| 16380 | ;; |
| 16381 | *) |
| 16382 | ;; |
| 16383 | esac |
| 16384 | ;; |
| 16385 | irix5* | irix6* | nonstopux*) |
| 16386 | case $cc_basename in |
| 16387 | CC) |
| 16388 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16389 | lt_prog_compiler_static_CXX='-non_shared' |
| 16390 | # CC pic flag -KPIC is the default. |
| 16391 | ;; |
| 16392 | *) |
| 16393 | ;; |
| 16394 | esac |
| 16395 | ;; |
| 16396 | linux*) |
| 16397 | case $cc_basename in |
| 16398 | KCC) |
| 16399 | # KAI C++ Compiler |
| 16400 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16401 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16402 | ;; |
| 16403 | icpc) |
| 16404 | # Intel C++ |
| 16405 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16406 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16407 | lt_prog_compiler_static_CXX='-static' |
| 16408 | ;; |
| 16409 | cxx) |
| 16410 | # Compaq C++ |
| 16411 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16412 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16413 | lt_prog_compiler_pic_CXX= |
| 16414 | lt_prog_compiler_static_CXX='-non_shared' |
| 16415 | ;; |
| 16416 | *) |
| 16417 | ;; |
| 16418 | esac |
| 16419 | ;; |
| 16420 | lynxos*) |
| 16421 | ;; |
| 16422 | m88k*) |
| 16423 | ;; |
| 16424 | mvs*) |
| 16425 | case $cc_basename in |
| 16426 | cxx) |
| 16427 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16428 | ;; |
| 16429 | *) |
| 16430 | ;; |
| 16431 | esac |
| 16432 | ;; |
| 16433 | netbsd*) |
| 16434 | ;; |
| 16435 | osf3* | osf4* | osf5*) |
| 16436 | case $cc_basename in |
| 16437 | KCC) |
| 16438 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16439 | ;; |
| 16440 | RCC) |
| 16441 | # Rational C++ 2.4.1 |
| 16442 | lt_prog_compiler_pic_CXX='-pic' |
| 16443 | ;; |
| 16444 | cxx) |
| 16445 | # Digital/Compaq C++ |
| 16446 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16447 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16448 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16449 | lt_prog_compiler_pic_CXX= |
| 16450 | lt_prog_compiler_static_CXX='-non_shared' |
| 16451 | ;; |
| 16452 | *) |
| 16453 | ;; |
| 16454 | esac |
| 16455 | ;; |
| 16456 | psos*) |
| 16457 | ;; |
| 16458 | sco*) |
| 16459 | case $cc_basename in |
| 16460 | CC) |
| 16461 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16462 | ;; |
| 16463 | *) |
| 16464 | ;; |
| 16465 | esac |
| 16466 | ;; |
| 16467 | solaris*) |
| 16468 | case $cc_basename in |
| 16469 | CC) |
| 16470 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16471 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16472 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16473 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16474 | ;; |
| 16475 | gcx) |
| 16476 | # Green Hills C++ Compiler |
| 16477 | lt_prog_compiler_pic_CXX='-PIC' |
| 16478 | ;; |
| 16479 | *) |
| 16480 | ;; |
| 16481 | esac |
| 16482 | ;; |
| 16483 | sunos4*) |
| 16484 | case $cc_basename in |
| 16485 | CC) |
| 16486 | # Sun C++ 4.x |
| 16487 | lt_prog_compiler_pic_CXX='-pic' |
| 16488 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16489 | ;; |
| 16490 | lcc) |
| 16491 | # Lucid |
| 16492 | lt_prog_compiler_pic_CXX='-pic' |
| 16493 | ;; |
| 16494 | *) |
| 16495 | ;; |
| 16496 | esac |
| 16497 | ;; |
| 16498 | tandem*) |
| 16499 | case $cc_basename in |
| 16500 | NCC) |
| 16501 | # NonStop-UX NCC 3.20 |
| 16502 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16503 | ;; |
| 16504 | *) |
| 16505 | ;; |
| 16506 | esac |
| 16507 | ;; |
| 16508 | unixware*) |
| 16509 | ;; |
| 16510 | vxworks*) |
| 16511 | ;; |
| 16512 | *) |
| 16513 | lt_prog_compiler_can_build_shared_CXX=no |
| 16514 | ;; |
| 16515 | esac |
| 16516 | fi |
| 16517 | |
| 16518 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 16519 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 16520 | |
| 16521 | # |
| 16522 | # Check to make sure the PIC flag actually works. |
| 16523 | # |
| 16524 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16525 | |
| 16526 | 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] | 16527 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 16528 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 16529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16530 | else |
| 16531 | lt_prog_compiler_pic_works_CXX=no |
| 16532 | ac_outfile=conftest.$ac_objext |
| 16533 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16534 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 16535 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16536 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16537 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16538 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16539 | # The option is referenced via a variable to avoid confusing sed. |
| 16540 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16541 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16542 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16543 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 16544 | (eval echo "\"\$as_me:16544: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16545 | (eval "$lt_compile" 2>conftest.err) |
| 16546 | ac_status=$? |
| 16547 | cat conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 16548 | echo "$as_me:16548: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16549 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16550 | # The compiler can only warn and ignore the option if not recognized |
| 16551 | # So say no if there are warnings |
| 16552 | if test ! -s conftest.err; then |
| 16553 | lt_prog_compiler_pic_works_CXX=yes |
| 16554 | fi |
| 16555 | fi |
| 16556 | $rm conftest* |
| 16557 | |
| 16558 | fi |
| 16559 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 16560 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 16561 | |
| 16562 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 16563 | case $lt_prog_compiler_pic_CXX in |
| 16564 | "" | " "*) ;; |
| 16565 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 16566 | esac |
| 16567 | else |
| 16568 | lt_prog_compiler_pic_CXX= |
| 16569 | lt_prog_compiler_can_build_shared_CXX=no |
| 16570 | fi |
| 16571 | |
| 16572 | fi |
| 16573 | case "$host_os" in |
| 16574 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16575 | *djgpp*) |
| 16576 | lt_prog_compiler_pic_CXX= |
| 16577 | ;; |
| 16578 | *) |
| 16579 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 16580 | ;; |
| 16581 | esac |
| 16582 | |
| 16583 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16584 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 16585 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 16586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16587 | else |
| 16588 | lt_cv_prog_compiler_c_o_CXX=no |
| 16589 | $rm -r conftest 2>/dev/null |
| 16590 | mkdir conftest |
| 16591 | cd conftest |
| 16592 | mkdir out |
| 16593 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16594 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16595 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16596 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16597 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16598 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16599 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16600 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16601 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16602 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16603 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 16604 | (eval echo "\"\$as_me:16604: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16605 | (eval "$lt_compile" 2>out/conftest.err) |
| 16606 | ac_status=$? |
| 16607 | cat out/conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 16608 | echo "$as_me:16608: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16609 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16610 | then |
| 16611 | # The compiler can only warn and ignore the option if not recognized |
| 16612 | # So say no if there are warnings |
| 16613 | if test ! -s out/conftest.err; then |
| 16614 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16615 | fi |
| 16616 | fi |
| 16617 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16618 | $rm conftest* |
| 16619 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16620 | # template instantiation |
| 16621 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 16622 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16623 | cd .. |
| 16624 | rmdir conftest |
| 16625 | $rm conftest* |
| 16626 | |
| 16627 | fi |
| 16628 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 16629 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 16630 | |
| 16631 | |
| 16632 | hard_links="nottested" |
| 16633 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 16634 | # do not overwrite the value of need_locks provided by the user |
| 16635 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 16636 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 16637 | hard_links=yes |
| 16638 | $rm conftest* |
| 16639 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16640 | touch conftest.a |
| 16641 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16642 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16643 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 16644 | echo "${ECHO_T}$hard_links" >&6 |
| 16645 | if test "$hard_links" = no; then |
| 16646 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 16647 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16648 | need_locks=warn |
| 16649 | fi |
| 16650 | else |
| 16651 | need_locks=no |
| 16652 | fi |
| 16653 | |
| 16654 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16655 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 16656 | |
| 16657 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16658 | case $host_os in |
| 16659 | aix4* | aix5*) |
| 16660 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16661 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16662 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16663 | 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' |
| 16664 | else |
| 16665 | 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' |
| 16666 | fi |
| 16667 | ;; |
| 16668 | pw32*) |
| 16669 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 16670 | ;; |
| 16671 | cygwin* | mingw*) |
| 16672 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 16673 | ;; |
| 16674 | *) |
| 16675 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16676 | ;; |
| 16677 | esac |
| 16678 | |
| 16679 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 16680 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 16681 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16682 | |
| 16683 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16684 | if test "$GCC" = yes; then |
| 16685 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16686 | fi |
| 16687 | |
| 16688 | # |
| 16689 | # Do we need to explicitly link libc? |
| 16690 | # |
| 16691 | case "x$archive_cmds_need_lc_CXX" in |
| 16692 | x|xyes) |
| 16693 | # Assume -lc should be added |
| 16694 | archive_cmds_need_lc_CXX=yes |
| 16695 | |
| 16696 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16697 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16698 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16699 | # FIXME: we may have to deal with multi-command sequences. |
| 16700 | ;; |
| 16701 | '$CC '*) |
| 16702 | # Test whether the compiler implicitly links with -lc since on some |
| 16703 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16704 | # to ld, don't add -lc before -lgcc. |
| 16705 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16706 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16707 | $rm conftest* |
| 16708 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16709 | |
| 16710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16711 | (eval $ac_compile) 2>&5 |
| 16712 | ac_status=$? |
| 16713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16714 | (exit $ac_status); } 2>conftest.err; then |
| 16715 | soname=conftest |
| 16716 | lib=conftest |
| 16717 | libobjs=conftest.$ac_objext |
| 16718 | deplibs= |
| 16719 | wl=$lt_prog_compiler_wl_CXX |
| 16720 | compiler_flags=-v |
| 16721 | linker_flags=-v |
| 16722 | verstring= |
| 16723 | output_objdir=. |
| 16724 | libname=conftest |
| 16725 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 16726 | allow_undefined_flag_CXX= |
| 16727 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16728 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16729 | ac_status=$? |
| 16730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16731 | (exit $ac_status); } |
| 16732 | then |
| 16733 | archive_cmds_need_lc_CXX=no |
| 16734 | else |
| 16735 | archive_cmds_need_lc_CXX=yes |
| 16736 | fi |
| 16737 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 16738 | else |
| 16739 | cat conftest.err 1>&5 |
| 16740 | fi |
| 16741 | $rm conftest* |
| 16742 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 16743 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 16744 | ;; |
| 16745 | esac |
| 16746 | fi |
| 16747 | ;; |
| 16748 | esac |
| 16749 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16750 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16751 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16752 | library_names_spec= |
| 16753 | libname_spec='lib$name' |
| 16754 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16755 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16756 | postinstall_cmds= |
| 16757 | postuninstall_cmds= |
| 16758 | finish_cmds= |
| 16759 | finish_eval= |
| 16760 | shlibpath_var= |
| 16761 | shlibpath_overrides_runpath=unknown |
| 16762 | version_type=none |
| 16763 | dynamic_linker="$host_os ld.so" |
| 16764 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16765 | if test "$GCC" = yes; then |
| 16766 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16767 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16768 | # if the path contains ";" then we assume it to be the separator |
| 16769 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16770 | # assumed that no part of a normal pathname contains ";" but that should |
| 16771 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16772 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16773 | else |
| 16774 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16775 | fi |
| 16776 | else |
| 16777 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16778 | fi |
| 16779 | need_lib_prefix=unknown |
| 16780 | hardcode_into_libs=no |
| 16781 | |
| 16782 | # when you set need_version to no, make sure it does not cause -set_version |
| 16783 | # flags to be left without arguments |
| 16784 | need_version=unknown |
| 16785 | |
| 16786 | case $host_os in |
| 16787 | aix3*) |
| 16788 | version_type=linux |
| 16789 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16790 | shlibpath_var=LIBPATH |
| 16791 | |
| 16792 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16793 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16794 | ;; |
| 16795 | |
| 16796 | aix4* | aix5*) |
| 16797 | version_type=linux |
| 16798 | need_lib_prefix=no |
| 16799 | need_version=no |
| 16800 | hardcode_into_libs=yes |
| 16801 | if test "$host_cpu" = ia64; then |
| 16802 | # AIX 5 supports IA64 |
| 16803 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16804 | shlibpath_var=LD_LIBRARY_PATH |
| 16805 | else |
| 16806 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16807 | # for dependence libraries. The import file would start with |
| 16808 | # the line `#! .'. This would cause the generated library to |
| 16809 | # depend on `.', always an invalid library. This was fixed in |
| 16810 | # development snapshots of GCC prior to 3.0. |
| 16811 | case $host_os in |
| 16812 | aix4 | aix4.[01] | aix4.[01].*) |
| 16813 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16814 | echo ' yes ' |
| 16815 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16816 | : |
| 16817 | else |
| 16818 | can_build_shared=no |
| 16819 | fi |
| 16820 | ;; |
| 16821 | esac |
| 16822 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16823 | # soname into executable. Probably we can add versioning support to |
| 16824 | # collect2, so additional links can be useful in future. |
| 16825 | if test "$aix_use_runtimelinking" = yes; then |
| 16826 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16827 | # instead of lib<name>.a to let people know that these are not |
| 16828 | # typical AIX shared libraries. |
| 16829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16830 | else |
| 16831 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16832 | # and later when we are not doing run time linking. |
| 16833 | library_names_spec='${libname}${release}.a $libname.a' |
| 16834 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16835 | fi |
| 16836 | shlibpath_var=LIBPATH |
| 16837 | fi |
| 16838 | ;; |
| 16839 | |
| 16840 | amigaos*) |
| 16841 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16842 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16843 | 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] | 16844 | ;; |
| 16845 | |
| 16846 | beos*) |
| 16847 | library_names_spec='${libname}${shared_ext}' |
| 16848 | dynamic_linker="$host_os ld.so" |
| 16849 | shlibpath_var=LIBRARY_PATH |
| 16850 | ;; |
| 16851 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16852 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16853 | version_type=linux |
| 16854 | need_version=no |
| 16855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16856 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16857 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16858 | shlibpath_var=LD_LIBRARY_PATH |
| 16859 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16860 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16861 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16862 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16863 | # libtool to hard-code these into programs |
| 16864 | ;; |
| 16865 | |
| 16866 | cygwin* | mingw* | pw32*) |
| 16867 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16868 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16869 | need_version=no |
| 16870 | need_lib_prefix=no |
| 16871 | |
| 16872 | case $GCC,$host_os in |
| 16873 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16874 | library_names_spec='$libname.dll.a' |
| 16875 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16876 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16877 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16878 | dldir=$destdir/`dirname \$dlpath`~ |
| 16879 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16880 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16881 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16882 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16883 | $rm \$dlpath' |
| 16884 | shlibpath_overrides_runpath=yes |
| 16885 | |
| 16886 | case $host_os in |
| 16887 | cygwin*) |
| 16888 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16889 | 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] | 16890 | 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] | 16891 | ;; |
| 16892 | mingw*) |
| 16893 | # MinGW DLLs use traditional 'lib' prefix |
| 16894 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16895 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16896 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16897 | # It is most probably a Windows format PATH printed by |
| 16898 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16899 | # path with ; separators, and with drive letters. We can handle the |
| 16900 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16901 | # especially as we might pass files found there to a mingw objdump, |
| 16902 | # which wouldn't understand a cygwinified path. Ahh. |
| 16903 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16904 | else |
| 16905 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16906 | fi |
| 16907 | ;; |
| 16908 | pw32*) |
| 16909 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16910 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16911 | ;; |
| 16912 | esac |
| 16913 | ;; |
| 16914 | |
| 16915 | *) |
| 16916 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16917 | ;; |
| 16918 | esac |
| 16919 | dynamic_linker='Win32 ld.exe' |
| 16920 | # FIXME: first we should search . and the directory the executable is in |
| 16921 | shlibpath_var=PATH |
| 16922 | ;; |
| 16923 | |
| 16924 | darwin* | rhapsody*) |
| 16925 | dynamic_linker="$host_os dyld" |
| 16926 | version_type=darwin |
| 16927 | need_lib_prefix=no |
| 16928 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16929 | 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] | 16930 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16931 | shlibpath_overrides_runpath=yes |
| 16932 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16933 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16934 | # 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] | 16935 | if test "$GCC" = yes; then |
| 16936 | 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"` |
| 16937 | else |
| 16938 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16939 | fi |
| 16940 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16941 | ;; |
| 16942 | |
| 16943 | dgux*) |
| 16944 | version_type=linux |
| 16945 | need_lib_prefix=no |
| 16946 | need_version=no |
| 16947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16948 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16949 | shlibpath_var=LD_LIBRARY_PATH |
| 16950 | ;; |
| 16951 | |
| 16952 | freebsd1*) |
| 16953 | dynamic_linker=no |
| 16954 | ;; |
| 16955 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16956 | kfreebsd*-gnu) |
| 16957 | version_type=linux |
| 16958 | need_lib_prefix=no |
| 16959 | need_version=no |
| 16960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16961 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16962 | shlibpath_var=LD_LIBRARY_PATH |
| 16963 | shlibpath_overrides_runpath=no |
| 16964 | hardcode_into_libs=yes |
| 16965 | dynamic_linker='GNU ld.so' |
| 16966 | ;; |
| 16967 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16968 | freebsd*) |
| 16969 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16970 | version_type=freebsd-$objformat |
| 16971 | case $version_type in |
| 16972 | freebsd-elf*) |
| 16973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16974 | need_version=no |
| 16975 | need_lib_prefix=no |
| 16976 | ;; |
| 16977 | freebsd-*) |
| 16978 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16979 | need_version=yes |
| 16980 | ;; |
| 16981 | esac |
| 16982 | shlibpath_var=LD_LIBRARY_PATH |
| 16983 | case $host_os in |
| 16984 | freebsd2*) |
| 16985 | shlibpath_overrides_runpath=yes |
| 16986 | ;; |
| 16987 | freebsd3.01* | freebsdelf3.01*) |
| 16988 | shlibpath_overrides_runpath=yes |
| 16989 | hardcode_into_libs=yes |
| 16990 | ;; |
| 16991 | *) # from 3.2 on |
| 16992 | shlibpath_overrides_runpath=no |
| 16993 | hardcode_into_libs=yes |
| 16994 | ;; |
| 16995 | esac |
| 16996 | ;; |
| 16997 | |
| 16998 | gnu*) |
| 16999 | version_type=linux |
| 17000 | need_lib_prefix=no |
| 17001 | need_version=no |
| 17002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17004 | shlibpath_var=LD_LIBRARY_PATH |
| 17005 | hardcode_into_libs=yes |
| 17006 | ;; |
| 17007 | |
| 17008 | hpux9* | hpux10* | hpux11*) |
| 17009 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17010 | # link against other versions. |
| 17011 | version_type=sunos |
| 17012 | need_lib_prefix=no |
| 17013 | need_version=no |
| 17014 | case "$host_cpu" in |
| 17015 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17016 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17017 | hardcode_into_libs=yes |
| 17018 | dynamic_linker="$host_os dld.so" |
| 17019 | shlibpath_var=LD_LIBRARY_PATH |
| 17020 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17022 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17023 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17024 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17025 | else |
| 17026 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17027 | fi |
| 17028 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17029 | ;; |
| 17030 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17031 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17032 | hardcode_into_libs=yes |
| 17033 | dynamic_linker="$host_os dld.sl" |
| 17034 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17035 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17037 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17038 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17039 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17040 | ;; |
| 17041 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17042 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17043 | dynamic_linker="$host_os dld.sl" |
| 17044 | shlibpath_var=SHLIB_PATH |
| 17045 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17047 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17048 | ;; |
| 17049 | esac |
| 17050 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17051 | postinstall_cmds='chmod 555 $lib' |
| 17052 | ;; |
| 17053 | |
| 17054 | irix5* | irix6* | nonstopux*) |
| 17055 | case $host_os in |
| 17056 | nonstopux*) version_type=nonstopux ;; |
| 17057 | *) |
| 17058 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17059 | version_type=linux |
| 17060 | else |
| 17061 | version_type=irix |
| 17062 | fi ;; |
| 17063 | esac |
| 17064 | need_lib_prefix=no |
| 17065 | need_version=no |
| 17066 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17068 | case $host_os in |
| 17069 | irix5* | nonstopux*) |
| 17070 | libsuff= shlibsuff= |
| 17071 | ;; |
| 17072 | *) |
| 17073 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17074 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17075 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17076 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17077 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17078 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17079 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17080 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17081 | esac |
| 17082 | ;; |
| 17083 | esac |
| 17084 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17085 | shlibpath_overrides_runpath=no |
| 17086 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17087 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17088 | hardcode_into_libs=yes |
| 17089 | ;; |
| 17090 | |
| 17091 | # No shared lib support for Linux oldld, aout, or coff. |
| 17092 | linux*oldld* | linux*aout* | linux*coff*) |
| 17093 | dynamic_linker=no |
| 17094 | ;; |
| 17095 | |
| 17096 | # This must be Linux ELF. |
| 17097 | linux*) |
| 17098 | version_type=linux |
| 17099 | need_lib_prefix=no |
| 17100 | need_version=no |
| 17101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17102 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17103 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17104 | shlibpath_var=LD_LIBRARY_PATH |
| 17105 | shlibpath_overrides_runpath=no |
| 17106 | # This implies no fast_install, which is unacceptable. |
| 17107 | # Some rework will be needed to allow for fast_install |
| 17108 | # before this can be enabled. |
| 17109 | hardcode_into_libs=yes |
| 17110 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17111 | # Append ld.so.conf contents to the search path |
| 17112 | if test -f /etc/ld.so.conf; then |
| 17113 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 17114 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17115 | fi |
| 17116 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17117 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17118 | # powerpc, because MkLinux only supported shared libraries with the |
| 17119 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17120 | # most powerpc-linux boxes support dynamic linking these days and |
| 17121 | # people can always --disable-shared, the test was removed, and we |
| 17122 | # assume the GNU/Linux dynamic linker is in use. |
| 17123 | dynamic_linker='GNU/Linux ld.so' |
| 17124 | ;; |
| 17125 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17126 | knetbsd*-gnu) |
| 17127 | version_type=linux |
| 17128 | need_lib_prefix=no |
| 17129 | need_version=no |
| 17130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17131 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17132 | shlibpath_var=LD_LIBRARY_PATH |
| 17133 | shlibpath_overrides_runpath=no |
| 17134 | hardcode_into_libs=yes |
| 17135 | dynamic_linker='GNU ld.so' |
| 17136 | ;; |
| 17137 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17138 | netbsd*) |
| 17139 | version_type=sunos |
| 17140 | need_lib_prefix=no |
| 17141 | need_version=no |
| 17142 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17144 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17145 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17146 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17147 | 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] | 17148 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17149 | dynamic_linker='NetBSD ld.elf_so' |
| 17150 | fi |
| 17151 | shlibpath_var=LD_LIBRARY_PATH |
| 17152 | shlibpath_overrides_runpath=yes |
| 17153 | hardcode_into_libs=yes |
| 17154 | ;; |
| 17155 | |
| 17156 | newsos6) |
| 17157 | version_type=linux |
| 17158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17159 | shlibpath_var=LD_LIBRARY_PATH |
| 17160 | shlibpath_overrides_runpath=yes |
| 17161 | ;; |
| 17162 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17163 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17164 | version_type=linux |
| 17165 | need_lib_prefix=no |
| 17166 | need_version=no |
| 17167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17169 | shlibpath_var=LD_LIBRARY_PATH |
| 17170 | shlibpath_overrides_runpath=yes |
| 17171 | ;; |
| 17172 | |
| 17173 | openbsd*) |
| 17174 | version_type=sunos |
| 17175 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17176 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17178 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17179 | shlibpath_var=LD_LIBRARY_PATH |
| 17180 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17181 | case $host_os in |
| 17182 | openbsd2.[89] | openbsd2.[89].*) |
| 17183 | shlibpath_overrides_runpath=no |
| 17184 | ;; |
| 17185 | *) |
| 17186 | shlibpath_overrides_runpath=yes |
| 17187 | ;; |
| 17188 | esac |
| 17189 | else |
| 17190 | shlibpath_overrides_runpath=yes |
| 17191 | fi |
| 17192 | ;; |
| 17193 | |
| 17194 | os2*) |
| 17195 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17196 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17197 | need_lib_prefix=no |
| 17198 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17199 | dynamic_linker='OS/2 ld.exe' |
| 17200 | shlibpath_var=LIBPATH |
| 17201 | ;; |
| 17202 | |
| 17203 | osf3* | osf4* | osf5*) |
| 17204 | version_type=osf |
| 17205 | need_lib_prefix=no |
| 17206 | need_version=no |
| 17207 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17209 | shlibpath_var=LD_LIBRARY_PATH |
| 17210 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17211 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17212 | ;; |
| 17213 | |
| 17214 | sco3.2v5*) |
| 17215 | version_type=osf |
| 17216 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17218 | shlibpath_var=LD_LIBRARY_PATH |
| 17219 | ;; |
| 17220 | |
| 17221 | solaris*) |
| 17222 | version_type=linux |
| 17223 | need_lib_prefix=no |
| 17224 | need_version=no |
| 17225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17226 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17227 | shlibpath_var=LD_LIBRARY_PATH |
| 17228 | shlibpath_overrides_runpath=yes |
| 17229 | hardcode_into_libs=yes |
| 17230 | # ldd complains unless libraries are executable |
| 17231 | postinstall_cmds='chmod +x $lib' |
| 17232 | ;; |
| 17233 | |
| 17234 | sunos4*) |
| 17235 | version_type=sunos |
| 17236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17237 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17238 | shlibpath_var=LD_LIBRARY_PATH |
| 17239 | shlibpath_overrides_runpath=yes |
| 17240 | if test "$with_gnu_ld" = yes; then |
| 17241 | need_lib_prefix=no |
| 17242 | fi |
| 17243 | need_version=yes |
| 17244 | ;; |
| 17245 | |
| 17246 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17247 | version_type=linux |
| 17248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17249 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17250 | shlibpath_var=LD_LIBRARY_PATH |
| 17251 | case $host_vendor in |
| 17252 | sni) |
| 17253 | shlibpath_overrides_runpath=no |
| 17254 | need_lib_prefix=no |
| 17255 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17256 | runpath_var=LD_RUN_PATH |
| 17257 | ;; |
| 17258 | siemens) |
| 17259 | need_lib_prefix=no |
| 17260 | ;; |
| 17261 | motorola) |
| 17262 | need_lib_prefix=no |
| 17263 | need_version=no |
| 17264 | shlibpath_overrides_runpath=no |
| 17265 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17266 | ;; |
| 17267 | esac |
| 17268 | ;; |
| 17269 | |
| 17270 | sysv4*MP*) |
| 17271 | if test -d /usr/nec ;then |
| 17272 | version_type=linux |
| 17273 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17274 | soname_spec='$libname${shared_ext}.$major' |
| 17275 | shlibpath_var=LD_LIBRARY_PATH |
| 17276 | fi |
| 17277 | ;; |
| 17278 | |
| 17279 | uts4*) |
| 17280 | version_type=linux |
| 17281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17282 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17283 | shlibpath_var=LD_LIBRARY_PATH |
| 17284 | ;; |
| 17285 | |
| 17286 | *) |
| 17287 | dynamic_linker=no |
| 17288 | ;; |
| 17289 | esac |
| 17290 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17291 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17292 | test "$dynamic_linker" = no && can_build_shared=no |
| 17293 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17294 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17295 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17296 | hardcode_action_CXX= |
| 17297 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 17298 | test -n "$runpath_var_CXX" || \ |
| 17299 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 17300 | |
| 17301 | # We can hardcode non-existant directories. |
| 17302 | if test "$hardcode_direct_CXX" != no && |
| 17303 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17304 | # have to relink, otherwise we might link with an installed library |
| 17305 | # when we should be linking with a yet-to-be-installed one |
| 17306 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 17307 | test "$hardcode_minus_L_CXX" != no; then |
| 17308 | # Linking always hardcodes the temporary library directory. |
| 17309 | hardcode_action_CXX=relink |
| 17310 | else |
| 17311 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17312 | hardcode_action_CXX=immediate |
| 17313 | fi |
| 17314 | else |
| 17315 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17316 | # directories. |
| 17317 | hardcode_action_CXX=unsupported |
| 17318 | fi |
| 17319 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 17320 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 17321 | |
| 17322 | if test "$hardcode_action_CXX" = relink; then |
| 17323 | # Fast installation is not supported |
| 17324 | enable_fast_install=no |
| 17325 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17326 | test "$enable_shared" = no; then |
| 17327 | # Fast installation is not necessary |
| 17328 | enable_fast_install=needless |
| 17329 | fi |
| 17330 | |
| 17331 | striplib= |
| 17332 | old_striplib= |
| 17333 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17334 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 17335 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17336 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17337 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17338 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17339 | echo "${ECHO_T}yes" >&6 |
| 17340 | else |
| 17341 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17342 | case $host_os in |
| 17343 | darwin*) |
| 17344 | if test -n "$STRIP" ; then |
| 17345 | striplib="$STRIP -x" |
| 17346 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17347 | echo "${ECHO_T}yes" >&6 |
| 17348 | else |
| 17349 | echo "$as_me:$LINENO: result: no" >&5 |
| 17350 | echo "${ECHO_T}no" >&6 |
| 17351 | fi |
| 17352 | ;; |
| 17353 | *) |
| 17354 | echo "$as_me:$LINENO: result: no" >&5 |
| 17355 | echo "${ECHO_T}no" >&6 |
| 17356 | ;; |
| 17357 | esac |
| 17358 | fi |
| 17359 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17360 | if test "x$enable_dlopen" != xyes; then |
| 17361 | enable_dlopen=unknown |
| 17362 | enable_dlopen_self=unknown |
| 17363 | enable_dlopen_self_static=unknown |
| 17364 | else |
| 17365 | lt_cv_dlopen=no |
| 17366 | lt_cv_dlopen_libs= |
| 17367 | |
| 17368 | case $host_os in |
| 17369 | beos*) |
| 17370 | lt_cv_dlopen="load_add_on" |
| 17371 | lt_cv_dlopen_libs= |
| 17372 | lt_cv_dlopen_self=yes |
| 17373 | ;; |
| 17374 | |
| 17375 | mingw* | pw32*) |
| 17376 | lt_cv_dlopen="LoadLibrary" |
| 17377 | lt_cv_dlopen_libs= |
| 17378 | ;; |
| 17379 | |
| 17380 | cygwin*) |
| 17381 | lt_cv_dlopen="dlopen" |
| 17382 | lt_cv_dlopen_libs= |
| 17383 | ;; |
| 17384 | |
| 17385 | darwin*) |
| 17386 | # if libdl is installed we need to link against it |
| 17387 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17388 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17389 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17391 | else |
| 17392 | ac_check_lib_save_LIBS=$LIBS |
| 17393 | LIBS="-ldl $LIBS" |
| 17394 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17395 | /* confdefs.h. */ |
| 17396 | _ACEOF |
| 17397 | cat confdefs.h >>conftest.$ac_ext |
| 17398 | cat >>conftest.$ac_ext <<_ACEOF |
| 17399 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17400 | |
| 17401 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17402 | #ifdef __cplusplus |
| 17403 | extern "C" |
| 17404 | #endif |
| 17405 | /* We use char because int might match the return type of a gcc2 |
| 17406 | builtin and then its argument prototype would still apply. */ |
| 17407 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17408 | int |
| 17409 | main () |
| 17410 | { |
| 17411 | dlopen (); |
| 17412 | ; |
| 17413 | return 0; |
| 17414 | } |
| 17415 | _ACEOF |
| 17416 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17418 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17419 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17421 | rm -f conftest.er1 |
| 17422 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17424 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17425 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17426 | || test ! -s conftest.err' |
| 17427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17428 | (eval $ac_try) 2>&5 |
| 17429 | ac_status=$? |
| 17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17431 | (exit $ac_status); }; } && |
| 17432 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17434 | (eval $ac_try) 2>&5 |
| 17435 | ac_status=$? |
| 17436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17437 | (exit $ac_status); }; }; then |
| 17438 | ac_cv_lib_dl_dlopen=yes |
| 17439 | else |
| 17440 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17442 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17443 | ac_cv_lib_dl_dlopen=no |
| 17444 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17445 | rm -f conftest.err conftest.$ac_objext \ |
| 17446 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17447 | LIBS=$ac_check_lib_save_LIBS |
| 17448 | fi |
| 17449 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17450 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17451 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17452 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17453 | else |
| 17454 | |
| 17455 | lt_cv_dlopen="dyld" |
| 17456 | lt_cv_dlopen_libs= |
| 17457 | lt_cv_dlopen_self=yes |
| 17458 | |
| 17459 | fi |
| 17460 | |
| 17461 | ;; |
| 17462 | |
| 17463 | *) |
| 17464 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17465 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 17466 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17468 | else |
| 17469 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17470 | /* confdefs.h. */ |
| 17471 | _ACEOF |
| 17472 | cat confdefs.h >>conftest.$ac_ext |
| 17473 | cat >>conftest.$ac_ext <<_ACEOF |
| 17474 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17475 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17476 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17477 | #define shl_load innocuous_shl_load |
| 17478 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17479 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17480 | which can conflict with char shl_load (); below. |
| 17481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17482 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17483 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17484 | #ifdef __STDC__ |
| 17485 | # include <limits.h> |
| 17486 | #else |
| 17487 | # include <assert.h> |
| 17488 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17489 | |
| 17490 | #undef shl_load |
| 17491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17492 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17493 | #ifdef __cplusplus |
| 17494 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17495 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17496 | #endif |
| 17497 | /* We use char because int might match the return type of a gcc2 |
| 17498 | builtin and then its argument prototype would still apply. */ |
| 17499 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17500 | /* The GNU C library defines this for functions which it implements |
| 17501 | to always fail with ENOSYS. Some functions are actually named |
| 17502 | something starting with __ and the normal name is an alias. */ |
| 17503 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 17504 | choke me |
| 17505 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17506 | char (*f) () = shl_load; |
| 17507 | #endif |
| 17508 | #ifdef __cplusplus |
| 17509 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17510 | #endif |
| 17511 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17512 | int |
| 17513 | main () |
| 17514 | { |
| 17515 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17516 | ; |
| 17517 | return 0; |
| 17518 | } |
| 17519 | _ACEOF |
| 17520 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17522 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17523 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17525 | rm -f conftest.er1 |
| 17526 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17528 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17529 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17530 | || test ! -s conftest.err' |
| 17531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17532 | (eval $ac_try) 2>&5 |
| 17533 | ac_status=$? |
| 17534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17535 | (exit $ac_status); }; } && |
| 17536 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17538 | (eval $ac_try) 2>&5 |
| 17539 | ac_status=$? |
| 17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17541 | (exit $ac_status); }; }; then |
| 17542 | ac_cv_func_shl_load=yes |
| 17543 | else |
| 17544 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17547 | ac_cv_func_shl_load=no |
| 17548 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17549 | rm -f conftest.err conftest.$ac_objext \ |
| 17550 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17551 | fi |
| 17552 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17553 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 17554 | if test $ac_cv_func_shl_load = yes; then |
| 17555 | lt_cv_dlopen="shl_load" |
| 17556 | else |
| 17557 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17558 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 17559 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17561 | else |
| 17562 | ac_check_lib_save_LIBS=$LIBS |
| 17563 | LIBS="-ldld $LIBS" |
| 17564 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17565 | /* confdefs.h. */ |
| 17566 | _ACEOF |
| 17567 | cat confdefs.h >>conftest.$ac_ext |
| 17568 | cat >>conftest.$ac_ext <<_ACEOF |
| 17569 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17570 | |
| 17571 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17572 | #ifdef __cplusplus |
| 17573 | extern "C" |
| 17574 | #endif |
| 17575 | /* We use char because int might match the return type of a gcc2 |
| 17576 | builtin and then its argument prototype would still apply. */ |
| 17577 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17578 | int |
| 17579 | main () |
| 17580 | { |
| 17581 | shl_load (); |
| 17582 | ; |
| 17583 | return 0; |
| 17584 | } |
| 17585 | _ACEOF |
| 17586 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17588 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17589 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17591 | rm -f conftest.er1 |
| 17592 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17594 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17595 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17596 | || test ! -s conftest.err' |
| 17597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17598 | (eval $ac_try) 2>&5 |
| 17599 | ac_status=$? |
| 17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17601 | (exit $ac_status); }; } && |
| 17602 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17604 | (eval $ac_try) 2>&5 |
| 17605 | ac_status=$? |
| 17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17607 | (exit $ac_status); }; }; then |
| 17608 | ac_cv_lib_dld_shl_load=yes |
| 17609 | else |
| 17610 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17612 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17613 | ac_cv_lib_dld_shl_load=no |
| 17614 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17615 | rm -f conftest.err conftest.$ac_objext \ |
| 17616 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17617 | LIBS=$ac_check_lib_save_LIBS |
| 17618 | fi |
| 17619 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17620 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 17621 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17622 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17623 | else |
| 17624 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17625 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 17626 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17628 | else |
| 17629 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17630 | /* confdefs.h. */ |
| 17631 | _ACEOF |
| 17632 | cat confdefs.h >>conftest.$ac_ext |
| 17633 | cat >>conftest.$ac_ext <<_ACEOF |
| 17634 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17635 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17637 | #define dlopen innocuous_dlopen |
| 17638 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17639 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17640 | which can conflict with char dlopen (); below. |
| 17641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17642 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17643 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17644 | #ifdef __STDC__ |
| 17645 | # include <limits.h> |
| 17646 | #else |
| 17647 | # include <assert.h> |
| 17648 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17649 | |
| 17650 | #undef dlopen |
| 17651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17652 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17653 | #ifdef __cplusplus |
| 17654 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17655 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17656 | #endif |
| 17657 | /* We use char because int might match the return type of a gcc2 |
| 17658 | builtin and then its argument prototype would still apply. */ |
| 17659 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17660 | /* The GNU C library defines this for functions which it implements |
| 17661 | to always fail with ENOSYS. Some functions are actually named |
| 17662 | something starting with __ and the normal name is an alias. */ |
| 17663 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 17664 | choke me |
| 17665 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17666 | char (*f) () = dlopen; |
| 17667 | #endif |
| 17668 | #ifdef __cplusplus |
| 17669 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17670 | #endif |
| 17671 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17672 | int |
| 17673 | main () |
| 17674 | { |
| 17675 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17676 | ; |
| 17677 | return 0; |
| 17678 | } |
| 17679 | _ACEOF |
| 17680 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17682 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17683 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17685 | rm -f conftest.er1 |
| 17686 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17688 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17689 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17690 | || test ! -s conftest.err' |
| 17691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17692 | (eval $ac_try) 2>&5 |
| 17693 | ac_status=$? |
| 17694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17695 | (exit $ac_status); }; } && |
| 17696 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17698 | (eval $ac_try) 2>&5 |
| 17699 | ac_status=$? |
| 17700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17701 | (exit $ac_status); }; }; then |
| 17702 | ac_cv_func_dlopen=yes |
| 17703 | else |
| 17704 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17706 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17707 | ac_cv_func_dlopen=no |
| 17708 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17709 | rm -f conftest.err conftest.$ac_objext \ |
| 17710 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17711 | fi |
| 17712 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17713 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 17714 | if test $ac_cv_func_dlopen = yes; then |
| 17715 | lt_cv_dlopen="dlopen" |
| 17716 | else |
| 17717 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17718 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17719 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17721 | else |
| 17722 | ac_check_lib_save_LIBS=$LIBS |
| 17723 | LIBS="-ldl $LIBS" |
| 17724 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17725 | /* confdefs.h. */ |
| 17726 | _ACEOF |
| 17727 | cat confdefs.h >>conftest.$ac_ext |
| 17728 | cat >>conftest.$ac_ext <<_ACEOF |
| 17729 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17730 | |
| 17731 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17732 | #ifdef __cplusplus |
| 17733 | extern "C" |
| 17734 | #endif |
| 17735 | /* We use char because int might match the return type of a gcc2 |
| 17736 | builtin and then its argument prototype would still apply. */ |
| 17737 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17738 | int |
| 17739 | main () |
| 17740 | { |
| 17741 | dlopen (); |
| 17742 | ; |
| 17743 | return 0; |
| 17744 | } |
| 17745 | _ACEOF |
| 17746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17748 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17749 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17751 | rm -f conftest.er1 |
| 17752 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17754 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17755 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17756 | || test ! -s conftest.err' |
| 17757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17758 | (eval $ac_try) 2>&5 |
| 17759 | ac_status=$? |
| 17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17761 | (exit $ac_status); }; } && |
| 17762 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17764 | (eval $ac_try) 2>&5 |
| 17765 | ac_status=$? |
| 17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17767 | (exit $ac_status); }; }; then |
| 17768 | ac_cv_lib_dl_dlopen=yes |
| 17769 | else |
| 17770 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17772 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17773 | ac_cv_lib_dl_dlopen=no |
| 17774 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17775 | rm -f conftest.err conftest.$ac_objext \ |
| 17776 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17777 | LIBS=$ac_check_lib_save_LIBS |
| 17778 | fi |
| 17779 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17780 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17781 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17782 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17783 | else |
| 17784 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17785 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17786 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17788 | else |
| 17789 | ac_check_lib_save_LIBS=$LIBS |
| 17790 | LIBS="-lsvld $LIBS" |
| 17791 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17792 | /* confdefs.h. */ |
| 17793 | _ACEOF |
| 17794 | cat confdefs.h >>conftest.$ac_ext |
| 17795 | cat >>conftest.$ac_ext <<_ACEOF |
| 17796 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17797 | |
| 17798 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17799 | #ifdef __cplusplus |
| 17800 | extern "C" |
| 17801 | #endif |
| 17802 | /* We use char because int might match the return type of a gcc2 |
| 17803 | builtin and then its argument prototype would still apply. */ |
| 17804 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17805 | int |
| 17806 | main () |
| 17807 | { |
| 17808 | dlopen (); |
| 17809 | ; |
| 17810 | return 0; |
| 17811 | } |
| 17812 | _ACEOF |
| 17813 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17815 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17816 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17818 | rm -f conftest.er1 |
| 17819 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17821 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17822 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17823 | || test ! -s conftest.err' |
| 17824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17825 | (eval $ac_try) 2>&5 |
| 17826 | ac_status=$? |
| 17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17828 | (exit $ac_status); }; } && |
| 17829 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17831 | (eval $ac_try) 2>&5 |
| 17832 | ac_status=$? |
| 17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17834 | (exit $ac_status); }; }; then |
| 17835 | ac_cv_lib_svld_dlopen=yes |
| 17836 | else |
| 17837 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17839 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17840 | ac_cv_lib_svld_dlopen=no |
| 17841 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17842 | rm -f conftest.err conftest.$ac_objext \ |
| 17843 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17844 | LIBS=$ac_check_lib_save_LIBS |
| 17845 | fi |
| 17846 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17847 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17848 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17849 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17850 | else |
| 17851 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17852 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17853 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17855 | else |
| 17856 | ac_check_lib_save_LIBS=$LIBS |
| 17857 | LIBS="-ldld $LIBS" |
| 17858 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17859 | /* confdefs.h. */ |
| 17860 | _ACEOF |
| 17861 | cat confdefs.h >>conftest.$ac_ext |
| 17862 | cat >>conftest.$ac_ext <<_ACEOF |
| 17863 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17864 | |
| 17865 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17866 | #ifdef __cplusplus |
| 17867 | extern "C" |
| 17868 | #endif |
| 17869 | /* We use char because int might match the return type of a gcc2 |
| 17870 | builtin and then its argument prototype would still apply. */ |
| 17871 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17872 | int |
| 17873 | main () |
| 17874 | { |
| 17875 | dld_link (); |
| 17876 | ; |
| 17877 | return 0; |
| 17878 | } |
| 17879 | _ACEOF |
| 17880 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17882 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17883 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17885 | rm -f conftest.er1 |
| 17886 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17888 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17889 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17890 | || test ! -s conftest.err' |
| 17891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17892 | (eval $ac_try) 2>&5 |
| 17893 | ac_status=$? |
| 17894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17895 | (exit $ac_status); }; } && |
| 17896 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17898 | (eval $ac_try) 2>&5 |
| 17899 | ac_status=$? |
| 17900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17901 | (exit $ac_status); }; }; then |
| 17902 | ac_cv_lib_dld_dld_link=yes |
| 17903 | else |
| 17904 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17906 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17907 | ac_cv_lib_dld_dld_link=no |
| 17908 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17909 | rm -f conftest.err conftest.$ac_objext \ |
| 17910 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17911 | LIBS=$ac_check_lib_save_LIBS |
| 17912 | fi |
| 17913 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17914 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17915 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17916 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17917 | fi |
| 17918 | |
| 17919 | |
| 17920 | fi |
| 17921 | |
| 17922 | |
| 17923 | fi |
| 17924 | |
| 17925 | |
| 17926 | fi |
| 17927 | |
| 17928 | |
| 17929 | fi |
| 17930 | |
| 17931 | |
| 17932 | fi |
| 17933 | |
| 17934 | ;; |
| 17935 | esac |
| 17936 | |
| 17937 | if test "x$lt_cv_dlopen" != xno; then |
| 17938 | enable_dlopen=yes |
| 17939 | else |
| 17940 | enable_dlopen=no |
| 17941 | fi |
| 17942 | |
| 17943 | case $lt_cv_dlopen in |
| 17944 | dlopen) |
| 17945 | save_CPPFLAGS="$CPPFLAGS" |
| 17946 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17947 | |
| 17948 | save_LDFLAGS="$LDFLAGS" |
| 17949 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17950 | |
| 17951 | save_LIBS="$LIBS" |
| 17952 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17953 | |
| 17954 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17955 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17956 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17958 | else |
| 17959 | if test "$cross_compiling" = yes; then : |
| 17960 | lt_cv_dlopen_self=cross |
| 17961 | else |
| 17962 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17963 | lt_status=$lt_dlunknown |
| 17964 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 17965 | #line 17965 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17966 | #include "confdefs.h" |
| 17967 | |
| 17968 | #if HAVE_DLFCN_H |
| 17969 | #include <dlfcn.h> |
| 17970 | #endif |
| 17971 | |
| 17972 | #include <stdio.h> |
| 17973 | |
| 17974 | #ifdef RTLD_GLOBAL |
| 17975 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17976 | #else |
| 17977 | # ifdef DL_GLOBAL |
| 17978 | # define LT_DLGLOBAL DL_GLOBAL |
| 17979 | # else |
| 17980 | # define LT_DLGLOBAL 0 |
| 17981 | # endif |
| 17982 | #endif |
| 17983 | |
| 17984 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17985 | find out it does not work in some platform. */ |
| 17986 | #ifndef LT_DLLAZY_OR_NOW |
| 17987 | # ifdef RTLD_LAZY |
| 17988 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17989 | # else |
| 17990 | # ifdef DL_LAZY |
| 17991 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17992 | # else |
| 17993 | # ifdef RTLD_NOW |
| 17994 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17995 | # else |
| 17996 | # ifdef DL_NOW |
| 17997 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17998 | # else |
| 17999 | # define LT_DLLAZY_OR_NOW 0 |
| 18000 | # endif |
| 18001 | # endif |
| 18002 | # endif |
| 18003 | # endif |
| 18004 | #endif |
| 18005 | |
| 18006 | #ifdef __cplusplus |
| 18007 | extern "C" void exit (int); |
| 18008 | #endif |
| 18009 | |
| 18010 | void fnord() { int i=42;} |
| 18011 | int main () |
| 18012 | { |
| 18013 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18014 | int status = $lt_dlunknown; |
| 18015 | |
| 18016 | if (self) |
| 18017 | { |
| 18018 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18019 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18020 | /* dlclose (self); */ |
| 18021 | } |
| 18022 | |
| 18023 | exit (status); |
| 18024 | } |
| 18025 | EOF |
| 18026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18027 | (eval $ac_link) 2>&5 |
| 18028 | ac_status=$? |
| 18029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18030 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18031 | (./conftest; exit; ) 2>/dev/null |
| 18032 | lt_status=$? |
| 18033 | case x$lt_status in |
| 18034 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18035 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18036 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 18037 | esac |
| 18038 | else : |
| 18039 | # compilation failed |
| 18040 | lt_cv_dlopen_self=no |
| 18041 | fi |
| 18042 | fi |
| 18043 | rm -fr conftest* |
| 18044 | |
| 18045 | |
| 18046 | fi |
| 18047 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 18048 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 18049 | |
| 18050 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 18051 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 18052 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 18053 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 18054 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 18055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18056 | else |
| 18057 | if test "$cross_compiling" = yes; then : |
| 18058 | lt_cv_dlopen_self_static=cross |
| 18059 | else |
| 18060 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18061 | lt_status=$lt_dlunknown |
| 18062 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 18063 | #line 18063 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18064 | #include "confdefs.h" |
| 18065 | |
| 18066 | #if HAVE_DLFCN_H |
| 18067 | #include <dlfcn.h> |
| 18068 | #endif |
| 18069 | |
| 18070 | #include <stdio.h> |
| 18071 | |
| 18072 | #ifdef RTLD_GLOBAL |
| 18073 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18074 | #else |
| 18075 | # ifdef DL_GLOBAL |
| 18076 | # define LT_DLGLOBAL DL_GLOBAL |
| 18077 | # else |
| 18078 | # define LT_DLGLOBAL 0 |
| 18079 | # endif |
| 18080 | #endif |
| 18081 | |
| 18082 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18083 | find out it does not work in some platform. */ |
| 18084 | #ifndef LT_DLLAZY_OR_NOW |
| 18085 | # ifdef RTLD_LAZY |
| 18086 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18087 | # else |
| 18088 | # ifdef DL_LAZY |
| 18089 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18090 | # else |
| 18091 | # ifdef RTLD_NOW |
| 18092 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18093 | # else |
| 18094 | # ifdef DL_NOW |
| 18095 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18096 | # else |
| 18097 | # define LT_DLLAZY_OR_NOW 0 |
| 18098 | # endif |
| 18099 | # endif |
| 18100 | # endif |
| 18101 | # endif |
| 18102 | #endif |
| 18103 | |
| 18104 | #ifdef __cplusplus |
| 18105 | extern "C" void exit (int); |
| 18106 | #endif |
| 18107 | |
| 18108 | void fnord() { int i=42;} |
| 18109 | int main () |
| 18110 | { |
| 18111 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18112 | int status = $lt_dlunknown; |
| 18113 | |
| 18114 | if (self) |
| 18115 | { |
| 18116 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18117 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18118 | /* dlclose (self); */ |
| 18119 | } |
| 18120 | |
| 18121 | exit (status); |
| 18122 | } |
| 18123 | EOF |
| 18124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18125 | (eval $ac_link) 2>&5 |
| 18126 | ac_status=$? |
| 18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18128 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18129 | (./conftest; exit; ) 2>/dev/null |
| 18130 | lt_status=$? |
| 18131 | case x$lt_status in |
| 18132 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18133 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18134 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18135 | esac |
| 18136 | else : |
| 18137 | # compilation failed |
| 18138 | lt_cv_dlopen_self_static=no |
| 18139 | fi |
| 18140 | fi |
| 18141 | rm -fr conftest* |
| 18142 | |
| 18143 | |
| 18144 | fi |
| 18145 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 18146 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 18147 | fi |
| 18148 | |
| 18149 | CPPFLAGS="$save_CPPFLAGS" |
| 18150 | LDFLAGS="$save_LDFLAGS" |
| 18151 | LIBS="$save_LIBS" |
| 18152 | ;; |
| 18153 | esac |
| 18154 | |
| 18155 | case $lt_cv_dlopen_self in |
| 18156 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18157 | *) enable_dlopen_self=unknown ;; |
| 18158 | esac |
| 18159 | |
| 18160 | case $lt_cv_dlopen_self_static in |
| 18161 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18162 | *) enable_dlopen_self_static=unknown ;; |
| 18163 | esac |
| 18164 | fi |
| 18165 | |
| 18166 | |
| 18167 | # The else clause should only fire when bootstrapping the |
| 18168 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18169 | # with your package, and you will get complaints that there are |
| 18170 | # no rules to generate ltmain.sh. |
| 18171 | if test -f "$ltmain"; then |
| 18172 | # See if we are running on zsh, and set the options which allow our commands through |
| 18173 | # without removal of \ escapes. |
| 18174 | if test -n "${ZSH_VERSION+set}" ; then |
| 18175 | setopt NO_GLOB_SUBST |
| 18176 | fi |
| 18177 | # Now quote all the things that may contain metacharacters while being |
| 18178 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18179 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18180 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18181 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18182 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18183 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18184 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18185 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18186 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18187 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18188 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18189 | compiler_CXX \ |
| 18190 | CC_CXX \ |
| 18191 | LD_CXX \ |
| 18192 | lt_prog_compiler_wl_CXX \ |
| 18193 | lt_prog_compiler_pic_CXX \ |
| 18194 | lt_prog_compiler_static_CXX \ |
| 18195 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 18196 | export_dynamic_flag_spec_CXX \ |
| 18197 | thread_safe_flag_spec_CXX \ |
| 18198 | whole_archive_flag_spec_CXX \ |
| 18199 | enable_shared_with_static_runtimes_CXX \ |
| 18200 | old_archive_cmds_CXX \ |
| 18201 | old_archive_from_new_cmds_CXX \ |
| 18202 | predep_objects_CXX \ |
| 18203 | postdep_objects_CXX \ |
| 18204 | predeps_CXX \ |
| 18205 | postdeps_CXX \ |
| 18206 | compiler_lib_search_path_CXX \ |
| 18207 | archive_cmds_CXX \ |
| 18208 | archive_expsym_cmds_CXX \ |
| 18209 | postinstall_cmds_CXX \ |
| 18210 | postuninstall_cmds_CXX \ |
| 18211 | old_archive_from_expsyms_cmds_CXX \ |
| 18212 | allow_undefined_flag_CXX \ |
| 18213 | no_undefined_flag_CXX \ |
| 18214 | export_symbols_cmds_CXX \ |
| 18215 | hardcode_libdir_flag_spec_CXX \ |
| 18216 | hardcode_libdir_flag_spec_ld_CXX \ |
| 18217 | hardcode_libdir_separator_CXX \ |
| 18218 | hardcode_automatic_CXX \ |
| 18219 | module_cmds_CXX \ |
| 18220 | module_expsym_cmds_CXX \ |
| 18221 | lt_cv_prog_compiler_c_o_CXX \ |
| 18222 | exclude_expsyms_CXX \ |
| 18223 | include_expsyms_CXX; do |
| 18224 | |
| 18225 | case $var in |
| 18226 | old_archive_cmds_CXX | \ |
| 18227 | old_archive_from_new_cmds_CXX | \ |
| 18228 | archive_cmds_CXX | \ |
| 18229 | archive_expsym_cmds_CXX | \ |
| 18230 | module_cmds_CXX | \ |
| 18231 | module_expsym_cmds_CXX | \ |
| 18232 | old_archive_from_expsyms_cmds_CXX | \ |
| 18233 | export_symbols_cmds_CXX | \ |
| 18234 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18235 | postinstall_cmds | postuninstall_cmds | \ |
| 18236 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18237 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18238 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18239 | 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] | 18240 | ;; |
| 18241 | *) |
| 18242 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18243 | ;; |
| 18244 | esac |
| 18245 | done |
| 18246 | |
| 18247 | case $lt_echo in |
| 18248 | *'\$0 --fallback-echo"') |
| 18249 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18250 | ;; |
| 18251 | esac |
| 18252 | |
| 18253 | cfgfile="$ofile" |
| 18254 | |
| 18255 | cat <<__EOF__ >> "$cfgfile" |
| 18256 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18257 | |
| 18258 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18259 | |
| 18260 | # Shell to use when invoking shell scripts. |
| 18261 | SHELL=$lt_SHELL |
| 18262 | |
| 18263 | # Whether or not to build shared libraries. |
| 18264 | build_libtool_libs=$enable_shared |
| 18265 | |
| 18266 | # Whether or not to build static libraries. |
| 18267 | build_old_libs=$enable_static |
| 18268 | |
| 18269 | # Whether or not to add -lc for building shared libraries. |
| 18270 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 18271 | |
| 18272 | # Whether or not to disallow shared libs when runtime libs are static |
| 18273 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 18274 | |
| 18275 | # Whether or not to optimize for fast installation. |
| 18276 | fast_install=$enable_fast_install |
| 18277 | |
| 18278 | # The host system. |
| 18279 | host_alias=$host_alias |
| 18280 | host=$host |
| 18281 | |
| 18282 | # An echo program that does not interpret backslashes. |
| 18283 | echo=$lt_echo |
| 18284 | |
| 18285 | # The archiver. |
| 18286 | AR=$lt_AR |
| 18287 | AR_FLAGS=$lt_AR_FLAGS |
| 18288 | |
| 18289 | # A C compiler. |
| 18290 | LTCC=$lt_LTCC |
| 18291 | |
| 18292 | # A language-specific compiler. |
| 18293 | CC=$lt_compiler_CXX |
| 18294 | |
| 18295 | # Is the compiler the GNU C compiler? |
| 18296 | with_gcc=$GCC_CXX |
| 18297 | |
| 18298 | # An ERE matcher. |
| 18299 | EGREP=$lt_EGREP |
| 18300 | |
| 18301 | # The linker used to build libraries. |
| 18302 | LD=$lt_LD_CXX |
| 18303 | |
| 18304 | # Whether we need hard or soft links. |
| 18305 | LN_S=$lt_LN_S |
| 18306 | |
| 18307 | # A BSD-compatible nm program. |
| 18308 | NM=$lt_NM |
| 18309 | |
| 18310 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18311 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18312 | |
| 18313 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18314 | MAGIC_CMD=$MAGIC_CMD |
| 18315 | |
| 18316 | # Used on cygwin: DLL creation program. |
| 18317 | DLLTOOL="$DLLTOOL" |
| 18318 | |
| 18319 | # Used on cygwin: object dumper. |
| 18320 | OBJDUMP="$OBJDUMP" |
| 18321 | |
| 18322 | # Used on cygwin: assembler. |
| 18323 | AS="$AS" |
| 18324 | |
| 18325 | # The name of the directory that contains temporary libtool files. |
| 18326 | objdir=$objdir |
| 18327 | |
| 18328 | # How to create reloadable object files. |
| 18329 | reload_flag=$lt_reload_flag |
| 18330 | reload_cmds=$lt_reload_cmds |
| 18331 | |
| 18332 | # How to pass a linker flag through the compiler. |
| 18333 | wl=$lt_lt_prog_compiler_wl_CXX |
| 18334 | |
| 18335 | # Object file suffix (normally "o"). |
| 18336 | objext="$ac_objext" |
| 18337 | |
| 18338 | # Old archive suffix (normally "a"). |
| 18339 | libext="$libext" |
| 18340 | |
| 18341 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18342 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18343 | |
| 18344 | # Executable file suffix (normally ""). |
| 18345 | exeext="$exeext" |
| 18346 | |
| 18347 | # Additional compiler flags for building library objects. |
| 18348 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 18349 | pic_mode=$pic_mode |
| 18350 | |
| 18351 | # What is the maximum length of a command? |
| 18352 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18353 | |
| 18354 | # Does compiler simultaneously support -c and -o options? |
| 18355 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 18356 | |
| 18357 | # Must we lock files when doing compilation ? |
| 18358 | need_locks=$lt_need_locks |
| 18359 | |
| 18360 | # Do we need the lib prefix for modules? |
| 18361 | need_lib_prefix=$need_lib_prefix |
| 18362 | |
| 18363 | # Do we need a version for libraries? |
| 18364 | need_version=$need_version |
| 18365 | |
| 18366 | # Whether dlopen is supported. |
| 18367 | dlopen_support=$enable_dlopen |
| 18368 | |
| 18369 | # Whether dlopen of programs is supported. |
| 18370 | dlopen_self=$enable_dlopen_self |
| 18371 | |
| 18372 | # Whether dlopen of statically linked programs is supported. |
| 18373 | dlopen_self_static=$enable_dlopen_self_static |
| 18374 | |
| 18375 | # Compiler flag to prevent dynamic linking. |
| 18376 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 18377 | |
| 18378 | # Compiler flag to turn off builtin functions. |
| 18379 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 18380 | |
| 18381 | # Compiler flag to allow reflexive dlopens. |
| 18382 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 18383 | |
| 18384 | # Compiler flag to generate shared objects directly from archives. |
| 18385 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 18386 | |
| 18387 | # Compiler flag to generate thread-safe objects. |
| 18388 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 18389 | |
| 18390 | # Library versioning type. |
| 18391 | version_type=$version_type |
| 18392 | |
| 18393 | # Format of library name prefix. |
| 18394 | libname_spec=$lt_libname_spec |
| 18395 | |
| 18396 | # List of archive names. First name is the real one, the rest are links. |
| 18397 | # The last name is the one that the linker finds with -lNAME. |
| 18398 | library_names_spec=$lt_library_names_spec |
| 18399 | |
| 18400 | # The coded name of the library, if different from the real name. |
| 18401 | soname_spec=$lt_soname_spec |
| 18402 | |
| 18403 | # Commands used to build and install an old-style archive. |
| 18404 | RANLIB=$lt_RANLIB |
| 18405 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 18406 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18407 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18408 | |
| 18409 | # Create an old-style archive from a shared archive. |
| 18410 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 18411 | |
| 18412 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18413 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 18414 | |
| 18415 | # Commands used to build and install a shared archive. |
| 18416 | archive_cmds=$lt_archive_cmds_CXX |
| 18417 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 18418 | postinstall_cmds=$lt_postinstall_cmds |
| 18419 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18420 | |
| 18421 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18422 | module_cmds=$lt_module_cmds_CXX |
| 18423 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 18424 | |
| 18425 | # Commands to strip libraries. |
| 18426 | old_striplib=$lt_old_striplib |
| 18427 | striplib=$lt_striplib |
| 18428 | |
| 18429 | # Dependencies to place before the objects being linked to create a |
| 18430 | # shared library. |
| 18431 | predep_objects=$lt_predep_objects_CXX |
| 18432 | |
| 18433 | # Dependencies to place after the objects being linked to create a |
| 18434 | # shared library. |
| 18435 | postdep_objects=$lt_postdep_objects_CXX |
| 18436 | |
| 18437 | # Dependencies to place before the objects being linked to create a |
| 18438 | # shared library. |
| 18439 | predeps=$lt_predeps_CXX |
| 18440 | |
| 18441 | # Dependencies to place after the objects being linked to create a |
| 18442 | # shared library. |
| 18443 | postdeps=$lt_postdeps_CXX |
| 18444 | |
| 18445 | # The library search path used internally by the compiler when linking |
| 18446 | # a shared library. |
| 18447 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 18448 | |
| 18449 | # Method to check whether dependent libraries are shared objects. |
| 18450 | deplibs_check_method=$lt_deplibs_check_method |
| 18451 | |
| 18452 | # Command to use when deplibs_check_method == file_magic. |
| 18453 | file_magic_cmd=$lt_file_magic_cmd |
| 18454 | |
| 18455 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18456 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 18457 | |
| 18458 | # Flag that forces no undefined symbols. |
| 18459 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 18460 | |
| 18461 | # Commands used to finish a libtool library installation in a directory. |
| 18462 | finish_cmds=$lt_finish_cmds |
| 18463 | |
| 18464 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18465 | finish_eval=$lt_finish_eval |
| 18466 | |
| 18467 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18468 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18469 | |
| 18470 | # Transform the output of nm in a proper C declaration |
| 18471 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18472 | |
| 18473 | # Transform the output of nm in a C name address pair |
| 18474 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18475 | |
| 18476 | # This is the shared library runtime path variable. |
| 18477 | runpath_var=$runpath_var |
| 18478 | |
| 18479 | # This is the shared library path variable. |
| 18480 | shlibpath_var=$shlibpath_var |
| 18481 | |
| 18482 | # Is shlibpath searched before the hard-coded library search path? |
| 18483 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18484 | |
| 18485 | # How to hardcode a shared library path into an executable. |
| 18486 | hardcode_action=$hardcode_action_CXX |
| 18487 | |
| 18488 | # Whether we should hardcode library paths into libraries. |
| 18489 | hardcode_into_libs=$hardcode_into_libs |
| 18490 | |
| 18491 | # Flag to hardcode \$libdir into a binary during linking. |
| 18492 | # This must work even if \$libdir does not exist. |
| 18493 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 18494 | |
| 18495 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18496 | # a binary during linking. This must work even if \$libdir does |
| 18497 | # not exist. |
| 18498 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 18499 | |
| 18500 | # Whether we need a single -rpath flag with a separated argument. |
| 18501 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 18502 | |
| 18503 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18504 | # resulting binary. |
| 18505 | hardcode_direct=$hardcode_direct_CXX |
| 18506 | |
| 18507 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18508 | # resulting binary. |
| 18509 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 18510 | |
| 18511 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18512 | # the resulting binary. |
| 18513 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 18514 | |
| 18515 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18516 | # and all subsequent libraries and executables linked against it. |
| 18517 | hardcode_automatic=$hardcode_automatic_CXX |
| 18518 | |
| 18519 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18520 | # restored at relink time. |
| 18521 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18522 | |
| 18523 | # Whether libtool must link a program against all its dependency libraries. |
| 18524 | link_all_deplibs=$link_all_deplibs_CXX |
| 18525 | |
| 18526 | # Compile-time system search path for libraries |
| 18527 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18528 | |
| 18529 | # Run-time system search path for libraries |
| 18530 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18531 | |
| 18532 | # Fix the shell variable \$srcfile for the compiler. |
| 18533 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 18534 | |
| 18535 | # Set to yes if exported symbols are required. |
| 18536 | always_export_symbols=$always_export_symbols_CXX |
| 18537 | |
| 18538 | # The commands to list exported symbols. |
| 18539 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 18540 | |
| 18541 | # The commands to extract the exported symbol list from a shared archive. |
| 18542 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18543 | |
| 18544 | # Symbols that should not be listed in the preloaded symbols. |
| 18545 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 18546 | |
| 18547 | # Symbols that must always be exported. |
| 18548 | include_expsyms=$lt_include_expsyms_CXX |
| 18549 | |
| 18550 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18551 | |
| 18552 | __EOF__ |
| 18553 | |
| 18554 | |
| 18555 | else |
| 18556 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18557 | # `config.status --recheck' to rerun these tests and create the |
| 18558 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18559 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18560 | if test -f "$ltmain_in"; then |
| 18561 | test -f Makefile && make "$ltmain" |
| 18562 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18563 | fi |
| 18564 | |
| 18565 | |
| 18566 | ac_ext=c |
| 18567 | ac_cpp='$CPP $CPPFLAGS' |
| 18568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18571 | |
| 18572 | CC=$lt_save_CC |
| 18573 | LDCXX=$LD |
| 18574 | LD=$lt_save_LD |
| 18575 | GCC=$lt_save_GCC |
| 18576 | with_gnu_ldcxx=$with_gnu_ld |
| 18577 | with_gnu_ld=$lt_save_with_gnu_ld |
| 18578 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 18579 | lt_cv_path_LD=$lt_save_path_LD |
| 18580 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 18581 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 18582 | |
| 18583 | else |
| 18584 | tagname="" |
| 18585 | fi |
| 18586 | ;; |
| 18587 | |
| 18588 | F77) |
| 18589 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 18590 | |
| 18591 | ac_ext=f |
| 18592 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 18593 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18594 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 18595 | |
| 18596 | |
| 18597 | archive_cmds_need_lc_F77=no |
| 18598 | allow_undefined_flag_F77= |
| 18599 | always_export_symbols_F77=no |
| 18600 | archive_expsym_cmds_F77= |
| 18601 | export_dynamic_flag_spec_F77= |
| 18602 | hardcode_direct_F77=no |
| 18603 | hardcode_libdir_flag_spec_F77= |
| 18604 | hardcode_libdir_flag_spec_ld_F77= |
| 18605 | hardcode_libdir_separator_F77= |
| 18606 | hardcode_minus_L_F77=no |
| 18607 | hardcode_automatic_F77=no |
| 18608 | module_cmds_F77= |
| 18609 | module_expsym_cmds_F77= |
| 18610 | link_all_deplibs_F77=unknown |
| 18611 | old_archive_cmds_F77=$old_archive_cmds |
| 18612 | no_undefined_flag_F77= |
| 18613 | whole_archive_flag_spec_F77= |
| 18614 | enable_shared_with_static_runtimes_F77=no |
| 18615 | |
| 18616 | # Source file extension for f77 test sources. |
| 18617 | ac_ext=f |
| 18618 | |
| 18619 | # Object file extension for compiled f77 test sources. |
| 18620 | objext=o |
| 18621 | objext_F77=$objext |
| 18622 | |
| 18623 | # Code to be used in simple compile tests |
| 18624 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 18625 | |
| 18626 | # Code to be used in simple link tests |
| 18627 | lt_simple_link_test_code=" program t\n end\n" |
| 18628 | |
| 18629 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18630 | |
| 18631 | # If no C compiler was specified, use CC. |
| 18632 | LTCC=${LTCC-"$CC"} |
| 18633 | |
| 18634 | # Allow CC to be a program name with arguments. |
| 18635 | compiler=$CC |
| 18636 | |
| 18637 | |
| 18638 | # Allow CC to be a program name with arguments. |
| 18639 | lt_save_CC="$CC" |
| 18640 | CC=${F77-"f77"} |
| 18641 | compiler=$CC |
| 18642 | compiler_F77=$CC |
| 18643 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 18644 | |
| 18645 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 18646 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 18647 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 18648 | echo "${ECHO_T}$can_build_shared" >&6 |
| 18649 | |
| 18650 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 18651 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 18652 | test "$can_build_shared" = "no" && enable_shared=no |
| 18653 | |
| 18654 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 18655 | # are all built from PIC. |
| 18656 | case "$host_os" in |
| 18657 | aix3*) |
| 18658 | test "$enable_shared" = yes && enable_static=no |
| 18659 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18660 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18661 | postinstall_cmds='$RANLIB $lib' |
| 18662 | fi |
| 18663 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18664 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18665 | test "$enable_shared" = yes && enable_static=no |
| 18666 | ;; |
| 18667 | esac |
| 18668 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 18669 | echo "${ECHO_T}$enable_shared" >&6 |
| 18670 | |
| 18671 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 18672 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 18673 | # Make sure either enable_shared or enable_static is yes. |
| 18674 | test "$enable_shared" = yes || enable_static=yes |
| 18675 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 18676 | echo "${ECHO_T}$enable_static" >&6 |
| 18677 | |
| 18678 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 18679 | |
| 18680 | GCC_F77="$G77" |
| 18681 | LD_F77="$LD" |
| 18682 | |
| 18683 | lt_prog_compiler_wl_F77= |
| 18684 | lt_prog_compiler_pic_F77= |
| 18685 | lt_prog_compiler_static_F77= |
| 18686 | |
| 18687 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 18688 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 18689 | |
| 18690 | if test "$GCC" = yes; then |
| 18691 | lt_prog_compiler_wl_F77='-Wl,' |
| 18692 | lt_prog_compiler_static_F77='-static' |
| 18693 | |
| 18694 | case $host_os in |
| 18695 | aix*) |
| 18696 | # All AIX code is PIC. |
| 18697 | if test "$host_cpu" = ia64; then |
| 18698 | # AIX 5 now supports IA64 processor |
| 18699 | lt_prog_compiler_static_F77='-Bstatic' |
| 18700 | fi |
| 18701 | ;; |
| 18702 | |
| 18703 | amigaos*) |
| 18704 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 18705 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 18706 | # like `-m68040'. |
| 18707 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 18708 | ;; |
| 18709 | |
| 18710 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 18711 | # PIC is the default for these OSes. |
| 18712 | ;; |
| 18713 | |
| 18714 | mingw* | pw32* | os2*) |
| 18715 | # This hack is so that the source file can tell whether it is being |
| 18716 | # built for inclusion in a dll (and should export symbols for example). |
| 18717 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 18718 | ;; |
| 18719 | |
| 18720 | darwin* | rhapsody*) |
| 18721 | # PIC is the default on this platform |
| 18722 | # Common symbols not allowed in MH_DYLIB files |
| 18723 | lt_prog_compiler_pic_F77='-fno-common' |
| 18724 | ;; |
| 18725 | |
| 18726 | msdosdjgpp*) |
| 18727 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 18728 | # on systems that don't support them. |
| 18729 | lt_prog_compiler_can_build_shared_F77=no |
| 18730 | enable_shared=no |
| 18731 | ;; |
| 18732 | |
| 18733 | sysv4*MP*) |
| 18734 | if test -d /usr/nec; then |
| 18735 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 18736 | fi |
| 18737 | ;; |
| 18738 | |
| 18739 | hpux*) |
| 18740 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 18741 | # not for PA HP-UX. |
| 18742 | case "$host_cpu" in |
| 18743 | hppa*64*|ia64*) |
| 18744 | # +Z the default |
| 18745 | ;; |
| 18746 | *) |
| 18747 | lt_prog_compiler_pic_F77='-fPIC' |
| 18748 | ;; |
| 18749 | esac |
| 18750 | ;; |
| 18751 | |
| 18752 | *) |
| 18753 | lt_prog_compiler_pic_F77='-fPIC' |
| 18754 | ;; |
| 18755 | esac |
| 18756 | else |
| 18757 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 18758 | case $host_os in |
| 18759 | aix*) |
| 18760 | lt_prog_compiler_wl_F77='-Wl,' |
| 18761 | if test "$host_cpu" = ia64; then |
| 18762 | # AIX 5 now supports IA64 processor |
| 18763 | lt_prog_compiler_static_F77='-Bstatic' |
| 18764 | else |
| 18765 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 18766 | fi |
| 18767 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18768 | darwin*) |
| 18769 | # PIC is the default on this platform |
| 18770 | # Common symbols not allowed in MH_DYLIB files |
| 18771 | case "$cc_basename" in |
| 18772 | xlc*) |
| 18773 | lt_prog_compiler_pic_F77='-qnocommon' |
| 18774 | lt_prog_compiler_wl_F77='-Wl,' |
| 18775 | ;; |
| 18776 | esac |
| 18777 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18778 | |
| 18779 | mingw* | pw32* | os2*) |
| 18780 | # This hack is so that the source file can tell whether it is being |
| 18781 | # built for inclusion in a dll (and should export symbols for example). |
| 18782 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 18783 | ;; |
| 18784 | |
| 18785 | hpux9* | hpux10* | hpux11*) |
| 18786 | lt_prog_compiler_wl_F77='-Wl,' |
| 18787 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 18788 | # not for PA HP-UX. |
| 18789 | case "$host_cpu" in |
| 18790 | hppa*64*|ia64*) |
| 18791 | # +Z the default |
| 18792 | ;; |
| 18793 | *) |
| 18794 | lt_prog_compiler_pic_F77='+Z' |
| 18795 | ;; |
| 18796 | esac |
| 18797 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 18798 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 18799 | ;; |
| 18800 | |
| 18801 | irix5* | irix6* | nonstopux*) |
| 18802 | lt_prog_compiler_wl_F77='-Wl,' |
| 18803 | # PIC (with -KPIC) is the default. |
| 18804 | lt_prog_compiler_static_F77='-non_shared' |
| 18805 | ;; |
| 18806 | |
| 18807 | newsos6) |
| 18808 | lt_prog_compiler_pic_F77='-KPIC' |
| 18809 | lt_prog_compiler_static_F77='-Bstatic' |
| 18810 | ;; |
| 18811 | |
| 18812 | linux*) |
| 18813 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18814 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18815 | lt_prog_compiler_wl_F77='-Wl,' |
| 18816 | lt_prog_compiler_pic_F77='-KPIC' |
| 18817 | lt_prog_compiler_static_F77='-static' |
| 18818 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18819 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18820 | lt_prog_compiler_wl_F77='-Wl,' |
| 18821 | # All Alpha code is PIC. |
| 18822 | lt_prog_compiler_static_F77='-non_shared' |
| 18823 | ;; |
| 18824 | esac |
| 18825 | ;; |
| 18826 | |
| 18827 | osf3* | osf4* | osf5*) |
| 18828 | lt_prog_compiler_wl_F77='-Wl,' |
| 18829 | # All OSF/1 code is PIC. |
| 18830 | lt_prog_compiler_static_F77='-non_shared' |
| 18831 | ;; |
| 18832 | |
| 18833 | sco3.2v5*) |
| 18834 | lt_prog_compiler_pic_F77='-Kpic' |
| 18835 | lt_prog_compiler_static_F77='-dn' |
| 18836 | ;; |
| 18837 | |
| 18838 | solaris*) |
| 18839 | lt_prog_compiler_wl_F77='-Wl,' |
| 18840 | lt_prog_compiler_pic_F77='-KPIC' |
| 18841 | lt_prog_compiler_static_F77='-Bstatic' |
| 18842 | ;; |
| 18843 | |
| 18844 | sunos4*) |
| 18845 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 18846 | lt_prog_compiler_pic_F77='-PIC' |
| 18847 | lt_prog_compiler_static_F77='-Bstatic' |
| 18848 | ;; |
| 18849 | |
| 18850 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 18851 | lt_prog_compiler_wl_F77='-Wl,' |
| 18852 | lt_prog_compiler_pic_F77='-KPIC' |
| 18853 | lt_prog_compiler_static_F77='-Bstatic' |
| 18854 | ;; |
| 18855 | |
| 18856 | sysv4*MP*) |
| 18857 | if test -d /usr/nec ;then |
| 18858 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 18859 | lt_prog_compiler_static_F77='-Bstatic' |
| 18860 | fi |
| 18861 | ;; |
| 18862 | |
| 18863 | uts4*) |
| 18864 | lt_prog_compiler_pic_F77='-pic' |
| 18865 | lt_prog_compiler_static_F77='-Bstatic' |
| 18866 | ;; |
| 18867 | |
| 18868 | *) |
| 18869 | lt_prog_compiler_can_build_shared_F77=no |
| 18870 | ;; |
| 18871 | esac |
| 18872 | fi |
| 18873 | |
| 18874 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 18875 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 18876 | |
| 18877 | # |
| 18878 | # Check to make sure the PIC flag actually works. |
| 18879 | # |
| 18880 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18881 | |
| 18882 | 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] | 18883 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 18884 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 18885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18886 | else |
| 18887 | lt_prog_compiler_pic_works_F77=no |
| 18888 | ac_outfile=conftest.$ac_objext |
| 18889 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18890 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 18891 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18892 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18893 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18894 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18895 | # The option is referenced via a variable to avoid confusing sed. |
| 18896 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18897 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 18898 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18899 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 18900 | (eval echo "\"\$as_me:18900: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18901 | (eval "$lt_compile" 2>conftest.err) |
| 18902 | ac_status=$? |
| 18903 | cat conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 18904 | echo "$as_me:18904: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18905 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 18906 | # The compiler can only warn and ignore the option if not recognized |
| 18907 | # So say no if there are warnings |
| 18908 | if test ! -s conftest.err; then |
| 18909 | lt_prog_compiler_pic_works_F77=yes |
| 18910 | fi |
| 18911 | fi |
| 18912 | $rm conftest* |
| 18913 | |
| 18914 | fi |
| 18915 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 18916 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 18917 | |
| 18918 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 18919 | case $lt_prog_compiler_pic_F77 in |
| 18920 | "" | " "*) ;; |
| 18921 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 18922 | esac |
| 18923 | else |
| 18924 | lt_prog_compiler_pic_F77= |
| 18925 | lt_prog_compiler_can_build_shared_F77=no |
| 18926 | fi |
| 18927 | |
| 18928 | fi |
| 18929 | case "$host_os" in |
| 18930 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 18931 | *djgpp*) |
| 18932 | lt_prog_compiler_pic_F77= |
| 18933 | ;; |
| 18934 | *) |
| 18935 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 18936 | ;; |
| 18937 | esac |
| 18938 | |
| 18939 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18940 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 18941 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 18942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18943 | else |
| 18944 | lt_cv_prog_compiler_c_o_F77=no |
| 18945 | $rm -r conftest 2>/dev/null |
| 18946 | mkdir conftest |
| 18947 | cd conftest |
| 18948 | mkdir out |
| 18949 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18950 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18951 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18952 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18953 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18954 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18955 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18956 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18957 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 18958 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18959 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 18960 | (eval echo "\"\$as_me:18960: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18961 | (eval "$lt_compile" 2>out/conftest.err) |
| 18962 | ac_status=$? |
| 18963 | cat out/conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 18964 | echo "$as_me:18964: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18965 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18966 | then |
| 18967 | # The compiler can only warn and ignore the option if not recognized |
| 18968 | # So say no if there are warnings |
| 18969 | if test ! -s out/conftest.err; then |
| 18970 | lt_cv_prog_compiler_c_o_F77=yes |
| 18971 | fi |
| 18972 | fi |
| 18973 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18974 | $rm conftest* |
| 18975 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18976 | # template instantiation |
| 18977 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 18978 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18979 | cd .. |
| 18980 | rmdir conftest |
| 18981 | $rm conftest* |
| 18982 | |
| 18983 | fi |
| 18984 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 18985 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 18986 | |
| 18987 | |
| 18988 | hard_links="nottested" |
| 18989 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 18990 | # do not overwrite the value of need_locks provided by the user |
| 18991 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 18992 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 18993 | hard_links=yes |
| 18994 | $rm conftest* |
| 18995 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18996 | touch conftest.a |
| 18997 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 18998 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18999 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19000 | echo "${ECHO_T}$hard_links" >&6 |
| 19001 | if test "$hard_links" = no; then |
| 19002 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19003 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19004 | need_locks=warn |
| 19005 | fi |
| 19006 | else |
| 19007 | need_locks=no |
| 19008 | fi |
| 19009 | |
| 19010 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19011 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 19012 | |
| 19013 | runpath_var= |
| 19014 | allow_undefined_flag_F77= |
| 19015 | enable_shared_with_static_runtimes_F77=no |
| 19016 | archive_cmds_F77= |
| 19017 | archive_expsym_cmds_F77= |
| 19018 | old_archive_From_new_cmds_F77= |
| 19019 | old_archive_from_expsyms_cmds_F77= |
| 19020 | export_dynamic_flag_spec_F77= |
| 19021 | whole_archive_flag_spec_F77= |
| 19022 | thread_safe_flag_spec_F77= |
| 19023 | hardcode_libdir_flag_spec_F77= |
| 19024 | hardcode_libdir_flag_spec_ld_F77= |
| 19025 | hardcode_libdir_separator_F77= |
| 19026 | hardcode_direct_F77=no |
| 19027 | hardcode_minus_L_F77=no |
| 19028 | hardcode_shlibpath_var_F77=unsupported |
| 19029 | link_all_deplibs_F77=unknown |
| 19030 | hardcode_automatic_F77=no |
| 19031 | module_cmds_F77= |
| 19032 | module_expsym_cmds_F77= |
| 19033 | always_export_symbols_F77=no |
| 19034 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19035 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 19036 | # included in the symbol list |
| 19037 | include_expsyms_F77= |
| 19038 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 19039 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 19040 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 19041 | # as well as any symbol that contains `d'. |
| 19042 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 19043 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 19044 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 19045 | # the symbol is explicitly referenced. Since portable code cannot |
| 19046 | # rely on this symbol name, it's probably fine to never include it in |
| 19047 | # preloaded symbol tables. |
| 19048 | extract_expsyms_cmds= |
| 19049 | |
| 19050 | case $host_os in |
| 19051 | cygwin* | mingw* | pw32*) |
| 19052 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 19053 | # When not using gcc, we currently assume that we are using |
| 19054 | # Microsoft Visual C++. |
| 19055 | if test "$GCC" != yes; then |
| 19056 | with_gnu_ld=no |
| 19057 | fi |
| 19058 | ;; |
| 19059 | openbsd*) |
| 19060 | with_gnu_ld=no |
| 19061 | ;; |
| 19062 | esac |
| 19063 | |
| 19064 | ld_shlibs_F77=yes |
| 19065 | if test "$with_gnu_ld" = yes; then |
| 19066 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 19067 | wlarc='${wl}' |
| 19068 | |
| 19069 | # See if GNU ld supports shared libraries. |
| 19070 | case $host_os in |
| 19071 | aix3* | aix4* | aix5*) |
| 19072 | # On AIX/PPC, the GNU linker is very broken |
| 19073 | if test "$host_cpu" != ia64; then |
| 19074 | ld_shlibs_F77=no |
| 19075 | cat <<EOF 1>&2 |
| 19076 | |
| 19077 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 19078 | *** to be unable to reliably create shared libraries on AIX. |
| 19079 | *** Therefore, libtool is disabling shared libraries support. If you |
| 19080 | *** really care for shared libraries, you may want to modify your PATH |
| 19081 | *** so that a non-GNU linker is found, and then restart. |
| 19082 | |
| 19083 | EOF |
| 19084 | fi |
| 19085 | ;; |
| 19086 | |
| 19087 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19088 | 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] | 19089 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19090 | hardcode_minus_L_F77=yes |
| 19091 | |
| 19092 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 19093 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 19094 | # to version 4, is to share data among multiple programs linked |
| 19095 | # with the same dynamic library. Since this doesn't match the |
| 19096 | # behavior of shared libraries on other platforms, we can't use |
| 19097 | # them. |
| 19098 | ld_shlibs_F77=no |
| 19099 | ;; |
| 19100 | |
| 19101 | beos*) |
| 19102 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19103 | allow_undefined_flag_F77=unsupported |
| 19104 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 19105 | # support --undefined. This deserves some investigation. FIXME |
| 19106 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19107 | else |
| 19108 | ld_shlibs_F77=no |
| 19109 | fi |
| 19110 | ;; |
| 19111 | |
| 19112 | cygwin* | mingw* | pw32*) |
| 19113 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 19114 | # as there is no search path for DLLs. |
| 19115 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19116 | allow_undefined_flag_F77=unsupported |
| 19117 | always_export_symbols_F77=no |
| 19118 | enable_shared_with_static_runtimes_F77=yes |
| 19119 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 19120 | |
| 19121 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 19122 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 19123 | # If the export-symbols file already is a .def file (1st line |
| 19124 | # is EXPORTS), use it as is; otherwise, prepend... |
| 19125 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 19126 | cp $export_symbols $output_objdir/$soname.def; |
| 19127 | else |
| 19128 | echo EXPORTS > $output_objdir/$soname.def; |
| 19129 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19130 | fi~ |
| 19131 | $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] | 19132 | else |
| 19133 | ld_shlibs=no |
| 19134 | fi |
| 19135 | ;; |
| 19136 | |
| 19137 | netbsd*) |
| 19138 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19139 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 19140 | wlarc= |
| 19141 | else |
| 19142 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19143 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19144 | fi |
| 19145 | ;; |
| 19146 | |
| 19147 | solaris* | sysv5*) |
| 19148 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 19149 | ld_shlibs_F77=no |
| 19150 | cat <<EOF 1>&2 |
| 19151 | |
| 19152 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 19153 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 19154 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 19155 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 19156 | *** your PATH or compiler configuration so that the native linker is |
| 19157 | *** used, and then restart. |
| 19158 | |
| 19159 | EOF |
| 19160 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19161 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19162 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19163 | else |
| 19164 | ld_shlibs_F77=no |
| 19165 | fi |
| 19166 | ;; |
| 19167 | |
| 19168 | sunos4*) |
| 19169 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19170 | wlarc= |
| 19171 | hardcode_direct_F77=yes |
| 19172 | hardcode_shlibpath_var_F77=no |
| 19173 | ;; |
| 19174 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19175 | linux*) |
| 19176 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19177 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19178 | archive_cmds_F77="$tmp_archive_cmds" |
| 19179 | supports_anon_versioning=no |
| 19180 | case `$LD -v 2>/dev/null` in |
| 19181 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 19182 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 19183 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 19184 | *\ 2.11.*) ;; # other 2.11 versions |
| 19185 | *) supports_anon_versioning=yes ;; |
| 19186 | esac |
| 19187 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19188 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 19189 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 19190 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19191 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 19192 | else |
| 19193 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 19194 | fi |
| 19195 | else |
| 19196 | ld_shlibs_F77=no |
| 19197 | fi |
| 19198 | ;; |
| 19199 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19200 | *) |
| 19201 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19202 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19203 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19204 | else |
| 19205 | ld_shlibs_F77=no |
| 19206 | fi |
| 19207 | ;; |
| 19208 | esac |
| 19209 | |
| 19210 | if test "$ld_shlibs_F77" = yes; then |
| 19211 | runpath_var=LD_RUN_PATH |
| 19212 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 19213 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 19214 | # ancient GNU ld didn't support --whole-archive et. al. |
| 19215 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 19216 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19217 | else |
| 19218 | whole_archive_flag_spec_F77= |
| 19219 | fi |
| 19220 | fi |
| 19221 | else |
| 19222 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 19223 | case $host_os in |
| 19224 | aix3*) |
| 19225 | allow_undefined_flag_F77=unsupported |
| 19226 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19227 | 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] | 19228 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 19229 | # are no directories specified by -L. |
| 19230 | hardcode_minus_L_F77=yes |
| 19231 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 19232 | # Neither direct hardcoding nor static linking is supported with a |
| 19233 | # broken collect2. |
| 19234 | hardcode_direct_F77=unsupported |
| 19235 | fi |
| 19236 | ;; |
| 19237 | |
| 19238 | aix4* | aix5*) |
| 19239 | if test "$host_cpu" = ia64; then |
| 19240 | # On IA64, the linker does run time linking by default, so we don't |
| 19241 | # have to do anything special. |
| 19242 | aix_use_runtimelinking=no |
| 19243 | exp_sym_flag='-Bexport' |
| 19244 | no_entry_flag="" |
| 19245 | else |
| 19246 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19247 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19248 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19249 | 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' |
| 19250 | else |
| 19251 | 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' |
| 19252 | fi |
| 19253 | aix_use_runtimelinking=no |
| 19254 | |
| 19255 | # Test if we are trying to use run time linking or normal |
| 19256 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 19257 | # need to do runtime linking. |
| 19258 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 19259 | for ld_flag in $LDFLAGS; do |
| 19260 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 19261 | aix_use_runtimelinking=yes |
| 19262 | break |
| 19263 | fi |
| 19264 | done |
| 19265 | esac |
| 19266 | |
| 19267 | exp_sym_flag='-bexport' |
| 19268 | no_entry_flag='-bnoentry' |
| 19269 | fi |
| 19270 | |
| 19271 | # When large executables or shared objects are built, AIX ld can |
| 19272 | # have problems creating the table of contents. If linking a library |
| 19273 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 19274 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 19275 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 19276 | |
| 19277 | archive_cmds_F77='' |
| 19278 | hardcode_direct_F77=yes |
| 19279 | hardcode_libdir_separator_F77=':' |
| 19280 | link_all_deplibs_F77=yes |
| 19281 | |
| 19282 | if test "$GCC" = yes; then |
| 19283 | case $host_os in aix4.012|aix4.012.*) |
| 19284 | # We only want to do this on AIX 4.2 and lower, the check |
| 19285 | # below for broken collect2 doesn't work under 4.3+ |
| 19286 | collect2name=`${CC} -print-prog-name=collect2` |
| 19287 | if test -f "$collect2name" && \ |
| 19288 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 19289 | then |
| 19290 | # We have reworked collect2 |
| 19291 | hardcode_direct_F77=yes |
| 19292 | else |
| 19293 | # We have old collect2 |
| 19294 | hardcode_direct_F77=unsupported |
| 19295 | # It fails to find uninstalled libraries when the uninstalled |
| 19296 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 19297 | # to unsupported forces relinking |
| 19298 | hardcode_minus_L_F77=yes |
| 19299 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19300 | hardcode_libdir_separator_F77= |
| 19301 | fi |
| 19302 | esac |
| 19303 | shared_flag='-shared' |
| 19304 | else |
| 19305 | # not using gcc |
| 19306 | if test "$host_cpu" = ia64; then |
| 19307 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 19308 | # chokes on -Wl,-G. The following line is correct: |
| 19309 | shared_flag='-G' |
| 19310 | else |
| 19311 | if test "$aix_use_runtimelinking" = yes; then |
| 19312 | shared_flag='${wl}-G' |
| 19313 | else |
| 19314 | shared_flag='${wl}-bM:SRE' |
| 19315 | fi |
| 19316 | fi |
| 19317 | fi |
| 19318 | |
| 19319 | # It seems that -bexpall does not export symbols beginning with |
| 19320 | # underscore (_), so it is better to generate a list of symbols to export. |
| 19321 | always_export_symbols_F77=yes |
| 19322 | if test "$aix_use_runtimelinking" = yes; then |
| 19323 | # Warning - without using the other runtime loading flags (-brtl), |
| 19324 | # -berok will link without error, but may produce a broken library. |
| 19325 | allow_undefined_flag_F77='-berok' |
| 19326 | # Determine the default libpath from the value encoded in an empty executable. |
| 19327 | cat >conftest.$ac_ext <<_ACEOF |
| 19328 | program main |
| 19329 | |
| 19330 | end |
| 19331 | _ACEOF |
| 19332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19334 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19335 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19337 | rm -f conftest.er1 |
| 19338 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19340 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19341 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19342 | || test ! -s conftest.err' |
| 19343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19344 | (eval $ac_try) 2>&5 |
| 19345 | ac_status=$? |
| 19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19347 | (exit $ac_status); }; } && |
| 19348 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19350 | (eval $ac_try) 2>&5 |
| 19351 | ac_status=$? |
| 19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19353 | (exit $ac_status); }; }; then |
| 19354 | |
| 19355 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19356 | }'` |
| 19357 | # Check for a 64-bit object if we didn't find anything. |
| 19358 | 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; } |
| 19359 | }'`; fi |
| 19360 | else |
| 19361 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19363 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19364 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19365 | rm -f conftest.err conftest.$ac_objext \ |
| 19366 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19367 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19368 | |
| 19369 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19370 | 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" |
| 19371 | else |
| 19372 | if test "$host_cpu" = ia64; then |
| 19373 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 19374 | allow_undefined_flag_F77="-z nodefs" |
| 19375 | 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" |
| 19376 | else |
| 19377 | # Determine the default libpath from the value encoded in an empty executable. |
| 19378 | cat >conftest.$ac_ext <<_ACEOF |
| 19379 | program main |
| 19380 | |
| 19381 | end |
| 19382 | _ACEOF |
| 19383 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19385 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19386 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19388 | rm -f conftest.er1 |
| 19389 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19391 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19392 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19393 | || test ! -s conftest.err' |
| 19394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19395 | (eval $ac_try) 2>&5 |
| 19396 | ac_status=$? |
| 19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19398 | (exit $ac_status); }; } && |
| 19399 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19401 | (eval $ac_try) 2>&5 |
| 19402 | ac_status=$? |
| 19403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19404 | (exit $ac_status); }; }; then |
| 19405 | |
| 19406 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19407 | }'` |
| 19408 | # Check for a 64-bit object if we didn't find anything. |
| 19409 | 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; } |
| 19410 | }'`; fi |
| 19411 | else |
| 19412 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19414 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19415 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19416 | rm -f conftest.err conftest.$ac_objext \ |
| 19417 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19418 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19419 | |
| 19420 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19421 | # Warning - without using the other run time loading flags, |
| 19422 | # -berok will link without error, but may produce a broken library. |
| 19423 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 19424 | allow_undefined_flag_F77=' ${wl}-berok' |
| 19425 | # -bexpall does not export symbols beginning with underscore (_) |
| 19426 | always_export_symbols_F77=yes |
| 19427 | # Exported symbols can be pulled into shared objects from archives |
| 19428 | whole_archive_flag_spec_F77=' ' |
| 19429 | archive_cmds_need_lc_F77=yes |
| 19430 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19431 | 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] | 19432 | fi |
| 19433 | fi |
| 19434 | ;; |
| 19435 | |
| 19436 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19437 | 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] | 19438 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19439 | hardcode_minus_L_F77=yes |
| 19440 | # see comment about different semantics on the GNU ld section |
| 19441 | ld_shlibs_F77=no |
| 19442 | ;; |
| 19443 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19444 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19445 | export_dynamic_flag_spec_F77=-rdynamic |
| 19446 | ;; |
| 19447 | |
| 19448 | cygwin* | mingw* | pw32*) |
| 19449 | # When not using gcc, we currently assume that we are using |
| 19450 | # Microsoft Visual C++. |
| 19451 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 19452 | # no search path for DLLs. |
| 19453 | hardcode_libdir_flag_spec_F77=' ' |
| 19454 | allow_undefined_flag_F77=unsupported |
| 19455 | # Tell ltmain to make .lib files, not .a files. |
| 19456 | libext=lib |
| 19457 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19458 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19459 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19460 | 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] | 19461 | # The linker will automatically build a .lib file if we build a DLL. |
| 19462 | old_archive_From_new_cmds_F77='true' |
| 19463 | # FIXME: Should let the user specify the lib program. |
| 19464 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 19465 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 19466 | enable_shared_with_static_runtimes_F77=yes |
| 19467 | ;; |
| 19468 | |
| 19469 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19470 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19471 | rhapsody* | darwin1.[012]) |
| 19472 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 19473 | ;; |
| 19474 | *) # Darwin 1.3 on |
| 19475 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 19476 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19477 | else |
| 19478 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 19479 | 10.[012]) |
| 19480 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19481 | ;; |
| 19482 | 10.*) |
| 19483 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 19484 | ;; |
| 19485 | esac |
| 19486 | fi |
| 19487 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19488 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19489 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19490 | hardcode_direct_F77=no |
| 19491 | hardcode_automatic_F77=yes |
| 19492 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19493 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19494 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19495 | if test "$GCC" = yes ; then |
| 19496 | output_verbose_link_cmd='echo' |
| 19497 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 19498 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 19499 | # 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] | 19500 | 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}' |
| 19501 | 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] | 19502 | else |
| 19503 | case "$cc_basename" in |
| 19504 | xlc*) |
| 19505 | output_verbose_link_cmd='echo' |
| 19506 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 19507 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 19508 | # 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] | 19509 | 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}' |
| 19510 | 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] | 19511 | ;; |
| 19512 | *) |
| 19513 | ld_shlibs_F77=no |
| 19514 | ;; |
| 19515 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19516 | fi |
| 19517 | ;; |
| 19518 | |
| 19519 | dgux*) |
| 19520 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19521 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19522 | hardcode_shlibpath_var_F77=no |
| 19523 | ;; |
| 19524 | |
| 19525 | freebsd1*) |
| 19526 | ld_shlibs_F77=no |
| 19527 | ;; |
| 19528 | |
| 19529 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 19530 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 19531 | # does not break anything, and helps significantly (at the cost of a little |
| 19532 | # extra space). |
| 19533 | freebsd2.2*) |
| 19534 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 19535 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19536 | hardcode_direct_F77=yes |
| 19537 | hardcode_shlibpath_var_F77=no |
| 19538 | ;; |
| 19539 | |
| 19540 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 19541 | freebsd2*) |
| 19542 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19543 | hardcode_direct_F77=yes |
| 19544 | hardcode_minus_L_F77=yes |
| 19545 | hardcode_shlibpath_var_F77=no |
| 19546 | ;; |
| 19547 | |
| 19548 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19549 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19550 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 19551 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19552 | hardcode_direct_F77=yes |
| 19553 | hardcode_shlibpath_var_F77=no |
| 19554 | ;; |
| 19555 | |
| 19556 | hpux9*) |
| 19557 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19558 | 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] | 19559 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19560 | 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] | 19561 | fi |
| 19562 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19563 | hardcode_libdir_separator_F77=: |
| 19564 | hardcode_direct_F77=yes |
| 19565 | |
| 19566 | # hardcode_minus_L: Not really in the search PATH, |
| 19567 | # but as the default location of the library. |
| 19568 | hardcode_minus_L_F77=yes |
| 19569 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19570 | ;; |
| 19571 | |
| 19572 | hpux10* | hpux11*) |
| 19573 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 19574 | case "$host_cpu" in |
| 19575 | hppa*64*|ia64*) |
| 19576 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19577 | ;; |
| 19578 | *) |
| 19579 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 19580 | ;; |
| 19581 | esac |
| 19582 | else |
| 19583 | case "$host_cpu" in |
| 19584 | hppa*64*|ia64*) |
| 19585 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19586 | ;; |
| 19587 | *) |
| 19588 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 19589 | ;; |
| 19590 | esac |
| 19591 | fi |
| 19592 | if test "$with_gnu_ld" = no; then |
| 19593 | case "$host_cpu" in |
| 19594 | hppa*64*) |
| 19595 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19596 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 19597 | hardcode_libdir_separator_F77=: |
| 19598 | hardcode_direct_F77=no |
| 19599 | hardcode_shlibpath_var_F77=no |
| 19600 | ;; |
| 19601 | ia64*) |
| 19602 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19603 | hardcode_direct_F77=no |
| 19604 | hardcode_shlibpath_var_F77=no |
| 19605 | |
| 19606 | # hardcode_minus_L: Not really in the search PATH, |
| 19607 | # but as the default location of the library. |
| 19608 | hardcode_minus_L_F77=yes |
| 19609 | ;; |
| 19610 | *) |
| 19611 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19612 | hardcode_libdir_separator_F77=: |
| 19613 | hardcode_direct_F77=yes |
| 19614 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19615 | |
| 19616 | # hardcode_minus_L: Not really in the search PATH, |
| 19617 | # but as the default location of the library. |
| 19618 | hardcode_minus_L_F77=yes |
| 19619 | ;; |
| 19620 | esac |
| 19621 | fi |
| 19622 | ;; |
| 19623 | |
| 19624 | irix5* | irix6* | nonstopux*) |
| 19625 | if test "$GCC" = yes; then |
| 19626 | 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' |
| 19627 | else |
| 19628 | 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' |
| 19629 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 19630 | fi |
| 19631 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19632 | hardcode_libdir_separator_F77=: |
| 19633 | link_all_deplibs_F77=yes |
| 19634 | ;; |
| 19635 | |
| 19636 | netbsd*) |
| 19637 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19638 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 19639 | else |
| 19640 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 19641 | fi |
| 19642 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19643 | hardcode_direct_F77=yes |
| 19644 | hardcode_shlibpath_var_F77=no |
| 19645 | ;; |
| 19646 | |
| 19647 | newsos6) |
| 19648 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19649 | hardcode_direct_F77=yes |
| 19650 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19651 | hardcode_libdir_separator_F77=: |
| 19652 | hardcode_shlibpath_var_F77=no |
| 19653 | ;; |
| 19654 | |
| 19655 | openbsd*) |
| 19656 | hardcode_direct_F77=yes |
| 19657 | hardcode_shlibpath_var_F77=no |
| 19658 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19659 | 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] | 19660 | 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] | 19661 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 19662 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19663 | else |
| 19664 | case $host_os in |
| 19665 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 19666 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19667 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19668 | ;; |
| 19669 | *) |
| 19670 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 19671 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 19672 | ;; |
| 19673 | esac |
| 19674 | fi |
| 19675 | ;; |
| 19676 | |
| 19677 | os2*) |
| 19678 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19679 | hardcode_minus_L_F77=yes |
| 19680 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19681 | 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] | 19682 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 19683 | ;; |
| 19684 | |
| 19685 | osf3*) |
| 19686 | if test "$GCC" = yes; then |
| 19687 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 19688 | 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' |
| 19689 | else |
| 19690 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 19691 | 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' |
| 19692 | fi |
| 19693 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19694 | hardcode_libdir_separator_F77=: |
| 19695 | ;; |
| 19696 | |
| 19697 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 19698 | if test "$GCC" = yes; then |
| 19699 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 19700 | 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' |
| 19701 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19702 | else |
| 19703 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 19704 | 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] | 19705 | 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~ |
| 19706 | $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' |
| 19707 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19708 | # Both c and cxx compiler support -rpath directly |
| 19709 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 19710 | fi |
| 19711 | hardcode_libdir_separator_F77=: |
| 19712 | ;; |
| 19713 | |
| 19714 | sco3.2v5*) |
| 19715 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19716 | hardcode_shlibpath_var_F77=no |
| 19717 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 19718 | runpath_var=LD_RUN_PATH |
| 19719 | hardcode_runpath_var=yes |
| 19720 | ;; |
| 19721 | |
| 19722 | solaris*) |
| 19723 | no_undefined_flag_F77=' -z text' |
| 19724 | if test "$GCC" = yes; then |
| 19725 | 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] | 19726 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19727 | $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] | 19728 | else |
| 19729 | 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] | 19730 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19731 | $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] | 19732 | fi |
| 19733 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19734 | hardcode_shlibpath_var_F77=no |
| 19735 | case $host_os in |
| 19736 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 19737 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 19738 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 19739 | esac |
| 19740 | link_all_deplibs_F77=yes |
| 19741 | ;; |
| 19742 | |
| 19743 | sunos4*) |
| 19744 | if test "x$host_vendor" = xsequent; then |
| 19745 | # Use $CC to link under sequent, because it throws in some extra .o |
| 19746 | # files that make .init and .fini sections work. |
| 19747 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19748 | else |
| 19749 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 19750 | fi |
| 19751 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19752 | hardcode_direct_F77=yes |
| 19753 | hardcode_minus_L_F77=yes |
| 19754 | hardcode_shlibpath_var_F77=no |
| 19755 | ;; |
| 19756 | |
| 19757 | sysv4) |
| 19758 | case $host_vendor in |
| 19759 | sni) |
| 19760 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19761 | hardcode_direct_F77=yes # is this really true??? |
| 19762 | ;; |
| 19763 | siemens) |
| 19764 | ## LD is ld it makes a PLAMLIB |
| 19765 | ## CC just makes a GrossModule. |
| 19766 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 19767 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 19768 | hardcode_direct_F77=no |
| 19769 | ;; |
| 19770 | motorola) |
| 19771 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19772 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 19773 | ;; |
| 19774 | esac |
| 19775 | runpath_var='LD_RUN_PATH' |
| 19776 | hardcode_shlibpath_var_F77=no |
| 19777 | ;; |
| 19778 | |
| 19779 | sysv4.3*) |
| 19780 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19781 | hardcode_shlibpath_var_F77=no |
| 19782 | export_dynamic_flag_spec_F77='-Bexport' |
| 19783 | ;; |
| 19784 | |
| 19785 | sysv4*MP*) |
| 19786 | if test -d /usr/nec; then |
| 19787 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19788 | hardcode_shlibpath_var_F77=no |
| 19789 | runpath_var=LD_RUN_PATH |
| 19790 | hardcode_runpath_var=yes |
| 19791 | ld_shlibs_F77=yes |
| 19792 | fi |
| 19793 | ;; |
| 19794 | |
| 19795 | sysv4.2uw2*) |
| 19796 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 19797 | hardcode_direct_F77=yes |
| 19798 | hardcode_minus_L_F77=no |
| 19799 | hardcode_shlibpath_var_F77=no |
| 19800 | hardcode_runpath_var=yes |
| 19801 | runpath_var=LD_RUN_PATH |
| 19802 | ;; |
| 19803 | |
| 19804 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 19805 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 19806 | if test "$GCC" = yes; then |
| 19807 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19808 | else |
| 19809 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19810 | fi |
| 19811 | runpath_var='LD_RUN_PATH' |
| 19812 | hardcode_shlibpath_var_F77=no |
| 19813 | ;; |
| 19814 | |
| 19815 | sysv5*) |
| 19816 | no_undefined_flag_F77=' -z text' |
| 19817 | # $CC -shared without GNU ld will not create a library from C++ |
| 19818 | # object files and a static libstdc++, better avoid it by now |
| 19819 | 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] | 19820 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19821 | $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] | 19822 | hardcode_libdir_flag_spec_F77= |
| 19823 | hardcode_shlibpath_var_F77=no |
| 19824 | runpath_var='LD_RUN_PATH' |
| 19825 | ;; |
| 19826 | |
| 19827 | uts4*) |
| 19828 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19829 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19830 | hardcode_shlibpath_var_F77=no |
| 19831 | ;; |
| 19832 | |
| 19833 | *) |
| 19834 | ld_shlibs_F77=no |
| 19835 | ;; |
| 19836 | esac |
| 19837 | fi |
| 19838 | |
| 19839 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 19840 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 19841 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 19842 | |
| 19843 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 19844 | if test "$GCC" = yes; then |
| 19845 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 19846 | fi |
| 19847 | |
| 19848 | # |
| 19849 | # Do we need to explicitly link libc? |
| 19850 | # |
| 19851 | case "x$archive_cmds_need_lc_F77" in |
| 19852 | x|xyes) |
| 19853 | # Assume -lc should be added |
| 19854 | archive_cmds_need_lc_F77=yes |
| 19855 | |
| 19856 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19857 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19858 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19859 | # FIXME: we may have to deal with multi-command sequences. |
| 19860 | ;; |
| 19861 | '$CC '*) |
| 19862 | # Test whether the compiler implicitly links with -lc since on some |
| 19863 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19864 | # to ld, don't add -lc before -lgcc. |
| 19865 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19866 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 19867 | $rm conftest* |
| 19868 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19869 | |
| 19870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19871 | (eval $ac_compile) 2>&5 |
| 19872 | ac_status=$? |
| 19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19874 | (exit $ac_status); } 2>conftest.err; then |
| 19875 | soname=conftest |
| 19876 | lib=conftest |
| 19877 | libobjs=conftest.$ac_objext |
| 19878 | deplibs= |
| 19879 | wl=$lt_prog_compiler_wl_F77 |
| 19880 | compiler_flags=-v |
| 19881 | linker_flags=-v |
| 19882 | verstring= |
| 19883 | output_objdir=. |
| 19884 | libname=conftest |
| 19885 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 19886 | allow_undefined_flag_F77= |
| 19887 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19888 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19889 | ac_status=$? |
| 19890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19891 | (exit $ac_status); } |
| 19892 | then |
| 19893 | archive_cmds_need_lc_F77=no |
| 19894 | else |
| 19895 | archive_cmds_need_lc_F77=yes |
| 19896 | fi |
| 19897 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 19898 | else |
| 19899 | cat conftest.err 1>&5 |
| 19900 | fi |
| 19901 | $rm conftest* |
| 19902 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 19903 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 19904 | ;; |
| 19905 | esac |
| 19906 | fi |
| 19907 | ;; |
| 19908 | esac |
| 19909 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19910 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19911 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 19912 | library_names_spec= |
| 19913 | libname_spec='lib$name' |
| 19914 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19915 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19916 | postinstall_cmds= |
| 19917 | postuninstall_cmds= |
| 19918 | finish_cmds= |
| 19919 | finish_eval= |
| 19920 | shlibpath_var= |
| 19921 | shlibpath_overrides_runpath=unknown |
| 19922 | version_type=none |
| 19923 | dynamic_linker="$host_os ld.so" |
| 19924 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19925 | if test "$GCC" = yes; then |
| 19926 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19927 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19928 | # if the path contains ";" then we assume it to be the separator |
| 19929 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19930 | # assumed that no part of a normal pathname contains ";" but that should |
| 19931 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19932 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19933 | else |
| 19934 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19935 | fi |
| 19936 | else |
| 19937 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19938 | fi |
| 19939 | need_lib_prefix=unknown |
| 19940 | hardcode_into_libs=no |
| 19941 | |
| 19942 | # when you set need_version to no, make sure it does not cause -set_version |
| 19943 | # flags to be left without arguments |
| 19944 | need_version=unknown |
| 19945 | |
| 19946 | case $host_os in |
| 19947 | aix3*) |
| 19948 | version_type=linux |
| 19949 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19950 | shlibpath_var=LIBPATH |
| 19951 | |
| 19952 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19953 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19954 | ;; |
| 19955 | |
| 19956 | aix4* | aix5*) |
| 19957 | version_type=linux |
| 19958 | need_lib_prefix=no |
| 19959 | need_version=no |
| 19960 | hardcode_into_libs=yes |
| 19961 | if test "$host_cpu" = ia64; then |
| 19962 | # AIX 5 supports IA64 |
| 19963 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19964 | shlibpath_var=LD_LIBRARY_PATH |
| 19965 | else |
| 19966 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19967 | # for dependence libraries. The import file would start with |
| 19968 | # the line `#! .'. This would cause the generated library to |
| 19969 | # depend on `.', always an invalid library. This was fixed in |
| 19970 | # development snapshots of GCC prior to 3.0. |
| 19971 | case $host_os in |
| 19972 | aix4 | aix4.[01] | aix4.[01].*) |
| 19973 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19974 | echo ' yes ' |
| 19975 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19976 | : |
| 19977 | else |
| 19978 | can_build_shared=no |
| 19979 | fi |
| 19980 | ;; |
| 19981 | esac |
| 19982 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19983 | # soname into executable. Probably we can add versioning support to |
| 19984 | # collect2, so additional links can be useful in future. |
| 19985 | if test "$aix_use_runtimelinking" = yes; then |
| 19986 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19987 | # instead of lib<name>.a to let people know that these are not |
| 19988 | # typical AIX shared libraries. |
| 19989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19990 | else |
| 19991 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19992 | # and later when we are not doing run time linking. |
| 19993 | library_names_spec='${libname}${release}.a $libname.a' |
| 19994 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19995 | fi |
| 19996 | shlibpath_var=LIBPATH |
| 19997 | fi |
| 19998 | ;; |
| 19999 | |
| 20000 | amigaos*) |
| 20001 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20002 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20003 | 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] | 20004 | ;; |
| 20005 | |
| 20006 | beos*) |
| 20007 | library_names_spec='${libname}${shared_ext}' |
| 20008 | dynamic_linker="$host_os ld.so" |
| 20009 | shlibpath_var=LIBRARY_PATH |
| 20010 | ;; |
| 20011 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20012 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20013 | version_type=linux |
| 20014 | need_version=no |
| 20015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20016 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20017 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20018 | shlibpath_var=LD_LIBRARY_PATH |
| 20019 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20020 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20021 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20022 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20023 | # libtool to hard-code these into programs |
| 20024 | ;; |
| 20025 | |
| 20026 | cygwin* | mingw* | pw32*) |
| 20027 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20028 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20029 | need_version=no |
| 20030 | need_lib_prefix=no |
| 20031 | |
| 20032 | case $GCC,$host_os in |
| 20033 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20034 | library_names_spec='$libname.dll.a' |
| 20035 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20036 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20037 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20038 | dldir=$destdir/`dirname \$dlpath`~ |
| 20039 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20040 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20041 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20042 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20043 | $rm \$dlpath' |
| 20044 | shlibpath_overrides_runpath=yes |
| 20045 | |
| 20046 | case $host_os in |
| 20047 | cygwin*) |
| 20048 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20049 | 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] | 20050 | 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] | 20051 | ;; |
| 20052 | mingw*) |
| 20053 | # MinGW DLLs use traditional 'lib' prefix |
| 20054 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20055 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20056 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20057 | # It is most probably a Windows format PATH printed by |
| 20058 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20059 | # path with ; separators, and with drive letters. We can handle the |
| 20060 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20061 | # especially as we might pass files found there to a mingw objdump, |
| 20062 | # which wouldn't understand a cygwinified path. Ahh. |
| 20063 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20064 | else |
| 20065 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20066 | fi |
| 20067 | ;; |
| 20068 | pw32*) |
| 20069 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 20070 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 20071 | ;; |
| 20072 | esac |
| 20073 | ;; |
| 20074 | |
| 20075 | *) |
| 20076 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20077 | ;; |
| 20078 | esac |
| 20079 | dynamic_linker='Win32 ld.exe' |
| 20080 | # FIXME: first we should search . and the directory the executable is in |
| 20081 | shlibpath_var=PATH |
| 20082 | ;; |
| 20083 | |
| 20084 | darwin* | rhapsody*) |
| 20085 | dynamic_linker="$host_os dyld" |
| 20086 | version_type=darwin |
| 20087 | need_lib_prefix=no |
| 20088 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20089 | 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] | 20090 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20091 | shlibpath_overrides_runpath=yes |
| 20092 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20093 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20094 | # 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] | 20095 | if test "$GCC" = yes; then |
| 20096 | 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"` |
| 20097 | else |
| 20098 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20099 | fi |
| 20100 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20101 | ;; |
| 20102 | |
| 20103 | dgux*) |
| 20104 | version_type=linux |
| 20105 | need_lib_prefix=no |
| 20106 | need_version=no |
| 20107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20108 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20109 | shlibpath_var=LD_LIBRARY_PATH |
| 20110 | ;; |
| 20111 | |
| 20112 | freebsd1*) |
| 20113 | dynamic_linker=no |
| 20114 | ;; |
| 20115 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20116 | kfreebsd*-gnu) |
| 20117 | version_type=linux |
| 20118 | need_lib_prefix=no |
| 20119 | need_version=no |
| 20120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20121 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20122 | shlibpath_var=LD_LIBRARY_PATH |
| 20123 | shlibpath_overrides_runpath=no |
| 20124 | hardcode_into_libs=yes |
| 20125 | dynamic_linker='GNU ld.so' |
| 20126 | ;; |
| 20127 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20128 | freebsd*) |
| 20129 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 20130 | version_type=freebsd-$objformat |
| 20131 | case $version_type in |
| 20132 | freebsd-elf*) |
| 20133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20134 | need_version=no |
| 20135 | need_lib_prefix=no |
| 20136 | ;; |
| 20137 | freebsd-*) |
| 20138 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20139 | need_version=yes |
| 20140 | ;; |
| 20141 | esac |
| 20142 | shlibpath_var=LD_LIBRARY_PATH |
| 20143 | case $host_os in |
| 20144 | freebsd2*) |
| 20145 | shlibpath_overrides_runpath=yes |
| 20146 | ;; |
| 20147 | freebsd3.01* | freebsdelf3.01*) |
| 20148 | shlibpath_overrides_runpath=yes |
| 20149 | hardcode_into_libs=yes |
| 20150 | ;; |
| 20151 | *) # from 3.2 on |
| 20152 | shlibpath_overrides_runpath=no |
| 20153 | hardcode_into_libs=yes |
| 20154 | ;; |
| 20155 | esac |
| 20156 | ;; |
| 20157 | |
| 20158 | gnu*) |
| 20159 | version_type=linux |
| 20160 | need_lib_prefix=no |
| 20161 | need_version=no |
| 20162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20163 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20164 | shlibpath_var=LD_LIBRARY_PATH |
| 20165 | hardcode_into_libs=yes |
| 20166 | ;; |
| 20167 | |
| 20168 | hpux9* | hpux10* | hpux11*) |
| 20169 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20170 | # link against other versions. |
| 20171 | version_type=sunos |
| 20172 | need_lib_prefix=no |
| 20173 | need_version=no |
| 20174 | case "$host_cpu" in |
| 20175 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20176 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20177 | hardcode_into_libs=yes |
| 20178 | dynamic_linker="$host_os dld.so" |
| 20179 | shlibpath_var=LD_LIBRARY_PATH |
| 20180 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20183 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20184 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20185 | else |
| 20186 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20187 | fi |
| 20188 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20189 | ;; |
| 20190 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20191 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20192 | hardcode_into_libs=yes |
| 20193 | dynamic_linker="$host_os dld.sl" |
| 20194 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20195 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20198 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20199 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20200 | ;; |
| 20201 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20202 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20203 | dynamic_linker="$host_os dld.sl" |
| 20204 | shlibpath_var=SHLIB_PATH |
| 20205 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20207 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20208 | ;; |
| 20209 | esac |
| 20210 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20211 | postinstall_cmds='chmod 555 $lib' |
| 20212 | ;; |
| 20213 | |
| 20214 | irix5* | irix6* | nonstopux*) |
| 20215 | case $host_os in |
| 20216 | nonstopux*) version_type=nonstopux ;; |
| 20217 | *) |
| 20218 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20219 | version_type=linux |
| 20220 | else |
| 20221 | version_type=irix |
| 20222 | fi ;; |
| 20223 | esac |
| 20224 | need_lib_prefix=no |
| 20225 | need_version=no |
| 20226 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20228 | case $host_os in |
| 20229 | irix5* | nonstopux*) |
| 20230 | libsuff= shlibsuff= |
| 20231 | ;; |
| 20232 | *) |
| 20233 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20234 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20235 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20236 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20237 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20238 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20239 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20240 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20241 | esac |
| 20242 | ;; |
| 20243 | esac |
| 20244 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20245 | shlibpath_overrides_runpath=no |
| 20246 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20247 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20248 | hardcode_into_libs=yes |
| 20249 | ;; |
| 20250 | |
| 20251 | # No shared lib support for Linux oldld, aout, or coff. |
| 20252 | linux*oldld* | linux*aout* | linux*coff*) |
| 20253 | dynamic_linker=no |
| 20254 | ;; |
| 20255 | |
| 20256 | # This must be Linux ELF. |
| 20257 | linux*) |
| 20258 | version_type=linux |
| 20259 | need_lib_prefix=no |
| 20260 | need_version=no |
| 20261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20262 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20263 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20264 | shlibpath_var=LD_LIBRARY_PATH |
| 20265 | shlibpath_overrides_runpath=no |
| 20266 | # This implies no fast_install, which is unacceptable. |
| 20267 | # Some rework will be needed to allow for fast_install |
| 20268 | # before this can be enabled. |
| 20269 | hardcode_into_libs=yes |
| 20270 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20271 | # Append ld.so.conf contents to the search path |
| 20272 | if test -f /etc/ld.so.conf; then |
| 20273 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 20274 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20275 | fi |
| 20276 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20277 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20278 | # powerpc, because MkLinux only supported shared libraries with the |
| 20279 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20280 | # most powerpc-linux boxes support dynamic linking these days and |
| 20281 | # people can always --disable-shared, the test was removed, and we |
| 20282 | # assume the GNU/Linux dynamic linker is in use. |
| 20283 | dynamic_linker='GNU/Linux ld.so' |
| 20284 | ;; |
| 20285 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20286 | knetbsd*-gnu) |
| 20287 | version_type=linux |
| 20288 | need_lib_prefix=no |
| 20289 | need_version=no |
| 20290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20291 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20292 | shlibpath_var=LD_LIBRARY_PATH |
| 20293 | shlibpath_overrides_runpath=no |
| 20294 | hardcode_into_libs=yes |
| 20295 | dynamic_linker='GNU ld.so' |
| 20296 | ;; |
| 20297 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20298 | netbsd*) |
| 20299 | version_type=sunos |
| 20300 | need_lib_prefix=no |
| 20301 | need_version=no |
| 20302 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20304 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20305 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20306 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20307 | 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] | 20308 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20309 | dynamic_linker='NetBSD ld.elf_so' |
| 20310 | fi |
| 20311 | shlibpath_var=LD_LIBRARY_PATH |
| 20312 | shlibpath_overrides_runpath=yes |
| 20313 | hardcode_into_libs=yes |
| 20314 | ;; |
| 20315 | |
| 20316 | newsos6) |
| 20317 | version_type=linux |
| 20318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20319 | shlibpath_var=LD_LIBRARY_PATH |
| 20320 | shlibpath_overrides_runpath=yes |
| 20321 | ;; |
| 20322 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20323 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20324 | version_type=linux |
| 20325 | need_lib_prefix=no |
| 20326 | need_version=no |
| 20327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20328 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20329 | shlibpath_var=LD_LIBRARY_PATH |
| 20330 | shlibpath_overrides_runpath=yes |
| 20331 | ;; |
| 20332 | |
| 20333 | openbsd*) |
| 20334 | version_type=sunos |
| 20335 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20336 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20338 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20339 | shlibpath_var=LD_LIBRARY_PATH |
| 20340 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20341 | case $host_os in |
| 20342 | openbsd2.[89] | openbsd2.[89].*) |
| 20343 | shlibpath_overrides_runpath=no |
| 20344 | ;; |
| 20345 | *) |
| 20346 | shlibpath_overrides_runpath=yes |
| 20347 | ;; |
| 20348 | esac |
| 20349 | else |
| 20350 | shlibpath_overrides_runpath=yes |
| 20351 | fi |
| 20352 | ;; |
| 20353 | |
| 20354 | os2*) |
| 20355 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20356 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20357 | need_lib_prefix=no |
| 20358 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20359 | dynamic_linker='OS/2 ld.exe' |
| 20360 | shlibpath_var=LIBPATH |
| 20361 | ;; |
| 20362 | |
| 20363 | osf3* | osf4* | osf5*) |
| 20364 | version_type=osf |
| 20365 | need_lib_prefix=no |
| 20366 | need_version=no |
| 20367 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20369 | shlibpath_var=LD_LIBRARY_PATH |
| 20370 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20371 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20372 | ;; |
| 20373 | |
| 20374 | sco3.2v5*) |
| 20375 | version_type=osf |
| 20376 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20378 | shlibpath_var=LD_LIBRARY_PATH |
| 20379 | ;; |
| 20380 | |
| 20381 | solaris*) |
| 20382 | version_type=linux |
| 20383 | need_lib_prefix=no |
| 20384 | need_version=no |
| 20385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20386 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20387 | shlibpath_var=LD_LIBRARY_PATH |
| 20388 | shlibpath_overrides_runpath=yes |
| 20389 | hardcode_into_libs=yes |
| 20390 | # ldd complains unless libraries are executable |
| 20391 | postinstall_cmds='chmod +x $lib' |
| 20392 | ;; |
| 20393 | |
| 20394 | sunos4*) |
| 20395 | version_type=sunos |
| 20396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20397 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20398 | shlibpath_var=LD_LIBRARY_PATH |
| 20399 | shlibpath_overrides_runpath=yes |
| 20400 | if test "$with_gnu_ld" = yes; then |
| 20401 | need_lib_prefix=no |
| 20402 | fi |
| 20403 | need_version=yes |
| 20404 | ;; |
| 20405 | |
| 20406 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 20407 | version_type=linux |
| 20408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20409 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20410 | shlibpath_var=LD_LIBRARY_PATH |
| 20411 | case $host_vendor in |
| 20412 | sni) |
| 20413 | shlibpath_overrides_runpath=no |
| 20414 | need_lib_prefix=no |
| 20415 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20416 | runpath_var=LD_RUN_PATH |
| 20417 | ;; |
| 20418 | siemens) |
| 20419 | need_lib_prefix=no |
| 20420 | ;; |
| 20421 | motorola) |
| 20422 | need_lib_prefix=no |
| 20423 | need_version=no |
| 20424 | shlibpath_overrides_runpath=no |
| 20425 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20426 | ;; |
| 20427 | esac |
| 20428 | ;; |
| 20429 | |
| 20430 | sysv4*MP*) |
| 20431 | if test -d /usr/nec ;then |
| 20432 | version_type=linux |
| 20433 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20434 | soname_spec='$libname${shared_ext}.$major' |
| 20435 | shlibpath_var=LD_LIBRARY_PATH |
| 20436 | fi |
| 20437 | ;; |
| 20438 | |
| 20439 | uts4*) |
| 20440 | version_type=linux |
| 20441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20442 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20443 | shlibpath_var=LD_LIBRARY_PATH |
| 20444 | ;; |
| 20445 | |
| 20446 | *) |
| 20447 | dynamic_linker=no |
| 20448 | ;; |
| 20449 | esac |
| 20450 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20451 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 20452 | test "$dynamic_linker" = no && can_build_shared=no |
| 20453 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20454 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20455 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 20456 | hardcode_action_F77= |
| 20457 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 20458 | test -n "$runpath_var_F77" || \ |
| 20459 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 20460 | |
| 20461 | # We can hardcode non-existant directories. |
| 20462 | if test "$hardcode_direct_F77" != no && |
| 20463 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20464 | # have to relink, otherwise we might link with an installed library |
| 20465 | # when we should be linking with a yet-to-be-installed one |
| 20466 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 20467 | test "$hardcode_minus_L_F77" != no; then |
| 20468 | # Linking always hardcodes the temporary library directory. |
| 20469 | hardcode_action_F77=relink |
| 20470 | else |
| 20471 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20472 | hardcode_action_F77=immediate |
| 20473 | fi |
| 20474 | else |
| 20475 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20476 | # directories. |
| 20477 | hardcode_action_F77=unsupported |
| 20478 | fi |
| 20479 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 20480 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 20481 | |
| 20482 | if test "$hardcode_action_F77" = relink; then |
| 20483 | # Fast installation is not supported |
| 20484 | enable_fast_install=no |
| 20485 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20486 | test "$enable_shared" = no; then |
| 20487 | # Fast installation is not necessary |
| 20488 | enable_fast_install=needless |
| 20489 | fi |
| 20490 | |
| 20491 | striplib= |
| 20492 | old_striplib= |
| 20493 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 20494 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 20495 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 20496 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 20497 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 20498 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20499 | echo "${ECHO_T}yes" >&6 |
| 20500 | else |
| 20501 | # FIXME - insert some real tests, host_os isn't really good enough |
| 20502 | case $host_os in |
| 20503 | darwin*) |
| 20504 | if test -n "$STRIP" ; then |
| 20505 | striplib="$STRIP -x" |
| 20506 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20507 | echo "${ECHO_T}yes" >&6 |
| 20508 | else |
| 20509 | echo "$as_me:$LINENO: result: no" >&5 |
| 20510 | echo "${ECHO_T}no" >&6 |
| 20511 | fi |
| 20512 | ;; |
| 20513 | *) |
| 20514 | echo "$as_me:$LINENO: result: no" >&5 |
| 20515 | echo "${ECHO_T}no" >&6 |
| 20516 | ;; |
| 20517 | esac |
| 20518 | fi |
| 20519 | |
| 20520 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20521 | |
| 20522 | # The else clause should only fire when bootstrapping the |
| 20523 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20524 | # with your package, and you will get complaints that there are |
| 20525 | # no rules to generate ltmain.sh. |
| 20526 | if test -f "$ltmain"; then |
| 20527 | # See if we are running on zsh, and set the options which allow our commands through |
| 20528 | # without removal of \ escapes. |
| 20529 | if test -n "${ZSH_VERSION+set}" ; then |
| 20530 | setopt NO_GLOB_SUBST |
| 20531 | fi |
| 20532 | # Now quote all the things that may contain metacharacters while being |
| 20533 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20534 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20535 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 20536 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20537 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20538 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20539 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20540 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20541 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20542 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20543 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20544 | compiler_F77 \ |
| 20545 | CC_F77 \ |
| 20546 | LD_F77 \ |
| 20547 | lt_prog_compiler_wl_F77 \ |
| 20548 | lt_prog_compiler_pic_F77 \ |
| 20549 | lt_prog_compiler_static_F77 \ |
| 20550 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 20551 | export_dynamic_flag_spec_F77 \ |
| 20552 | thread_safe_flag_spec_F77 \ |
| 20553 | whole_archive_flag_spec_F77 \ |
| 20554 | enable_shared_with_static_runtimes_F77 \ |
| 20555 | old_archive_cmds_F77 \ |
| 20556 | old_archive_from_new_cmds_F77 \ |
| 20557 | predep_objects_F77 \ |
| 20558 | postdep_objects_F77 \ |
| 20559 | predeps_F77 \ |
| 20560 | postdeps_F77 \ |
| 20561 | compiler_lib_search_path_F77 \ |
| 20562 | archive_cmds_F77 \ |
| 20563 | archive_expsym_cmds_F77 \ |
| 20564 | postinstall_cmds_F77 \ |
| 20565 | postuninstall_cmds_F77 \ |
| 20566 | old_archive_from_expsyms_cmds_F77 \ |
| 20567 | allow_undefined_flag_F77 \ |
| 20568 | no_undefined_flag_F77 \ |
| 20569 | export_symbols_cmds_F77 \ |
| 20570 | hardcode_libdir_flag_spec_F77 \ |
| 20571 | hardcode_libdir_flag_spec_ld_F77 \ |
| 20572 | hardcode_libdir_separator_F77 \ |
| 20573 | hardcode_automatic_F77 \ |
| 20574 | module_cmds_F77 \ |
| 20575 | module_expsym_cmds_F77 \ |
| 20576 | lt_cv_prog_compiler_c_o_F77 \ |
| 20577 | exclude_expsyms_F77 \ |
| 20578 | include_expsyms_F77; do |
| 20579 | |
| 20580 | case $var in |
| 20581 | old_archive_cmds_F77 | \ |
| 20582 | old_archive_from_new_cmds_F77 | \ |
| 20583 | archive_cmds_F77 | \ |
| 20584 | archive_expsym_cmds_F77 | \ |
| 20585 | module_cmds_F77 | \ |
| 20586 | module_expsym_cmds_F77 | \ |
| 20587 | old_archive_from_expsyms_cmds_F77 | \ |
| 20588 | export_symbols_cmds_F77 | \ |
| 20589 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20590 | postinstall_cmds | postuninstall_cmds | \ |
| 20591 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20592 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20593 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20594 | 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] | 20595 | ;; |
| 20596 | *) |
| 20597 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20598 | ;; |
| 20599 | esac |
| 20600 | done |
| 20601 | |
| 20602 | case $lt_echo in |
| 20603 | *'\$0 --fallback-echo"') |
| 20604 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20605 | ;; |
| 20606 | esac |
| 20607 | |
| 20608 | cfgfile="$ofile" |
| 20609 | |
| 20610 | cat <<__EOF__ >> "$cfgfile" |
| 20611 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20612 | |
| 20613 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20614 | |
| 20615 | # Shell to use when invoking shell scripts. |
| 20616 | SHELL=$lt_SHELL |
| 20617 | |
| 20618 | # Whether or not to build shared libraries. |
| 20619 | build_libtool_libs=$enable_shared |
| 20620 | |
| 20621 | # Whether or not to build static libraries. |
| 20622 | build_old_libs=$enable_static |
| 20623 | |
| 20624 | # Whether or not to add -lc for building shared libraries. |
| 20625 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 20626 | |
| 20627 | # Whether or not to disallow shared libs when runtime libs are static |
| 20628 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 20629 | |
| 20630 | # Whether or not to optimize for fast installation. |
| 20631 | fast_install=$enable_fast_install |
| 20632 | |
| 20633 | # The host system. |
| 20634 | host_alias=$host_alias |
| 20635 | host=$host |
| 20636 | |
| 20637 | # An echo program that does not interpret backslashes. |
| 20638 | echo=$lt_echo |
| 20639 | |
| 20640 | # The archiver. |
| 20641 | AR=$lt_AR |
| 20642 | AR_FLAGS=$lt_AR_FLAGS |
| 20643 | |
| 20644 | # A C compiler. |
| 20645 | LTCC=$lt_LTCC |
| 20646 | |
| 20647 | # A language-specific compiler. |
| 20648 | CC=$lt_compiler_F77 |
| 20649 | |
| 20650 | # Is the compiler the GNU C compiler? |
| 20651 | with_gcc=$GCC_F77 |
| 20652 | |
| 20653 | # An ERE matcher. |
| 20654 | EGREP=$lt_EGREP |
| 20655 | |
| 20656 | # The linker used to build libraries. |
| 20657 | LD=$lt_LD_F77 |
| 20658 | |
| 20659 | # Whether we need hard or soft links. |
| 20660 | LN_S=$lt_LN_S |
| 20661 | |
| 20662 | # A BSD-compatible nm program. |
| 20663 | NM=$lt_NM |
| 20664 | |
| 20665 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20666 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20667 | |
| 20668 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20669 | MAGIC_CMD=$MAGIC_CMD |
| 20670 | |
| 20671 | # Used on cygwin: DLL creation program. |
| 20672 | DLLTOOL="$DLLTOOL" |
| 20673 | |
| 20674 | # Used on cygwin: object dumper. |
| 20675 | OBJDUMP="$OBJDUMP" |
| 20676 | |
| 20677 | # Used on cygwin: assembler. |
| 20678 | AS="$AS" |
| 20679 | |
| 20680 | # The name of the directory that contains temporary libtool files. |
| 20681 | objdir=$objdir |
| 20682 | |
| 20683 | # How to create reloadable object files. |
| 20684 | reload_flag=$lt_reload_flag |
| 20685 | reload_cmds=$lt_reload_cmds |
| 20686 | |
| 20687 | # How to pass a linker flag through the compiler. |
| 20688 | wl=$lt_lt_prog_compiler_wl_F77 |
| 20689 | |
| 20690 | # Object file suffix (normally "o"). |
| 20691 | objext="$ac_objext" |
| 20692 | |
| 20693 | # Old archive suffix (normally "a"). |
| 20694 | libext="$libext" |
| 20695 | |
| 20696 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20697 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20698 | |
| 20699 | # Executable file suffix (normally ""). |
| 20700 | exeext="$exeext" |
| 20701 | |
| 20702 | # Additional compiler flags for building library objects. |
| 20703 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 20704 | pic_mode=$pic_mode |
| 20705 | |
| 20706 | # What is the maximum length of a command? |
| 20707 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20708 | |
| 20709 | # Does compiler simultaneously support -c and -o options? |
| 20710 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 20711 | |
| 20712 | # Must we lock files when doing compilation ? |
| 20713 | need_locks=$lt_need_locks |
| 20714 | |
| 20715 | # Do we need the lib prefix for modules? |
| 20716 | need_lib_prefix=$need_lib_prefix |
| 20717 | |
| 20718 | # Do we need a version for libraries? |
| 20719 | need_version=$need_version |
| 20720 | |
| 20721 | # Whether dlopen is supported. |
| 20722 | dlopen_support=$enable_dlopen |
| 20723 | |
| 20724 | # Whether dlopen of programs is supported. |
| 20725 | dlopen_self=$enable_dlopen_self |
| 20726 | |
| 20727 | # Whether dlopen of statically linked programs is supported. |
| 20728 | dlopen_self_static=$enable_dlopen_self_static |
| 20729 | |
| 20730 | # Compiler flag to prevent dynamic linking. |
| 20731 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 20732 | |
| 20733 | # Compiler flag to turn off builtin functions. |
| 20734 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 20735 | |
| 20736 | # Compiler flag to allow reflexive dlopens. |
| 20737 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 20738 | |
| 20739 | # Compiler flag to generate shared objects directly from archives. |
| 20740 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 20741 | |
| 20742 | # Compiler flag to generate thread-safe objects. |
| 20743 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 20744 | |
| 20745 | # Library versioning type. |
| 20746 | version_type=$version_type |
| 20747 | |
| 20748 | # Format of library name prefix. |
| 20749 | libname_spec=$lt_libname_spec |
| 20750 | |
| 20751 | # List of archive names. First name is the real one, the rest are links. |
| 20752 | # The last name is the one that the linker finds with -lNAME. |
| 20753 | library_names_spec=$lt_library_names_spec |
| 20754 | |
| 20755 | # The coded name of the library, if different from the real name. |
| 20756 | soname_spec=$lt_soname_spec |
| 20757 | |
| 20758 | # Commands used to build and install an old-style archive. |
| 20759 | RANLIB=$lt_RANLIB |
| 20760 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 20761 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20762 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20763 | |
| 20764 | # Create an old-style archive from a shared archive. |
| 20765 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 20766 | |
| 20767 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20768 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 20769 | |
| 20770 | # Commands used to build and install a shared archive. |
| 20771 | archive_cmds=$lt_archive_cmds_F77 |
| 20772 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 20773 | postinstall_cmds=$lt_postinstall_cmds |
| 20774 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20775 | |
| 20776 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20777 | module_cmds=$lt_module_cmds_F77 |
| 20778 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 20779 | |
| 20780 | # Commands to strip libraries. |
| 20781 | old_striplib=$lt_old_striplib |
| 20782 | striplib=$lt_striplib |
| 20783 | |
| 20784 | # Dependencies to place before the objects being linked to create a |
| 20785 | # shared library. |
| 20786 | predep_objects=$lt_predep_objects_F77 |
| 20787 | |
| 20788 | # Dependencies to place after the objects being linked to create a |
| 20789 | # shared library. |
| 20790 | postdep_objects=$lt_postdep_objects_F77 |
| 20791 | |
| 20792 | # Dependencies to place before the objects being linked to create a |
| 20793 | # shared library. |
| 20794 | predeps=$lt_predeps_F77 |
| 20795 | |
| 20796 | # Dependencies to place after the objects being linked to create a |
| 20797 | # shared library. |
| 20798 | postdeps=$lt_postdeps_F77 |
| 20799 | |
| 20800 | # The library search path used internally by the compiler when linking |
| 20801 | # a shared library. |
| 20802 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 20803 | |
| 20804 | # Method to check whether dependent libraries are shared objects. |
| 20805 | deplibs_check_method=$lt_deplibs_check_method |
| 20806 | |
| 20807 | # Command to use when deplibs_check_method == file_magic. |
| 20808 | file_magic_cmd=$lt_file_magic_cmd |
| 20809 | |
| 20810 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20811 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 20812 | |
| 20813 | # Flag that forces no undefined symbols. |
| 20814 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 20815 | |
| 20816 | # Commands used to finish a libtool library installation in a directory. |
| 20817 | finish_cmds=$lt_finish_cmds |
| 20818 | |
| 20819 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20820 | finish_eval=$lt_finish_eval |
| 20821 | |
| 20822 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20823 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20824 | |
| 20825 | # Transform the output of nm in a proper C declaration |
| 20826 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20827 | |
| 20828 | # Transform the output of nm in a C name address pair |
| 20829 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20830 | |
| 20831 | # This is the shared library runtime path variable. |
| 20832 | runpath_var=$runpath_var |
| 20833 | |
| 20834 | # This is the shared library path variable. |
| 20835 | shlibpath_var=$shlibpath_var |
| 20836 | |
| 20837 | # Is shlibpath searched before the hard-coded library search path? |
| 20838 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20839 | |
| 20840 | # How to hardcode a shared library path into an executable. |
| 20841 | hardcode_action=$hardcode_action_F77 |
| 20842 | |
| 20843 | # Whether we should hardcode library paths into libraries. |
| 20844 | hardcode_into_libs=$hardcode_into_libs |
| 20845 | |
| 20846 | # Flag to hardcode \$libdir into a binary during linking. |
| 20847 | # This must work even if \$libdir does not exist. |
| 20848 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 20849 | |
| 20850 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20851 | # a binary during linking. This must work even if \$libdir does |
| 20852 | # not exist. |
| 20853 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 20854 | |
| 20855 | # Whether we need a single -rpath flag with a separated argument. |
| 20856 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 20857 | |
| 20858 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20859 | # resulting binary. |
| 20860 | hardcode_direct=$hardcode_direct_F77 |
| 20861 | |
| 20862 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20863 | # resulting binary. |
| 20864 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 20865 | |
| 20866 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20867 | # the resulting binary. |
| 20868 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 20869 | |
| 20870 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20871 | # and all subsequent libraries and executables linked against it. |
| 20872 | hardcode_automatic=$hardcode_automatic_F77 |
| 20873 | |
| 20874 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20875 | # restored at relink time. |
| 20876 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20877 | |
| 20878 | # Whether libtool must link a program against all its dependency libraries. |
| 20879 | link_all_deplibs=$link_all_deplibs_F77 |
| 20880 | |
| 20881 | # Compile-time system search path for libraries |
| 20882 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20883 | |
| 20884 | # Run-time system search path for libraries |
| 20885 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20886 | |
| 20887 | # Fix the shell variable \$srcfile for the compiler. |
| 20888 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 20889 | |
| 20890 | # Set to yes if exported symbols are required. |
| 20891 | always_export_symbols=$always_export_symbols_F77 |
| 20892 | |
| 20893 | # The commands to list exported symbols. |
| 20894 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 20895 | |
| 20896 | # The commands to extract the exported symbol list from a shared archive. |
| 20897 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20898 | |
| 20899 | # Symbols that should not be listed in the preloaded symbols. |
| 20900 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 20901 | |
| 20902 | # Symbols that must always be exported. |
| 20903 | include_expsyms=$lt_include_expsyms_F77 |
| 20904 | |
| 20905 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20906 | |
| 20907 | __EOF__ |
| 20908 | |
| 20909 | |
| 20910 | else |
| 20911 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20912 | # `config.status --recheck' to rerun these tests and create the |
| 20913 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20914 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20915 | if test -f "$ltmain_in"; then |
| 20916 | test -f Makefile && make "$ltmain" |
| 20917 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20918 | fi |
| 20919 | |
| 20920 | |
| 20921 | ac_ext=c |
| 20922 | ac_cpp='$CPP $CPPFLAGS' |
| 20923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20926 | |
| 20927 | CC="$lt_save_CC" |
| 20928 | |
| 20929 | else |
| 20930 | tagname="" |
| 20931 | fi |
| 20932 | ;; |
| 20933 | |
| 20934 | GCJ) |
| 20935 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20936 | ac_ext=c |
| 20937 | ac_cpp='$CPP $CPPFLAGS' |
| 20938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20941 | |
| 20942 | |
| 20943 | # Source file extension for Java test sources. |
| 20944 | ac_ext=java |
| 20945 | |
| 20946 | # Object file extension for compiled Java test sources. |
| 20947 | objext=o |
| 20948 | objext_GCJ=$objext |
| 20949 | |
| 20950 | # Code to be used in simple compile tests |
| 20951 | lt_simple_compile_test_code="class foo {}\n" |
| 20952 | |
| 20953 | # Code to be used in simple link tests |
| 20954 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 20955 | |
| 20956 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20957 | |
| 20958 | # If no C compiler was specified, use CC. |
| 20959 | LTCC=${LTCC-"$CC"} |
| 20960 | |
| 20961 | # Allow CC to be a program name with arguments. |
| 20962 | compiler=$CC |
| 20963 | |
| 20964 | |
| 20965 | # Allow CC to be a program name with arguments. |
| 20966 | lt_save_CC="$CC" |
| 20967 | CC=${GCJ-"gcj"} |
| 20968 | compiler=$CC |
| 20969 | compiler_GCJ=$CC |
| 20970 | |
| 20971 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 20972 | archive_cmds_need_lc_GCJ=no |
| 20973 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20974 | |
| 20975 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 20976 | |
| 20977 | if test "$GCC" = yes; then |
| 20978 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 20979 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20980 | |
| 20981 | 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] | 20982 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 20983 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 20984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20985 | else |
| 20986 | lt_cv_prog_compiler_rtti_exceptions=no |
| 20987 | ac_outfile=conftest.$ac_objext |
| 20988 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20989 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 20990 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20991 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20992 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20993 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20994 | # The option is referenced via a variable to avoid confusing sed. |
| 20995 | lt_compile=`echo "$ac_compile" | $SED \ |
| 20996 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 20997 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20998 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 20999 | (eval echo "\"\$as_me:20999: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21000 | (eval "$lt_compile" 2>conftest.err) |
| 21001 | ac_status=$? |
| 21002 | cat conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 21003 | echo "$as_me:21003: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21004 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21005 | # The compiler can only warn and ignore the option if not recognized |
| 21006 | # So say no if there are warnings |
| 21007 | if test ! -s conftest.err; then |
| 21008 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 21009 | fi |
| 21010 | fi |
| 21011 | $rm conftest* |
| 21012 | |
| 21013 | fi |
| 21014 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 21015 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 21016 | |
| 21017 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 21018 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 21019 | else |
| 21020 | : |
| 21021 | fi |
| 21022 | |
| 21023 | fi |
| 21024 | |
| 21025 | lt_prog_compiler_wl_GCJ= |
| 21026 | lt_prog_compiler_pic_GCJ= |
| 21027 | lt_prog_compiler_static_GCJ= |
| 21028 | |
| 21029 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21030 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 21031 | |
| 21032 | if test "$GCC" = yes; then |
| 21033 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21034 | lt_prog_compiler_static_GCJ='-static' |
| 21035 | |
| 21036 | case $host_os in |
| 21037 | aix*) |
| 21038 | # All AIX code is PIC. |
| 21039 | if test "$host_cpu" = ia64; then |
| 21040 | # AIX 5 now supports IA64 processor |
| 21041 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21042 | fi |
| 21043 | ;; |
| 21044 | |
| 21045 | amigaos*) |
| 21046 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21047 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21048 | # like `-m68040'. |
| 21049 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 21050 | ;; |
| 21051 | |
| 21052 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21053 | # PIC is the default for these OSes. |
| 21054 | ;; |
| 21055 | |
| 21056 | mingw* | pw32* | os2*) |
| 21057 | # This hack is so that the source file can tell whether it is being |
| 21058 | # built for inclusion in a dll (and should export symbols for example). |
| 21059 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21060 | ;; |
| 21061 | |
| 21062 | darwin* | rhapsody*) |
| 21063 | # PIC is the default on this platform |
| 21064 | # Common symbols not allowed in MH_DYLIB files |
| 21065 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 21066 | ;; |
| 21067 | |
| 21068 | msdosdjgpp*) |
| 21069 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21070 | # on systems that don't support them. |
| 21071 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21072 | enable_shared=no |
| 21073 | ;; |
| 21074 | |
| 21075 | sysv4*MP*) |
| 21076 | if test -d /usr/nec; then |
| 21077 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 21078 | fi |
| 21079 | ;; |
| 21080 | |
| 21081 | hpux*) |
| 21082 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21083 | # not for PA HP-UX. |
| 21084 | case "$host_cpu" in |
| 21085 | hppa*64*|ia64*) |
| 21086 | # +Z the default |
| 21087 | ;; |
| 21088 | *) |
| 21089 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21090 | ;; |
| 21091 | esac |
| 21092 | ;; |
| 21093 | |
| 21094 | *) |
| 21095 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21096 | ;; |
| 21097 | esac |
| 21098 | else |
| 21099 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21100 | case $host_os in |
| 21101 | aix*) |
| 21102 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21103 | if test "$host_cpu" = ia64; then |
| 21104 | # AIX 5 now supports IA64 processor |
| 21105 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21106 | else |
| 21107 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 21108 | fi |
| 21109 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21110 | darwin*) |
| 21111 | # PIC is the default on this platform |
| 21112 | # Common symbols not allowed in MH_DYLIB files |
| 21113 | case "$cc_basename" in |
| 21114 | xlc*) |
| 21115 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 21116 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21117 | ;; |
| 21118 | esac |
| 21119 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21120 | |
| 21121 | mingw* | pw32* | os2*) |
| 21122 | # This hack is so that the source file can tell whether it is being |
| 21123 | # built for inclusion in a dll (and should export symbols for example). |
| 21124 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21125 | ;; |
| 21126 | |
| 21127 | hpux9* | hpux10* | hpux11*) |
| 21128 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21129 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21130 | # not for PA HP-UX. |
| 21131 | case "$host_cpu" in |
| 21132 | hppa*64*|ia64*) |
| 21133 | # +Z the default |
| 21134 | ;; |
| 21135 | *) |
| 21136 | lt_prog_compiler_pic_GCJ='+Z' |
| 21137 | ;; |
| 21138 | esac |
| 21139 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21140 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 21141 | ;; |
| 21142 | |
| 21143 | irix5* | irix6* | nonstopux*) |
| 21144 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21145 | # PIC (with -KPIC) is the default. |
| 21146 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21147 | ;; |
| 21148 | |
| 21149 | newsos6) |
| 21150 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21151 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21152 | ;; |
| 21153 | |
| 21154 | linux*) |
| 21155 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21156 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21157 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21158 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21159 | lt_prog_compiler_static_GCJ='-static' |
| 21160 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21161 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21162 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21163 | # All Alpha code is PIC. |
| 21164 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21165 | ;; |
| 21166 | esac |
| 21167 | ;; |
| 21168 | |
| 21169 | osf3* | osf4* | osf5*) |
| 21170 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21171 | # All OSF/1 code is PIC. |
| 21172 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21173 | ;; |
| 21174 | |
| 21175 | sco3.2v5*) |
| 21176 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 21177 | lt_prog_compiler_static_GCJ='-dn' |
| 21178 | ;; |
| 21179 | |
| 21180 | solaris*) |
| 21181 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21182 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21183 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21184 | ;; |
| 21185 | |
| 21186 | sunos4*) |
| 21187 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 21188 | lt_prog_compiler_pic_GCJ='-PIC' |
| 21189 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21190 | ;; |
| 21191 | |
| 21192 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 21193 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21194 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21195 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21196 | ;; |
| 21197 | |
| 21198 | sysv4*MP*) |
| 21199 | if test -d /usr/nec ;then |
| 21200 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 21201 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21202 | fi |
| 21203 | ;; |
| 21204 | |
| 21205 | uts4*) |
| 21206 | lt_prog_compiler_pic_GCJ='-pic' |
| 21207 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21208 | ;; |
| 21209 | |
| 21210 | *) |
| 21211 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21212 | ;; |
| 21213 | esac |
| 21214 | fi |
| 21215 | |
| 21216 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 21217 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 21218 | |
| 21219 | # |
| 21220 | # Check to make sure the PIC flag actually works. |
| 21221 | # |
| 21222 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21223 | |
| 21224 | 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] | 21225 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 21226 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 21227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21228 | else |
| 21229 | lt_prog_compiler_pic_works_GCJ=no |
| 21230 | ac_outfile=conftest.$ac_objext |
| 21231 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21232 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 21233 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21234 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21235 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21236 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21237 | # The option is referenced via a variable to avoid confusing sed. |
| 21238 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21239 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21240 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21241 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 21242 | (eval echo "\"\$as_me:21242: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21243 | (eval "$lt_compile" 2>conftest.err) |
| 21244 | ac_status=$? |
| 21245 | cat conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 21246 | echo "$as_me:21246: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21247 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21248 | # The compiler can only warn and ignore the option if not recognized |
| 21249 | # So say no if there are warnings |
| 21250 | if test ! -s conftest.err; then |
| 21251 | lt_prog_compiler_pic_works_GCJ=yes |
| 21252 | fi |
| 21253 | fi |
| 21254 | $rm conftest* |
| 21255 | |
| 21256 | fi |
| 21257 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 21258 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 21259 | |
| 21260 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 21261 | case $lt_prog_compiler_pic_GCJ in |
| 21262 | "" | " "*) ;; |
| 21263 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 21264 | esac |
| 21265 | else |
| 21266 | lt_prog_compiler_pic_GCJ= |
| 21267 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21268 | fi |
| 21269 | |
| 21270 | fi |
| 21271 | case "$host_os" in |
| 21272 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21273 | *djgpp*) |
| 21274 | lt_prog_compiler_pic_GCJ= |
| 21275 | ;; |
| 21276 | *) |
| 21277 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 21278 | ;; |
| 21279 | esac |
| 21280 | |
| 21281 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21282 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 21283 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 21284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21285 | else |
| 21286 | lt_cv_prog_compiler_c_o_GCJ=no |
| 21287 | $rm -r conftest 2>/dev/null |
| 21288 | mkdir conftest |
| 21289 | cd conftest |
| 21290 | mkdir out |
| 21291 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21292 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21293 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21294 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21295 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21296 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21297 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21298 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21299 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21300 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21301 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 21302 | (eval echo "\"\$as_me:21302: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21303 | (eval "$lt_compile" 2>out/conftest.err) |
| 21304 | ac_status=$? |
| 21305 | cat out/conftest.err >&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 21306 | echo "$as_me:21306: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21307 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21308 | then |
| 21309 | # The compiler can only warn and ignore the option if not recognized |
| 21310 | # So say no if there are warnings |
| 21311 | if test ! -s out/conftest.err; then |
| 21312 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 21313 | fi |
| 21314 | fi |
| 21315 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21316 | $rm conftest* |
| 21317 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21318 | # template instantiation |
| 21319 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21320 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21321 | cd .. |
| 21322 | rmdir conftest |
| 21323 | $rm conftest* |
| 21324 | |
| 21325 | fi |
| 21326 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 21327 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 21328 | |
| 21329 | |
| 21330 | hard_links="nottested" |
| 21331 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 21332 | # do not overwrite the value of need_locks provided by the user |
| 21333 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21334 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 21335 | hard_links=yes |
| 21336 | $rm conftest* |
| 21337 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21338 | touch conftest.a |
| 21339 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21340 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21341 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21342 | echo "${ECHO_T}$hard_links" >&6 |
| 21343 | if test "$hard_links" = no; then |
| 21344 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21345 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21346 | need_locks=warn |
| 21347 | fi |
| 21348 | else |
| 21349 | need_locks=no |
| 21350 | fi |
| 21351 | |
| 21352 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21353 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 21354 | |
| 21355 | runpath_var= |
| 21356 | allow_undefined_flag_GCJ= |
| 21357 | enable_shared_with_static_runtimes_GCJ=no |
| 21358 | archive_cmds_GCJ= |
| 21359 | archive_expsym_cmds_GCJ= |
| 21360 | old_archive_From_new_cmds_GCJ= |
| 21361 | old_archive_from_expsyms_cmds_GCJ= |
| 21362 | export_dynamic_flag_spec_GCJ= |
| 21363 | whole_archive_flag_spec_GCJ= |
| 21364 | thread_safe_flag_spec_GCJ= |
| 21365 | hardcode_libdir_flag_spec_GCJ= |
| 21366 | hardcode_libdir_flag_spec_ld_GCJ= |
| 21367 | hardcode_libdir_separator_GCJ= |
| 21368 | hardcode_direct_GCJ=no |
| 21369 | hardcode_minus_L_GCJ=no |
| 21370 | hardcode_shlibpath_var_GCJ=unsupported |
| 21371 | link_all_deplibs_GCJ=unknown |
| 21372 | hardcode_automatic_GCJ=no |
| 21373 | module_cmds_GCJ= |
| 21374 | module_expsym_cmds_GCJ= |
| 21375 | always_export_symbols_GCJ=no |
| 21376 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21377 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21378 | # included in the symbol list |
| 21379 | include_expsyms_GCJ= |
| 21380 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21381 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21382 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21383 | # as well as any symbol that contains `d'. |
| 21384 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 21385 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21386 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21387 | # the symbol is explicitly referenced. Since portable code cannot |
| 21388 | # rely on this symbol name, it's probably fine to never include it in |
| 21389 | # preloaded symbol tables. |
| 21390 | extract_expsyms_cmds= |
| 21391 | |
| 21392 | case $host_os in |
| 21393 | cygwin* | mingw* | pw32*) |
| 21394 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21395 | # When not using gcc, we currently assume that we are using |
| 21396 | # Microsoft Visual C++. |
| 21397 | if test "$GCC" != yes; then |
| 21398 | with_gnu_ld=no |
| 21399 | fi |
| 21400 | ;; |
| 21401 | openbsd*) |
| 21402 | with_gnu_ld=no |
| 21403 | ;; |
| 21404 | esac |
| 21405 | |
| 21406 | ld_shlibs_GCJ=yes |
| 21407 | if test "$with_gnu_ld" = yes; then |
| 21408 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21409 | wlarc='${wl}' |
| 21410 | |
| 21411 | # See if GNU ld supports shared libraries. |
| 21412 | case $host_os in |
| 21413 | aix3* | aix4* | aix5*) |
| 21414 | # On AIX/PPC, the GNU linker is very broken |
| 21415 | if test "$host_cpu" != ia64; then |
| 21416 | ld_shlibs_GCJ=no |
| 21417 | cat <<EOF 1>&2 |
| 21418 | |
| 21419 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21420 | *** to be unable to reliably create shared libraries on AIX. |
| 21421 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21422 | *** really care for shared libraries, you may want to modify your PATH |
| 21423 | *** so that a non-GNU linker is found, and then restart. |
| 21424 | |
| 21425 | EOF |
| 21426 | fi |
| 21427 | ;; |
| 21428 | |
| 21429 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21430 | 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] | 21431 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21432 | hardcode_minus_L_GCJ=yes |
| 21433 | |
| 21434 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21435 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21436 | # to version 4, is to share data among multiple programs linked |
| 21437 | # with the same dynamic library. Since this doesn't match the |
| 21438 | # behavior of shared libraries on other platforms, we can't use |
| 21439 | # them. |
| 21440 | ld_shlibs_GCJ=no |
| 21441 | ;; |
| 21442 | |
| 21443 | beos*) |
| 21444 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21445 | allow_undefined_flag_GCJ=unsupported |
| 21446 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21447 | # support --undefined. This deserves some investigation. FIXME |
| 21448 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21449 | else |
| 21450 | ld_shlibs_GCJ=no |
| 21451 | fi |
| 21452 | ;; |
| 21453 | |
| 21454 | cygwin* | mingw* | pw32*) |
| 21455 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 21456 | # as there is no search path for DLLs. |
| 21457 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21458 | allow_undefined_flag_GCJ=unsupported |
| 21459 | always_export_symbols_GCJ=no |
| 21460 | enable_shared_with_static_runtimes_GCJ=yes |
| 21461 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 21462 | |
| 21463 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 21464 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 21465 | # If the export-symbols file already is a .def file (1st line |
| 21466 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21467 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21468 | cp $export_symbols $output_objdir/$soname.def; |
| 21469 | else |
| 21470 | echo EXPORTS > $output_objdir/$soname.def; |
| 21471 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21472 | fi~ |
| 21473 | $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] | 21474 | else |
| 21475 | ld_shlibs=no |
| 21476 | fi |
| 21477 | ;; |
| 21478 | |
| 21479 | netbsd*) |
| 21480 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21481 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21482 | wlarc= |
| 21483 | else |
| 21484 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21485 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21486 | fi |
| 21487 | ;; |
| 21488 | |
| 21489 | solaris* | sysv5*) |
| 21490 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21491 | ld_shlibs_GCJ=no |
| 21492 | cat <<EOF 1>&2 |
| 21493 | |
| 21494 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21495 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21496 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21497 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21498 | *** your PATH or compiler configuration so that the native linker is |
| 21499 | *** used, and then restart. |
| 21500 | |
| 21501 | EOF |
| 21502 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21503 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21504 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21505 | else |
| 21506 | ld_shlibs_GCJ=no |
| 21507 | fi |
| 21508 | ;; |
| 21509 | |
| 21510 | sunos4*) |
| 21511 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21512 | wlarc= |
| 21513 | hardcode_direct_GCJ=yes |
| 21514 | hardcode_shlibpath_var_GCJ=no |
| 21515 | ;; |
| 21516 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21517 | linux*) |
| 21518 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21519 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21520 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 21521 | supports_anon_versioning=no |
| 21522 | case `$LD -v 2>/dev/null` in |
| 21523 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21524 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21525 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21526 | *\ 2.11.*) ;; # other 2.11 versions |
| 21527 | *) supports_anon_versioning=yes ;; |
| 21528 | esac |
| 21529 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21530 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21531 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21532 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21533 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21534 | else |
| 21535 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 21536 | fi |
| 21537 | else |
| 21538 | ld_shlibs_GCJ=no |
| 21539 | fi |
| 21540 | ;; |
| 21541 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21542 | *) |
| 21543 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21544 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21545 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21546 | else |
| 21547 | ld_shlibs_GCJ=no |
| 21548 | fi |
| 21549 | ;; |
| 21550 | esac |
| 21551 | |
| 21552 | if test "$ld_shlibs_GCJ" = yes; then |
| 21553 | runpath_var=LD_RUN_PATH |
| 21554 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 21555 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 21556 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21557 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21558 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21559 | else |
| 21560 | whole_archive_flag_spec_GCJ= |
| 21561 | fi |
| 21562 | fi |
| 21563 | else |
| 21564 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21565 | case $host_os in |
| 21566 | aix3*) |
| 21567 | allow_undefined_flag_GCJ=unsupported |
| 21568 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21569 | 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] | 21570 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21571 | # are no directories specified by -L. |
| 21572 | hardcode_minus_L_GCJ=yes |
| 21573 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 21574 | # Neither direct hardcoding nor static linking is supported with a |
| 21575 | # broken collect2. |
| 21576 | hardcode_direct_GCJ=unsupported |
| 21577 | fi |
| 21578 | ;; |
| 21579 | |
| 21580 | aix4* | aix5*) |
| 21581 | if test "$host_cpu" = ia64; then |
| 21582 | # On IA64, the linker does run time linking by default, so we don't |
| 21583 | # have to do anything special. |
| 21584 | aix_use_runtimelinking=no |
| 21585 | exp_sym_flag='-Bexport' |
| 21586 | no_entry_flag="" |
| 21587 | else |
| 21588 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21589 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21590 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21591 | 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' |
| 21592 | else |
| 21593 | 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' |
| 21594 | fi |
| 21595 | aix_use_runtimelinking=no |
| 21596 | |
| 21597 | # Test if we are trying to use run time linking or normal |
| 21598 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21599 | # need to do runtime linking. |
| 21600 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21601 | for ld_flag in $LDFLAGS; do |
| 21602 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21603 | aix_use_runtimelinking=yes |
| 21604 | break |
| 21605 | fi |
| 21606 | done |
| 21607 | esac |
| 21608 | |
| 21609 | exp_sym_flag='-bexport' |
| 21610 | no_entry_flag='-bnoentry' |
| 21611 | fi |
| 21612 | |
| 21613 | # When large executables or shared objects are built, AIX ld can |
| 21614 | # have problems creating the table of contents. If linking a library |
| 21615 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21616 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21617 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21618 | |
| 21619 | archive_cmds_GCJ='' |
| 21620 | hardcode_direct_GCJ=yes |
| 21621 | hardcode_libdir_separator_GCJ=':' |
| 21622 | link_all_deplibs_GCJ=yes |
| 21623 | |
| 21624 | if test "$GCC" = yes; then |
| 21625 | case $host_os in aix4.012|aix4.012.*) |
| 21626 | # We only want to do this on AIX 4.2 and lower, the check |
| 21627 | # below for broken collect2 doesn't work under 4.3+ |
| 21628 | collect2name=`${CC} -print-prog-name=collect2` |
| 21629 | if test -f "$collect2name" && \ |
| 21630 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21631 | then |
| 21632 | # We have reworked collect2 |
| 21633 | hardcode_direct_GCJ=yes |
| 21634 | else |
| 21635 | # We have old collect2 |
| 21636 | hardcode_direct_GCJ=unsupported |
| 21637 | # It fails to find uninstalled libraries when the uninstalled |
| 21638 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21639 | # to unsupported forces relinking |
| 21640 | hardcode_minus_L_GCJ=yes |
| 21641 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21642 | hardcode_libdir_separator_GCJ= |
| 21643 | fi |
| 21644 | esac |
| 21645 | shared_flag='-shared' |
| 21646 | else |
| 21647 | # not using gcc |
| 21648 | if test "$host_cpu" = ia64; then |
| 21649 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21650 | # chokes on -Wl,-G. The following line is correct: |
| 21651 | shared_flag='-G' |
| 21652 | else |
| 21653 | if test "$aix_use_runtimelinking" = yes; then |
| 21654 | shared_flag='${wl}-G' |
| 21655 | else |
| 21656 | shared_flag='${wl}-bM:SRE' |
| 21657 | fi |
| 21658 | fi |
| 21659 | fi |
| 21660 | |
| 21661 | # It seems that -bexpall does not export symbols beginning with |
| 21662 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21663 | always_export_symbols_GCJ=yes |
| 21664 | if test "$aix_use_runtimelinking" = yes; then |
| 21665 | # Warning - without using the other runtime loading flags (-brtl), |
| 21666 | # -berok will link without error, but may produce a broken library. |
| 21667 | allow_undefined_flag_GCJ='-berok' |
| 21668 | # Determine the default libpath from the value encoded in an empty executable. |
| 21669 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21670 | /* confdefs.h. */ |
| 21671 | _ACEOF |
| 21672 | cat confdefs.h >>conftest.$ac_ext |
| 21673 | cat >>conftest.$ac_ext <<_ACEOF |
| 21674 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21675 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21676 | int |
| 21677 | main () |
| 21678 | { |
| 21679 | |
| 21680 | ; |
| 21681 | return 0; |
| 21682 | } |
| 21683 | _ACEOF |
| 21684 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21686 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21687 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21689 | rm -f conftest.er1 |
| 21690 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21692 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21693 | { ac_try='test -z "$ac_c_werror_flag" |
| 21694 | || test ! -s conftest.err' |
| 21695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21696 | (eval $ac_try) 2>&5 |
| 21697 | ac_status=$? |
| 21698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21699 | (exit $ac_status); }; } && |
| 21700 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21702 | (eval $ac_try) 2>&5 |
| 21703 | ac_status=$? |
| 21704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21705 | (exit $ac_status); }; }; then |
| 21706 | |
| 21707 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21708 | }'` |
| 21709 | # Check for a 64-bit object if we didn't find anything. |
| 21710 | 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; } |
| 21711 | }'`; fi |
| 21712 | else |
| 21713 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21715 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21716 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21717 | rm -f conftest.err conftest.$ac_objext \ |
| 21718 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21719 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21720 | |
| 21721 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21722 | 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" |
| 21723 | else |
| 21724 | if test "$host_cpu" = ia64; then |
| 21725 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 21726 | allow_undefined_flag_GCJ="-z nodefs" |
| 21727 | 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" |
| 21728 | else |
| 21729 | # Determine the default libpath from the value encoded in an empty executable. |
| 21730 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21731 | /* confdefs.h. */ |
| 21732 | _ACEOF |
| 21733 | cat confdefs.h >>conftest.$ac_ext |
| 21734 | cat >>conftest.$ac_ext <<_ACEOF |
| 21735 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21736 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21737 | int |
| 21738 | main () |
| 21739 | { |
| 21740 | |
| 21741 | ; |
| 21742 | return 0; |
| 21743 | } |
| 21744 | _ACEOF |
| 21745 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21747 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21748 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21750 | rm -f conftest.er1 |
| 21751 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21753 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21754 | { ac_try='test -z "$ac_c_werror_flag" |
| 21755 | || test ! -s conftest.err' |
| 21756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21757 | (eval $ac_try) 2>&5 |
| 21758 | ac_status=$? |
| 21759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21760 | (exit $ac_status); }; } && |
| 21761 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21763 | (eval $ac_try) 2>&5 |
| 21764 | ac_status=$? |
| 21765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21766 | (exit $ac_status); }; }; then |
| 21767 | |
| 21768 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21769 | }'` |
| 21770 | # Check for a 64-bit object if we didn't find anything. |
| 21771 | 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; } |
| 21772 | }'`; fi |
| 21773 | else |
| 21774 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21776 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21777 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21778 | rm -f conftest.err conftest.$ac_objext \ |
| 21779 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21780 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21781 | |
| 21782 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21783 | # Warning - without using the other run time loading flags, |
| 21784 | # -berok will link without error, but may produce a broken library. |
| 21785 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 21786 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 21787 | # -bexpall does not export symbols beginning with underscore (_) |
| 21788 | always_export_symbols_GCJ=yes |
| 21789 | # Exported symbols can be pulled into shared objects from archives |
| 21790 | whole_archive_flag_spec_GCJ=' ' |
| 21791 | archive_cmds_need_lc_GCJ=yes |
| 21792 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21793 | 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] | 21794 | fi |
| 21795 | fi |
| 21796 | ;; |
| 21797 | |
| 21798 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21799 | 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] | 21800 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21801 | hardcode_minus_L_GCJ=yes |
| 21802 | # see comment about different semantics on the GNU ld section |
| 21803 | ld_shlibs_GCJ=no |
| 21804 | ;; |
| 21805 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21806 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21807 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 21808 | ;; |
| 21809 | |
| 21810 | cygwin* | mingw* | pw32*) |
| 21811 | # When not using gcc, we currently assume that we are using |
| 21812 | # Microsoft Visual C++. |
| 21813 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21814 | # no search path for DLLs. |
| 21815 | hardcode_libdir_flag_spec_GCJ=' ' |
| 21816 | allow_undefined_flag_GCJ=unsupported |
| 21817 | # Tell ltmain to make .lib files, not .a files. |
| 21818 | libext=lib |
| 21819 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21820 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21821 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21822 | 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] | 21823 | # The linker will automatically build a .lib file if we build a DLL. |
| 21824 | old_archive_From_new_cmds_GCJ='true' |
| 21825 | # FIXME: Should let the user specify the lib program. |
| 21826 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 21827 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 21828 | enable_shared_with_static_runtimes_GCJ=yes |
| 21829 | ;; |
| 21830 | |
| 21831 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21832 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21833 | rhapsody* | darwin1.[012]) |
| 21834 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 21835 | ;; |
| 21836 | *) # Darwin 1.3 on |
| 21837 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 21838 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21839 | else |
| 21840 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 21841 | 10.[012]) |
| 21842 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21843 | ;; |
| 21844 | 10.*) |
| 21845 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 21846 | ;; |
| 21847 | esac |
| 21848 | fi |
| 21849 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21850 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21851 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21852 | hardcode_direct_GCJ=no |
| 21853 | hardcode_automatic_GCJ=yes |
| 21854 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21855 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21856 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21857 | if test "$GCC" = yes ; then |
| 21858 | output_verbose_link_cmd='echo' |
| 21859 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 21860 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 21861 | # 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] | 21862 | 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}' |
| 21863 | 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] | 21864 | else |
| 21865 | case "$cc_basename" in |
| 21866 | xlc*) |
| 21867 | output_verbose_link_cmd='echo' |
| 21868 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 21869 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 21870 | # 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] | 21871 | 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}' |
| 21872 | 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] | 21873 | ;; |
| 21874 | *) |
| 21875 | ld_shlibs_GCJ=no |
| 21876 | ;; |
| 21877 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21878 | fi |
| 21879 | ;; |
| 21880 | |
| 21881 | dgux*) |
| 21882 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21883 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21884 | hardcode_shlibpath_var_GCJ=no |
| 21885 | ;; |
| 21886 | |
| 21887 | freebsd1*) |
| 21888 | ld_shlibs_GCJ=no |
| 21889 | ;; |
| 21890 | |
| 21891 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21892 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21893 | # does not break anything, and helps significantly (at the cost of a little |
| 21894 | # extra space). |
| 21895 | freebsd2.2*) |
| 21896 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21897 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 21898 | hardcode_direct_GCJ=yes |
| 21899 | hardcode_shlibpath_var_GCJ=no |
| 21900 | ;; |
| 21901 | |
| 21902 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21903 | freebsd2*) |
| 21904 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21905 | hardcode_direct_GCJ=yes |
| 21906 | hardcode_minus_L_GCJ=yes |
| 21907 | hardcode_shlibpath_var_GCJ=no |
| 21908 | ;; |
| 21909 | |
| 21910 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21911 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21912 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21913 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 21914 | hardcode_direct_GCJ=yes |
| 21915 | hardcode_shlibpath_var_GCJ=no |
| 21916 | ;; |
| 21917 | |
| 21918 | hpux9*) |
| 21919 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21920 | 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] | 21921 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21922 | 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] | 21923 | fi |
| 21924 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 21925 | hardcode_libdir_separator_GCJ=: |
| 21926 | hardcode_direct_GCJ=yes |
| 21927 | |
| 21928 | # hardcode_minus_L: Not really in the search PATH, |
| 21929 | # but as the default location of the library. |
| 21930 | hardcode_minus_L_GCJ=yes |
| 21931 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 21932 | ;; |
| 21933 | |
| 21934 | hpux10* | hpux11*) |
| 21935 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21936 | case "$host_cpu" in |
| 21937 | hppa*64*|ia64*) |
| 21938 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21939 | ;; |
| 21940 | *) |
| 21941 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21942 | ;; |
| 21943 | esac |
| 21944 | else |
| 21945 | case "$host_cpu" in |
| 21946 | hppa*64*|ia64*) |
| 21947 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21948 | ;; |
| 21949 | *) |
| 21950 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21951 | ;; |
| 21952 | esac |
| 21953 | fi |
| 21954 | if test "$with_gnu_ld" = no; then |
| 21955 | case "$host_cpu" in |
| 21956 | hppa*64*) |
| 21957 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 21958 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 21959 | hardcode_libdir_separator_GCJ=: |
| 21960 | hardcode_direct_GCJ=no |
| 21961 | hardcode_shlibpath_var_GCJ=no |
| 21962 | ;; |
| 21963 | ia64*) |
| 21964 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21965 | hardcode_direct_GCJ=no |
| 21966 | hardcode_shlibpath_var_GCJ=no |
| 21967 | |
| 21968 | # hardcode_minus_L: Not really in the search PATH, |
| 21969 | # but as the default location of the library. |
| 21970 | hardcode_minus_L_GCJ=yes |
| 21971 | ;; |
| 21972 | *) |
| 21973 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 21974 | hardcode_libdir_separator_GCJ=: |
| 21975 | hardcode_direct_GCJ=yes |
| 21976 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 21977 | |
| 21978 | # hardcode_minus_L: Not really in the search PATH, |
| 21979 | # but as the default location of the library. |
| 21980 | hardcode_minus_L_GCJ=yes |
| 21981 | ;; |
| 21982 | esac |
| 21983 | fi |
| 21984 | ;; |
| 21985 | |
| 21986 | irix5* | irix6* | nonstopux*) |
| 21987 | if test "$GCC" = yes; then |
| 21988 | 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' |
| 21989 | else |
| 21990 | 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' |
| 21991 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 21992 | fi |
| 21993 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 21994 | hardcode_libdir_separator_GCJ=: |
| 21995 | link_all_deplibs_GCJ=yes |
| 21996 | ;; |
| 21997 | |
| 21998 | netbsd*) |
| 21999 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22000 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22001 | else |
| 22002 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22003 | fi |
| 22004 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22005 | hardcode_direct_GCJ=yes |
| 22006 | hardcode_shlibpath_var_GCJ=no |
| 22007 | ;; |
| 22008 | |
| 22009 | newsos6) |
| 22010 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22011 | hardcode_direct_GCJ=yes |
| 22012 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22013 | hardcode_libdir_separator_GCJ=: |
| 22014 | hardcode_shlibpath_var_GCJ=no |
| 22015 | ;; |
| 22016 | |
| 22017 | openbsd*) |
| 22018 | hardcode_direct_GCJ=yes |
| 22019 | hardcode_shlibpath_var_GCJ=no |
| 22020 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22021 | 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] | 22022 | 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] | 22023 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22024 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22025 | else |
| 22026 | case $host_os in |
| 22027 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22028 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22029 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22030 | ;; |
| 22031 | *) |
| 22032 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22033 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22034 | ;; |
| 22035 | esac |
| 22036 | fi |
| 22037 | ;; |
| 22038 | |
| 22039 | os2*) |
| 22040 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22041 | hardcode_minus_L_GCJ=yes |
| 22042 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22043 | 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] | 22044 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22045 | ;; |
| 22046 | |
| 22047 | osf3*) |
| 22048 | if test "$GCC" = yes; then |
| 22049 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22050 | 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' |
| 22051 | else |
| 22052 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22053 | 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' |
| 22054 | fi |
| 22055 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22056 | hardcode_libdir_separator_GCJ=: |
| 22057 | ;; |
| 22058 | |
| 22059 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22060 | if test "$GCC" = yes; then |
| 22061 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22062 | 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' |
| 22063 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22064 | else |
| 22065 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22066 | 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] | 22067 | 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~ |
| 22068 | $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' |
| 22069 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22070 | # Both c and cxx compiler support -rpath directly |
| 22071 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 22072 | fi |
| 22073 | hardcode_libdir_separator_GCJ=: |
| 22074 | ;; |
| 22075 | |
| 22076 | sco3.2v5*) |
| 22077 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22078 | hardcode_shlibpath_var_GCJ=no |
| 22079 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 22080 | runpath_var=LD_RUN_PATH |
| 22081 | hardcode_runpath_var=yes |
| 22082 | ;; |
| 22083 | |
| 22084 | solaris*) |
| 22085 | no_undefined_flag_GCJ=' -z text' |
| 22086 | if test "$GCC" = yes; then |
| 22087 | 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] | 22088 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22089 | $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] | 22090 | else |
| 22091 | 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] | 22092 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22093 | $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] | 22094 | fi |
| 22095 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22096 | hardcode_shlibpath_var_GCJ=no |
| 22097 | case $host_os in |
| 22098 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 22099 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22100 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 22101 | esac |
| 22102 | link_all_deplibs_GCJ=yes |
| 22103 | ;; |
| 22104 | |
| 22105 | sunos4*) |
| 22106 | if test "x$host_vendor" = xsequent; then |
| 22107 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22108 | # files that make .init and .fini sections work. |
| 22109 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22110 | else |
| 22111 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22112 | fi |
| 22113 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22114 | hardcode_direct_GCJ=yes |
| 22115 | hardcode_minus_L_GCJ=yes |
| 22116 | hardcode_shlibpath_var_GCJ=no |
| 22117 | ;; |
| 22118 | |
| 22119 | sysv4) |
| 22120 | case $host_vendor in |
| 22121 | sni) |
| 22122 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22123 | hardcode_direct_GCJ=yes # is this really true??? |
| 22124 | ;; |
| 22125 | siemens) |
| 22126 | ## LD is ld it makes a PLAMLIB |
| 22127 | ## CC just makes a GrossModule. |
| 22128 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22129 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 22130 | hardcode_direct_GCJ=no |
| 22131 | ;; |
| 22132 | motorola) |
| 22133 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22134 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 22135 | ;; |
| 22136 | esac |
| 22137 | runpath_var='LD_RUN_PATH' |
| 22138 | hardcode_shlibpath_var_GCJ=no |
| 22139 | ;; |
| 22140 | |
| 22141 | sysv4.3*) |
| 22142 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22143 | hardcode_shlibpath_var_GCJ=no |
| 22144 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 22145 | ;; |
| 22146 | |
| 22147 | sysv4*MP*) |
| 22148 | if test -d /usr/nec; then |
| 22149 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22150 | hardcode_shlibpath_var_GCJ=no |
| 22151 | runpath_var=LD_RUN_PATH |
| 22152 | hardcode_runpath_var=yes |
| 22153 | ld_shlibs_GCJ=yes |
| 22154 | fi |
| 22155 | ;; |
| 22156 | |
| 22157 | sysv4.2uw2*) |
| 22158 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22159 | hardcode_direct_GCJ=yes |
| 22160 | hardcode_minus_L_GCJ=no |
| 22161 | hardcode_shlibpath_var_GCJ=no |
| 22162 | hardcode_runpath_var=yes |
| 22163 | runpath_var=LD_RUN_PATH |
| 22164 | ;; |
| 22165 | |
| 22166 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 22167 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 22168 | if test "$GCC" = yes; then |
| 22169 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22170 | else |
| 22171 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22172 | fi |
| 22173 | runpath_var='LD_RUN_PATH' |
| 22174 | hardcode_shlibpath_var_GCJ=no |
| 22175 | ;; |
| 22176 | |
| 22177 | sysv5*) |
| 22178 | no_undefined_flag_GCJ=' -z text' |
| 22179 | # $CC -shared without GNU ld will not create a library from C++ |
| 22180 | # object files and a static libstdc++, better avoid it by now |
| 22181 | 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] | 22182 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22183 | $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] | 22184 | hardcode_libdir_flag_spec_GCJ= |
| 22185 | hardcode_shlibpath_var_GCJ=no |
| 22186 | runpath_var='LD_RUN_PATH' |
| 22187 | ;; |
| 22188 | |
| 22189 | uts4*) |
| 22190 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22191 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22192 | hardcode_shlibpath_var_GCJ=no |
| 22193 | ;; |
| 22194 | |
| 22195 | *) |
| 22196 | ld_shlibs_GCJ=no |
| 22197 | ;; |
| 22198 | esac |
| 22199 | fi |
| 22200 | |
| 22201 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 22202 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 22203 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 22204 | |
| 22205 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22206 | if test "$GCC" = yes; then |
| 22207 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22208 | fi |
| 22209 | |
| 22210 | # |
| 22211 | # Do we need to explicitly link libc? |
| 22212 | # |
| 22213 | case "x$archive_cmds_need_lc_GCJ" in |
| 22214 | x|xyes) |
| 22215 | # Assume -lc should be added |
| 22216 | archive_cmds_need_lc_GCJ=yes |
| 22217 | |
| 22218 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22219 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22220 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22221 | # FIXME: we may have to deal with multi-command sequences. |
| 22222 | ;; |
| 22223 | '$CC '*) |
| 22224 | # Test whether the compiler implicitly links with -lc since on some |
| 22225 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22226 | # to ld, don't add -lc before -lgcc. |
| 22227 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22228 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 22229 | $rm conftest* |
| 22230 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22231 | |
| 22232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22233 | (eval $ac_compile) 2>&5 |
| 22234 | ac_status=$? |
| 22235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22236 | (exit $ac_status); } 2>conftest.err; then |
| 22237 | soname=conftest |
| 22238 | lib=conftest |
| 22239 | libobjs=conftest.$ac_objext |
| 22240 | deplibs= |
| 22241 | wl=$lt_prog_compiler_wl_GCJ |
| 22242 | compiler_flags=-v |
| 22243 | linker_flags=-v |
| 22244 | verstring= |
| 22245 | output_objdir=. |
| 22246 | libname=conftest |
| 22247 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 22248 | allow_undefined_flag_GCJ= |
| 22249 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22250 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22251 | ac_status=$? |
| 22252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22253 | (exit $ac_status); } |
| 22254 | then |
| 22255 | archive_cmds_need_lc_GCJ=no |
| 22256 | else |
| 22257 | archive_cmds_need_lc_GCJ=yes |
| 22258 | fi |
| 22259 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 22260 | else |
| 22261 | cat conftest.err 1>&5 |
| 22262 | fi |
| 22263 | $rm conftest* |
| 22264 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 22265 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 22266 | ;; |
| 22267 | esac |
| 22268 | fi |
| 22269 | ;; |
| 22270 | esac |
| 22271 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22272 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22273 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 22274 | library_names_spec= |
| 22275 | libname_spec='lib$name' |
| 22276 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22277 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22278 | postinstall_cmds= |
| 22279 | postuninstall_cmds= |
| 22280 | finish_cmds= |
| 22281 | finish_eval= |
| 22282 | shlibpath_var= |
| 22283 | shlibpath_overrides_runpath=unknown |
| 22284 | version_type=none |
| 22285 | dynamic_linker="$host_os ld.so" |
| 22286 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22287 | if test "$GCC" = yes; then |
| 22288 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22289 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22290 | # if the path contains ";" then we assume it to be the separator |
| 22291 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22292 | # assumed that no part of a normal pathname contains ";" but that should |
| 22293 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22294 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22295 | else |
| 22296 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22297 | fi |
| 22298 | else |
| 22299 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22300 | fi |
| 22301 | need_lib_prefix=unknown |
| 22302 | hardcode_into_libs=no |
| 22303 | |
| 22304 | # when you set need_version to no, make sure it does not cause -set_version |
| 22305 | # flags to be left without arguments |
| 22306 | need_version=unknown |
| 22307 | |
| 22308 | case $host_os in |
| 22309 | aix3*) |
| 22310 | version_type=linux |
| 22311 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22312 | shlibpath_var=LIBPATH |
| 22313 | |
| 22314 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22315 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22316 | ;; |
| 22317 | |
| 22318 | aix4* | aix5*) |
| 22319 | version_type=linux |
| 22320 | need_lib_prefix=no |
| 22321 | need_version=no |
| 22322 | hardcode_into_libs=yes |
| 22323 | if test "$host_cpu" = ia64; then |
| 22324 | # AIX 5 supports IA64 |
| 22325 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22326 | shlibpath_var=LD_LIBRARY_PATH |
| 22327 | else |
| 22328 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22329 | # for dependence libraries. The import file would start with |
| 22330 | # the line `#! .'. This would cause the generated library to |
| 22331 | # depend on `.', always an invalid library. This was fixed in |
| 22332 | # development snapshots of GCC prior to 3.0. |
| 22333 | case $host_os in |
| 22334 | aix4 | aix4.[01] | aix4.[01].*) |
| 22335 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22336 | echo ' yes ' |
| 22337 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22338 | : |
| 22339 | else |
| 22340 | can_build_shared=no |
| 22341 | fi |
| 22342 | ;; |
| 22343 | esac |
| 22344 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22345 | # soname into executable. Probably we can add versioning support to |
| 22346 | # collect2, so additional links can be useful in future. |
| 22347 | if test "$aix_use_runtimelinking" = yes; then |
| 22348 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22349 | # instead of lib<name>.a to let people know that these are not |
| 22350 | # typical AIX shared libraries. |
| 22351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22352 | else |
| 22353 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22354 | # and later when we are not doing run time linking. |
| 22355 | library_names_spec='${libname}${release}.a $libname.a' |
| 22356 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22357 | fi |
| 22358 | shlibpath_var=LIBPATH |
| 22359 | fi |
| 22360 | ;; |
| 22361 | |
| 22362 | amigaos*) |
| 22363 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22364 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22365 | 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] | 22366 | ;; |
| 22367 | |
| 22368 | beos*) |
| 22369 | library_names_spec='${libname}${shared_ext}' |
| 22370 | dynamic_linker="$host_os ld.so" |
| 22371 | shlibpath_var=LIBRARY_PATH |
| 22372 | ;; |
| 22373 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22374 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22375 | version_type=linux |
| 22376 | need_version=no |
| 22377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22378 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22379 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22380 | shlibpath_var=LD_LIBRARY_PATH |
| 22381 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22382 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22383 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22384 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22385 | # libtool to hard-code these into programs |
| 22386 | ;; |
| 22387 | |
| 22388 | cygwin* | mingw* | pw32*) |
| 22389 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22390 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22391 | need_version=no |
| 22392 | need_lib_prefix=no |
| 22393 | |
| 22394 | case $GCC,$host_os in |
| 22395 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22396 | library_names_spec='$libname.dll.a' |
| 22397 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22398 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22399 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22400 | dldir=$destdir/`dirname \$dlpath`~ |
| 22401 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22402 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22403 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22404 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22405 | $rm \$dlpath' |
| 22406 | shlibpath_overrides_runpath=yes |
| 22407 | |
| 22408 | case $host_os in |
| 22409 | cygwin*) |
| 22410 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22411 | 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] | 22412 | 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] | 22413 | ;; |
| 22414 | mingw*) |
| 22415 | # MinGW DLLs use traditional 'lib' prefix |
| 22416 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22417 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22418 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22419 | # It is most probably a Windows format PATH printed by |
| 22420 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22421 | # path with ; separators, and with drive letters. We can handle the |
| 22422 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22423 | # especially as we might pass files found there to a mingw objdump, |
| 22424 | # which wouldn't understand a cygwinified path. Ahh. |
| 22425 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22426 | else |
| 22427 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22428 | fi |
| 22429 | ;; |
| 22430 | pw32*) |
| 22431 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 22432 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 22433 | ;; |
| 22434 | esac |
| 22435 | ;; |
| 22436 | |
| 22437 | *) |
| 22438 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22439 | ;; |
| 22440 | esac |
| 22441 | dynamic_linker='Win32 ld.exe' |
| 22442 | # FIXME: first we should search . and the directory the executable is in |
| 22443 | shlibpath_var=PATH |
| 22444 | ;; |
| 22445 | |
| 22446 | darwin* | rhapsody*) |
| 22447 | dynamic_linker="$host_os dyld" |
| 22448 | version_type=darwin |
| 22449 | need_lib_prefix=no |
| 22450 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22451 | 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] | 22452 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22453 | shlibpath_overrides_runpath=yes |
| 22454 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22455 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22456 | # 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] | 22457 | if test "$GCC" = yes; then |
| 22458 | 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"` |
| 22459 | else |
| 22460 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22461 | fi |
| 22462 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22463 | ;; |
| 22464 | |
| 22465 | dgux*) |
| 22466 | version_type=linux |
| 22467 | need_lib_prefix=no |
| 22468 | need_version=no |
| 22469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22470 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22471 | shlibpath_var=LD_LIBRARY_PATH |
| 22472 | ;; |
| 22473 | |
| 22474 | freebsd1*) |
| 22475 | dynamic_linker=no |
| 22476 | ;; |
| 22477 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22478 | kfreebsd*-gnu) |
| 22479 | version_type=linux |
| 22480 | need_lib_prefix=no |
| 22481 | need_version=no |
| 22482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22483 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22484 | shlibpath_var=LD_LIBRARY_PATH |
| 22485 | shlibpath_overrides_runpath=no |
| 22486 | hardcode_into_libs=yes |
| 22487 | dynamic_linker='GNU ld.so' |
| 22488 | ;; |
| 22489 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22490 | freebsd*) |
| 22491 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 22492 | version_type=freebsd-$objformat |
| 22493 | case $version_type in |
| 22494 | freebsd-elf*) |
| 22495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22496 | need_version=no |
| 22497 | need_lib_prefix=no |
| 22498 | ;; |
| 22499 | freebsd-*) |
| 22500 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22501 | need_version=yes |
| 22502 | ;; |
| 22503 | esac |
| 22504 | shlibpath_var=LD_LIBRARY_PATH |
| 22505 | case $host_os in |
| 22506 | freebsd2*) |
| 22507 | shlibpath_overrides_runpath=yes |
| 22508 | ;; |
| 22509 | freebsd3.01* | freebsdelf3.01*) |
| 22510 | shlibpath_overrides_runpath=yes |
| 22511 | hardcode_into_libs=yes |
| 22512 | ;; |
| 22513 | *) # from 3.2 on |
| 22514 | shlibpath_overrides_runpath=no |
| 22515 | hardcode_into_libs=yes |
| 22516 | ;; |
| 22517 | esac |
| 22518 | ;; |
| 22519 | |
| 22520 | gnu*) |
| 22521 | version_type=linux |
| 22522 | need_lib_prefix=no |
| 22523 | need_version=no |
| 22524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22525 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22526 | shlibpath_var=LD_LIBRARY_PATH |
| 22527 | hardcode_into_libs=yes |
| 22528 | ;; |
| 22529 | |
| 22530 | hpux9* | hpux10* | hpux11*) |
| 22531 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22532 | # link against other versions. |
| 22533 | version_type=sunos |
| 22534 | need_lib_prefix=no |
| 22535 | need_version=no |
| 22536 | case "$host_cpu" in |
| 22537 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22538 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22539 | hardcode_into_libs=yes |
| 22540 | dynamic_linker="$host_os dld.so" |
| 22541 | shlibpath_var=LD_LIBRARY_PATH |
| 22542 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22544 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22545 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22546 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22547 | else |
| 22548 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22549 | fi |
| 22550 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22551 | ;; |
| 22552 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22553 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22554 | hardcode_into_libs=yes |
| 22555 | dynamic_linker="$host_os dld.sl" |
| 22556 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22557 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22559 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22560 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22561 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22562 | ;; |
| 22563 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22564 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22565 | dynamic_linker="$host_os dld.sl" |
| 22566 | shlibpath_var=SHLIB_PATH |
| 22567 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22569 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22570 | ;; |
| 22571 | esac |
| 22572 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22573 | postinstall_cmds='chmod 555 $lib' |
| 22574 | ;; |
| 22575 | |
| 22576 | irix5* | irix6* | nonstopux*) |
| 22577 | case $host_os in |
| 22578 | nonstopux*) version_type=nonstopux ;; |
| 22579 | *) |
| 22580 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22581 | version_type=linux |
| 22582 | else |
| 22583 | version_type=irix |
| 22584 | fi ;; |
| 22585 | esac |
| 22586 | need_lib_prefix=no |
| 22587 | need_version=no |
| 22588 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22590 | case $host_os in |
| 22591 | irix5* | nonstopux*) |
| 22592 | libsuff= shlibsuff= |
| 22593 | ;; |
| 22594 | *) |
| 22595 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22596 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22597 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22598 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22599 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22600 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22601 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22602 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22603 | esac |
| 22604 | ;; |
| 22605 | esac |
| 22606 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22607 | shlibpath_overrides_runpath=no |
| 22608 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22609 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22610 | hardcode_into_libs=yes |
| 22611 | ;; |
| 22612 | |
| 22613 | # No shared lib support for Linux oldld, aout, or coff. |
| 22614 | linux*oldld* | linux*aout* | linux*coff*) |
| 22615 | dynamic_linker=no |
| 22616 | ;; |
| 22617 | |
| 22618 | # This must be Linux ELF. |
| 22619 | linux*) |
| 22620 | version_type=linux |
| 22621 | need_lib_prefix=no |
| 22622 | need_version=no |
| 22623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22624 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22625 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22626 | shlibpath_var=LD_LIBRARY_PATH |
| 22627 | shlibpath_overrides_runpath=no |
| 22628 | # This implies no fast_install, which is unacceptable. |
| 22629 | # Some rework will be needed to allow for fast_install |
| 22630 | # before this can be enabled. |
| 22631 | hardcode_into_libs=yes |
| 22632 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22633 | # Append ld.so.conf contents to the search path |
| 22634 | if test -f /etc/ld.so.conf; then |
| 22635 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 22636 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22637 | fi |
| 22638 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22639 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22640 | # powerpc, because MkLinux only supported shared libraries with the |
| 22641 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22642 | # most powerpc-linux boxes support dynamic linking these days and |
| 22643 | # people can always --disable-shared, the test was removed, and we |
| 22644 | # assume the GNU/Linux dynamic linker is in use. |
| 22645 | dynamic_linker='GNU/Linux ld.so' |
| 22646 | ;; |
| 22647 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22648 | knetbsd*-gnu) |
| 22649 | version_type=linux |
| 22650 | need_lib_prefix=no |
| 22651 | need_version=no |
| 22652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22653 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22654 | shlibpath_var=LD_LIBRARY_PATH |
| 22655 | shlibpath_overrides_runpath=no |
| 22656 | hardcode_into_libs=yes |
| 22657 | dynamic_linker='GNU ld.so' |
| 22658 | ;; |
| 22659 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22660 | netbsd*) |
| 22661 | version_type=sunos |
| 22662 | need_lib_prefix=no |
| 22663 | need_version=no |
| 22664 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22666 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22667 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22668 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22669 | 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] | 22670 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22671 | dynamic_linker='NetBSD ld.elf_so' |
| 22672 | fi |
| 22673 | shlibpath_var=LD_LIBRARY_PATH |
| 22674 | shlibpath_overrides_runpath=yes |
| 22675 | hardcode_into_libs=yes |
| 22676 | ;; |
| 22677 | |
| 22678 | newsos6) |
| 22679 | version_type=linux |
| 22680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22681 | shlibpath_var=LD_LIBRARY_PATH |
| 22682 | shlibpath_overrides_runpath=yes |
| 22683 | ;; |
| 22684 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22685 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22686 | version_type=linux |
| 22687 | need_lib_prefix=no |
| 22688 | need_version=no |
| 22689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22690 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22691 | shlibpath_var=LD_LIBRARY_PATH |
| 22692 | shlibpath_overrides_runpath=yes |
| 22693 | ;; |
| 22694 | |
| 22695 | openbsd*) |
| 22696 | version_type=sunos |
| 22697 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22698 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22700 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22701 | shlibpath_var=LD_LIBRARY_PATH |
| 22702 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22703 | case $host_os in |
| 22704 | openbsd2.[89] | openbsd2.[89].*) |
| 22705 | shlibpath_overrides_runpath=no |
| 22706 | ;; |
| 22707 | *) |
| 22708 | shlibpath_overrides_runpath=yes |
| 22709 | ;; |
| 22710 | esac |
| 22711 | else |
| 22712 | shlibpath_overrides_runpath=yes |
| 22713 | fi |
| 22714 | ;; |
| 22715 | |
| 22716 | os2*) |
| 22717 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22718 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22719 | need_lib_prefix=no |
| 22720 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22721 | dynamic_linker='OS/2 ld.exe' |
| 22722 | shlibpath_var=LIBPATH |
| 22723 | ;; |
| 22724 | |
| 22725 | osf3* | osf4* | osf5*) |
| 22726 | version_type=osf |
| 22727 | need_lib_prefix=no |
| 22728 | need_version=no |
| 22729 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22730 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22731 | shlibpath_var=LD_LIBRARY_PATH |
| 22732 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22733 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22734 | ;; |
| 22735 | |
| 22736 | sco3.2v5*) |
| 22737 | version_type=osf |
| 22738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22740 | shlibpath_var=LD_LIBRARY_PATH |
| 22741 | ;; |
| 22742 | |
| 22743 | solaris*) |
| 22744 | version_type=linux |
| 22745 | need_lib_prefix=no |
| 22746 | need_version=no |
| 22747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22748 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22749 | shlibpath_var=LD_LIBRARY_PATH |
| 22750 | shlibpath_overrides_runpath=yes |
| 22751 | hardcode_into_libs=yes |
| 22752 | # ldd complains unless libraries are executable |
| 22753 | postinstall_cmds='chmod +x $lib' |
| 22754 | ;; |
| 22755 | |
| 22756 | sunos4*) |
| 22757 | version_type=sunos |
| 22758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22759 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22760 | shlibpath_var=LD_LIBRARY_PATH |
| 22761 | shlibpath_overrides_runpath=yes |
| 22762 | if test "$with_gnu_ld" = yes; then |
| 22763 | need_lib_prefix=no |
| 22764 | fi |
| 22765 | need_version=yes |
| 22766 | ;; |
| 22767 | |
| 22768 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 22769 | version_type=linux |
| 22770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22771 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22772 | shlibpath_var=LD_LIBRARY_PATH |
| 22773 | case $host_vendor in |
| 22774 | sni) |
| 22775 | shlibpath_overrides_runpath=no |
| 22776 | need_lib_prefix=no |
| 22777 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 22778 | runpath_var=LD_RUN_PATH |
| 22779 | ;; |
| 22780 | siemens) |
| 22781 | need_lib_prefix=no |
| 22782 | ;; |
| 22783 | motorola) |
| 22784 | need_lib_prefix=no |
| 22785 | need_version=no |
| 22786 | shlibpath_overrides_runpath=no |
| 22787 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 22788 | ;; |
| 22789 | esac |
| 22790 | ;; |
| 22791 | |
| 22792 | sysv4*MP*) |
| 22793 | if test -d /usr/nec ;then |
| 22794 | version_type=linux |
| 22795 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 22796 | soname_spec='$libname${shared_ext}.$major' |
| 22797 | shlibpath_var=LD_LIBRARY_PATH |
| 22798 | fi |
| 22799 | ;; |
| 22800 | |
| 22801 | uts4*) |
| 22802 | version_type=linux |
| 22803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22805 | shlibpath_var=LD_LIBRARY_PATH |
| 22806 | ;; |
| 22807 | |
| 22808 | *) |
| 22809 | dynamic_linker=no |
| 22810 | ;; |
| 22811 | esac |
| 22812 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 22813 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 22814 | test "$dynamic_linker" = no && can_build_shared=no |
| 22815 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22816 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 22817 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 22818 | hardcode_action_GCJ= |
| 22819 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 22820 | test -n "$runpath_var_GCJ" || \ |
| 22821 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 22822 | |
| 22823 | # We can hardcode non-existant directories. |
| 22824 | if test "$hardcode_direct_GCJ" != no && |
| 22825 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22826 | # have to relink, otherwise we might link with an installed library |
| 22827 | # when we should be linking with a yet-to-be-installed one |
| 22828 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 22829 | test "$hardcode_minus_L_GCJ" != no; then |
| 22830 | # Linking always hardcodes the temporary library directory. |
| 22831 | hardcode_action_GCJ=relink |
| 22832 | else |
| 22833 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22834 | hardcode_action_GCJ=immediate |
| 22835 | fi |
| 22836 | else |
| 22837 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22838 | # directories. |
| 22839 | hardcode_action_GCJ=unsupported |
| 22840 | fi |
| 22841 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 22842 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 22843 | |
| 22844 | if test "$hardcode_action_GCJ" = relink; then |
| 22845 | # Fast installation is not supported |
| 22846 | enable_fast_install=no |
| 22847 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22848 | test "$enable_shared" = no; then |
| 22849 | # Fast installation is not necessary |
| 22850 | enable_fast_install=needless |
| 22851 | fi |
| 22852 | |
| 22853 | striplib= |
| 22854 | old_striplib= |
| 22855 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 22856 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 22857 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 22858 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 22859 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 22860 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22861 | echo "${ECHO_T}yes" >&6 |
| 22862 | else |
| 22863 | # FIXME - insert some real tests, host_os isn't really good enough |
| 22864 | case $host_os in |
| 22865 | darwin*) |
| 22866 | if test -n "$STRIP" ; then |
| 22867 | striplib="$STRIP -x" |
| 22868 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22869 | echo "${ECHO_T}yes" >&6 |
| 22870 | else |
| 22871 | echo "$as_me:$LINENO: result: no" >&5 |
| 22872 | echo "${ECHO_T}no" >&6 |
| 22873 | fi |
| 22874 | ;; |
| 22875 | *) |
| 22876 | echo "$as_me:$LINENO: result: no" >&5 |
| 22877 | echo "${ECHO_T}no" >&6 |
| 22878 | ;; |
| 22879 | esac |
| 22880 | fi |
| 22881 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22882 | if test "x$enable_dlopen" != xyes; then |
| 22883 | enable_dlopen=unknown |
| 22884 | enable_dlopen_self=unknown |
| 22885 | enable_dlopen_self_static=unknown |
| 22886 | else |
| 22887 | lt_cv_dlopen=no |
| 22888 | lt_cv_dlopen_libs= |
| 22889 | |
| 22890 | case $host_os in |
| 22891 | beos*) |
| 22892 | lt_cv_dlopen="load_add_on" |
| 22893 | lt_cv_dlopen_libs= |
| 22894 | lt_cv_dlopen_self=yes |
| 22895 | ;; |
| 22896 | |
| 22897 | mingw* | pw32*) |
| 22898 | lt_cv_dlopen="LoadLibrary" |
| 22899 | lt_cv_dlopen_libs= |
| 22900 | ;; |
| 22901 | |
| 22902 | cygwin*) |
| 22903 | lt_cv_dlopen="dlopen" |
| 22904 | lt_cv_dlopen_libs= |
| 22905 | ;; |
| 22906 | |
| 22907 | darwin*) |
| 22908 | # if libdl is installed we need to link against it |
| 22909 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 22910 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 22911 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 22912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22913 | else |
| 22914 | ac_check_lib_save_LIBS=$LIBS |
| 22915 | LIBS="-ldl $LIBS" |
| 22916 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22917 | /* confdefs.h. */ |
| 22918 | _ACEOF |
| 22919 | cat confdefs.h >>conftest.$ac_ext |
| 22920 | cat >>conftest.$ac_ext <<_ACEOF |
| 22921 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22922 | |
| 22923 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22924 | #ifdef __cplusplus |
| 22925 | extern "C" |
| 22926 | #endif |
| 22927 | /* We use char because int might match the return type of a gcc2 |
| 22928 | builtin and then its argument prototype would still apply. */ |
| 22929 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22930 | int |
| 22931 | main () |
| 22932 | { |
| 22933 | dlopen (); |
| 22934 | ; |
| 22935 | return 0; |
| 22936 | } |
| 22937 | _ACEOF |
| 22938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22940 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22941 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22943 | rm -f conftest.er1 |
| 22944 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22946 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22947 | { ac_try='test -z "$ac_c_werror_flag" |
| 22948 | || test ! -s conftest.err' |
| 22949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22950 | (eval $ac_try) 2>&5 |
| 22951 | ac_status=$? |
| 22952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22953 | (exit $ac_status); }; } && |
| 22954 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22956 | (eval $ac_try) 2>&5 |
| 22957 | ac_status=$? |
| 22958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22959 | (exit $ac_status); }; }; then |
| 22960 | ac_cv_lib_dl_dlopen=yes |
| 22961 | else |
| 22962 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22964 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22965 | ac_cv_lib_dl_dlopen=no |
| 22966 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22967 | rm -f conftest.err conftest.$ac_objext \ |
| 22968 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22969 | LIBS=$ac_check_lib_save_LIBS |
| 22970 | fi |
| 22971 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 22972 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 22973 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 22974 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 22975 | else |
| 22976 | |
| 22977 | lt_cv_dlopen="dyld" |
| 22978 | lt_cv_dlopen_libs= |
| 22979 | lt_cv_dlopen_self=yes |
| 22980 | |
| 22981 | fi |
| 22982 | |
| 22983 | ;; |
| 22984 | |
| 22985 | *) |
| 22986 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 22987 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 22988 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 22989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22990 | else |
| 22991 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22992 | /* confdefs.h. */ |
| 22993 | _ACEOF |
| 22994 | cat confdefs.h >>conftest.$ac_ext |
| 22995 | cat >>conftest.$ac_ext <<_ACEOF |
| 22996 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22997 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 22998 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22999 | #define shl_load innocuous_shl_load |
| 23000 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23001 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23002 | which can conflict with char shl_load (); below. |
| 23003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23004 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23005 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23006 | #ifdef __STDC__ |
| 23007 | # include <limits.h> |
| 23008 | #else |
| 23009 | # include <assert.h> |
| 23010 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23011 | |
| 23012 | #undef shl_load |
| 23013 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23014 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23015 | #ifdef __cplusplus |
| 23016 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23017 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23018 | #endif |
| 23019 | /* We use char because int might match the return type of a gcc2 |
| 23020 | builtin and then its argument prototype would still apply. */ |
| 23021 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23022 | /* The GNU C library defines this for functions which it implements |
| 23023 | to always fail with ENOSYS. Some functions are actually named |
| 23024 | something starting with __ and the normal name is an alias. */ |
| 23025 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 23026 | choke me |
| 23027 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23028 | char (*f) () = shl_load; |
| 23029 | #endif |
| 23030 | #ifdef __cplusplus |
| 23031 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23032 | #endif |
| 23033 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23034 | int |
| 23035 | main () |
| 23036 | { |
| 23037 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23038 | ; |
| 23039 | return 0; |
| 23040 | } |
| 23041 | _ACEOF |
| 23042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23044 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23045 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23047 | rm -f conftest.er1 |
| 23048 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23050 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23051 | { ac_try='test -z "$ac_c_werror_flag" |
| 23052 | || test ! -s conftest.err' |
| 23053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23054 | (eval $ac_try) 2>&5 |
| 23055 | ac_status=$? |
| 23056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23057 | (exit $ac_status); }; } && |
| 23058 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23060 | (eval $ac_try) 2>&5 |
| 23061 | ac_status=$? |
| 23062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23063 | (exit $ac_status); }; }; then |
| 23064 | ac_cv_func_shl_load=yes |
| 23065 | else |
| 23066 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23068 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23069 | ac_cv_func_shl_load=no |
| 23070 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23071 | rm -f conftest.err conftest.$ac_objext \ |
| 23072 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23073 | fi |
| 23074 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 23075 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 23076 | if test $ac_cv_func_shl_load = yes; then |
| 23077 | lt_cv_dlopen="shl_load" |
| 23078 | else |
| 23079 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 23080 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 23081 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 23082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23083 | else |
| 23084 | ac_check_lib_save_LIBS=$LIBS |
| 23085 | LIBS="-ldld $LIBS" |
| 23086 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23087 | /* confdefs.h. */ |
| 23088 | _ACEOF |
| 23089 | cat confdefs.h >>conftest.$ac_ext |
| 23090 | cat >>conftest.$ac_ext <<_ACEOF |
| 23091 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23092 | |
| 23093 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23094 | #ifdef __cplusplus |
| 23095 | extern "C" |
| 23096 | #endif |
| 23097 | /* We use char because int might match the return type of a gcc2 |
| 23098 | builtin and then its argument prototype would still apply. */ |
| 23099 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23100 | int |
| 23101 | main () |
| 23102 | { |
| 23103 | shl_load (); |
| 23104 | ; |
| 23105 | return 0; |
| 23106 | } |
| 23107 | _ACEOF |
| 23108 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23110 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23111 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23113 | rm -f conftest.er1 |
| 23114 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23116 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23117 | { ac_try='test -z "$ac_c_werror_flag" |
| 23118 | || test ! -s conftest.err' |
| 23119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23120 | (eval $ac_try) 2>&5 |
| 23121 | ac_status=$? |
| 23122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23123 | (exit $ac_status); }; } && |
| 23124 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23126 | (eval $ac_try) 2>&5 |
| 23127 | ac_status=$? |
| 23128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23129 | (exit $ac_status); }; }; then |
| 23130 | ac_cv_lib_dld_shl_load=yes |
| 23131 | else |
| 23132 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23134 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23135 | ac_cv_lib_dld_shl_load=no |
| 23136 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23137 | rm -f conftest.err conftest.$ac_objext \ |
| 23138 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23139 | LIBS=$ac_check_lib_save_LIBS |
| 23140 | fi |
| 23141 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 23142 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 23143 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 23144 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 23145 | else |
| 23146 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 23147 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 23148 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 23149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23150 | else |
| 23151 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23152 | /* confdefs.h. */ |
| 23153 | _ACEOF |
| 23154 | cat confdefs.h >>conftest.$ac_ext |
| 23155 | cat >>conftest.$ac_ext <<_ACEOF |
| 23156 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23157 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 23158 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23159 | #define dlopen innocuous_dlopen |
| 23160 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23161 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23162 | which can conflict with char dlopen (); below. |
| 23163 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23164 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23165 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23166 | #ifdef __STDC__ |
| 23167 | # include <limits.h> |
| 23168 | #else |
| 23169 | # include <assert.h> |
| 23170 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23171 | |
| 23172 | #undef dlopen |
| 23173 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23174 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23175 | #ifdef __cplusplus |
| 23176 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23177 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23178 | #endif |
| 23179 | /* We use char because int might match the return type of a gcc2 |
| 23180 | builtin and then its argument prototype would still apply. */ |
| 23181 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23182 | /* The GNU C library defines this for functions which it implements |
| 23183 | to always fail with ENOSYS. Some functions are actually named |
| 23184 | something starting with __ and the normal name is an alias. */ |
| 23185 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 23186 | choke me |
| 23187 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23188 | char (*f) () = dlopen; |
| 23189 | #endif |
| 23190 | #ifdef __cplusplus |
| 23191 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23192 | #endif |
| 23193 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23194 | int |
| 23195 | main () |
| 23196 | { |
| 23197 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23198 | ; |
| 23199 | return 0; |
| 23200 | } |
| 23201 | _ACEOF |
| 23202 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23204 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23205 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23207 | rm -f conftest.er1 |
| 23208 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23210 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23211 | { ac_try='test -z "$ac_c_werror_flag" |
| 23212 | || test ! -s conftest.err' |
| 23213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23214 | (eval $ac_try) 2>&5 |
| 23215 | ac_status=$? |
| 23216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23217 | (exit $ac_status); }; } && |
| 23218 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23220 | (eval $ac_try) 2>&5 |
| 23221 | ac_status=$? |
| 23222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23223 | (exit $ac_status); }; }; then |
| 23224 | ac_cv_func_dlopen=yes |
| 23225 | else |
| 23226 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23228 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23229 | ac_cv_func_dlopen=no |
| 23230 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23231 | rm -f conftest.err conftest.$ac_objext \ |
| 23232 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23233 | fi |
| 23234 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 23235 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 23236 | if test $ac_cv_func_dlopen = yes; then |
| 23237 | lt_cv_dlopen="dlopen" |
| 23238 | else |
| 23239 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 23240 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 23241 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 23242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23243 | else |
| 23244 | ac_check_lib_save_LIBS=$LIBS |
| 23245 | LIBS="-ldl $LIBS" |
| 23246 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23247 | /* confdefs.h. */ |
| 23248 | _ACEOF |
| 23249 | cat confdefs.h >>conftest.$ac_ext |
| 23250 | cat >>conftest.$ac_ext <<_ACEOF |
| 23251 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23252 | |
| 23253 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23254 | #ifdef __cplusplus |
| 23255 | extern "C" |
| 23256 | #endif |
| 23257 | /* We use char because int might match the return type of a gcc2 |
| 23258 | builtin and then its argument prototype would still apply. */ |
| 23259 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23260 | int |
| 23261 | main () |
| 23262 | { |
| 23263 | dlopen (); |
| 23264 | ; |
| 23265 | return 0; |
| 23266 | } |
| 23267 | _ACEOF |
| 23268 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23270 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23271 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23273 | rm -f conftest.er1 |
| 23274 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23276 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23277 | { ac_try='test -z "$ac_c_werror_flag" |
| 23278 | || test ! -s conftest.err' |
| 23279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23280 | (eval $ac_try) 2>&5 |
| 23281 | ac_status=$? |
| 23282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23283 | (exit $ac_status); }; } && |
| 23284 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23286 | (eval $ac_try) 2>&5 |
| 23287 | ac_status=$? |
| 23288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23289 | (exit $ac_status); }; }; then |
| 23290 | ac_cv_lib_dl_dlopen=yes |
| 23291 | else |
| 23292 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23294 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23295 | ac_cv_lib_dl_dlopen=no |
| 23296 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23297 | rm -f conftest.err conftest.$ac_objext \ |
| 23298 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23299 | LIBS=$ac_check_lib_save_LIBS |
| 23300 | fi |
| 23301 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 23302 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 23303 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 23304 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 23305 | else |
| 23306 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 23307 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 23308 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 23309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23310 | else |
| 23311 | ac_check_lib_save_LIBS=$LIBS |
| 23312 | LIBS="-lsvld $LIBS" |
| 23313 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23314 | /* confdefs.h. */ |
| 23315 | _ACEOF |
| 23316 | cat confdefs.h >>conftest.$ac_ext |
| 23317 | cat >>conftest.$ac_ext <<_ACEOF |
| 23318 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23319 | |
| 23320 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23321 | #ifdef __cplusplus |
| 23322 | extern "C" |
| 23323 | #endif |
| 23324 | /* We use char because int might match the return type of a gcc2 |
| 23325 | builtin and then its argument prototype would still apply. */ |
| 23326 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23327 | int |
| 23328 | main () |
| 23329 | { |
| 23330 | dlopen (); |
| 23331 | ; |
| 23332 | return 0; |
| 23333 | } |
| 23334 | _ACEOF |
| 23335 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23337 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23338 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23340 | rm -f conftest.er1 |
| 23341 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23343 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23344 | { ac_try='test -z "$ac_c_werror_flag" |
| 23345 | || test ! -s conftest.err' |
| 23346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23347 | (eval $ac_try) 2>&5 |
| 23348 | ac_status=$? |
| 23349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23350 | (exit $ac_status); }; } && |
| 23351 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23353 | (eval $ac_try) 2>&5 |
| 23354 | ac_status=$? |
| 23355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23356 | (exit $ac_status); }; }; then |
| 23357 | ac_cv_lib_svld_dlopen=yes |
| 23358 | else |
| 23359 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23361 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23362 | ac_cv_lib_svld_dlopen=no |
| 23363 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23364 | rm -f conftest.err conftest.$ac_objext \ |
| 23365 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23366 | LIBS=$ac_check_lib_save_LIBS |
| 23367 | fi |
| 23368 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 23369 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 23370 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 23371 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 23372 | else |
| 23373 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 23374 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 23375 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 23376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23377 | else |
| 23378 | ac_check_lib_save_LIBS=$LIBS |
| 23379 | LIBS="-ldld $LIBS" |
| 23380 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23381 | /* confdefs.h. */ |
| 23382 | _ACEOF |
| 23383 | cat confdefs.h >>conftest.$ac_ext |
| 23384 | cat >>conftest.$ac_ext <<_ACEOF |
| 23385 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23386 | |
| 23387 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23388 | #ifdef __cplusplus |
| 23389 | extern "C" |
| 23390 | #endif |
| 23391 | /* We use char because int might match the return type of a gcc2 |
| 23392 | builtin and then its argument prototype would still apply. */ |
| 23393 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23394 | int |
| 23395 | main () |
| 23396 | { |
| 23397 | dld_link (); |
| 23398 | ; |
| 23399 | return 0; |
| 23400 | } |
| 23401 | _ACEOF |
| 23402 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23404 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23405 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23407 | rm -f conftest.er1 |
| 23408 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23410 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23411 | { ac_try='test -z "$ac_c_werror_flag" |
| 23412 | || test ! -s conftest.err' |
| 23413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23414 | (eval $ac_try) 2>&5 |
| 23415 | ac_status=$? |
| 23416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23417 | (exit $ac_status); }; } && |
| 23418 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23420 | (eval $ac_try) 2>&5 |
| 23421 | ac_status=$? |
| 23422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23423 | (exit $ac_status); }; }; then |
| 23424 | ac_cv_lib_dld_dld_link=yes |
| 23425 | else |
| 23426 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23428 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23429 | ac_cv_lib_dld_dld_link=no |
| 23430 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23431 | rm -f conftest.err conftest.$ac_objext \ |
| 23432 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23433 | LIBS=$ac_check_lib_save_LIBS |
| 23434 | fi |
| 23435 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 23436 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 23437 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 23438 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 23439 | fi |
| 23440 | |
| 23441 | |
| 23442 | fi |
| 23443 | |
| 23444 | |
| 23445 | fi |
| 23446 | |
| 23447 | |
| 23448 | fi |
| 23449 | |
| 23450 | |
| 23451 | fi |
| 23452 | |
| 23453 | |
| 23454 | fi |
| 23455 | |
| 23456 | ;; |
| 23457 | esac |
| 23458 | |
| 23459 | if test "x$lt_cv_dlopen" != xno; then |
| 23460 | enable_dlopen=yes |
| 23461 | else |
| 23462 | enable_dlopen=no |
| 23463 | fi |
| 23464 | |
| 23465 | case $lt_cv_dlopen in |
| 23466 | dlopen) |
| 23467 | save_CPPFLAGS="$CPPFLAGS" |
| 23468 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 23469 | |
| 23470 | save_LDFLAGS="$LDFLAGS" |
| 23471 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 23472 | |
| 23473 | save_LIBS="$LIBS" |
| 23474 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 23475 | |
| 23476 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 23477 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 23478 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 23479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23480 | else |
| 23481 | if test "$cross_compiling" = yes; then : |
| 23482 | lt_cv_dlopen_self=cross |
| 23483 | else |
| 23484 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 23485 | lt_status=$lt_dlunknown |
| 23486 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 23487 | #line 23487 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23488 | #include "confdefs.h" |
| 23489 | |
| 23490 | #if HAVE_DLFCN_H |
| 23491 | #include <dlfcn.h> |
| 23492 | #endif |
| 23493 | |
| 23494 | #include <stdio.h> |
| 23495 | |
| 23496 | #ifdef RTLD_GLOBAL |
| 23497 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 23498 | #else |
| 23499 | # ifdef DL_GLOBAL |
| 23500 | # define LT_DLGLOBAL DL_GLOBAL |
| 23501 | # else |
| 23502 | # define LT_DLGLOBAL 0 |
| 23503 | # endif |
| 23504 | #endif |
| 23505 | |
| 23506 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 23507 | find out it does not work in some platform. */ |
| 23508 | #ifndef LT_DLLAZY_OR_NOW |
| 23509 | # ifdef RTLD_LAZY |
| 23510 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 23511 | # else |
| 23512 | # ifdef DL_LAZY |
| 23513 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 23514 | # else |
| 23515 | # ifdef RTLD_NOW |
| 23516 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 23517 | # else |
| 23518 | # ifdef DL_NOW |
| 23519 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 23520 | # else |
| 23521 | # define LT_DLLAZY_OR_NOW 0 |
| 23522 | # endif |
| 23523 | # endif |
| 23524 | # endif |
| 23525 | # endif |
| 23526 | #endif |
| 23527 | |
| 23528 | #ifdef __cplusplus |
| 23529 | extern "C" void exit (int); |
| 23530 | #endif |
| 23531 | |
| 23532 | void fnord() { int i=42;} |
| 23533 | int main () |
| 23534 | { |
| 23535 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 23536 | int status = $lt_dlunknown; |
| 23537 | |
| 23538 | if (self) |
| 23539 | { |
| 23540 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 23541 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 23542 | /* dlclose (self); */ |
| 23543 | } |
| 23544 | |
| 23545 | exit (status); |
| 23546 | } |
| 23547 | EOF |
| 23548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23549 | (eval $ac_link) 2>&5 |
| 23550 | ac_status=$? |
| 23551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23552 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 23553 | (./conftest; exit; ) 2>/dev/null |
| 23554 | lt_status=$? |
| 23555 | case x$lt_status in |
| 23556 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 23557 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 23558 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 23559 | esac |
| 23560 | else : |
| 23561 | # compilation failed |
| 23562 | lt_cv_dlopen_self=no |
| 23563 | fi |
| 23564 | fi |
| 23565 | rm -fr conftest* |
| 23566 | |
| 23567 | |
| 23568 | fi |
| 23569 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 23570 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 23571 | |
| 23572 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 23573 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 23574 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 23575 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 23576 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 23577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23578 | else |
| 23579 | if test "$cross_compiling" = yes; then : |
| 23580 | lt_cv_dlopen_self_static=cross |
| 23581 | else |
| 23582 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 23583 | lt_status=$lt_dlunknown |
| 23584 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 23585 | #line 23585 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23586 | #include "confdefs.h" |
| 23587 | |
| 23588 | #if HAVE_DLFCN_H |
| 23589 | #include <dlfcn.h> |
| 23590 | #endif |
| 23591 | |
| 23592 | #include <stdio.h> |
| 23593 | |
| 23594 | #ifdef RTLD_GLOBAL |
| 23595 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 23596 | #else |
| 23597 | # ifdef DL_GLOBAL |
| 23598 | # define LT_DLGLOBAL DL_GLOBAL |
| 23599 | # else |
| 23600 | # define LT_DLGLOBAL 0 |
| 23601 | # endif |
| 23602 | #endif |
| 23603 | |
| 23604 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 23605 | find out it does not work in some platform. */ |
| 23606 | #ifndef LT_DLLAZY_OR_NOW |
| 23607 | # ifdef RTLD_LAZY |
| 23608 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 23609 | # else |
| 23610 | # ifdef DL_LAZY |
| 23611 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 23612 | # else |
| 23613 | # ifdef RTLD_NOW |
| 23614 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 23615 | # else |
| 23616 | # ifdef DL_NOW |
| 23617 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 23618 | # else |
| 23619 | # define LT_DLLAZY_OR_NOW 0 |
| 23620 | # endif |
| 23621 | # endif |
| 23622 | # endif |
| 23623 | # endif |
| 23624 | #endif |
| 23625 | |
| 23626 | #ifdef __cplusplus |
| 23627 | extern "C" void exit (int); |
| 23628 | #endif |
| 23629 | |
| 23630 | void fnord() { int i=42;} |
| 23631 | int main () |
| 23632 | { |
| 23633 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 23634 | int status = $lt_dlunknown; |
| 23635 | |
| 23636 | if (self) |
| 23637 | { |
| 23638 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 23639 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 23640 | /* dlclose (self); */ |
| 23641 | } |
| 23642 | |
| 23643 | exit (status); |
| 23644 | } |
| 23645 | EOF |
| 23646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23647 | (eval $ac_link) 2>&5 |
| 23648 | ac_status=$? |
| 23649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23650 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 23651 | (./conftest; exit; ) 2>/dev/null |
| 23652 | lt_status=$? |
| 23653 | case x$lt_status in |
| 23654 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 23655 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 23656 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 23657 | esac |
| 23658 | else : |
| 23659 | # compilation failed |
| 23660 | lt_cv_dlopen_self_static=no |
| 23661 | fi |
| 23662 | fi |
| 23663 | rm -fr conftest* |
| 23664 | |
| 23665 | |
| 23666 | fi |
| 23667 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 23668 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 23669 | fi |
| 23670 | |
| 23671 | CPPFLAGS="$save_CPPFLAGS" |
| 23672 | LDFLAGS="$save_LDFLAGS" |
| 23673 | LIBS="$save_LIBS" |
| 23674 | ;; |
| 23675 | esac |
| 23676 | |
| 23677 | case $lt_cv_dlopen_self in |
| 23678 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 23679 | *) enable_dlopen_self=unknown ;; |
| 23680 | esac |
| 23681 | |
| 23682 | case $lt_cv_dlopen_self_static in |
| 23683 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 23684 | *) enable_dlopen_self_static=unknown ;; |
| 23685 | esac |
| 23686 | fi |
| 23687 | |
| 23688 | |
| 23689 | # The else clause should only fire when bootstrapping the |
| 23690 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23691 | # with your package, and you will get complaints that there are |
| 23692 | # no rules to generate ltmain.sh. |
| 23693 | if test -f "$ltmain"; then |
| 23694 | # See if we are running on zsh, and set the options which allow our commands through |
| 23695 | # without removal of \ escapes. |
| 23696 | if test -n "${ZSH_VERSION+set}" ; then |
| 23697 | setopt NO_GLOB_SUBST |
| 23698 | fi |
| 23699 | # Now quote all the things that may contain metacharacters while being |
| 23700 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23701 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23702 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 23703 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23704 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23705 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23706 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23707 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23708 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23709 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23710 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23711 | compiler_GCJ \ |
| 23712 | CC_GCJ \ |
| 23713 | LD_GCJ \ |
| 23714 | lt_prog_compiler_wl_GCJ \ |
| 23715 | lt_prog_compiler_pic_GCJ \ |
| 23716 | lt_prog_compiler_static_GCJ \ |
| 23717 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 23718 | export_dynamic_flag_spec_GCJ \ |
| 23719 | thread_safe_flag_spec_GCJ \ |
| 23720 | whole_archive_flag_spec_GCJ \ |
| 23721 | enable_shared_with_static_runtimes_GCJ \ |
| 23722 | old_archive_cmds_GCJ \ |
| 23723 | old_archive_from_new_cmds_GCJ \ |
| 23724 | predep_objects_GCJ \ |
| 23725 | postdep_objects_GCJ \ |
| 23726 | predeps_GCJ \ |
| 23727 | postdeps_GCJ \ |
| 23728 | compiler_lib_search_path_GCJ \ |
| 23729 | archive_cmds_GCJ \ |
| 23730 | archive_expsym_cmds_GCJ \ |
| 23731 | postinstall_cmds_GCJ \ |
| 23732 | postuninstall_cmds_GCJ \ |
| 23733 | old_archive_from_expsyms_cmds_GCJ \ |
| 23734 | allow_undefined_flag_GCJ \ |
| 23735 | no_undefined_flag_GCJ \ |
| 23736 | export_symbols_cmds_GCJ \ |
| 23737 | hardcode_libdir_flag_spec_GCJ \ |
| 23738 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 23739 | hardcode_libdir_separator_GCJ \ |
| 23740 | hardcode_automatic_GCJ \ |
| 23741 | module_cmds_GCJ \ |
| 23742 | module_expsym_cmds_GCJ \ |
| 23743 | lt_cv_prog_compiler_c_o_GCJ \ |
| 23744 | exclude_expsyms_GCJ \ |
| 23745 | include_expsyms_GCJ; do |
| 23746 | |
| 23747 | case $var in |
| 23748 | old_archive_cmds_GCJ | \ |
| 23749 | old_archive_from_new_cmds_GCJ | \ |
| 23750 | archive_cmds_GCJ | \ |
| 23751 | archive_expsym_cmds_GCJ | \ |
| 23752 | module_cmds_GCJ | \ |
| 23753 | module_expsym_cmds_GCJ | \ |
| 23754 | old_archive_from_expsyms_cmds_GCJ | \ |
| 23755 | export_symbols_cmds_GCJ | \ |
| 23756 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23757 | postinstall_cmds | postuninstall_cmds | \ |
| 23758 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23759 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23760 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23761 | 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] | 23762 | ;; |
| 23763 | *) |
| 23764 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23765 | ;; |
| 23766 | esac |
| 23767 | done |
| 23768 | |
| 23769 | case $lt_echo in |
| 23770 | *'\$0 --fallback-echo"') |
| 23771 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23772 | ;; |
| 23773 | esac |
| 23774 | |
| 23775 | cfgfile="$ofile" |
| 23776 | |
| 23777 | cat <<__EOF__ >> "$cfgfile" |
| 23778 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23779 | |
| 23780 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23781 | |
| 23782 | # Shell to use when invoking shell scripts. |
| 23783 | SHELL=$lt_SHELL |
| 23784 | |
| 23785 | # Whether or not to build shared libraries. |
| 23786 | build_libtool_libs=$enable_shared |
| 23787 | |
| 23788 | # Whether or not to build static libraries. |
| 23789 | build_old_libs=$enable_static |
| 23790 | |
| 23791 | # Whether or not to add -lc for building shared libraries. |
| 23792 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 23793 | |
| 23794 | # Whether or not to disallow shared libs when runtime libs are static |
| 23795 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 23796 | |
| 23797 | # Whether or not to optimize for fast installation. |
| 23798 | fast_install=$enable_fast_install |
| 23799 | |
| 23800 | # The host system. |
| 23801 | host_alias=$host_alias |
| 23802 | host=$host |
| 23803 | |
| 23804 | # An echo program that does not interpret backslashes. |
| 23805 | echo=$lt_echo |
| 23806 | |
| 23807 | # The archiver. |
| 23808 | AR=$lt_AR |
| 23809 | AR_FLAGS=$lt_AR_FLAGS |
| 23810 | |
| 23811 | # A C compiler. |
| 23812 | LTCC=$lt_LTCC |
| 23813 | |
| 23814 | # A language-specific compiler. |
| 23815 | CC=$lt_compiler_GCJ |
| 23816 | |
| 23817 | # Is the compiler the GNU C compiler? |
| 23818 | with_gcc=$GCC_GCJ |
| 23819 | |
| 23820 | # An ERE matcher. |
| 23821 | EGREP=$lt_EGREP |
| 23822 | |
| 23823 | # The linker used to build libraries. |
| 23824 | LD=$lt_LD_GCJ |
| 23825 | |
| 23826 | # Whether we need hard or soft links. |
| 23827 | LN_S=$lt_LN_S |
| 23828 | |
| 23829 | # A BSD-compatible nm program. |
| 23830 | NM=$lt_NM |
| 23831 | |
| 23832 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23833 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23834 | |
| 23835 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23836 | MAGIC_CMD=$MAGIC_CMD |
| 23837 | |
| 23838 | # Used on cygwin: DLL creation program. |
| 23839 | DLLTOOL="$DLLTOOL" |
| 23840 | |
| 23841 | # Used on cygwin: object dumper. |
| 23842 | OBJDUMP="$OBJDUMP" |
| 23843 | |
| 23844 | # Used on cygwin: assembler. |
| 23845 | AS="$AS" |
| 23846 | |
| 23847 | # The name of the directory that contains temporary libtool files. |
| 23848 | objdir=$objdir |
| 23849 | |
| 23850 | # How to create reloadable object files. |
| 23851 | reload_flag=$lt_reload_flag |
| 23852 | reload_cmds=$lt_reload_cmds |
| 23853 | |
| 23854 | # How to pass a linker flag through the compiler. |
| 23855 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 23856 | |
| 23857 | # Object file suffix (normally "o"). |
| 23858 | objext="$ac_objext" |
| 23859 | |
| 23860 | # Old archive suffix (normally "a"). |
| 23861 | libext="$libext" |
| 23862 | |
| 23863 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23864 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23865 | |
| 23866 | # Executable file suffix (normally ""). |
| 23867 | exeext="$exeext" |
| 23868 | |
| 23869 | # Additional compiler flags for building library objects. |
| 23870 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 23871 | pic_mode=$pic_mode |
| 23872 | |
| 23873 | # What is the maximum length of a command? |
| 23874 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23875 | |
| 23876 | # Does compiler simultaneously support -c and -o options? |
| 23877 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 23878 | |
| 23879 | # Must we lock files when doing compilation ? |
| 23880 | need_locks=$lt_need_locks |
| 23881 | |
| 23882 | # Do we need the lib prefix for modules? |
| 23883 | need_lib_prefix=$need_lib_prefix |
| 23884 | |
| 23885 | # Do we need a version for libraries? |
| 23886 | need_version=$need_version |
| 23887 | |
| 23888 | # Whether dlopen is supported. |
| 23889 | dlopen_support=$enable_dlopen |
| 23890 | |
| 23891 | # Whether dlopen of programs is supported. |
| 23892 | dlopen_self=$enable_dlopen_self |
| 23893 | |
| 23894 | # Whether dlopen of statically linked programs is supported. |
| 23895 | dlopen_self_static=$enable_dlopen_self_static |
| 23896 | |
| 23897 | # Compiler flag to prevent dynamic linking. |
| 23898 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 23899 | |
| 23900 | # Compiler flag to turn off builtin functions. |
| 23901 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 23902 | |
| 23903 | # Compiler flag to allow reflexive dlopens. |
| 23904 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 23905 | |
| 23906 | # Compiler flag to generate shared objects directly from archives. |
| 23907 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 23908 | |
| 23909 | # Compiler flag to generate thread-safe objects. |
| 23910 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 23911 | |
| 23912 | # Library versioning type. |
| 23913 | version_type=$version_type |
| 23914 | |
| 23915 | # Format of library name prefix. |
| 23916 | libname_spec=$lt_libname_spec |
| 23917 | |
| 23918 | # List of archive names. First name is the real one, the rest are links. |
| 23919 | # The last name is the one that the linker finds with -lNAME. |
| 23920 | library_names_spec=$lt_library_names_spec |
| 23921 | |
| 23922 | # The coded name of the library, if different from the real name. |
| 23923 | soname_spec=$lt_soname_spec |
| 23924 | |
| 23925 | # Commands used to build and install an old-style archive. |
| 23926 | RANLIB=$lt_RANLIB |
| 23927 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 23928 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23929 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23930 | |
| 23931 | # Create an old-style archive from a shared archive. |
| 23932 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 23933 | |
| 23934 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23935 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 23936 | |
| 23937 | # Commands used to build and install a shared archive. |
| 23938 | archive_cmds=$lt_archive_cmds_GCJ |
| 23939 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 23940 | postinstall_cmds=$lt_postinstall_cmds |
| 23941 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23942 | |
| 23943 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23944 | module_cmds=$lt_module_cmds_GCJ |
| 23945 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 23946 | |
| 23947 | # Commands to strip libraries. |
| 23948 | old_striplib=$lt_old_striplib |
| 23949 | striplib=$lt_striplib |
| 23950 | |
| 23951 | # Dependencies to place before the objects being linked to create a |
| 23952 | # shared library. |
| 23953 | predep_objects=$lt_predep_objects_GCJ |
| 23954 | |
| 23955 | # Dependencies to place after the objects being linked to create a |
| 23956 | # shared library. |
| 23957 | postdep_objects=$lt_postdep_objects_GCJ |
| 23958 | |
| 23959 | # Dependencies to place before the objects being linked to create a |
| 23960 | # shared library. |
| 23961 | predeps=$lt_predeps_GCJ |
| 23962 | |
| 23963 | # Dependencies to place after the objects being linked to create a |
| 23964 | # shared library. |
| 23965 | postdeps=$lt_postdeps_GCJ |
| 23966 | |
| 23967 | # The library search path used internally by the compiler when linking |
| 23968 | # a shared library. |
| 23969 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 23970 | |
| 23971 | # Method to check whether dependent libraries are shared objects. |
| 23972 | deplibs_check_method=$lt_deplibs_check_method |
| 23973 | |
| 23974 | # Command to use when deplibs_check_method == file_magic. |
| 23975 | file_magic_cmd=$lt_file_magic_cmd |
| 23976 | |
| 23977 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23978 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 23979 | |
| 23980 | # Flag that forces no undefined symbols. |
| 23981 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 23982 | |
| 23983 | # Commands used to finish a libtool library installation in a directory. |
| 23984 | finish_cmds=$lt_finish_cmds |
| 23985 | |
| 23986 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23987 | finish_eval=$lt_finish_eval |
| 23988 | |
| 23989 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23990 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23991 | |
| 23992 | # Transform the output of nm in a proper C declaration |
| 23993 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23994 | |
| 23995 | # Transform the output of nm in a C name address pair |
| 23996 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23997 | |
| 23998 | # This is the shared library runtime path variable. |
| 23999 | runpath_var=$runpath_var |
| 24000 | |
| 24001 | # This is the shared library path variable. |
| 24002 | shlibpath_var=$shlibpath_var |
| 24003 | |
| 24004 | # Is shlibpath searched before the hard-coded library search path? |
| 24005 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24006 | |
| 24007 | # How to hardcode a shared library path into an executable. |
| 24008 | hardcode_action=$hardcode_action_GCJ |
| 24009 | |
| 24010 | # Whether we should hardcode library paths into libraries. |
| 24011 | hardcode_into_libs=$hardcode_into_libs |
| 24012 | |
| 24013 | # Flag to hardcode \$libdir into a binary during linking. |
| 24014 | # This must work even if \$libdir does not exist. |
| 24015 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 24016 | |
| 24017 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24018 | # a binary during linking. This must work even if \$libdir does |
| 24019 | # not exist. |
| 24020 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 24021 | |
| 24022 | # Whether we need a single -rpath flag with a separated argument. |
| 24023 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 24024 | |
| 24025 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24026 | # resulting binary. |
| 24027 | hardcode_direct=$hardcode_direct_GCJ |
| 24028 | |
| 24029 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24030 | # resulting binary. |
| 24031 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 24032 | |
| 24033 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24034 | # the resulting binary. |
| 24035 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 24036 | |
| 24037 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24038 | # and all subsequent libraries and executables linked against it. |
| 24039 | hardcode_automatic=$hardcode_automatic_GCJ |
| 24040 | |
| 24041 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24042 | # restored at relink time. |
| 24043 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24044 | |
| 24045 | # Whether libtool must link a program against all its dependency libraries. |
| 24046 | link_all_deplibs=$link_all_deplibs_GCJ |
| 24047 | |
| 24048 | # Compile-time system search path for libraries |
| 24049 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24050 | |
| 24051 | # Run-time system search path for libraries |
| 24052 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24053 | |
| 24054 | # Fix the shell variable \$srcfile for the compiler. |
| 24055 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 24056 | |
| 24057 | # Set to yes if exported symbols are required. |
| 24058 | always_export_symbols=$always_export_symbols_GCJ |
| 24059 | |
| 24060 | # The commands to list exported symbols. |
| 24061 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 24062 | |
| 24063 | # The commands to extract the exported symbol list from a shared archive. |
| 24064 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24065 | |
| 24066 | # Symbols that should not be listed in the preloaded symbols. |
| 24067 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 24068 | |
| 24069 | # Symbols that must always be exported. |
| 24070 | include_expsyms=$lt_include_expsyms_GCJ |
| 24071 | |
| 24072 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24073 | |
| 24074 | __EOF__ |
| 24075 | |
| 24076 | |
| 24077 | else |
| 24078 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24079 | # `config.status --recheck' to rerun these tests and create the |
| 24080 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24081 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24082 | if test -f "$ltmain_in"; then |
| 24083 | test -f Makefile && make "$ltmain" |
| 24084 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24085 | fi |
| 24086 | |
| 24087 | |
| 24088 | ac_ext=c |
| 24089 | ac_cpp='$CPP $CPPFLAGS' |
| 24090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24093 | |
| 24094 | CC="$lt_save_CC" |
| 24095 | |
| 24096 | else |
| 24097 | tagname="" |
| 24098 | fi |
| 24099 | ;; |
| 24100 | |
| 24101 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24102 | ac_ext=c |
| 24103 | ac_cpp='$CPP $CPPFLAGS' |
| 24104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24107 | |
| 24108 | |
| 24109 | # Source file extension for RC test sources. |
| 24110 | ac_ext=rc |
| 24111 | |
| 24112 | # Object file extension for compiled RC test sources. |
| 24113 | objext=o |
| 24114 | objext_RC=$objext |
| 24115 | |
| 24116 | # Code to be used in simple compile tests |
| 24117 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 24118 | |
| 24119 | # Code to be used in simple link tests |
| 24120 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 24121 | |
| 24122 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24123 | |
| 24124 | # If no C compiler was specified, use CC. |
| 24125 | LTCC=${LTCC-"$CC"} |
| 24126 | |
| 24127 | # Allow CC to be a program name with arguments. |
| 24128 | compiler=$CC |
| 24129 | |
| 24130 | |
| 24131 | # Allow CC to be a program name with arguments. |
| 24132 | lt_save_CC="$CC" |
| 24133 | CC=${RC-"windres"} |
| 24134 | compiler=$CC |
| 24135 | compiler_RC=$CC |
| 24136 | lt_cv_prog_compiler_c_o_RC=yes |
| 24137 | |
| 24138 | # The else clause should only fire when bootstrapping the |
| 24139 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 24140 | # with your package, and you will get complaints that there are |
| 24141 | # no rules to generate ltmain.sh. |
| 24142 | if test -f "$ltmain"; then |
| 24143 | # See if we are running on zsh, and set the options which allow our commands through |
| 24144 | # without removal of \ escapes. |
| 24145 | if test -n "${ZSH_VERSION+set}" ; then |
| 24146 | setopt NO_GLOB_SUBST |
| 24147 | fi |
| 24148 | # Now quote all the things that may contain metacharacters while being |
| 24149 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 24150 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24151 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 24152 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24153 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 24154 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 24155 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 24156 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 24157 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 24158 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 24159 | old_postinstall_cmds old_postuninstall_cmds \ |
| 24160 | compiler_RC \ |
| 24161 | CC_RC \ |
| 24162 | LD_RC \ |
| 24163 | lt_prog_compiler_wl_RC \ |
| 24164 | lt_prog_compiler_pic_RC \ |
| 24165 | lt_prog_compiler_static_RC \ |
| 24166 | lt_prog_compiler_no_builtin_flag_RC \ |
| 24167 | export_dynamic_flag_spec_RC \ |
| 24168 | thread_safe_flag_spec_RC \ |
| 24169 | whole_archive_flag_spec_RC \ |
| 24170 | enable_shared_with_static_runtimes_RC \ |
| 24171 | old_archive_cmds_RC \ |
| 24172 | old_archive_from_new_cmds_RC \ |
| 24173 | predep_objects_RC \ |
| 24174 | postdep_objects_RC \ |
| 24175 | predeps_RC \ |
| 24176 | postdeps_RC \ |
| 24177 | compiler_lib_search_path_RC \ |
| 24178 | archive_cmds_RC \ |
| 24179 | archive_expsym_cmds_RC \ |
| 24180 | postinstall_cmds_RC \ |
| 24181 | postuninstall_cmds_RC \ |
| 24182 | old_archive_from_expsyms_cmds_RC \ |
| 24183 | allow_undefined_flag_RC \ |
| 24184 | no_undefined_flag_RC \ |
| 24185 | export_symbols_cmds_RC \ |
| 24186 | hardcode_libdir_flag_spec_RC \ |
| 24187 | hardcode_libdir_flag_spec_ld_RC \ |
| 24188 | hardcode_libdir_separator_RC \ |
| 24189 | hardcode_automatic_RC \ |
| 24190 | module_cmds_RC \ |
| 24191 | module_expsym_cmds_RC \ |
| 24192 | lt_cv_prog_compiler_c_o_RC \ |
| 24193 | exclude_expsyms_RC \ |
| 24194 | include_expsyms_RC; do |
| 24195 | |
| 24196 | case $var in |
| 24197 | old_archive_cmds_RC | \ |
| 24198 | old_archive_from_new_cmds_RC | \ |
| 24199 | archive_cmds_RC | \ |
| 24200 | archive_expsym_cmds_RC | \ |
| 24201 | module_cmds_RC | \ |
| 24202 | module_expsym_cmds_RC | \ |
| 24203 | old_archive_from_expsyms_cmds_RC | \ |
| 24204 | export_symbols_cmds_RC | \ |
| 24205 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 24206 | postinstall_cmds | postuninstall_cmds | \ |
| 24207 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 24208 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 24209 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24210 | 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] | 24211 | ;; |
| 24212 | *) |
| 24213 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 24214 | ;; |
| 24215 | esac |
| 24216 | done |
| 24217 | |
| 24218 | case $lt_echo in |
| 24219 | *'\$0 --fallback-echo"') |
| 24220 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 24221 | ;; |
| 24222 | esac |
| 24223 | |
| 24224 | cfgfile="$ofile" |
| 24225 | |
| 24226 | cat <<__EOF__ >> "$cfgfile" |
| 24227 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 24228 | |
| 24229 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 24230 | |
| 24231 | # Shell to use when invoking shell scripts. |
| 24232 | SHELL=$lt_SHELL |
| 24233 | |
| 24234 | # Whether or not to build shared libraries. |
| 24235 | build_libtool_libs=$enable_shared |
| 24236 | |
| 24237 | # Whether or not to build static libraries. |
| 24238 | build_old_libs=$enable_static |
| 24239 | |
| 24240 | # Whether or not to add -lc for building shared libraries. |
| 24241 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 24242 | |
| 24243 | # Whether or not to disallow shared libs when runtime libs are static |
| 24244 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 24245 | |
| 24246 | # Whether or not to optimize for fast installation. |
| 24247 | fast_install=$enable_fast_install |
| 24248 | |
| 24249 | # The host system. |
| 24250 | host_alias=$host_alias |
| 24251 | host=$host |
| 24252 | |
| 24253 | # An echo program that does not interpret backslashes. |
| 24254 | echo=$lt_echo |
| 24255 | |
| 24256 | # The archiver. |
| 24257 | AR=$lt_AR |
| 24258 | AR_FLAGS=$lt_AR_FLAGS |
| 24259 | |
| 24260 | # A C compiler. |
| 24261 | LTCC=$lt_LTCC |
| 24262 | |
| 24263 | # A language-specific compiler. |
| 24264 | CC=$lt_compiler_RC |
| 24265 | |
| 24266 | # Is the compiler the GNU C compiler? |
| 24267 | with_gcc=$GCC_RC |
| 24268 | |
| 24269 | # An ERE matcher. |
| 24270 | EGREP=$lt_EGREP |
| 24271 | |
| 24272 | # The linker used to build libraries. |
| 24273 | LD=$lt_LD_RC |
| 24274 | |
| 24275 | # Whether we need hard or soft links. |
| 24276 | LN_S=$lt_LN_S |
| 24277 | |
| 24278 | # A BSD-compatible nm program. |
| 24279 | NM=$lt_NM |
| 24280 | |
| 24281 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24282 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24283 | |
| 24284 | # Used to examine libraries when file_magic_cmd begins "file" |
| 24285 | MAGIC_CMD=$MAGIC_CMD |
| 24286 | |
| 24287 | # Used on cygwin: DLL creation program. |
| 24288 | DLLTOOL="$DLLTOOL" |
| 24289 | |
| 24290 | # Used on cygwin: object dumper. |
| 24291 | OBJDUMP="$OBJDUMP" |
| 24292 | |
| 24293 | # Used on cygwin: assembler. |
| 24294 | AS="$AS" |
| 24295 | |
| 24296 | # The name of the directory that contains temporary libtool files. |
| 24297 | objdir=$objdir |
| 24298 | |
| 24299 | # How to create reloadable object files. |
| 24300 | reload_flag=$lt_reload_flag |
| 24301 | reload_cmds=$lt_reload_cmds |
| 24302 | |
| 24303 | # How to pass a linker flag through the compiler. |
| 24304 | wl=$lt_lt_prog_compiler_wl_RC |
| 24305 | |
| 24306 | # Object file suffix (normally "o"). |
| 24307 | objext="$ac_objext" |
| 24308 | |
| 24309 | # Old archive suffix (normally "a"). |
| 24310 | libext="$libext" |
| 24311 | |
| 24312 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24313 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24314 | |
| 24315 | # Executable file suffix (normally ""). |
| 24316 | exeext="$exeext" |
| 24317 | |
| 24318 | # Additional compiler flags for building library objects. |
| 24319 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 24320 | pic_mode=$pic_mode |
| 24321 | |
| 24322 | # What is the maximum length of a command? |
| 24323 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 24324 | |
| 24325 | # Does compiler simultaneously support -c and -o options? |
| 24326 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 24327 | |
| 24328 | # Must we lock files when doing compilation ? |
| 24329 | need_locks=$lt_need_locks |
| 24330 | |
| 24331 | # Do we need the lib prefix for modules? |
| 24332 | need_lib_prefix=$need_lib_prefix |
| 24333 | |
| 24334 | # Do we need a version for libraries? |
| 24335 | need_version=$need_version |
| 24336 | |
| 24337 | # Whether dlopen is supported. |
| 24338 | dlopen_support=$enable_dlopen |
| 24339 | |
| 24340 | # Whether dlopen of programs is supported. |
| 24341 | dlopen_self=$enable_dlopen_self |
| 24342 | |
| 24343 | # Whether dlopen of statically linked programs is supported. |
| 24344 | dlopen_self_static=$enable_dlopen_self_static |
| 24345 | |
| 24346 | # Compiler flag to prevent dynamic linking. |
| 24347 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 24348 | |
| 24349 | # Compiler flag to turn off builtin functions. |
| 24350 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 24351 | |
| 24352 | # Compiler flag to allow reflexive dlopens. |
| 24353 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 24354 | |
| 24355 | # Compiler flag to generate shared objects directly from archives. |
| 24356 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 24357 | |
| 24358 | # Compiler flag to generate thread-safe objects. |
| 24359 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 24360 | |
| 24361 | # Library versioning type. |
| 24362 | version_type=$version_type |
| 24363 | |
| 24364 | # Format of library name prefix. |
| 24365 | libname_spec=$lt_libname_spec |
| 24366 | |
| 24367 | # List of archive names. First name is the real one, the rest are links. |
| 24368 | # The last name is the one that the linker finds with -lNAME. |
| 24369 | library_names_spec=$lt_library_names_spec |
| 24370 | |
| 24371 | # The coded name of the library, if different from the real name. |
| 24372 | soname_spec=$lt_soname_spec |
| 24373 | |
| 24374 | # Commands used to build and install an old-style archive. |
| 24375 | RANLIB=$lt_RANLIB |
| 24376 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 24377 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24378 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24379 | |
| 24380 | # Create an old-style archive from a shared archive. |
| 24381 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 24382 | |
| 24383 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24384 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 24385 | |
| 24386 | # Commands used to build and install a shared archive. |
| 24387 | archive_cmds=$lt_archive_cmds_RC |
| 24388 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 24389 | postinstall_cmds=$lt_postinstall_cmds |
| 24390 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24391 | |
| 24392 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24393 | module_cmds=$lt_module_cmds_RC |
| 24394 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 24395 | |
| 24396 | # Commands to strip libraries. |
| 24397 | old_striplib=$lt_old_striplib |
| 24398 | striplib=$lt_striplib |
| 24399 | |
| 24400 | # Dependencies to place before the objects being linked to create a |
| 24401 | # shared library. |
| 24402 | predep_objects=$lt_predep_objects_RC |
| 24403 | |
| 24404 | # Dependencies to place after the objects being linked to create a |
| 24405 | # shared library. |
| 24406 | postdep_objects=$lt_postdep_objects_RC |
| 24407 | |
| 24408 | # Dependencies to place before the objects being linked to create a |
| 24409 | # shared library. |
| 24410 | predeps=$lt_predeps_RC |
| 24411 | |
| 24412 | # Dependencies to place after the objects being linked to create a |
| 24413 | # shared library. |
| 24414 | postdeps=$lt_postdeps_RC |
| 24415 | |
| 24416 | # The library search path used internally by the compiler when linking |
| 24417 | # a shared library. |
| 24418 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 24419 | |
| 24420 | # Method to check whether dependent libraries are shared objects. |
| 24421 | deplibs_check_method=$lt_deplibs_check_method |
| 24422 | |
| 24423 | # Command to use when deplibs_check_method == file_magic. |
| 24424 | file_magic_cmd=$lt_file_magic_cmd |
| 24425 | |
| 24426 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24427 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 24428 | |
| 24429 | # Flag that forces no undefined symbols. |
| 24430 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 24431 | |
| 24432 | # Commands used to finish a libtool library installation in a directory. |
| 24433 | finish_cmds=$lt_finish_cmds |
| 24434 | |
| 24435 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24436 | finish_eval=$lt_finish_eval |
| 24437 | |
| 24438 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24439 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24440 | |
| 24441 | # Transform the output of nm in a proper C declaration |
| 24442 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24443 | |
| 24444 | # Transform the output of nm in a C name address pair |
| 24445 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24446 | |
| 24447 | # This is the shared library runtime path variable. |
| 24448 | runpath_var=$runpath_var |
| 24449 | |
| 24450 | # This is the shared library path variable. |
| 24451 | shlibpath_var=$shlibpath_var |
| 24452 | |
| 24453 | # Is shlibpath searched before the hard-coded library search path? |
| 24454 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24455 | |
| 24456 | # How to hardcode a shared library path into an executable. |
| 24457 | hardcode_action=$hardcode_action_RC |
| 24458 | |
| 24459 | # Whether we should hardcode library paths into libraries. |
| 24460 | hardcode_into_libs=$hardcode_into_libs |
| 24461 | |
| 24462 | # Flag to hardcode \$libdir into a binary during linking. |
| 24463 | # This must work even if \$libdir does not exist. |
| 24464 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 24465 | |
| 24466 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24467 | # a binary during linking. This must work even if \$libdir does |
| 24468 | # not exist. |
| 24469 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 24470 | |
| 24471 | # Whether we need a single -rpath flag with a separated argument. |
| 24472 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 24473 | |
| 24474 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24475 | # resulting binary. |
| 24476 | hardcode_direct=$hardcode_direct_RC |
| 24477 | |
| 24478 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24479 | # resulting binary. |
| 24480 | hardcode_minus_L=$hardcode_minus_L_RC |
| 24481 | |
| 24482 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24483 | # the resulting binary. |
| 24484 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 24485 | |
| 24486 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24487 | # and all subsequent libraries and executables linked against it. |
| 24488 | hardcode_automatic=$hardcode_automatic_RC |
| 24489 | |
| 24490 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24491 | # restored at relink time. |
| 24492 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24493 | |
| 24494 | # Whether libtool must link a program against all its dependency libraries. |
| 24495 | link_all_deplibs=$link_all_deplibs_RC |
| 24496 | |
| 24497 | # Compile-time system search path for libraries |
| 24498 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24499 | |
| 24500 | # Run-time system search path for libraries |
| 24501 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24502 | |
| 24503 | # Fix the shell variable \$srcfile for the compiler. |
| 24504 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 24505 | |
| 24506 | # Set to yes if exported symbols are required. |
| 24507 | always_export_symbols=$always_export_symbols_RC |
| 24508 | |
| 24509 | # The commands to list exported symbols. |
| 24510 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 24511 | |
| 24512 | # The commands to extract the exported symbol list from a shared archive. |
| 24513 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24514 | |
| 24515 | # Symbols that should not be listed in the preloaded symbols. |
| 24516 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 24517 | |
| 24518 | # Symbols that must always be exported. |
| 24519 | include_expsyms=$lt_include_expsyms_RC |
| 24520 | |
| 24521 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24522 | |
| 24523 | __EOF__ |
| 24524 | |
| 24525 | |
| 24526 | else |
| 24527 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24528 | # `config.status --recheck' to rerun these tests and create the |
| 24529 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24530 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24531 | if test -f "$ltmain_in"; then |
| 24532 | test -f Makefile && make "$ltmain" |
| 24533 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24534 | fi |
| 24535 | |
| 24536 | |
| 24537 | ac_ext=c |
| 24538 | ac_cpp='$CPP $CPPFLAGS' |
| 24539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24542 | |
| 24543 | CC="$lt_save_CC" |
| 24544 | |
| 24545 | ;; |
| 24546 | |
| 24547 | *) |
| 24548 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 24549 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 24550 | { (exit 1); exit 1; }; } |
| 24551 | ;; |
| 24552 | esac |
| 24553 | |
| 24554 | # Append the new tag name to the list of available tags. |
| 24555 | if test -n "$tagname" ; then |
| 24556 | available_tags="$available_tags $tagname" |
| 24557 | fi |
| 24558 | fi |
| 24559 | done |
| 24560 | IFS="$lt_save_ifs" |
| 24561 | |
| 24562 | # Now substitute the updated list of available tags. |
| 24563 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 24564 | mv "${ofile}T" "$ofile" |
| 24565 | chmod +x "$ofile" |
| 24566 | else |
| 24567 | rm -f "${ofile}T" |
| 24568 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 24569 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 24570 | { (exit 1); exit 1; }; } |
| 24571 | fi |
| 24572 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24573 | |
| 24574 | |
| 24575 | |
| 24576 | # This can be used to rebuild libtool when needed |
| 24577 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 24578 | |
| 24579 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24580 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24581 | |
| 24582 | # Prevent multiple expansion |
| 24583 | |
| 24584 | |
| 24585 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24586 | |
| 24587 | |
| 24588 | |
| 24589 | |
| 24590 | |
| 24591 | |
| 24592 | |
| 24593 | |
| 24594 | |
| 24595 | |
| 24596 | |
| 24597 | |
| 24598 | |
| 24599 | |
| 24600 | |
| 24601 | |
| 24602 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24603 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 24604 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 24605 | |
| 24606 | cat >>confdefs.h <<\_ACEOF |
| 24607 | #define CAN_DLOPEN_SELF 1 |
| 24608 | _ACEOF |
| 24609 | |
| 24610 | fi |
| 24611 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24612 | etags_version=`$ETAGS --version 2>&1` |
| 24613 | case "$etags_version" in |
| 24614 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 24615 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 24616 | *) ETAGSFLAGS="" ;; |
| 24617 | esac |
| 24618 | ETAGSFLAGS=$ETAGSFLAGS |
| 24619 | |
| 24620 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 24621 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24622 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 24623 | LLVMGXX="llvm-g++${EXEEXT}" |
| 24624 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 24625 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 24628 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 24629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24630 | else |
| 24631 | case $LLVMGCC in |
| 24632 | [\\/]* | ?:[\\/]*) |
| 24633 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 24634 | ;; |
| 24635 | *) |
| 24636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24637 | for as_dir in $PATH |
| 24638 | do |
| 24639 | IFS=$as_save_IFS |
| 24640 | test -z "$as_dir" && as_dir=. |
| 24641 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24643 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 24644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24645 | break 2 |
| 24646 | fi |
| 24647 | done |
| 24648 | done |
| 24649 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24650 | ;; |
| 24651 | esac |
| 24652 | fi |
| 24653 | LLVMGCC=$ac_cv_path_LLVMGCC |
| 24654 | |
| 24655 | if test -n "$LLVMGCC"; then |
| 24656 | echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 24657 | echo "${ECHO_T}$LLVMGCC" >&6 |
| 24658 | else |
| 24659 | echo "$as_me:$LINENO: result: no" >&5 |
| 24660 | echo "${ECHO_T}no" >&6 |
| 24661 | fi |
| 24662 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24663 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 24664 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 24667 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 24668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24669 | else |
| 24670 | case $LLVMGXX in |
| 24671 | [\\/]* | ?:[\\/]*) |
| 24672 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 24673 | ;; |
| 24674 | *) |
| 24675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24676 | for as_dir in $PATH |
| 24677 | do |
| 24678 | IFS=$as_save_IFS |
| 24679 | test -z "$as_dir" && as_dir=. |
| 24680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24681 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24682 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 24683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24684 | break 2 |
| 24685 | fi |
| 24686 | done |
| 24687 | done |
| 24688 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24689 | ;; |
| 24690 | esac |
| 24691 | fi |
| 24692 | LLVMGXX=$ac_cv_path_LLVMGXX |
| 24693 | |
| 24694 | if test -n "$LLVMGXX"; then |
| 24695 | echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 24696 | echo "${ECHO_T}$LLVMGXX" >&6 |
| 24697 | else |
| 24698 | echo "$as_me:$LINENO: result: no" >&5 |
| 24699 | echo "${ECHO_T}no" >&6 |
| 24700 | fi |
| 24701 | |
| 24702 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24703 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 24704 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24705 | LLVMGCC=$LLVMGCC |
| 24706 | |
| 24707 | LLVMGXX=$LLVMGXX |
| 24708 | |
| 24709 | fi |
| 24710 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24711 | echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 24712 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 |
| 24713 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24714 | ICC=no |
| 24715 | IXX=no |
| 24716 | case $CC in |
| 24717 | icc*|icpc*) |
| 24718 | ICC=yes |
| 24719 | IXX=yes |
| 24720 | ;; |
| 24721 | *) |
| 24722 | ;; |
| 24723 | esac |
| 24724 | |
| 24725 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24726 | then |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24727 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 24728 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24729 | { (exit 1); exit 1; }; } |
| 24730 | fi |
| 24731 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24732 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24733 | then |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24734 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 24735 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 24736 | { (exit 1); exit 1; }; } |
| 24737 | fi |
| 24738 | |
| 24739 | if test "$GCC" = "yes" |
| 24740 | then |
| 24741 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` |
| 24742 | if test "$gccmajor" -lt "3" |
| 24743 | then |
| 24744 | { { 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] | 24745 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 24746 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24747 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24748 | fi |
| 24749 | |
| 24750 | if test -z "$llvm_cv_gnu_make_command" |
| 24751 | then |
| 24752 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 24753 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 24754 | { (exit 1); exit 1; }; } |
| 24755 | fi |
| 24756 | |
| 24757 | echo "$as_me:$LINENO: result: ok" >&5 |
| 24758 | echo "${ECHO_T}ok" >&6 |
| 24759 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24760 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24762 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 24763 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 24764 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 24765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24766 | else |
| 24767 | ac_check_lib_save_LIBS=$LIBS |
| 24768 | LIBS="-lelf $LIBS" |
| 24769 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24770 | /* confdefs.h. */ |
| 24771 | _ACEOF |
| 24772 | cat confdefs.h >>conftest.$ac_ext |
| 24773 | cat >>conftest.$ac_ext <<_ACEOF |
| 24774 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24775 | |
| 24776 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24777 | #ifdef __cplusplus |
| 24778 | extern "C" |
| 24779 | #endif |
| 24780 | /* We use char because int might match the return type of a gcc2 |
| 24781 | builtin and then its argument prototype would still apply. */ |
| 24782 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24783 | int |
| 24784 | main () |
| 24785 | { |
| 24786 | elf_begin (); |
| 24787 | ; |
| 24788 | return 0; |
| 24789 | } |
| 24790 | _ACEOF |
| 24791 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24793 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24794 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24796 | rm -f conftest.er1 |
| 24797 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24799 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24800 | { ac_try='test -z "$ac_c_werror_flag" |
| 24801 | || test ! -s conftest.err' |
| 24802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24803 | (eval $ac_try) 2>&5 |
| 24804 | ac_status=$? |
| 24805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24806 | (exit $ac_status); }; } && |
| 24807 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24809 | (eval $ac_try) 2>&5 |
| 24810 | ac_status=$? |
| 24811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24812 | (exit $ac_status); }; }; then |
| 24813 | ac_cv_lib_elf_elf_begin=yes |
| 24814 | else |
| 24815 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24817 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24818 | ac_cv_lib_elf_elf_begin=no |
| 24819 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24820 | rm -f conftest.err conftest.$ac_objext \ |
| 24821 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24822 | LIBS=$ac_check_lib_save_LIBS |
| 24823 | fi |
| 24824 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 24825 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 24826 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 24827 | cat >>confdefs.h <<_ACEOF |
| 24828 | #define HAVE_LIBELF 1 |
| 24829 | _ACEOF |
| 24830 | |
| 24831 | LIBS="-lelf $LIBS" |
| 24832 | |
| 24833 | fi |
| 24834 | |
| 24835 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 24836 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 24837 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 24838 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 |
| 24839 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 24840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24841 | else |
| 24842 | ac_func_search_save_LIBS=$LIBS |
| 24843 | ac_cv_search_lt_dlopen=no |
| 24844 | cat >conftest.$ac_ext <<_ACEOF |
| 24845 | /* confdefs.h. */ |
| 24846 | _ACEOF |
| 24847 | cat confdefs.h >>conftest.$ac_ext |
| 24848 | cat >>conftest.$ac_ext <<_ACEOF |
| 24849 | /* end confdefs.h. */ |
| 24850 | |
| 24851 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24852 | #ifdef __cplusplus |
| 24853 | extern "C" |
| 24854 | #endif |
| 24855 | /* We use char because int might match the return type of a gcc2 |
| 24856 | builtin and then its argument prototype would still apply. */ |
| 24857 | char lt_dlopen (); |
| 24858 | int |
| 24859 | main () |
| 24860 | { |
| 24861 | lt_dlopen (); |
| 24862 | ; |
| 24863 | return 0; |
| 24864 | } |
| 24865 | _ACEOF |
| 24866 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24868 | (eval $ac_link) 2>conftest.er1 |
| 24869 | ac_status=$? |
| 24870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24871 | rm -f conftest.er1 |
| 24872 | cat conftest.err >&5 |
| 24873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24874 | (exit $ac_status); } && |
| 24875 | { ac_try='test -z "$ac_c_werror_flag" |
| 24876 | || test ! -s conftest.err' |
| 24877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24878 | (eval $ac_try) 2>&5 |
| 24879 | ac_status=$? |
| 24880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24881 | (exit $ac_status); }; } && |
| 24882 | { ac_try='test -s conftest$ac_exeext' |
| 24883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24884 | (eval $ac_try) 2>&5 |
| 24885 | ac_status=$? |
| 24886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24887 | (exit $ac_status); }; }; then |
| 24888 | ac_cv_search_lt_dlopen="none required" |
| 24889 | else |
| 24890 | echo "$as_me: failed program was:" >&5 |
| 24891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24892 | |
| 24893 | fi |
| 24894 | rm -f conftest.err conftest.$ac_objext \ |
| 24895 | conftest$ac_exeext conftest.$ac_ext |
| 24896 | if test "$ac_cv_search_lt_dlopen" = no; then |
| 24897 | for ac_lib in ltdl; do |
| 24898 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24899 | cat >conftest.$ac_ext <<_ACEOF |
| 24900 | /* confdefs.h. */ |
| 24901 | _ACEOF |
| 24902 | cat confdefs.h >>conftest.$ac_ext |
| 24903 | cat >>conftest.$ac_ext <<_ACEOF |
| 24904 | /* end confdefs.h. */ |
| 24905 | |
| 24906 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24907 | #ifdef __cplusplus |
| 24908 | extern "C" |
| 24909 | #endif |
| 24910 | /* We use char because int might match the return type of a gcc2 |
| 24911 | builtin and then its argument prototype would still apply. */ |
| 24912 | char lt_dlopen (); |
| 24913 | int |
| 24914 | main () |
| 24915 | { |
| 24916 | lt_dlopen (); |
| 24917 | ; |
| 24918 | return 0; |
| 24919 | } |
| 24920 | _ACEOF |
| 24921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24923 | (eval $ac_link) 2>conftest.er1 |
| 24924 | ac_status=$? |
| 24925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24926 | rm -f conftest.er1 |
| 24927 | cat conftest.err >&5 |
| 24928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24929 | (exit $ac_status); } && |
| 24930 | { ac_try='test -z "$ac_c_werror_flag" |
| 24931 | || test ! -s conftest.err' |
| 24932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24933 | (eval $ac_try) 2>&5 |
| 24934 | ac_status=$? |
| 24935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24936 | (exit $ac_status); }; } && |
| 24937 | { ac_try='test -s conftest$ac_exeext' |
| 24938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24939 | (eval $ac_try) 2>&5 |
| 24940 | ac_status=$? |
| 24941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24942 | (exit $ac_status); }; }; then |
| 24943 | ac_cv_search_lt_dlopen="-l$ac_lib" |
| 24944 | break |
| 24945 | else |
| 24946 | echo "$as_me: failed program was:" >&5 |
| 24947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24948 | |
| 24949 | fi |
| 24950 | rm -f conftest.err conftest.$ac_objext \ |
| 24951 | conftest$ac_exeext conftest.$ac_ext |
| 24952 | done |
| 24953 | fi |
| 24954 | LIBS=$ac_func_search_save_LIBS |
| 24955 | fi |
| 24956 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 24957 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 |
| 24958 | if test "$ac_cv_search_lt_dlopen" != no; then |
| 24959 | test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" |
| 24960 | |
| 24961 | cat >>confdefs.h <<\_ACEOF |
| 24962 | #define HAVE_LT_DLOPEN 1 |
| 24963 | _ACEOF |
| 24964 | |
| 24965 | else |
| 24966 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 24967 | not be available" >&5 |
| 24968 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 24969 | not be available" >&2;} |
| 24970 | fi |
| 24971 | |
| 24972 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24973 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 24974 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 24975 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 24976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24977 | else |
| 24978 | ac_func_search_save_LIBS=$LIBS |
| 24979 | ac_cv_search_dlopen=no |
| 24980 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24981 | /* confdefs.h. */ |
| 24982 | _ACEOF |
| 24983 | cat confdefs.h >>conftest.$ac_ext |
| 24984 | cat >>conftest.$ac_ext <<_ACEOF |
| 24985 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24986 | |
| 24987 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 24988 | #ifdef __cplusplus |
| 24989 | extern "C" |
| 24990 | #endif |
| 24991 | /* We use char because int might match the return type of a gcc2 |
| 24992 | builtin and then its argument prototype would still apply. */ |
| 24993 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24994 | int |
| 24995 | main () |
| 24996 | { |
| 24997 | dlopen (); |
| 24998 | ; |
| 24999 | return 0; |
| 25000 | } |
| 25001 | _ACEOF |
| 25002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25004 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25005 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25007 | rm -f conftest.er1 |
| 25008 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25010 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25011 | { ac_try='test -z "$ac_c_werror_flag" |
| 25012 | || test ! -s conftest.err' |
| 25013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25014 | (eval $ac_try) 2>&5 |
| 25015 | ac_status=$? |
| 25016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25017 | (exit $ac_status); }; } && |
| 25018 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25020 | (eval $ac_try) 2>&5 |
| 25021 | ac_status=$? |
| 25022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25023 | (exit $ac_status); }; }; then |
| 25024 | ac_cv_search_dlopen="none required" |
| 25025 | else |
| 25026 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25029 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25030 | rm -f conftest.err conftest.$ac_objext \ |
| 25031 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25032 | if test "$ac_cv_search_dlopen" = no; then |
| 25033 | for ac_lib in dl; do |
| 25034 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25035 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25036 | /* confdefs.h. */ |
| 25037 | _ACEOF |
| 25038 | cat confdefs.h >>conftest.$ac_ext |
| 25039 | cat >>conftest.$ac_ext <<_ACEOF |
| 25040 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25041 | |
| 25042 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25043 | #ifdef __cplusplus |
| 25044 | extern "C" |
| 25045 | #endif |
| 25046 | /* We use char because int might match the return type of a gcc2 |
| 25047 | builtin and then its argument prototype would still apply. */ |
| 25048 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25049 | int |
| 25050 | main () |
| 25051 | { |
| 25052 | dlopen (); |
| 25053 | ; |
| 25054 | return 0; |
| 25055 | } |
| 25056 | _ACEOF |
| 25057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25059 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25060 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25062 | rm -f conftest.er1 |
| 25063 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25065 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25066 | { ac_try='test -z "$ac_c_werror_flag" |
| 25067 | || test ! -s conftest.err' |
| 25068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25069 | (eval $ac_try) 2>&5 |
| 25070 | ac_status=$? |
| 25071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25072 | (exit $ac_status); }; } && |
| 25073 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25075 | (eval $ac_try) 2>&5 |
| 25076 | ac_status=$? |
| 25077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25078 | (exit $ac_status); }; }; then |
| 25079 | ac_cv_search_dlopen="-l$ac_lib" |
| 25080 | break |
| 25081 | else |
| 25082 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25084 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25085 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25086 | rm -f conftest.err conftest.$ac_objext \ |
| 25087 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25088 | done |
| 25089 | fi |
| 25090 | LIBS=$ac_func_search_save_LIBS |
| 25091 | fi |
| 25092 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 25093 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 25094 | if test "$ac_cv_search_dlopen" != no; then |
| 25095 | 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] | 25096 | |
| 25097 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25098 | #define HAVE_DLOPEN 1 |
| 25099 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25100 | |
| 25101 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25102 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 25103 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25104 | fi |
| 25105 | |
| 25106 | |
| 25107 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 25108 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 25109 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 25110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25111 | else |
| 25112 | ac_func_search_save_LIBS=$LIBS |
| 25113 | ac_cv_search_mallinfo=no |
| 25114 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25115 | /* confdefs.h. */ |
| 25116 | _ACEOF |
| 25117 | cat confdefs.h >>conftest.$ac_ext |
| 25118 | cat >>conftest.$ac_ext <<_ACEOF |
| 25119 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25120 | |
| 25121 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25122 | #ifdef __cplusplus |
| 25123 | extern "C" |
| 25124 | #endif |
| 25125 | /* We use char because int might match the return type of a gcc2 |
| 25126 | builtin and then its argument prototype would still apply. */ |
| 25127 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25128 | int |
| 25129 | main () |
| 25130 | { |
| 25131 | mallinfo (); |
| 25132 | ; |
| 25133 | return 0; |
| 25134 | } |
| 25135 | _ACEOF |
| 25136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25138 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25139 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25141 | rm -f conftest.er1 |
| 25142 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25144 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25145 | { ac_try='test -z "$ac_c_werror_flag" |
| 25146 | || test ! -s conftest.err' |
| 25147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25148 | (eval $ac_try) 2>&5 |
| 25149 | ac_status=$? |
| 25150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25151 | (exit $ac_status); }; } && |
| 25152 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25154 | (eval $ac_try) 2>&5 |
| 25155 | ac_status=$? |
| 25156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25157 | (exit $ac_status); }; }; then |
| 25158 | ac_cv_search_mallinfo="none required" |
| 25159 | else |
| 25160 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25162 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25163 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25164 | rm -f conftest.err conftest.$ac_objext \ |
| 25165 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25166 | if test "$ac_cv_search_mallinfo" = no; then |
| 25167 | for ac_lib in malloc; do |
| 25168 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25169 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25170 | /* confdefs.h. */ |
| 25171 | _ACEOF |
| 25172 | cat confdefs.h >>conftest.$ac_ext |
| 25173 | cat >>conftest.$ac_ext <<_ACEOF |
| 25174 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25175 | |
| 25176 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25177 | #ifdef __cplusplus |
| 25178 | extern "C" |
| 25179 | #endif |
| 25180 | /* We use char because int might match the return type of a gcc2 |
| 25181 | builtin and then its argument prototype would still apply. */ |
| 25182 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25183 | int |
| 25184 | main () |
| 25185 | { |
| 25186 | mallinfo (); |
| 25187 | ; |
| 25188 | return 0; |
| 25189 | } |
| 25190 | _ACEOF |
| 25191 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25193 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25194 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25196 | rm -f conftest.er1 |
| 25197 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25199 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25200 | { ac_try='test -z "$ac_c_werror_flag" |
| 25201 | || test ! -s conftest.err' |
| 25202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25203 | (eval $ac_try) 2>&5 |
| 25204 | ac_status=$? |
| 25205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25206 | (exit $ac_status); }; } && |
| 25207 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25209 | (eval $ac_try) 2>&5 |
| 25210 | ac_status=$? |
| 25211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25212 | (exit $ac_status); }; }; then |
| 25213 | ac_cv_search_mallinfo="-l$ac_lib" |
| 25214 | break |
| 25215 | else |
| 25216 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25218 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25219 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25220 | rm -f conftest.err conftest.$ac_objext \ |
| 25221 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25222 | done |
| 25223 | fi |
| 25224 | LIBS=$ac_func_search_save_LIBS |
| 25225 | fi |
| 25226 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 25227 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 25228 | if test "$ac_cv_search_mallinfo" != no; then |
| 25229 | 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] | 25230 | |
| 25231 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25232 | #define HAVE_MALLINFO 1 |
| 25233 | _ACEOF |
| 25234 | |
| 25235 | fi |
| 25236 | |
| 25237 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 25238 | |
| 25239 | echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 25240 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 |
| 25241 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 25242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25243 | else |
| 25244 | ac_check_lib_save_LIBS=$LIBS |
| 25245 | LIBS="-lpthread $LIBS" |
| 25246 | cat >conftest.$ac_ext <<_ACEOF |
| 25247 | /* confdefs.h. */ |
| 25248 | _ACEOF |
| 25249 | cat confdefs.h >>conftest.$ac_ext |
| 25250 | cat >>conftest.$ac_ext <<_ACEOF |
| 25251 | /* end confdefs.h. */ |
| 25252 | |
| 25253 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25254 | #ifdef __cplusplus |
| 25255 | extern "C" |
| 25256 | #endif |
| 25257 | /* We use char because int might match the return type of a gcc2 |
| 25258 | builtin and then its argument prototype would still apply. */ |
| 25259 | char pthread_mutex_init (); |
| 25260 | int |
| 25261 | main () |
| 25262 | { |
| 25263 | pthread_mutex_init (); |
| 25264 | ; |
| 25265 | return 0; |
| 25266 | } |
| 25267 | _ACEOF |
| 25268 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25270 | (eval $ac_link) 2>conftest.er1 |
| 25271 | ac_status=$? |
| 25272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25273 | rm -f conftest.er1 |
| 25274 | cat conftest.err >&5 |
| 25275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25276 | (exit $ac_status); } && |
| 25277 | { ac_try='test -z "$ac_c_werror_flag" |
| 25278 | || test ! -s conftest.err' |
| 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); }; } && |
| 25284 | { ac_try='test -s conftest$ac_exeext' |
| 25285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25286 | (eval $ac_try) 2>&5 |
| 25287 | ac_status=$? |
| 25288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25289 | (exit $ac_status); }; }; then |
| 25290 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 25291 | else |
| 25292 | echo "$as_me: failed program was:" >&5 |
| 25293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25294 | |
| 25295 | ac_cv_lib_pthread_pthread_mutex_init=no |
| 25296 | fi |
| 25297 | rm -f conftest.err conftest.$ac_objext \ |
| 25298 | conftest$ac_exeext conftest.$ac_ext |
| 25299 | LIBS=$ac_check_lib_save_LIBS |
| 25300 | fi |
| 25301 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 25302 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 |
| 25303 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 25304 | cat >>confdefs.h <<_ACEOF |
| 25305 | #define HAVE_LIBPTHREAD 1 |
| 25306 | _ACEOF |
| 25307 | |
| 25308 | LIBS="-lpthread $LIBS" |
| 25309 | |
| 25310 | fi |
| 25311 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25312 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 25313 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 |
| 25314 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 25315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25316 | else |
| 25317 | ac_func_search_save_LIBS=$LIBS |
| 25318 | ac_cv_search_pthread_mutex_lock=no |
| 25319 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25320 | /* confdefs.h. */ |
| 25321 | _ACEOF |
| 25322 | cat confdefs.h >>conftest.$ac_ext |
| 25323 | cat >>conftest.$ac_ext <<_ACEOF |
| 25324 | /* end confdefs.h. */ |
| 25325 | |
| 25326 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25327 | #ifdef __cplusplus |
| 25328 | extern "C" |
| 25329 | #endif |
| 25330 | /* We use char because int might match the return type of a gcc2 |
| 25331 | builtin and then its argument prototype would still apply. */ |
| 25332 | char pthread_mutex_lock (); |
| 25333 | int |
| 25334 | main () |
| 25335 | { |
| 25336 | pthread_mutex_lock (); |
| 25337 | ; |
| 25338 | return 0; |
| 25339 | } |
| 25340 | _ACEOF |
| 25341 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25343 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25344 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25346 | rm -f conftest.er1 |
| 25347 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25349 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25350 | { ac_try='test -z "$ac_c_werror_flag" |
| 25351 | || test ! -s conftest.err' |
| 25352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25353 | (eval $ac_try) 2>&5 |
| 25354 | ac_status=$? |
| 25355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25356 | (exit $ac_status); }; } && |
| 25357 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25359 | (eval $ac_try) 2>&5 |
| 25360 | ac_status=$? |
| 25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25362 | (exit $ac_status); }; }; then |
| 25363 | ac_cv_search_pthread_mutex_lock="none required" |
| 25364 | else |
| 25365 | echo "$as_me: failed program was:" >&5 |
| 25366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25367 | |
| 25368 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25369 | rm -f conftest.err conftest.$ac_objext \ |
| 25370 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25371 | if test "$ac_cv_search_pthread_mutex_lock" = no; then |
| 25372 | for ac_lib in pthread; do |
| 25373 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25374 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25375 | /* confdefs.h. */ |
| 25376 | _ACEOF |
| 25377 | cat confdefs.h >>conftest.$ac_ext |
| 25378 | cat >>conftest.$ac_ext <<_ACEOF |
| 25379 | /* end confdefs.h. */ |
| 25380 | |
| 25381 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25382 | #ifdef __cplusplus |
| 25383 | extern "C" |
| 25384 | #endif |
| 25385 | /* We use char because int might match the return type of a gcc2 |
| 25386 | builtin and then its argument prototype would still apply. */ |
| 25387 | char pthread_mutex_lock (); |
| 25388 | int |
| 25389 | main () |
| 25390 | { |
| 25391 | pthread_mutex_lock (); |
| 25392 | ; |
| 25393 | return 0; |
| 25394 | } |
| 25395 | _ACEOF |
| 25396 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25398 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25399 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25401 | rm -f conftest.er1 |
| 25402 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25404 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 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_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 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 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" |
| 25419 | break |
| 25420 | else |
| 25421 | echo "$as_me: failed program was:" >&5 |
| 25422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25423 | |
| 25424 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25425 | rm -f conftest.err conftest.$ac_objext \ |
| 25426 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25427 | done |
| 25428 | fi |
| 25429 | LIBS=$ac_func_search_save_LIBS |
| 25430 | fi |
| 25431 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 25432 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 |
| 25433 | if test "$ac_cv_search_pthread_mutex_lock" != no; then |
| 25434 | 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] | 25435 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 25436 | cat >>confdefs.h <<\_ACEOF |
| 25437 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 25438 | _ACEOF |
| 25439 | |
| 25440 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25441 | |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 25442 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25443 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25444 | |
| 25445 | |
| 25446 | |
| 25447 | |
| 25448 | |
| 25449 | ac_header_dirent=no |
| 25450 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 25451 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 25452 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 25453 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 25454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 25455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25456 | else |
| 25457 | cat >conftest.$ac_ext <<_ACEOF |
| 25458 | /* confdefs.h. */ |
| 25459 | _ACEOF |
| 25460 | cat confdefs.h >>conftest.$ac_ext |
| 25461 | cat >>conftest.$ac_ext <<_ACEOF |
| 25462 | /* end confdefs.h. */ |
| 25463 | #include <sys/types.h> |
| 25464 | #include <$ac_hdr> |
| 25465 | |
| 25466 | int |
| 25467 | main () |
| 25468 | { |
| 25469 | if ((DIR *) 0) |
| 25470 | return 0; |
| 25471 | ; |
| 25472 | return 0; |
| 25473 | } |
| 25474 | _ACEOF |
| 25475 | rm -f conftest.$ac_objext |
| 25476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25477 | (eval $ac_compile) 2>conftest.er1 |
| 25478 | ac_status=$? |
| 25479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25480 | rm -f conftest.er1 |
| 25481 | cat conftest.err >&5 |
| 25482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25483 | (exit $ac_status); } && |
| 25484 | { ac_try='test -z "$ac_c_werror_flag" |
| 25485 | || test ! -s conftest.err' |
| 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); }; } && |
| 25491 | { ac_try='test -s conftest.$ac_objext' |
| 25492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25493 | (eval $ac_try) 2>&5 |
| 25494 | ac_status=$? |
| 25495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25496 | (exit $ac_status); }; }; then |
| 25497 | eval "$as_ac_Header=yes" |
| 25498 | else |
| 25499 | echo "$as_me: failed program was:" >&5 |
| 25500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25501 | |
| 25502 | eval "$as_ac_Header=no" |
| 25503 | fi |
| 25504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25505 | fi |
| 25506 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 25507 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 25508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 25509 | cat >>confdefs.h <<_ACEOF |
| 25510 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 25511 | _ACEOF |
| 25512 | |
| 25513 | ac_header_dirent=$ac_hdr; break |
| 25514 | fi |
| 25515 | |
| 25516 | done |
| 25517 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 25518 | if test $ac_header_dirent = dirent.h; then |
| 25519 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 25520 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 25521 | if test "${ac_cv_search_opendir+set}" = set; then |
| 25522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25523 | else |
| 25524 | ac_func_search_save_LIBS=$LIBS |
| 25525 | ac_cv_search_opendir=no |
| 25526 | cat >conftest.$ac_ext <<_ACEOF |
| 25527 | /* confdefs.h. */ |
| 25528 | _ACEOF |
| 25529 | cat confdefs.h >>conftest.$ac_ext |
| 25530 | cat >>conftest.$ac_ext <<_ACEOF |
| 25531 | /* end confdefs.h. */ |
| 25532 | |
| 25533 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25534 | #ifdef __cplusplus |
| 25535 | extern "C" |
| 25536 | #endif |
| 25537 | /* We use char because int might match the return type of a gcc2 |
| 25538 | builtin and then its argument prototype would still apply. */ |
| 25539 | char opendir (); |
| 25540 | int |
| 25541 | main () |
| 25542 | { |
| 25543 | opendir (); |
| 25544 | ; |
| 25545 | return 0; |
| 25546 | } |
| 25547 | _ACEOF |
| 25548 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25550 | (eval $ac_link) 2>conftest.er1 |
| 25551 | ac_status=$? |
| 25552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25553 | rm -f conftest.er1 |
| 25554 | cat conftest.err >&5 |
| 25555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25556 | (exit $ac_status); } && |
| 25557 | { ac_try='test -z "$ac_c_werror_flag" |
| 25558 | || test ! -s conftest.err' |
| 25559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25560 | (eval $ac_try) 2>&5 |
| 25561 | ac_status=$? |
| 25562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25563 | (exit $ac_status); }; } && |
| 25564 | { ac_try='test -s conftest$ac_exeext' |
| 25565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25566 | (eval $ac_try) 2>&5 |
| 25567 | ac_status=$? |
| 25568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25569 | (exit $ac_status); }; }; then |
| 25570 | ac_cv_search_opendir="none required" |
| 25571 | else |
| 25572 | echo "$as_me: failed program was:" >&5 |
| 25573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25574 | |
| 25575 | fi |
| 25576 | rm -f conftest.err conftest.$ac_objext \ |
| 25577 | conftest$ac_exeext conftest.$ac_ext |
| 25578 | if test "$ac_cv_search_opendir" = no; then |
| 25579 | for ac_lib in dir; do |
| 25580 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25581 | cat >conftest.$ac_ext <<_ACEOF |
| 25582 | /* confdefs.h. */ |
| 25583 | _ACEOF |
| 25584 | cat confdefs.h >>conftest.$ac_ext |
| 25585 | cat >>conftest.$ac_ext <<_ACEOF |
| 25586 | /* end confdefs.h. */ |
| 25587 | |
| 25588 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25589 | #ifdef __cplusplus |
| 25590 | extern "C" |
| 25591 | #endif |
| 25592 | /* We use char because int might match the return type of a gcc2 |
| 25593 | builtin and then its argument prototype would still apply. */ |
| 25594 | char opendir (); |
| 25595 | int |
| 25596 | main () |
| 25597 | { |
| 25598 | opendir (); |
| 25599 | ; |
| 25600 | return 0; |
| 25601 | } |
| 25602 | _ACEOF |
| 25603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25605 | (eval $ac_link) 2>conftest.er1 |
| 25606 | ac_status=$? |
| 25607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25608 | rm -f conftest.er1 |
| 25609 | cat conftest.err >&5 |
| 25610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25611 | (exit $ac_status); } && |
| 25612 | { ac_try='test -z "$ac_c_werror_flag" |
| 25613 | || test ! -s conftest.err' |
| 25614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25615 | (eval $ac_try) 2>&5 |
| 25616 | ac_status=$? |
| 25617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25618 | (exit $ac_status); }; } && |
| 25619 | { ac_try='test -s conftest$ac_exeext' |
| 25620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25621 | (eval $ac_try) 2>&5 |
| 25622 | ac_status=$? |
| 25623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25624 | (exit $ac_status); }; }; then |
| 25625 | ac_cv_search_opendir="-l$ac_lib" |
| 25626 | break |
| 25627 | else |
| 25628 | echo "$as_me: failed program was:" >&5 |
| 25629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25630 | |
| 25631 | fi |
| 25632 | rm -f conftest.err conftest.$ac_objext \ |
| 25633 | conftest$ac_exeext conftest.$ac_ext |
| 25634 | done |
| 25635 | fi |
| 25636 | LIBS=$ac_func_search_save_LIBS |
| 25637 | fi |
| 25638 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 25639 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 25640 | if test "$ac_cv_search_opendir" != no; then |
| 25641 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 25642 | |
| 25643 | fi |
| 25644 | |
| 25645 | else |
| 25646 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 25647 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 25648 | if test "${ac_cv_search_opendir+set}" = set; then |
| 25649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25650 | else |
| 25651 | ac_func_search_save_LIBS=$LIBS |
| 25652 | ac_cv_search_opendir=no |
| 25653 | cat >conftest.$ac_ext <<_ACEOF |
| 25654 | /* confdefs.h. */ |
| 25655 | _ACEOF |
| 25656 | cat confdefs.h >>conftest.$ac_ext |
| 25657 | cat >>conftest.$ac_ext <<_ACEOF |
| 25658 | /* end confdefs.h. */ |
| 25659 | |
| 25660 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25661 | #ifdef __cplusplus |
| 25662 | extern "C" |
| 25663 | #endif |
| 25664 | /* We use char because int might match the return type of a gcc2 |
| 25665 | builtin and then its argument prototype would still apply. */ |
| 25666 | char opendir (); |
| 25667 | int |
| 25668 | main () |
| 25669 | { |
| 25670 | opendir (); |
| 25671 | ; |
| 25672 | return 0; |
| 25673 | } |
| 25674 | _ACEOF |
| 25675 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25677 | (eval $ac_link) 2>conftest.er1 |
| 25678 | ac_status=$? |
| 25679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25680 | rm -f conftest.er1 |
| 25681 | cat conftest.err >&5 |
| 25682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25683 | (exit $ac_status); } && |
| 25684 | { ac_try='test -z "$ac_c_werror_flag" |
| 25685 | || test ! -s conftest.err' |
| 25686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25687 | (eval $ac_try) 2>&5 |
| 25688 | ac_status=$? |
| 25689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25690 | (exit $ac_status); }; } && |
| 25691 | { ac_try='test -s conftest$ac_exeext' |
| 25692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25693 | (eval $ac_try) 2>&5 |
| 25694 | ac_status=$? |
| 25695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25696 | (exit $ac_status); }; }; then |
| 25697 | ac_cv_search_opendir="none required" |
| 25698 | else |
| 25699 | echo "$as_me: failed program was:" >&5 |
| 25700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25701 | |
| 25702 | fi |
| 25703 | rm -f conftest.err conftest.$ac_objext \ |
| 25704 | conftest$ac_exeext conftest.$ac_ext |
| 25705 | if test "$ac_cv_search_opendir" = no; then |
| 25706 | for ac_lib in x; do |
| 25707 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25708 | cat >conftest.$ac_ext <<_ACEOF |
| 25709 | /* confdefs.h. */ |
| 25710 | _ACEOF |
| 25711 | cat confdefs.h >>conftest.$ac_ext |
| 25712 | cat >>conftest.$ac_ext <<_ACEOF |
| 25713 | /* end confdefs.h. */ |
| 25714 | |
| 25715 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25716 | #ifdef __cplusplus |
| 25717 | extern "C" |
| 25718 | #endif |
| 25719 | /* We use char because int might match the return type of a gcc2 |
| 25720 | builtin and then its argument prototype would still apply. */ |
| 25721 | char opendir (); |
| 25722 | int |
| 25723 | main () |
| 25724 | { |
| 25725 | opendir (); |
| 25726 | ; |
| 25727 | return 0; |
| 25728 | } |
| 25729 | _ACEOF |
| 25730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25732 | (eval $ac_link) 2>conftest.er1 |
| 25733 | ac_status=$? |
| 25734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25735 | rm -f conftest.er1 |
| 25736 | cat conftest.err >&5 |
| 25737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25738 | (exit $ac_status); } && |
| 25739 | { ac_try='test -z "$ac_c_werror_flag" |
| 25740 | || test ! -s conftest.err' |
| 25741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25742 | (eval $ac_try) 2>&5 |
| 25743 | ac_status=$? |
| 25744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25745 | (exit $ac_status); }; } && |
| 25746 | { ac_try='test -s conftest$ac_exeext' |
| 25747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25748 | (eval $ac_try) 2>&5 |
| 25749 | ac_status=$? |
| 25750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25751 | (exit $ac_status); }; }; then |
| 25752 | ac_cv_search_opendir="-l$ac_lib" |
| 25753 | break |
| 25754 | else |
| 25755 | echo "$as_me: failed program was:" >&5 |
| 25756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25757 | |
| 25758 | fi |
| 25759 | rm -f conftest.err conftest.$ac_objext \ |
| 25760 | conftest$ac_exeext conftest.$ac_ext |
| 25761 | done |
| 25762 | fi |
| 25763 | LIBS=$ac_func_search_save_LIBS |
| 25764 | fi |
| 25765 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 25766 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 25767 | if test "$ac_cv_search_opendir" != no; then |
| 25768 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 25769 | |
| 25770 | fi |
| 25771 | |
| 25772 | fi |
| 25773 | |
| 25774 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 25775 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 25776 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 25777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25778 | else |
| 25779 | ac_ext=c |
| 25780 | ac_cpp='$CPP $CPPFLAGS' |
| 25781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25784 | |
| 25785 | cat >conftest.$ac_ext <<_ACEOF |
| 25786 | /* confdefs.h. */ |
| 25787 | _ACEOF |
| 25788 | cat confdefs.h >>conftest.$ac_ext |
| 25789 | cat >>conftest.$ac_ext <<_ACEOF |
| 25790 | /* end confdefs.h. */ |
| 25791 | #include <sys/mman.h> |
| 25792 | #include <unistd.h> |
| 25793 | #include <fcntl.h> |
| 25794 | int |
| 25795 | main () |
| 25796 | { |
| 25797 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 25798 | ; |
| 25799 | return 0; |
| 25800 | } |
| 25801 | _ACEOF |
| 25802 | rm -f conftest.$ac_objext |
| 25803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25804 | (eval $ac_compile) 2>conftest.er1 |
| 25805 | ac_status=$? |
| 25806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25807 | rm -f conftest.er1 |
| 25808 | cat conftest.err >&5 |
| 25809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25810 | (exit $ac_status); } && |
| 25811 | { ac_try='test -z "$ac_c_werror_flag" |
| 25812 | || test ! -s conftest.err' |
| 25813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25814 | (eval $ac_try) 2>&5 |
| 25815 | ac_status=$? |
| 25816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25817 | (exit $ac_status); }; } && |
| 25818 | { ac_try='test -s conftest.$ac_objext' |
| 25819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25820 | (eval $ac_try) 2>&5 |
| 25821 | ac_status=$? |
| 25822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25823 | (exit $ac_status); }; }; then |
| 25824 | ac_cv_header_mmap_anon=yes |
| 25825 | else |
| 25826 | echo "$as_me: failed program was:" >&5 |
| 25827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25828 | |
| 25829 | ac_cv_header_mmap_anon=no |
| 25830 | fi |
| 25831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25832 | ac_ext=c |
| 25833 | ac_cpp='$CPP $CPPFLAGS' |
| 25834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25837 | |
| 25838 | |
| 25839 | fi |
| 25840 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 25841 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 25842 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 25843 | |
| 25844 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 25845 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25846 | _ACEOF |
| 25847 | |
| 25848 | fi |
| 25849 | |
| 25850 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 25851 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 25852 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 25853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25854 | else |
| 25855 | cat >conftest.$ac_ext <<_ACEOF |
| 25856 | /* confdefs.h. */ |
| 25857 | _ACEOF |
| 25858 | cat confdefs.h >>conftest.$ac_ext |
| 25859 | cat >>conftest.$ac_ext <<_ACEOF |
| 25860 | /* end confdefs.h. */ |
| 25861 | #include <sys/types.h> |
| 25862 | #include <sys/stat.h> |
| 25863 | |
| 25864 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 25865 | # if S_ISBLK (S_IFDIR) |
| 25866 | You lose. |
| 25867 | # endif |
| 25868 | #endif |
| 25869 | |
| 25870 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 25871 | # if S_ISBLK (S_IFCHR) |
| 25872 | You lose. |
| 25873 | # endif |
| 25874 | #endif |
| 25875 | |
| 25876 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 25877 | # if S_ISLNK (S_IFREG) |
| 25878 | You lose. |
| 25879 | # endif |
| 25880 | #endif |
| 25881 | |
| 25882 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 25883 | # if S_ISSOCK (S_IFREG) |
| 25884 | You lose. |
| 25885 | # endif |
| 25886 | #endif |
| 25887 | |
| 25888 | _ACEOF |
| 25889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25890 | $EGREP "You lose" >/dev/null 2>&1; then |
| 25891 | ac_cv_header_stat_broken=yes |
| 25892 | else |
| 25893 | ac_cv_header_stat_broken=no |
| 25894 | fi |
| 25895 | rm -f conftest* |
| 25896 | |
| 25897 | fi |
| 25898 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 25899 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 25900 | if test $ac_cv_header_stat_broken = yes; then |
| 25901 | |
| 25902 | cat >>confdefs.h <<\_ACEOF |
| 25903 | #define STAT_MACROS_BROKEN 1 |
| 25904 | _ACEOF |
| 25905 | |
| 25906 | fi |
| 25907 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25908 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 25909 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 25910 | if test "${ac_cv_header_stdc+set}" = set; then |
| 25911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25912 | else |
| 25913 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25914 | /* confdefs.h. */ |
| 25915 | _ACEOF |
| 25916 | cat confdefs.h >>conftest.$ac_ext |
| 25917 | cat >>conftest.$ac_ext <<_ACEOF |
| 25918 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25919 | #include <stdlib.h> |
| 25920 | #include <stdarg.h> |
| 25921 | #include <string.h> |
| 25922 | #include <float.h> |
| 25923 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25924 | int |
| 25925 | main () |
| 25926 | { |
| 25927 | |
| 25928 | ; |
| 25929 | return 0; |
| 25930 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25931 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25932 | rm -f conftest.$ac_objext |
| 25933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25934 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25935 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25937 | rm -f conftest.er1 |
| 25938 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25940 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25941 | { ac_try='test -z "$ac_c_werror_flag" |
| 25942 | || test ! -s conftest.err' |
| 25943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25944 | (eval $ac_try) 2>&5 |
| 25945 | ac_status=$? |
| 25946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25947 | (exit $ac_status); }; } && |
| 25948 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25950 | (eval $ac_try) 2>&5 |
| 25951 | ac_status=$? |
| 25952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25953 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25954 | ac_cv_header_stdc=yes |
| 25955 | else |
| 25956 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25958 | |
| 25959 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25960 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25962 | |
| 25963 | if test $ac_cv_header_stdc = yes; then |
| 25964 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 25965 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25966 | /* confdefs.h. */ |
| 25967 | _ACEOF |
| 25968 | cat confdefs.h >>conftest.$ac_ext |
| 25969 | cat >>conftest.$ac_ext <<_ACEOF |
| 25970 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25971 | #include <string.h> |
| 25972 | |
| 25973 | _ACEOF |
| 25974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25975 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25976 | : |
| 25977 | else |
| 25978 | ac_cv_header_stdc=no |
| 25979 | fi |
| 25980 | rm -f conftest* |
| 25981 | |
| 25982 | fi |
| 25983 | |
| 25984 | if test $ac_cv_header_stdc = yes; then |
| 25985 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 25986 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25987 | /* confdefs.h. */ |
| 25988 | _ACEOF |
| 25989 | cat confdefs.h >>conftest.$ac_ext |
| 25990 | cat >>conftest.$ac_ext <<_ACEOF |
| 25991 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25992 | #include <stdlib.h> |
| 25993 | |
| 25994 | _ACEOF |
| 25995 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25996 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25997 | : |
| 25998 | else |
| 25999 | ac_cv_header_stdc=no |
| 26000 | fi |
| 26001 | rm -f conftest* |
| 26002 | |
| 26003 | fi |
| 26004 | |
| 26005 | if test $ac_cv_header_stdc = yes; then |
| 26006 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 26007 | if test "$cross_compiling" = yes; then |
| 26008 | : |
| 26009 | else |
| 26010 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26011 | /* confdefs.h. */ |
| 26012 | _ACEOF |
| 26013 | cat confdefs.h >>conftest.$ac_ext |
| 26014 | cat >>conftest.$ac_ext <<_ACEOF |
| 26015 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26016 | #include <ctype.h> |
| 26017 | #if ((' ' & 0x0FF) == 0x020) |
| 26018 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 26019 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 26020 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26021 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26022 | (('a' <= (c) && (c) <= 'i') \ |
| 26023 | || ('j' <= (c) && (c) <= 'r') \ |
| 26024 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26025 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 26026 | #endif |
| 26027 | |
| 26028 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 26029 | int |
| 26030 | main () |
| 26031 | { |
| 26032 | int i; |
| 26033 | for (i = 0; i < 256; i++) |
| 26034 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26035 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26036 | exit(2); |
| 26037 | exit (0); |
| 26038 | } |
| 26039 | _ACEOF |
| 26040 | rm -f conftest$ac_exeext |
| 26041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26042 | (eval $ac_link) 2>&5 |
| 26043 | ac_status=$? |
| 26044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26045 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26047 | (eval $ac_try) 2>&5 |
| 26048 | ac_status=$? |
| 26049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26050 | (exit $ac_status); }; }; then |
| 26051 | : |
| 26052 | else |
| 26053 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26054 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26056 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26057 | ( exit $ac_status ) |
| 26058 | ac_cv_header_stdc=no |
| 26059 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26060 | 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] | 26061 | fi |
| 26062 | fi |
| 26063 | fi |
| 26064 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 26065 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 26066 | if test $ac_cv_header_stdc = yes; then |
| 26067 | |
| 26068 | cat >>confdefs.h <<\_ACEOF |
| 26069 | #define STDC_HEADERS 1 |
| 26070 | _ACEOF |
| 26071 | |
| 26072 | fi |
| 26073 | |
| 26074 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 26075 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 26076 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 26077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26078 | else |
| 26079 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26080 | /* confdefs.h. */ |
| 26081 | _ACEOF |
| 26082 | cat confdefs.h >>conftest.$ac_ext |
| 26083 | cat >>conftest.$ac_ext <<_ACEOF |
| 26084 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26085 | #include <sys/types.h> |
| 26086 | #include <sys/wait.h> |
| 26087 | #ifndef WEXITSTATUS |
| 26088 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 26089 | #endif |
| 26090 | #ifndef WIFEXITED |
| 26091 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 26092 | #endif |
| 26093 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26094 | int |
| 26095 | main () |
| 26096 | { |
| 26097 | int s; |
| 26098 | wait (&s); |
| 26099 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 26100 | ; |
| 26101 | return 0; |
| 26102 | } |
| 26103 | _ACEOF |
| 26104 | rm -f conftest.$ac_objext |
| 26105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26106 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26107 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26109 | rm -f conftest.er1 |
| 26110 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26112 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26113 | { ac_try='test -z "$ac_c_werror_flag" |
| 26114 | || test ! -s conftest.err' |
| 26115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26116 | (eval $ac_try) 2>&5 |
| 26117 | ac_status=$? |
| 26118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26119 | (exit $ac_status); }; } && |
| 26120 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26122 | (eval $ac_try) 2>&5 |
| 26123 | ac_status=$? |
| 26124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26125 | (exit $ac_status); }; }; then |
| 26126 | ac_cv_header_sys_wait_h=yes |
| 26127 | else |
| 26128 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26130 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26131 | ac_cv_header_sys_wait_h=no |
| 26132 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26134 | fi |
| 26135 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 26136 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 26137 | if test $ac_cv_header_sys_wait_h = yes; then |
| 26138 | |
| 26139 | cat >>confdefs.h <<\_ACEOF |
| 26140 | #define HAVE_SYS_WAIT_H 1 |
| 26141 | _ACEOF |
| 26142 | |
| 26143 | fi |
| 26144 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26145 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 26146 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 26147 | if test "${ac_cv_header_time+set}" = set; then |
| 26148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26149 | else |
| 26150 | cat >conftest.$ac_ext <<_ACEOF |
| 26151 | /* confdefs.h. */ |
| 26152 | _ACEOF |
| 26153 | cat confdefs.h >>conftest.$ac_ext |
| 26154 | cat >>conftest.$ac_ext <<_ACEOF |
| 26155 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26156 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26157 | #include <sys/time.h> |
| 26158 | #include <time.h> |
| 26159 | |
| 26160 | int |
| 26161 | main () |
| 26162 | { |
| 26163 | if ((struct tm *) 0) |
| 26164 | return 0; |
| 26165 | ; |
| 26166 | return 0; |
| 26167 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26168 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26169 | rm -f conftest.$ac_objext |
| 26170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26171 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26172 | ac_status=$? |
| 26173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26174 | rm -f conftest.er1 |
| 26175 | cat conftest.err >&5 |
| 26176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26177 | (exit $ac_status); } && |
| 26178 | { ac_try='test -z "$ac_c_werror_flag" |
| 26179 | || test ! -s conftest.err' |
| 26180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26181 | (eval $ac_try) 2>&5 |
| 26182 | ac_status=$? |
| 26183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26184 | (exit $ac_status); }; } && |
| 26185 | { ac_try='test -s conftest.$ac_objext' |
| 26186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26187 | (eval $ac_try) 2>&5 |
| 26188 | ac_status=$? |
| 26189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26190 | (exit $ac_status); }; }; then |
| 26191 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26192 | else |
| 26193 | echo "$as_me: failed program was:" >&5 |
| 26194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26195 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26196 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26197 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26199 | fi |
| 26200 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 26201 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 26202 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26203 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26204 | cat >>confdefs.h <<\_ACEOF |
| 26205 | #define TIME_WITH_SYS_TIME 1 |
| 26206 | _ACEOF |
| 26207 | |
| 26208 | fi |
| 26209 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26210 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26211 | |
| 26212 | |
| 26213 | |
| 26214 | |
| 26215 | |
| 26216 | |
| 26217 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 26218 | do |
| 26219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26225 | fi |
| 26226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26228 | else |
| 26229 | # Is the header compilable? |
| 26230 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26231 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26232 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26233 | /* confdefs.h. */ |
| 26234 | _ACEOF |
| 26235 | cat confdefs.h >>conftest.$ac_ext |
| 26236 | cat >>conftest.$ac_ext <<_ACEOF |
| 26237 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26238 | $ac_includes_default |
| 26239 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26240 | _ACEOF |
| 26241 | rm -f conftest.$ac_objext |
| 26242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26243 | (eval $ac_compile) 2>conftest.er1 |
| 26244 | ac_status=$? |
| 26245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26246 | rm -f conftest.er1 |
| 26247 | cat conftest.err >&5 |
| 26248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26249 | (exit $ac_status); } && |
| 26250 | { ac_try='test -z "$ac_c_werror_flag" |
| 26251 | || test ! -s conftest.err' |
| 26252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26253 | (eval $ac_try) 2>&5 |
| 26254 | ac_status=$? |
| 26255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26256 | (exit $ac_status); }; } && |
| 26257 | { ac_try='test -s conftest.$ac_objext' |
| 26258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26259 | (eval $ac_try) 2>&5 |
| 26260 | ac_status=$? |
| 26261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26262 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26263 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26264 | else |
| 26265 | echo "$as_me: failed program was:" >&5 |
| 26266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26267 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26268 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26269 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26272 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26273 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26274 | # Is the header present? |
| 26275 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26277 | cat >conftest.$ac_ext <<_ACEOF |
| 26278 | /* confdefs.h. */ |
| 26279 | _ACEOF |
| 26280 | cat confdefs.h >>conftest.$ac_ext |
| 26281 | cat >>conftest.$ac_ext <<_ACEOF |
| 26282 | /* end confdefs.h. */ |
| 26283 | #include <$ac_header> |
| 26284 | _ACEOF |
| 26285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26287 | ac_status=$? |
| 26288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26289 | rm -f conftest.er1 |
| 26290 | cat conftest.err >&5 |
| 26291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26292 | (exit $ac_status); } >/dev/null; then |
| 26293 | if test -s conftest.err; then |
| 26294 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26296 | else |
| 26297 | ac_cpp_err= |
| 26298 | fi |
| 26299 | else |
| 26300 | ac_cpp_err=yes |
| 26301 | fi |
| 26302 | if test -z "$ac_cpp_err"; then |
| 26303 | ac_header_preproc=yes |
| 26304 | else |
| 26305 | echo "$as_me: failed program was:" >&5 |
| 26306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26307 | |
| 26308 | ac_header_preproc=no |
| 26309 | fi |
| 26310 | rm -f conftest.err conftest.$ac_ext |
| 26311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26312 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26313 | |
| 26314 | # So? What about this header? |
| 26315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26316 | yes:no: ) |
| 26317 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26318 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26320 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26321 | ac_header_preproc=yes |
| 26322 | ;; |
| 26323 | no:yes:* ) |
| 26324 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26325 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26326 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26327 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26328 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26329 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26330 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26331 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26333 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26334 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26335 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26336 | ( |
| 26337 | cat <<\_ASBOX |
| 26338 | ## ----------------------------------- ## |
| 26339 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26340 | ## ----------------------------------- ## |
| 26341 | _ASBOX |
| 26342 | ) | |
| 26343 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26344 | ;; |
| 26345 | esac |
| 26346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26350 | else |
| 26351 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26352 | fi |
| 26353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26354 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26355 | |
| 26356 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26358 | cat >>confdefs.h <<_ACEOF |
| 26359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26360 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26361 | |
| 26362 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26363 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26364 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26365 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26366 | |
| 26367 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26368 | |
| 26369 | |
| 26370 | |
| 26371 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26372 | for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h |
| 26373 | do |
| 26374 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26376 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26380 | fi |
| 26381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26382 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26383 | else |
| 26384 | # Is the header compilable? |
| 26385 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26386 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26387 | cat >conftest.$ac_ext <<_ACEOF |
| 26388 | /* confdefs.h. */ |
| 26389 | _ACEOF |
| 26390 | cat confdefs.h >>conftest.$ac_ext |
| 26391 | cat >>conftest.$ac_ext <<_ACEOF |
| 26392 | /* end confdefs.h. */ |
| 26393 | $ac_includes_default |
| 26394 | #include <$ac_header> |
| 26395 | _ACEOF |
| 26396 | rm -f conftest.$ac_objext |
| 26397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26398 | (eval $ac_compile) 2>conftest.er1 |
| 26399 | ac_status=$? |
| 26400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26401 | rm -f conftest.er1 |
| 26402 | cat conftest.err >&5 |
| 26403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26404 | (exit $ac_status); } && |
| 26405 | { ac_try='test -z "$ac_c_werror_flag" |
| 26406 | || test ! -s conftest.err' |
| 26407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26408 | (eval $ac_try) 2>&5 |
| 26409 | ac_status=$? |
| 26410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26411 | (exit $ac_status); }; } && |
| 26412 | { ac_try='test -s conftest.$ac_objext' |
| 26413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26414 | (eval $ac_try) 2>&5 |
| 26415 | ac_status=$? |
| 26416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26417 | (exit $ac_status); }; }; then |
| 26418 | ac_header_compiler=yes |
| 26419 | else |
| 26420 | echo "$as_me: failed program was:" >&5 |
| 26421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26422 | |
| 26423 | ac_header_compiler=no |
| 26424 | fi |
| 26425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26426 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26427 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26428 | |
| 26429 | # Is the header present? |
| 26430 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26431 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26432 | cat >conftest.$ac_ext <<_ACEOF |
| 26433 | /* confdefs.h. */ |
| 26434 | _ACEOF |
| 26435 | cat confdefs.h >>conftest.$ac_ext |
| 26436 | cat >>conftest.$ac_ext <<_ACEOF |
| 26437 | /* end confdefs.h. */ |
| 26438 | #include <$ac_header> |
| 26439 | _ACEOF |
| 26440 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26441 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26442 | ac_status=$? |
| 26443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26444 | rm -f conftest.er1 |
| 26445 | cat conftest.err >&5 |
| 26446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26447 | (exit $ac_status); } >/dev/null; then |
| 26448 | if test -s conftest.err; then |
| 26449 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26450 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26451 | else |
| 26452 | ac_cpp_err= |
| 26453 | fi |
| 26454 | else |
| 26455 | ac_cpp_err=yes |
| 26456 | fi |
| 26457 | if test -z "$ac_cpp_err"; then |
| 26458 | ac_header_preproc=yes |
| 26459 | else |
| 26460 | echo "$as_me: failed program was:" >&5 |
| 26461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26462 | |
| 26463 | ac_header_preproc=no |
| 26464 | fi |
| 26465 | rm -f conftest.err conftest.$ac_ext |
| 26466 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26467 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26468 | |
| 26469 | # So? What about this header? |
| 26470 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26471 | yes:no: ) |
| 26472 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26473 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26475 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26476 | ac_header_preproc=yes |
| 26477 | ;; |
| 26478 | no:yes:* ) |
| 26479 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26480 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26481 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26482 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26483 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26484 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26485 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26486 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26487 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26488 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26489 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26490 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26491 | ( |
| 26492 | cat <<\_ASBOX |
| 26493 | ## ----------------------------------- ## |
| 26494 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26495 | ## ----------------------------------- ## |
| 26496 | _ASBOX |
| 26497 | ) | |
| 26498 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26499 | ;; |
| 26500 | esac |
| 26501 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26502 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26505 | else |
| 26506 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26507 | fi |
| 26508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26509 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26510 | |
| 26511 | fi |
| 26512 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26513 | cat >>confdefs.h <<_ACEOF |
| 26514 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 26515 | _ACEOF |
| 26516 | |
| 26517 | fi |
| 26518 | |
| 26519 | done |
| 26520 | |
| 26521 | |
| 26522 | for ac_header in windows.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26523 | do |
| 26524 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26530 | fi |
| 26531 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26532 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26533 | else |
| 26534 | # Is the header compilable? |
| 26535 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26536 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26537 | cat >conftest.$ac_ext <<_ACEOF |
| 26538 | /* confdefs.h. */ |
| 26539 | _ACEOF |
| 26540 | cat confdefs.h >>conftest.$ac_ext |
| 26541 | cat >>conftest.$ac_ext <<_ACEOF |
| 26542 | /* end confdefs.h. */ |
| 26543 | $ac_includes_default |
| 26544 | #include <$ac_header> |
| 26545 | _ACEOF |
| 26546 | rm -f conftest.$ac_objext |
| 26547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26548 | (eval $ac_compile) 2>conftest.er1 |
| 26549 | ac_status=$? |
| 26550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26551 | rm -f conftest.er1 |
| 26552 | cat conftest.err >&5 |
| 26553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26554 | (exit $ac_status); } && |
| 26555 | { ac_try='test -z "$ac_c_werror_flag" |
| 26556 | || test ! -s conftest.err' |
| 26557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26558 | (eval $ac_try) 2>&5 |
| 26559 | ac_status=$? |
| 26560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26561 | (exit $ac_status); }; } && |
| 26562 | { ac_try='test -s conftest.$ac_objext' |
| 26563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26564 | (eval $ac_try) 2>&5 |
| 26565 | ac_status=$? |
| 26566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26567 | (exit $ac_status); }; }; then |
| 26568 | ac_header_compiler=yes |
| 26569 | else |
| 26570 | echo "$as_me: failed program was:" >&5 |
| 26571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26572 | |
| 26573 | ac_header_compiler=no |
| 26574 | fi |
| 26575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26576 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26577 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26578 | |
| 26579 | # Is the header present? |
| 26580 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26581 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26582 | cat >conftest.$ac_ext <<_ACEOF |
| 26583 | /* confdefs.h. */ |
| 26584 | _ACEOF |
| 26585 | cat confdefs.h >>conftest.$ac_ext |
| 26586 | cat >>conftest.$ac_ext <<_ACEOF |
| 26587 | /* end confdefs.h. */ |
| 26588 | #include <$ac_header> |
| 26589 | _ACEOF |
| 26590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26592 | ac_status=$? |
| 26593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26594 | rm -f conftest.er1 |
| 26595 | cat conftest.err >&5 |
| 26596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26597 | (exit $ac_status); } >/dev/null; then |
| 26598 | if test -s conftest.err; then |
| 26599 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26601 | else |
| 26602 | ac_cpp_err= |
| 26603 | fi |
| 26604 | else |
| 26605 | ac_cpp_err=yes |
| 26606 | fi |
| 26607 | if test -z "$ac_cpp_err"; then |
| 26608 | ac_header_preproc=yes |
| 26609 | else |
| 26610 | echo "$as_me: failed program was:" >&5 |
| 26611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26612 | |
| 26613 | ac_header_preproc=no |
| 26614 | fi |
| 26615 | rm -f conftest.err conftest.$ac_ext |
| 26616 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26617 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26618 | |
| 26619 | # So? What about this header? |
| 26620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26621 | yes:no: ) |
| 26622 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26623 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26625 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26626 | ac_header_preproc=yes |
| 26627 | ;; |
| 26628 | no:yes:* ) |
| 26629 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26630 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26631 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26632 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26633 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26634 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26635 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26636 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26638 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26639 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26640 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26641 | ( |
| 26642 | cat <<\_ASBOX |
| 26643 | ## ----------------------------------- ## |
| 26644 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26645 | ## ----------------------------------- ## |
| 26646 | _ASBOX |
| 26647 | ) | |
| 26648 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26649 | ;; |
| 26650 | esac |
| 26651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26655 | else |
| 26656 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26657 | fi |
| 26658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26659 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26660 | |
| 26661 | fi |
| 26662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26663 | cat >>confdefs.h <<_ACEOF |
| 26664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 26665 | _ACEOF |
| 26666 | |
| 26667 | fi |
| 26668 | |
| 26669 | done |
| 26670 | |
| 26671 | |
| 26672 | |
| 26673 | |
| 26674 | |
| 26675 | |
| 26676 | 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] | 26677 | do |
| 26678 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26680 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26684 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26686 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26687 | else |
| 26688 | # Is the header compilable? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26689 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26690 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26691 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26692 | /* confdefs.h. */ |
| 26693 | _ACEOF |
| 26694 | cat confdefs.h >>conftest.$ac_ext |
| 26695 | cat >>conftest.$ac_ext <<_ACEOF |
| 26696 | /* end confdefs.h. */ |
| 26697 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26698 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26699 | _ACEOF |
| 26700 | rm -f conftest.$ac_objext |
| 26701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26702 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26703 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26705 | rm -f conftest.er1 |
| 26706 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26708 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26709 | { ac_try='test -z "$ac_c_werror_flag" |
| 26710 | || test ! -s conftest.err' |
| 26711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26712 | (eval $ac_try) 2>&5 |
| 26713 | ac_status=$? |
| 26714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26715 | (exit $ac_status); }; } && |
| 26716 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26718 | (eval $ac_try) 2>&5 |
| 26719 | ac_status=$? |
| 26720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26721 | (exit $ac_status); }; }; then |
| 26722 | ac_header_compiler=yes |
| 26723 | else |
| 26724 | echo "$as_me: failed program was:" >&5 |
| 26725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26726 | |
| 26727 | ac_header_compiler=no |
| 26728 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26730 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26731 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26732 | |
| 26733 | # Is the header present? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26734 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26735 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26736 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26737 | /* confdefs.h. */ |
| 26738 | _ACEOF |
| 26739 | cat confdefs.h >>conftest.$ac_ext |
| 26740 | cat >>conftest.$ac_ext <<_ACEOF |
| 26741 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26742 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26743 | _ACEOF |
| 26744 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26746 | ac_status=$? |
| 26747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26748 | rm -f conftest.er1 |
| 26749 | cat conftest.err >&5 |
| 26750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26751 | (exit $ac_status); } >/dev/null; then |
| 26752 | if test -s conftest.err; then |
| 26753 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26754 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26755 | else |
| 26756 | ac_cpp_err= |
| 26757 | fi |
| 26758 | else |
| 26759 | ac_cpp_err=yes |
| 26760 | fi |
| 26761 | if test -z "$ac_cpp_err"; then |
| 26762 | ac_header_preproc=yes |
| 26763 | else |
| 26764 | echo "$as_me: failed program was:" >&5 |
| 26765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26766 | |
| 26767 | ac_header_preproc=no |
| 26768 | fi |
| 26769 | rm -f conftest.err conftest.$ac_ext |
| 26770 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26771 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26772 | |
| 26773 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26775 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26776 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26777 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26779 | 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] | 26780 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26781 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26782 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26783 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26784 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26785 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26786 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26787 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26788 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26789 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26790 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26791 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26792 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26793 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26794 | 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] | 26795 | ( |
| 26796 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26797 | ## ----------------------------------- ## |
| 26798 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26799 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26800 | _ASBOX |
| 26801 | ) | |
| 26802 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26803 | ;; |
| 26804 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26809 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26810 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26811 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26813 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26814 | |
| 26815 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26816 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26817 | cat >>confdefs.h <<_ACEOF |
| 26818 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26819 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26820 | |
| 26821 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26822 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26823 | done |
| 26824 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26825 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26826 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 26827 | for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h |
| 26828 | do |
| 26829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26831 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26835 | fi |
| 26836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26838 | else |
| 26839 | # Is the header compilable? |
| 26840 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26841 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26842 | cat >conftest.$ac_ext <<_ACEOF |
| 26843 | /* confdefs.h. */ |
| 26844 | _ACEOF |
| 26845 | cat confdefs.h >>conftest.$ac_ext |
| 26846 | cat >>conftest.$ac_ext <<_ACEOF |
| 26847 | /* end confdefs.h. */ |
| 26848 | $ac_includes_default |
| 26849 | #include <$ac_header> |
| 26850 | _ACEOF |
| 26851 | rm -f conftest.$ac_objext |
| 26852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26853 | (eval $ac_compile) 2>conftest.er1 |
| 26854 | ac_status=$? |
| 26855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26856 | rm -f conftest.er1 |
| 26857 | cat conftest.err >&5 |
| 26858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26859 | (exit $ac_status); } && |
| 26860 | { ac_try='test -z "$ac_c_werror_flag" |
| 26861 | || test ! -s conftest.err' |
| 26862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26863 | (eval $ac_try) 2>&5 |
| 26864 | ac_status=$? |
| 26865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26866 | (exit $ac_status); }; } && |
| 26867 | { ac_try='test -s conftest.$ac_objext' |
| 26868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26869 | (eval $ac_try) 2>&5 |
| 26870 | ac_status=$? |
| 26871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26872 | (exit $ac_status); }; }; then |
| 26873 | ac_header_compiler=yes |
| 26874 | else |
| 26875 | echo "$as_me: failed program was:" >&5 |
| 26876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26877 | |
| 26878 | ac_header_compiler=no |
| 26879 | fi |
| 26880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26881 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26882 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26883 | |
| 26884 | # Is the header present? |
| 26885 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26886 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26887 | cat >conftest.$ac_ext <<_ACEOF |
| 26888 | /* confdefs.h. */ |
| 26889 | _ACEOF |
| 26890 | cat confdefs.h >>conftest.$ac_ext |
| 26891 | cat >>conftest.$ac_ext <<_ACEOF |
| 26892 | /* end confdefs.h. */ |
| 26893 | #include <$ac_header> |
| 26894 | _ACEOF |
| 26895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26897 | ac_status=$? |
| 26898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26899 | rm -f conftest.er1 |
| 26900 | cat conftest.err >&5 |
| 26901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26902 | (exit $ac_status); } >/dev/null; then |
| 26903 | if test -s conftest.err; then |
| 26904 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26906 | else |
| 26907 | ac_cpp_err= |
| 26908 | fi |
| 26909 | else |
| 26910 | ac_cpp_err=yes |
| 26911 | fi |
| 26912 | if test -z "$ac_cpp_err"; then |
| 26913 | ac_header_preproc=yes |
| 26914 | else |
| 26915 | echo "$as_me: failed program was:" >&5 |
| 26916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26917 | |
| 26918 | ac_header_preproc=no |
| 26919 | fi |
| 26920 | rm -f conftest.err conftest.$ac_ext |
| 26921 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26922 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26923 | |
| 26924 | # So? What about this header? |
| 26925 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26926 | yes:no: ) |
| 26927 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26928 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26929 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26930 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26931 | ac_header_preproc=yes |
| 26932 | ;; |
| 26933 | no:yes:* ) |
| 26934 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26935 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26936 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26937 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26938 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26939 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26940 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26941 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26943 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26944 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26945 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26946 | ( |
| 26947 | cat <<\_ASBOX |
| 26948 | ## ----------------------------------- ## |
| 26949 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26950 | ## ----------------------------------- ## |
| 26951 | _ASBOX |
| 26952 | ) | |
| 26953 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26954 | ;; |
| 26955 | esac |
| 26956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26960 | else |
| 26961 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26962 | fi |
| 26963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26965 | |
| 26966 | fi |
| 26967 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26968 | cat >>confdefs.h <<_ACEOF |
| 26969 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 26970 | _ACEOF |
| 26971 | |
| 26972 | fi |
| 26973 | |
| 26974 | done |
| 26975 | |
| 26976 | |
| 26977 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26978 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 26979 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 26980 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 26981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26982 | else |
| 26983 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26984 | /* confdefs.h. */ |
| 26985 | _ACEOF |
| 26986 | cat confdefs.h >>conftest.$ac_ext |
| 26987 | cat >>conftest.$ac_ext <<_ACEOF |
| 26988 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26989 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26990 | int |
| 26991 | main () |
| 26992 | { |
| 26993 | if ((pid_t *) 0) |
| 26994 | return 0; |
| 26995 | if (sizeof (pid_t)) |
| 26996 | return 0; |
| 26997 | ; |
| 26998 | return 0; |
| 26999 | } |
| 27000 | _ACEOF |
| 27001 | rm -f conftest.$ac_objext |
| 27002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27003 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27004 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27006 | rm -f conftest.er1 |
| 27007 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27009 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27010 | { ac_try='test -z "$ac_c_werror_flag" |
| 27011 | || test ! -s conftest.err' |
| 27012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27013 | (eval $ac_try) 2>&5 |
| 27014 | ac_status=$? |
| 27015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27016 | (exit $ac_status); }; } && |
| 27017 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27019 | (eval $ac_try) 2>&5 |
| 27020 | ac_status=$? |
| 27021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27022 | (exit $ac_status); }; }; then |
| 27023 | ac_cv_type_pid_t=yes |
| 27024 | else |
| 27025 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27027 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27028 | ac_cv_type_pid_t=no |
| 27029 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27031 | fi |
| 27032 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 27033 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 27034 | if test $ac_cv_type_pid_t = yes; then |
| 27035 | : |
| 27036 | else |
| 27037 | |
| 27038 | cat >>confdefs.h <<_ACEOF |
| 27039 | #define pid_t int |
| 27040 | _ACEOF |
| 27041 | |
| 27042 | fi |
| 27043 | |
| 27044 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 27045 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 27046 | if test "${ac_cv_type_size_t+set}" = set; then |
| 27047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27048 | else |
| 27049 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27050 | /* confdefs.h. */ |
| 27051 | _ACEOF |
| 27052 | cat confdefs.h >>conftest.$ac_ext |
| 27053 | cat >>conftest.$ac_ext <<_ACEOF |
| 27054 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27055 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27056 | int |
| 27057 | main () |
| 27058 | { |
| 27059 | if ((size_t *) 0) |
| 27060 | return 0; |
| 27061 | if (sizeof (size_t)) |
| 27062 | return 0; |
| 27063 | ; |
| 27064 | return 0; |
| 27065 | } |
| 27066 | _ACEOF |
| 27067 | rm -f conftest.$ac_objext |
| 27068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27069 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27070 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27072 | rm -f conftest.er1 |
| 27073 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27075 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27076 | { ac_try='test -z "$ac_c_werror_flag" |
| 27077 | || test ! -s conftest.err' |
| 27078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27079 | (eval $ac_try) 2>&5 |
| 27080 | ac_status=$? |
| 27081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27082 | (exit $ac_status); }; } && |
| 27083 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27085 | (eval $ac_try) 2>&5 |
| 27086 | ac_status=$? |
| 27087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27088 | (exit $ac_status); }; }; then |
| 27089 | ac_cv_type_size_t=yes |
| 27090 | else |
| 27091 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27093 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27094 | ac_cv_type_size_t=no |
| 27095 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27097 | fi |
| 27098 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 27099 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 27100 | if test $ac_cv_type_size_t = yes; then |
| 27101 | : |
| 27102 | else |
| 27103 | |
| 27104 | cat >>confdefs.h <<_ACEOF |
| 27105 | #define size_t unsigned |
| 27106 | _ACEOF |
| 27107 | |
| 27108 | fi |
| 27109 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27110 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 27111 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 27112 | if test "${ac_cv_type_signal+set}" = set; then |
| 27113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27114 | else |
| 27115 | cat >conftest.$ac_ext <<_ACEOF |
| 27116 | /* confdefs.h. */ |
| 27117 | _ACEOF |
| 27118 | cat confdefs.h >>conftest.$ac_ext |
| 27119 | cat >>conftest.$ac_ext <<_ACEOF |
| 27120 | /* end confdefs.h. */ |
| 27121 | #include <sys/types.h> |
| 27122 | #include <signal.h> |
| 27123 | #ifdef signal |
| 27124 | # undef signal |
| 27125 | #endif |
| 27126 | #ifdef __cplusplus |
| 27127 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 27128 | #else |
| 27129 | void (*signal ()) (); |
| 27130 | #endif |
| 27131 | |
| 27132 | int |
| 27133 | main () |
| 27134 | { |
| 27135 | int i; |
| 27136 | ; |
| 27137 | return 0; |
| 27138 | } |
| 27139 | _ACEOF |
| 27140 | rm -f conftest.$ac_objext |
| 27141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27142 | (eval $ac_compile) 2>conftest.er1 |
| 27143 | ac_status=$? |
| 27144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27145 | rm -f conftest.er1 |
| 27146 | cat conftest.err >&5 |
| 27147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27148 | (exit $ac_status); } && |
| 27149 | { ac_try='test -z "$ac_c_werror_flag" |
| 27150 | || test ! -s conftest.err' |
| 27151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27152 | (eval $ac_try) 2>&5 |
| 27153 | ac_status=$? |
| 27154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27155 | (exit $ac_status); }; } && |
| 27156 | { ac_try='test -s conftest.$ac_objext' |
| 27157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27158 | (eval $ac_try) 2>&5 |
| 27159 | ac_status=$? |
| 27160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27161 | (exit $ac_status); }; }; then |
| 27162 | ac_cv_type_signal=void |
| 27163 | else |
| 27164 | echo "$as_me: failed program was:" >&5 |
| 27165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27166 | |
| 27167 | ac_cv_type_signal=int |
| 27168 | fi |
| 27169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27170 | fi |
| 27171 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 27172 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 27173 | |
| 27174 | cat >>confdefs.h <<_ACEOF |
| 27175 | #define RETSIGTYPE $ac_cv_type_signal |
| 27176 | _ACEOF |
| 27177 | |
| 27178 | |
| 27179 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 27180 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 27181 | if test "${ac_cv_struct_tm+set}" = set; then |
| 27182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27183 | else |
| 27184 | cat >conftest.$ac_ext <<_ACEOF |
| 27185 | /* confdefs.h. */ |
| 27186 | _ACEOF |
| 27187 | cat confdefs.h >>conftest.$ac_ext |
| 27188 | cat >>conftest.$ac_ext <<_ACEOF |
| 27189 | /* end confdefs.h. */ |
| 27190 | #include <sys/types.h> |
| 27191 | #include <time.h> |
| 27192 | |
| 27193 | int |
| 27194 | main () |
| 27195 | { |
| 27196 | struct tm *tp; tp->tm_sec; |
| 27197 | ; |
| 27198 | return 0; |
| 27199 | } |
| 27200 | _ACEOF |
| 27201 | rm -f conftest.$ac_objext |
| 27202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27203 | (eval $ac_compile) 2>conftest.er1 |
| 27204 | ac_status=$? |
| 27205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27206 | rm -f conftest.er1 |
| 27207 | cat conftest.err >&5 |
| 27208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27209 | (exit $ac_status); } && |
| 27210 | { ac_try='test -z "$ac_c_werror_flag" |
| 27211 | || test ! -s conftest.err' |
| 27212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27213 | (eval $ac_try) 2>&5 |
| 27214 | ac_status=$? |
| 27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27216 | (exit $ac_status); }; } && |
| 27217 | { ac_try='test -s conftest.$ac_objext' |
| 27218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27219 | (eval $ac_try) 2>&5 |
| 27220 | ac_status=$? |
| 27221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27222 | (exit $ac_status); }; }; then |
| 27223 | ac_cv_struct_tm=time.h |
| 27224 | else |
| 27225 | echo "$as_me: failed program was:" >&5 |
| 27226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27227 | |
| 27228 | ac_cv_struct_tm=sys/time.h |
| 27229 | fi |
| 27230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27231 | fi |
| 27232 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 27233 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 27234 | if test $ac_cv_struct_tm = sys/time.h; then |
| 27235 | |
| 27236 | cat >>confdefs.h <<\_ACEOF |
| 27237 | #define TM_IN_SYS_TIME 1 |
| 27238 | _ACEOF |
| 27239 | |
| 27240 | fi |
| 27241 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27242 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 27243 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 27244 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 27245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27246 | else |
| 27247 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27248 | /* confdefs.h. */ |
| 27249 | _ACEOF |
| 27250 | cat confdefs.h >>conftest.$ac_ext |
| 27251 | cat >>conftest.$ac_ext <<_ACEOF |
| 27252 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27253 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27254 | int |
| 27255 | main () |
| 27256 | { |
| 27257 | if ((int64_t *) 0) |
| 27258 | return 0; |
| 27259 | if (sizeof (int64_t)) |
| 27260 | return 0; |
| 27261 | ; |
| 27262 | return 0; |
| 27263 | } |
| 27264 | _ACEOF |
| 27265 | rm -f conftest.$ac_objext |
| 27266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27267 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27268 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27270 | rm -f conftest.er1 |
| 27271 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27273 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27274 | { ac_try='test -z "$ac_c_werror_flag" |
| 27275 | || test ! -s conftest.err' |
| 27276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27277 | (eval $ac_try) 2>&5 |
| 27278 | ac_status=$? |
| 27279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27280 | (exit $ac_status); }; } && |
| 27281 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27283 | (eval $ac_try) 2>&5 |
| 27284 | ac_status=$? |
| 27285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27286 | (exit $ac_status); }; }; then |
| 27287 | ac_cv_type_int64_t=yes |
| 27288 | else |
| 27289 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27291 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27292 | ac_cv_type_int64_t=no |
| 27293 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27295 | fi |
| 27296 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 27297 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 27298 | if test $ac_cv_type_int64_t = yes; then |
| 27299 | |
| 27300 | cat >>confdefs.h <<_ACEOF |
| 27301 | #define HAVE_INT64_T 1 |
| 27302 | _ACEOF |
| 27303 | |
| 27304 | |
| 27305 | else |
| 27306 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 27307 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 27308 | { (exit 1); exit 1; }; } |
| 27309 | fi |
| 27310 | |
| 27311 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 27312 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 27313 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 27314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27315 | else |
| 27316 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27317 | /* confdefs.h. */ |
| 27318 | _ACEOF |
| 27319 | cat confdefs.h >>conftest.$ac_ext |
| 27320 | cat >>conftest.$ac_ext <<_ACEOF |
| 27321 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27322 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27323 | int |
| 27324 | main () |
| 27325 | { |
| 27326 | if ((uint64_t *) 0) |
| 27327 | return 0; |
| 27328 | if (sizeof (uint64_t)) |
| 27329 | return 0; |
| 27330 | ; |
| 27331 | return 0; |
| 27332 | } |
| 27333 | _ACEOF |
| 27334 | rm -f conftest.$ac_objext |
| 27335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27336 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27337 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27339 | rm -f conftest.er1 |
| 27340 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27342 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27343 | { ac_try='test -z "$ac_c_werror_flag" |
| 27344 | || test ! -s conftest.err' |
| 27345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27346 | (eval $ac_try) 2>&5 |
| 27347 | ac_status=$? |
| 27348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27349 | (exit $ac_status); }; } && |
| 27350 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27352 | (eval $ac_try) 2>&5 |
| 27353 | ac_status=$? |
| 27354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27355 | (exit $ac_status); }; }; then |
| 27356 | ac_cv_type_uint64_t=yes |
| 27357 | else |
| 27358 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27360 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27361 | ac_cv_type_uint64_t=no |
| 27362 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27364 | fi |
| 27365 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 27366 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 27367 | if test $ac_cv_type_uint64_t = yes; then |
| 27368 | |
| 27369 | cat >>confdefs.h <<_ACEOF |
| 27370 | #define HAVE_UINT64_T 1 |
| 27371 | _ACEOF |
| 27372 | |
| 27373 | |
| 27374 | else |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27375 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27376 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 27377 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 27378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27379 | else |
| 27380 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27381 | /* confdefs.h. */ |
| 27382 | _ACEOF |
| 27383 | cat confdefs.h >>conftest.$ac_ext |
| 27384 | cat >>conftest.$ac_ext <<_ACEOF |
| 27385 | /* end confdefs.h. */ |
| 27386 | $ac_includes_default |
| 27387 | int |
| 27388 | main () |
| 27389 | { |
| 27390 | if ((u_int64_t *) 0) |
| 27391 | return 0; |
| 27392 | if (sizeof (u_int64_t)) |
| 27393 | return 0; |
| 27394 | ; |
| 27395 | return 0; |
| 27396 | } |
| 27397 | _ACEOF |
| 27398 | rm -f conftest.$ac_objext |
| 27399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27400 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27401 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27403 | rm -f conftest.er1 |
| 27404 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27406 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27407 | { ac_try='test -z "$ac_c_werror_flag" |
| 27408 | || test ! -s conftest.err' |
| 27409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27410 | (eval $ac_try) 2>&5 |
| 27411 | ac_status=$? |
| 27412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27413 | (exit $ac_status); }; } && |
| 27414 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27416 | (eval $ac_try) 2>&5 |
| 27417 | ac_status=$? |
| 27418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27419 | (exit $ac_status); }; }; then |
| 27420 | ac_cv_type_u_int64_t=yes |
| 27421 | else |
| 27422 | echo "$as_me: failed program was:" >&5 |
| 27423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27424 | |
| 27425 | ac_cv_type_u_int64_t=no |
| 27426 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27428 | fi |
| 27429 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 27430 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 27431 | if test $ac_cv_type_u_int64_t = yes; then |
| 27432 | |
| 27433 | cat >>confdefs.h <<_ACEOF |
| 27434 | #define HAVE_U_INT64_T 1 |
| 27435 | _ACEOF |
| 27436 | |
| 27437 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27438 | else |
| 27439 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 27440 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 27441 | { (exit 1); exit 1; }; } |
| 27442 | fi |
| 27443 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27444 | fi |
| 27445 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27446 | |
| 27447 | |
| 27448 | |
| 27449 | |
| 27450 | |
| 27451 | |
| 27452 | |
Reid Spencer | b9a5d68 | 2005-05-15 22:15:11 +0000 | [diff] [blame] | 27453 | for ac_func in backtrace getcwd getpagesize getrusage gettimeofday |
Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 27454 | do |
| 27455 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27456 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27457 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27458 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 27459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27460 | else |
| 27461 | cat >conftest.$ac_ext <<_ACEOF |
| 27462 | /* confdefs.h. */ |
| 27463 | _ACEOF |
| 27464 | cat confdefs.h >>conftest.$ac_ext |
| 27465 | cat >>conftest.$ac_ext <<_ACEOF |
| 27466 | /* end confdefs.h. */ |
| 27467 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27468 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27469 | #define $ac_func innocuous_$ac_func |
Reid Spencer | f9960f7 | 2004-12-15 01:41:56 +0000 | [diff] [blame] | 27470 | |
Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 27471 | /* System header to define __stub macros and hopefully few prototypes, |
| 27472 | which can conflict with char $ac_func (); below. |
| 27473 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27474 | <limits.h> exists even on freestanding compilers. */ |
| 27475 | |
| 27476 | #ifdef __STDC__ |
| 27477 | # include <limits.h> |
| 27478 | #else |
| 27479 | # include <assert.h> |
| 27480 | #endif |
| 27481 | |
| 27482 | #undef $ac_func |
| 27483 | |
| 27484 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27485 | #ifdef __cplusplus |
| 27486 | extern "C" |
| 27487 | { |
| 27488 | #endif |
| 27489 | /* We use char because int might match the return type of a gcc2 |
| 27490 | builtin and then its argument prototype would still apply. */ |
| 27491 | char $ac_func (); |
| 27492 | /* The GNU C library defines this for functions which it implements |
| 27493 | to always fail with ENOSYS. Some functions are actually named |
| 27494 | something starting with __ and the normal name is an alias. */ |
| 27495 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27496 | choke me |
| 27497 | #else |
| 27498 | char (*f) () = $ac_func; |
| 27499 | #endif |
| 27500 | #ifdef __cplusplus |
| 27501 | } |
| 27502 | #endif |
| 27503 | |
| 27504 | int |
| 27505 | main () |
| 27506 | { |
| 27507 | return f != $ac_func; |
| 27508 | ; |
| 27509 | return 0; |
| 27510 | } |
| 27511 | _ACEOF |
| 27512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27514 | (eval $ac_link) 2>conftest.er1 |
| 27515 | ac_status=$? |
| 27516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27517 | rm -f conftest.er1 |
| 27518 | cat conftest.err >&5 |
| 27519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27520 | (exit $ac_status); } && |
| 27521 | { ac_try='test -z "$ac_c_werror_flag" |
| 27522 | || test ! -s conftest.err' |
| 27523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27524 | (eval $ac_try) 2>&5 |
| 27525 | ac_status=$? |
| 27526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27527 | (exit $ac_status); }; } && |
| 27528 | { ac_try='test -s conftest$ac_exeext' |
| 27529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27530 | (eval $ac_try) 2>&5 |
| 27531 | ac_status=$? |
| 27532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27533 | (exit $ac_status); }; }; then |
| 27534 | eval "$as_ac_var=yes" |
| 27535 | else |
| 27536 | echo "$as_me: failed program was:" >&5 |
| 27537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27538 | |
| 27539 | eval "$as_ac_var=no" |
| 27540 | fi |
| 27541 | rm -f conftest.err conftest.$ac_objext \ |
| 27542 | conftest$ac_exeext conftest.$ac_ext |
| 27543 | fi |
| 27544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27545 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27546 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27547 | cat >>confdefs.h <<_ACEOF |
| 27548 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 27549 | _ACEOF |
| 27550 | |
| 27551 | fi |
| 27552 | done |
| 27553 | |
| 27554 | |
| 27555 | |
| 27556 | |
Reid Spencer | c29b13d | 2005-05-14 16:42:52 +0000 | [diff] [blame] | 27557 | |
| 27558 | for ac_func in isatty mkdtemp mkstemp mktemp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27559 | do |
| 27560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27563 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27565 | else |
| 27566 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27567 | /* confdefs.h. */ |
| 27568 | _ACEOF |
| 27569 | cat confdefs.h >>conftest.$ac_ext |
| 27570 | cat >>conftest.$ac_ext <<_ACEOF |
| 27571 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27574 | #define $ac_func innocuous_$ac_func |
| 27575 | |
| 27576 | /* System header to define __stub macros and hopefully few prototypes, |
| 27577 | which can conflict with char $ac_func (); below. |
| 27578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27579 | <limits.h> exists even on freestanding compilers. */ |
| 27580 | |
| 27581 | #ifdef __STDC__ |
| 27582 | # include <limits.h> |
| 27583 | #else |
| 27584 | # include <assert.h> |
| 27585 | #endif |
| 27586 | |
| 27587 | #undef $ac_func |
| 27588 | |
| 27589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27590 | #ifdef __cplusplus |
| 27591 | extern "C" |
| 27592 | { |
| 27593 | #endif |
| 27594 | /* We use char because int might match the return type of a gcc2 |
| 27595 | builtin and then its argument prototype would still apply. */ |
| 27596 | char $ac_func (); |
| 27597 | /* The GNU C library defines this for functions which it implements |
| 27598 | to always fail with ENOSYS. Some functions are actually named |
| 27599 | something starting with __ and the normal name is an alias. */ |
| 27600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27601 | choke me |
| 27602 | #else |
| 27603 | char (*f) () = $ac_func; |
| 27604 | #endif |
| 27605 | #ifdef __cplusplus |
| 27606 | } |
| 27607 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27608 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27609 | int |
| 27610 | main () |
| 27611 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27612 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27613 | ; |
| 27614 | return 0; |
| 27615 | } |
| 27616 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27619 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27620 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27622 | rm -f conftest.er1 |
| 27623 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27625 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27626 | { ac_try='test -z "$ac_c_werror_flag" |
| 27627 | || test ! -s conftest.err' |
| 27628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27629 | (eval $ac_try) 2>&5 |
| 27630 | ac_status=$? |
| 27631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27632 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27633 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27635 | (eval $ac_try) 2>&5 |
| 27636 | ac_status=$? |
| 27637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27638 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27639 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27640 | else |
| 27641 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27643 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27644 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27645 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27646 | rm -f conftest.err conftest.$ac_objext \ |
| 27647 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27648 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27650 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27651 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27652 | cat >>confdefs.h <<_ACEOF |
| 27653 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27654 | _ACEOF |
| 27655 | |
| 27656 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27657 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27658 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27659 | |
| 27660 | |
| 27661 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 27662 | |
| 27663 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27664 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 27665 | for ac_func in realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27666 | do |
| 27667 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27668 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27669 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27670 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 27671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27672 | else |
| 27673 | cat >conftest.$ac_ext <<_ACEOF |
| 27674 | /* confdefs.h. */ |
| 27675 | _ACEOF |
| 27676 | cat confdefs.h >>conftest.$ac_ext |
| 27677 | cat >>conftest.$ac_ext <<_ACEOF |
| 27678 | /* end confdefs.h. */ |
| 27679 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27680 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27681 | #define $ac_func innocuous_$ac_func |
| 27682 | |
| 27683 | /* System header to define __stub macros and hopefully few prototypes, |
| 27684 | which can conflict with char $ac_func (); below. |
| 27685 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27686 | <limits.h> exists even on freestanding compilers. */ |
| 27687 | |
| 27688 | #ifdef __STDC__ |
| 27689 | # include <limits.h> |
| 27690 | #else |
| 27691 | # include <assert.h> |
| 27692 | #endif |
| 27693 | |
| 27694 | #undef $ac_func |
| 27695 | |
| 27696 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27697 | #ifdef __cplusplus |
| 27698 | extern "C" |
| 27699 | { |
| 27700 | #endif |
| 27701 | /* We use char because int might match the return type of a gcc2 |
| 27702 | builtin and then its argument prototype would still apply. */ |
| 27703 | char $ac_func (); |
| 27704 | /* The GNU C library defines this for functions which it implements |
| 27705 | to always fail with ENOSYS. Some functions are actually named |
| 27706 | something starting with __ and the normal name is an alias. */ |
| 27707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27708 | choke me |
| 27709 | #else |
| 27710 | char (*f) () = $ac_func; |
| 27711 | #endif |
| 27712 | #ifdef __cplusplus |
| 27713 | } |
| 27714 | #endif |
| 27715 | |
| 27716 | int |
| 27717 | main () |
| 27718 | { |
| 27719 | return f != $ac_func; |
| 27720 | ; |
| 27721 | return 0; |
| 27722 | } |
| 27723 | _ACEOF |
| 27724 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27726 | (eval $ac_link) 2>conftest.er1 |
| 27727 | ac_status=$? |
| 27728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27729 | rm -f conftest.er1 |
| 27730 | cat conftest.err >&5 |
| 27731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27732 | (exit $ac_status); } && |
| 27733 | { ac_try='test -z "$ac_c_werror_flag" |
| 27734 | || test ! -s conftest.err' |
| 27735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27736 | (eval $ac_try) 2>&5 |
| 27737 | ac_status=$? |
| 27738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27739 | (exit $ac_status); }; } && |
| 27740 | { ac_try='test -s conftest$ac_exeext' |
| 27741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27742 | (eval $ac_try) 2>&5 |
| 27743 | ac_status=$? |
| 27744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27745 | (exit $ac_status); }; }; then |
| 27746 | eval "$as_ac_var=yes" |
| 27747 | else |
| 27748 | echo "$as_me: failed program was:" >&5 |
| 27749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27750 | |
| 27751 | eval "$as_ac_var=no" |
| 27752 | fi |
| 27753 | rm -f conftest.err conftest.$ac_objext \ |
| 27754 | conftest$ac_exeext conftest.$ac_ext |
| 27755 | fi |
| 27756 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27757 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27758 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27759 | cat >>confdefs.h <<_ACEOF |
| 27760 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 27761 | _ACEOF |
| 27762 | |
| 27763 | fi |
| 27764 | done |
| 27765 | |
| 27766 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 27767 | |
| 27768 | |
| 27769 | for ac_func in strtoll strtoq sysconf |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27770 | do |
| 27771 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27772 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27773 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27774 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27776 | else |
| 27777 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27778 | /* confdefs.h. */ |
| 27779 | _ACEOF |
| 27780 | cat confdefs.h >>conftest.$ac_ext |
| 27781 | cat >>conftest.$ac_ext <<_ACEOF |
| 27782 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27783 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27784 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27785 | #define $ac_func innocuous_$ac_func |
| 27786 | |
| 27787 | /* System header to define __stub macros and hopefully few prototypes, |
| 27788 | which can conflict with char $ac_func (); below. |
| 27789 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27790 | <limits.h> exists even on freestanding compilers. */ |
| 27791 | |
| 27792 | #ifdef __STDC__ |
| 27793 | # include <limits.h> |
| 27794 | #else |
| 27795 | # include <assert.h> |
| 27796 | #endif |
| 27797 | |
| 27798 | #undef $ac_func |
| 27799 | |
| 27800 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27801 | #ifdef __cplusplus |
| 27802 | extern "C" |
| 27803 | { |
| 27804 | #endif |
| 27805 | /* We use char because int might match the return type of a gcc2 |
| 27806 | builtin and then its argument prototype would still apply. */ |
| 27807 | char $ac_func (); |
| 27808 | /* The GNU C library defines this for functions which it implements |
| 27809 | to always fail with ENOSYS. Some functions are actually named |
| 27810 | something starting with __ and the normal name is an alias. */ |
| 27811 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27812 | choke me |
| 27813 | #else |
| 27814 | char (*f) () = $ac_func; |
| 27815 | #endif |
| 27816 | #ifdef __cplusplus |
| 27817 | } |
| 27818 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27819 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27820 | int |
| 27821 | main () |
| 27822 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27823 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27824 | ; |
| 27825 | return 0; |
| 27826 | } |
| 27827 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27830 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27831 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27833 | rm -f conftest.er1 |
| 27834 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27836 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27837 | { ac_try='test -z "$ac_c_werror_flag" |
| 27838 | || test ! -s conftest.err' |
| 27839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27840 | (eval $ac_try) 2>&5 |
| 27841 | ac_status=$? |
| 27842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27843 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27844 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27846 | (eval $ac_try) 2>&5 |
| 27847 | ac_status=$? |
| 27848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27849 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27850 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27851 | else |
| 27852 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27854 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27855 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27856 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27857 | rm -f conftest.err conftest.$ac_objext \ |
| 27858 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27859 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27861 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27862 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27863 | cat >>confdefs.h <<_ACEOF |
| 27864 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27865 | _ACEOF |
| 27866 | |
| 27867 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27868 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27869 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27870 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 27871 | 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] | 27872 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27874 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27875 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27876 | ac_cpp='$CPP $CPPFLAGS' |
| 27877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27880 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27881 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27882 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27883 | else |
| 27884 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27885 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27886 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27887 | _ACEOF |
| 27888 | cat confdefs.h >>conftest.$ac_ext |
| 27889 | cat >>conftest.$ac_ext <<_ACEOF |
| 27890 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27891 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27892 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27893 | #include <stdlib.h> |
| 27894 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27895 | int |
| 27896 | main () |
| 27897 | { |
| 27898 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27899 | volatile double A, B; |
| 27900 | char Buffer[100]; |
| 27901 | A = 1; |
| 27902 | A /= 10.0; |
| 27903 | sprintf(Buffer, "%a", A); |
| 27904 | B = atof(Buffer); |
| 27905 | if (A != B) |
| 27906 | return (1); |
| 27907 | if (A != 0x1.999999999999ap-4) |
| 27908 | return (1); |
| 27909 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27910 | ; |
| 27911 | return 0; |
| 27912 | } |
| 27913 | _ACEOF |
| 27914 | rm -f conftest$ac_exeext |
| 27915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27916 | (eval $ac_link) 2>&5 |
| 27917 | ac_status=$? |
| 27918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27921 | (eval $ac_try) 2>&5 |
| 27922 | ac_status=$? |
| 27923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27924 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27925 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27926 | else |
| 27927 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27928 | echo "$as_me: failed program was:" >&5 |
| 27929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27930 | |
| 27931 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27932 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27933 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27934 | 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] | 27935 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27936 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27937 | ac_cpp='$CPP $CPPFLAGS' |
| 27938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27941 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27942 | fi |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27943 | echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 27944 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6 |
| 27945 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27946 | |
| 27947 | cat >>confdefs.h <<\_ACEOF |
| 27948 | #define HAVE_PRINTF_A 1 |
| 27949 | _ACEOF |
| 27950 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27951 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27952 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27953 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 27954 | # for constant arguments. Useless! |
| 27955 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 27956 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 27957 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27959 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27960 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27961 | /* confdefs.h. */ |
| 27962 | _ACEOF |
| 27963 | cat confdefs.h >>conftest.$ac_ext |
| 27964 | cat >>conftest.$ac_ext <<_ACEOF |
| 27965 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27966 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27967 | int |
| 27968 | main () |
| 27969 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27970 | char *p = (char *) alloca (2 * sizeof (int)); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27971 | ; |
| 27972 | return 0; |
| 27973 | } |
| 27974 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27975 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27977 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27978 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27980 | rm -f conftest.er1 |
| 27981 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27983 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27984 | { ac_try='test -z "$ac_c_werror_flag" |
| 27985 | || test ! -s conftest.err' |
| 27986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27987 | (eval $ac_try) 2>&5 |
| 27988 | ac_status=$? |
| 27989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27990 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27991 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27993 | (eval $ac_try) 2>&5 |
| 27994 | ac_status=$? |
| 27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27996 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27997 | ac_cv_working_alloca_h=yes |
| 27998 | else |
| 27999 | echo "$as_me: failed program was:" >&5 |
| 28000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28001 | |
| 28002 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28003 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28004 | rm -f conftest.err conftest.$ac_objext \ |
| 28005 | conftest$ac_exeext conftest.$ac_ext |
| 28006 | fi |
| 28007 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 28008 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 28009 | if test $ac_cv_working_alloca_h = yes; then |
| 28010 | |
| 28011 | cat >>confdefs.h <<\_ACEOF |
| 28012 | #define HAVE_ALLOCA_H 1 |
| 28013 | _ACEOF |
| 28014 | |
| 28015 | fi |
| 28016 | |
| 28017 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 28018 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 28019 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 28020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28021 | else |
| 28022 | cat >conftest.$ac_ext <<_ACEOF |
| 28023 | /* confdefs.h. */ |
| 28024 | _ACEOF |
| 28025 | cat confdefs.h >>conftest.$ac_ext |
| 28026 | cat >>conftest.$ac_ext <<_ACEOF |
| 28027 | /* end confdefs.h. */ |
| 28028 | #ifdef __GNUC__ |
| 28029 | # define alloca __builtin_alloca |
| 28030 | #else |
| 28031 | # ifdef _MSC_VER |
| 28032 | # include <malloc.h> |
| 28033 | # define alloca _alloca |
| 28034 | # else |
| 28035 | # if HAVE_ALLOCA_H |
| 28036 | # include <alloca.h> |
| 28037 | # else |
| 28038 | # ifdef _AIX |
| 28039 | #pragma alloca |
| 28040 | # else |
| 28041 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 28042 | char *alloca (); |
| 28043 | # endif |
| 28044 | # endif |
| 28045 | # endif |
| 28046 | # endif |
| 28047 | #endif |
| 28048 | |
| 28049 | int |
| 28050 | main () |
| 28051 | { |
| 28052 | char *p = (char *) alloca (1); |
| 28053 | ; |
| 28054 | return 0; |
| 28055 | } |
| 28056 | _ACEOF |
| 28057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28059 | (eval $ac_link) 2>conftest.er1 |
| 28060 | ac_status=$? |
| 28061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28062 | rm -f conftest.er1 |
| 28063 | cat conftest.err >&5 |
| 28064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28065 | (exit $ac_status); } && |
| 28066 | { ac_try='test -z "$ac_c_werror_flag" |
| 28067 | || test ! -s conftest.err' |
| 28068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28069 | (eval $ac_try) 2>&5 |
| 28070 | ac_status=$? |
| 28071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28072 | (exit $ac_status); }; } && |
| 28073 | { ac_try='test -s conftest$ac_exeext' |
| 28074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28075 | (eval $ac_try) 2>&5 |
| 28076 | ac_status=$? |
| 28077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28078 | (exit $ac_status); }; }; then |
| 28079 | ac_cv_func_alloca_works=yes |
| 28080 | else |
| 28081 | echo "$as_me: failed program was:" >&5 |
| 28082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28083 | |
| 28084 | ac_cv_func_alloca_works=no |
| 28085 | fi |
| 28086 | rm -f conftest.err conftest.$ac_objext \ |
| 28087 | conftest$ac_exeext conftest.$ac_ext |
| 28088 | fi |
| 28089 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 28090 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 28091 | |
| 28092 | if test $ac_cv_func_alloca_works = yes; then |
| 28093 | |
| 28094 | cat >>confdefs.h <<\_ACEOF |
| 28095 | #define HAVE_ALLOCA 1 |
| 28096 | _ACEOF |
| 28097 | |
| 28098 | else |
| 28099 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 28100 | # that cause trouble. Some versions do not even contain alloca or |
| 28101 | # contain a buggy version. If you still want to use their alloca, |
| 28102 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 28103 | |
| 28104 | ALLOCA=alloca.$ac_objext |
| 28105 | |
| 28106 | cat >>confdefs.h <<\_ACEOF |
| 28107 | #define C_ALLOCA 1 |
| 28108 | _ACEOF |
| 28109 | |
| 28110 | |
| 28111 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 28112 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 28113 | if test "${ac_cv_os_cray+set}" = set; then |
| 28114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28115 | else |
| 28116 | cat >conftest.$ac_ext <<_ACEOF |
| 28117 | /* confdefs.h. */ |
| 28118 | _ACEOF |
| 28119 | cat confdefs.h >>conftest.$ac_ext |
| 28120 | cat >>conftest.$ac_ext <<_ACEOF |
| 28121 | /* end confdefs.h. */ |
| 28122 | #if defined(CRAY) && ! defined(CRAY2) |
| 28123 | webecray |
| 28124 | #else |
| 28125 | wenotbecray |
| 28126 | #endif |
| 28127 | |
| 28128 | _ACEOF |
| 28129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28130 | $EGREP "webecray" >/dev/null 2>&1; then |
| 28131 | ac_cv_os_cray=yes |
| 28132 | else |
| 28133 | ac_cv_os_cray=no |
| 28134 | fi |
| 28135 | rm -f conftest* |
| 28136 | |
| 28137 | fi |
| 28138 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 28139 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 28140 | if test $ac_cv_os_cray = yes; then |
| 28141 | for ac_func in _getb67 GETB67 getb67; do |
| 28142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28143 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28145 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 28146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28147 | else |
| 28148 | cat >conftest.$ac_ext <<_ACEOF |
| 28149 | /* confdefs.h. */ |
| 28150 | _ACEOF |
| 28151 | cat confdefs.h >>conftest.$ac_ext |
| 28152 | cat >>conftest.$ac_ext <<_ACEOF |
| 28153 | /* end confdefs.h. */ |
| 28154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28156 | #define $ac_func innocuous_$ac_func |
| 28157 | |
| 28158 | /* System header to define __stub macros and hopefully few prototypes, |
| 28159 | which can conflict with char $ac_func (); below. |
| 28160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28161 | <limits.h> exists even on freestanding compilers. */ |
| 28162 | |
| 28163 | #ifdef __STDC__ |
| 28164 | # include <limits.h> |
| 28165 | #else |
| 28166 | # include <assert.h> |
| 28167 | #endif |
| 28168 | |
| 28169 | #undef $ac_func |
| 28170 | |
| 28171 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28172 | #ifdef __cplusplus |
| 28173 | extern "C" |
| 28174 | { |
| 28175 | #endif |
| 28176 | /* We use char because int might match the return type of a gcc2 |
| 28177 | builtin and then its argument prototype would still apply. */ |
| 28178 | char $ac_func (); |
| 28179 | /* The GNU C library defines this for functions which it implements |
| 28180 | to always fail with ENOSYS. Some functions are actually named |
| 28181 | something starting with __ and the normal name is an alias. */ |
| 28182 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28183 | choke me |
| 28184 | #else |
| 28185 | char (*f) () = $ac_func; |
| 28186 | #endif |
| 28187 | #ifdef __cplusplus |
| 28188 | } |
| 28189 | #endif |
| 28190 | |
| 28191 | int |
| 28192 | main () |
| 28193 | { |
| 28194 | return f != $ac_func; |
| 28195 | ; |
| 28196 | return 0; |
| 28197 | } |
| 28198 | _ACEOF |
| 28199 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28201 | (eval $ac_link) 2>conftest.er1 |
| 28202 | ac_status=$? |
| 28203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28204 | rm -f conftest.er1 |
| 28205 | cat conftest.err >&5 |
| 28206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28207 | (exit $ac_status); } && |
| 28208 | { ac_try='test -z "$ac_c_werror_flag" |
| 28209 | || test ! -s conftest.err' |
| 28210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28211 | (eval $ac_try) 2>&5 |
| 28212 | ac_status=$? |
| 28213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28214 | (exit $ac_status); }; } && |
| 28215 | { ac_try='test -s conftest$ac_exeext' |
| 28216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28217 | (eval $ac_try) 2>&5 |
| 28218 | ac_status=$? |
| 28219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28220 | (exit $ac_status); }; }; then |
| 28221 | eval "$as_ac_var=yes" |
| 28222 | else |
| 28223 | echo "$as_me: failed program was:" >&5 |
| 28224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28225 | |
| 28226 | eval "$as_ac_var=no" |
| 28227 | fi |
| 28228 | rm -f conftest.err conftest.$ac_objext \ |
| 28229 | conftest$ac_exeext conftest.$ac_ext |
| 28230 | fi |
| 28231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28232 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28233 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28234 | |
| 28235 | cat >>confdefs.h <<_ACEOF |
| 28236 | #define CRAY_STACKSEG_END $ac_func |
| 28237 | _ACEOF |
| 28238 | |
| 28239 | break |
| 28240 | fi |
| 28241 | |
| 28242 | done |
| 28243 | fi |
| 28244 | |
| 28245 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 28246 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 28247 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 28248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28249 | else |
| 28250 | if test "$cross_compiling" = yes; then |
| 28251 | ac_cv_c_stack_direction=0 |
| 28252 | else |
| 28253 | cat >conftest.$ac_ext <<_ACEOF |
| 28254 | /* confdefs.h. */ |
| 28255 | _ACEOF |
| 28256 | cat confdefs.h >>conftest.$ac_ext |
| 28257 | cat >>conftest.$ac_ext <<_ACEOF |
| 28258 | /* end confdefs.h. */ |
| 28259 | int |
| 28260 | find_stack_direction () |
| 28261 | { |
| 28262 | static char *addr = 0; |
| 28263 | auto char dummy; |
| 28264 | if (addr == 0) |
| 28265 | { |
| 28266 | addr = &dummy; |
| 28267 | return find_stack_direction (); |
| 28268 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28269 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28270 | return (&dummy > addr) ? 1 : -1; |
| 28271 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28272 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28273 | int |
| 28274 | main () |
| 28275 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28276 | exit (find_stack_direction () < 0); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28277 | } |
| 28278 | _ACEOF |
| 28279 | rm -f conftest$ac_exeext |
| 28280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28281 | (eval $ac_link) 2>&5 |
| 28282 | ac_status=$? |
| 28283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28284 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 28285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28286 | (eval $ac_try) 2>&5 |
| 28287 | ac_status=$? |
| 28288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28289 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28290 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28291 | else |
| 28292 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28293 | echo "$as_me: failed program was:" >&5 |
| 28294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28295 | |
| 28296 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28297 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28298 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28299 | 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] | 28300 | fi |
| 28301 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28302 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 28303 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 28304 | |
| 28305 | cat >>confdefs.h <<_ACEOF |
| 28306 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 28307 | _ACEOF |
| 28308 | |
| 28309 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28310 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28311 | |
| 28312 | |
| 28313 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 28314 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 |
| 28315 | if test "${ac_cv_func_rand48+set}" = set; then |
| 28316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28317 | else |
| 28318 | ac_ext=cc |
| 28319 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28323 | |
| 28324 | cat >conftest.$ac_ext <<_ACEOF |
| 28325 | /* confdefs.h. */ |
| 28326 | _ACEOF |
| 28327 | cat confdefs.h >>conftest.$ac_ext |
| 28328 | cat >>conftest.$ac_ext <<_ACEOF |
| 28329 | /* end confdefs.h. */ |
| 28330 | #include <stdlib.h> |
| 28331 | int |
| 28332 | main () |
| 28333 | { |
| 28334 | srand48(0);lrand48();drand48(); |
| 28335 | ; |
| 28336 | return 0; |
| 28337 | } |
| 28338 | _ACEOF |
| 28339 | rm -f conftest.$ac_objext |
| 28340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 28341 | (eval $ac_compile) 2>conftest.er1 |
| 28342 | ac_status=$? |
| 28343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28344 | rm -f conftest.er1 |
| 28345 | cat conftest.err >&5 |
| 28346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28347 | (exit $ac_status); } && |
| 28348 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28349 | || test ! -s conftest.err' |
| 28350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28351 | (eval $ac_try) 2>&5 |
| 28352 | ac_status=$? |
| 28353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28354 | (exit $ac_status); }; } && |
| 28355 | { ac_try='test -s conftest.$ac_objext' |
| 28356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28357 | (eval $ac_try) 2>&5 |
| 28358 | ac_status=$? |
| 28359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28360 | (exit $ac_status); }; }; then |
| 28361 | ac_cv_func_rand48=yes |
| 28362 | else |
| 28363 | echo "$as_me: failed program was:" >&5 |
| 28364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28365 | |
| 28366 | ac_cv_func_rand48=no |
| 28367 | fi |
| 28368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28369 | ac_ext=c |
| 28370 | ac_cpp='$CPP $CPPFLAGS' |
| 28371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28374 | |
| 28375 | fi |
| 28376 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 28377 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 |
| 28378 | |
| 28379 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 28380 | |
| 28381 | cat >>confdefs.h <<\_ACEOF |
| 28382 | #define HAVE_RAND48 1 |
| 28383 | _ACEOF |
| 28384 | |
| 28385 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28386 | |
| 28387 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28388 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 28389 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 28390 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 28391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28392 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28393 | ac_ext=cc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28394 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28398 | |
| 28399 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28400 | /* confdefs.h. */ |
| 28401 | _ACEOF |
| 28402 | cat confdefs.h >>conftest.$ac_ext |
| 28403 | cat >>conftest.$ac_ext <<_ACEOF |
| 28404 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28405 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28406 | int |
| 28407 | main () |
| 28408 | { |
| 28409 | using namespace Outer::Inner; return i; |
| 28410 | ; |
| 28411 | return 0; |
| 28412 | } |
| 28413 | _ACEOF |
| 28414 | rm -f conftest.$ac_objext |
| 28415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28416 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28417 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28419 | rm -f conftest.er1 |
| 28420 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28422 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28423 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28424 | || test ! -s conftest.err' |
| 28425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28426 | (eval $ac_try) 2>&5 |
| 28427 | ac_status=$? |
| 28428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28429 | (exit $ac_status); }; } && |
| 28430 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28432 | (eval $ac_try) 2>&5 |
| 28433 | ac_status=$? |
| 28434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28435 | (exit $ac_status); }; }; then |
| 28436 | ac_cv_cxx_namespaces=yes |
| 28437 | else |
| 28438 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28440 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28441 | ac_cv_cxx_namespaces=no |
| 28442 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28444 | ac_ext=c |
| 28445 | ac_cpp='$CPP $CPPFLAGS' |
| 28446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28449 | |
| 28450 | |
| 28451 | fi |
| 28452 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 28453 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 28454 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 28455 | |
| 28456 | cat >>confdefs.h <<\_ACEOF |
| 28457 | #define HAVE_NAMESPACES |
| 28458 | _ACEOF |
| 28459 | |
| 28460 | fi |
| 28461 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28462 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 28463 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 |
| 28464 | 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] | 28465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28466 | else |
| 28467 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28468 | ac_ext=cc |
| 28469 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28473 | |
| 28474 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28475 | /* confdefs.h. */ |
| 28476 | _ACEOF |
| 28477 | cat confdefs.h >>conftest.$ac_ext |
| 28478 | cat >>conftest.$ac_ext <<_ACEOF |
| 28479 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28480 | #include <ext/hash_map> |
| 28481 | #ifdef HAVE_NAMESPACES |
| 28482 | using namespace std; |
| 28483 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28484 | int |
| 28485 | main () |
| 28486 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28487 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28488 | ; |
| 28489 | return 0; |
| 28490 | } |
| 28491 | _ACEOF |
| 28492 | rm -f conftest.$ac_objext |
| 28493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28494 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28495 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28497 | rm -f conftest.er1 |
| 28498 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28500 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28501 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28502 | || test ! -s conftest.err' |
| 28503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28504 | (eval $ac_try) 2>&5 |
| 28505 | ac_status=$? |
| 28506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28507 | (exit $ac_status); }; } && |
| 28508 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28510 | (eval $ac_try) 2>&5 |
| 28511 | ac_status=$? |
| 28512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28513 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28514 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28515 | else |
| 28516 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28518 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28519 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28520 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28522 | ac_ext=c |
| 28523 | ac_cpp='$CPP $CPPFLAGS' |
| 28524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28527 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28528 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28529 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 28530 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28531 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 28532 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28533 | |
| 28534 | cat >>confdefs.h <<\_ACEOF |
| 28535 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 28536 | _ACEOF |
| 28537 | |
| 28538 | else |
| 28539 | |
| 28540 | cat >>confdefs.h <<\_ACEOF |
| 28541 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 28542 | _ACEOF |
| 28543 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28544 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28545 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28546 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 28547 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 |
| 28548 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 28549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28550 | else |
| 28551 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28552 | ac_ext=cc |
| 28553 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28554 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28555 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28556 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28557 | |
| 28558 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28559 | /* confdefs.h. */ |
| 28560 | _ACEOF |
| 28561 | cat confdefs.h >>conftest.$ac_ext |
| 28562 | cat >>conftest.$ac_ext <<_ACEOF |
| 28563 | /* end confdefs.h. */ |
| 28564 | #include <ext/hash_map> |
| 28565 | #ifdef HAVE_NAMESPACES |
| 28566 | using namespace __gnu_cxx; |
| 28567 | #endif |
| 28568 | int |
| 28569 | main () |
| 28570 | { |
| 28571 | hash_map<int,int> t; |
| 28572 | ; |
| 28573 | return 0; |
| 28574 | } |
| 28575 | _ACEOF |
| 28576 | rm -f conftest.$ac_objext |
| 28577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28578 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28579 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28581 | rm -f conftest.er1 |
| 28582 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28584 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28585 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28586 | || test ! -s conftest.err' |
| 28587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28588 | (eval $ac_try) 2>&5 |
| 28589 | ac_status=$? |
| 28590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28591 | (exit $ac_status); }; } && |
| 28592 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28594 | (eval $ac_try) 2>&5 |
| 28595 | ac_status=$? |
| 28596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28597 | (exit $ac_status); }; }; then |
| 28598 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 28599 | else |
| 28600 | echo "$as_me: failed program was:" >&5 |
| 28601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28602 | |
| 28603 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28604 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28606 | ac_ext=c |
| 28607 | ac_cpp='$CPP $CPPFLAGS' |
| 28608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28611 | |
| 28612 | fi |
| 28613 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 28614 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28615 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 28616 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28617 | |
| 28618 | cat >>confdefs.h <<\_ACEOF |
| 28619 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 28620 | _ACEOF |
| 28621 | |
| 28622 | else |
| 28623 | |
| 28624 | cat >>confdefs.h <<\_ACEOF |
| 28625 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 28626 | _ACEOF |
| 28627 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28628 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28629 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28630 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 28631 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 |
| 28632 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 28633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28634 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28635 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28636 | ac_ext=cc |
| 28637 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28638 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28639 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28640 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28641 | |
| 28642 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28643 | /* confdefs.h. */ |
| 28644 | _ACEOF |
| 28645 | cat confdefs.h >>conftest.$ac_ext |
| 28646 | cat >>conftest.$ac_ext <<_ACEOF |
| 28647 | /* end confdefs.h. */ |
| 28648 | #include <hash_map> |
| 28649 | int |
| 28650 | main () |
| 28651 | { |
| 28652 | hash_map<int,int> t; |
| 28653 | ; |
| 28654 | return 0; |
| 28655 | } |
| 28656 | _ACEOF |
| 28657 | rm -f conftest.$ac_objext |
| 28658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28659 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28660 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28662 | rm -f conftest.er1 |
| 28663 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28665 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28666 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28667 | || test ! -s conftest.err' |
| 28668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28669 | (eval $ac_try) 2>&5 |
| 28670 | ac_status=$? |
| 28671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28672 | (exit $ac_status); }; } && |
| 28673 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28675 | (eval $ac_try) 2>&5 |
| 28676 | ac_status=$? |
| 28677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28678 | (exit $ac_status); }; }; then |
| 28679 | ac_cv_cxx_have_global_hash_map=yes |
| 28680 | else |
| 28681 | echo "$as_me: failed program was:" >&5 |
| 28682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28683 | |
| 28684 | ac_cv_cxx_have_global_hash_map=no |
| 28685 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28687 | ac_ext=c |
| 28688 | ac_cpp='$CPP $CPPFLAGS' |
| 28689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28692 | |
| 28693 | fi |
| 28694 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 28695 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28696 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 28697 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28698 | |
| 28699 | cat >>confdefs.h <<\_ACEOF |
| 28700 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 28701 | _ACEOF |
| 28702 | |
| 28703 | else |
| 28704 | |
| 28705 | cat >>confdefs.h <<\_ACEOF |
| 28706 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 28707 | _ACEOF |
| 28708 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28709 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28710 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28711 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 28712 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 |
| 28713 | 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] | 28714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28715 | else |
| 28716 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28717 | ac_ext=cc |
| 28718 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28719 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28720 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28721 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28722 | |
| 28723 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28724 | /* confdefs.h. */ |
| 28725 | _ACEOF |
| 28726 | cat confdefs.h >>conftest.$ac_ext |
| 28727 | cat >>conftest.$ac_ext <<_ACEOF |
| 28728 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28729 | #include <ext/hash_set> |
| 28730 | #ifdef HAVE_NAMESPACES |
| 28731 | using namespace std; |
| 28732 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28733 | int |
| 28734 | main () |
| 28735 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28736 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28737 | ; |
| 28738 | return 0; |
| 28739 | } |
| 28740 | _ACEOF |
| 28741 | rm -f conftest.$ac_objext |
| 28742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28743 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28744 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28746 | rm -f conftest.er1 |
| 28747 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28749 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28750 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28751 | || test ! -s conftest.err' |
| 28752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28753 | (eval $ac_try) 2>&5 |
| 28754 | ac_status=$? |
| 28755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28756 | (exit $ac_status); }; } && |
| 28757 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28759 | (eval $ac_try) 2>&5 |
| 28760 | ac_status=$? |
| 28761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28762 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28763 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28764 | else |
| 28765 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28767 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28768 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28769 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28771 | ac_ext=c |
| 28772 | ac_cpp='$CPP $CPPFLAGS' |
| 28773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28776 | |
| 28777 | fi |
| 28778 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 28779 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28780 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 28781 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28782 | |
| 28783 | cat >>confdefs.h <<\_ACEOF |
| 28784 | #define HAVE_STD_EXT_HASH_SET 1 |
| 28785 | _ACEOF |
| 28786 | |
| 28787 | else |
| 28788 | |
| 28789 | cat >>confdefs.h <<\_ACEOF |
| 28790 | #define HAVE_STD_EXT_HASH_SET 0 |
| 28791 | _ACEOF |
| 28792 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28793 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28794 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28795 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 28796 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 |
| 28797 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 28798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28799 | else |
| 28800 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28801 | ac_ext=cc |
| 28802 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28806 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28807 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28808 | /* confdefs.h. */ |
| 28809 | _ACEOF |
| 28810 | cat confdefs.h >>conftest.$ac_ext |
| 28811 | cat >>conftest.$ac_ext <<_ACEOF |
| 28812 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28813 | #include <ext/hash_set> |
| 28814 | #ifdef HAVE_NAMESPACES |
| 28815 | using namespace __gnu_cxx; |
| 28816 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28817 | int |
| 28818 | main () |
| 28819 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28820 | hash_set<int> t; |
| 28821 | ; |
| 28822 | return 0; |
| 28823 | } |
| 28824 | _ACEOF |
| 28825 | rm -f conftest.$ac_objext |
| 28826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28827 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28828 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28830 | rm -f conftest.er1 |
| 28831 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28833 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28834 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28835 | || test ! -s conftest.err' |
| 28836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28837 | (eval $ac_try) 2>&5 |
| 28838 | ac_status=$? |
| 28839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28840 | (exit $ac_status); }; } && |
| 28841 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28843 | (eval $ac_try) 2>&5 |
| 28844 | ac_status=$? |
| 28845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28846 | (exit $ac_status); }; }; then |
| 28847 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 28848 | else |
| 28849 | echo "$as_me: failed program was:" >&5 |
| 28850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28851 | |
| 28852 | ac_cv_cxx_have_gnu_ext_hash_set=no |
| 28853 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28855 | ac_ext=c |
| 28856 | ac_cpp='$CPP $CPPFLAGS' |
| 28857 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28858 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28859 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28860 | |
| 28861 | fi |
| 28862 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 28863 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28864 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 28865 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28866 | |
| 28867 | cat >>confdefs.h <<\_ACEOF |
| 28868 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 28869 | _ACEOF |
| 28870 | |
| 28871 | else |
| 28872 | |
| 28873 | cat >>confdefs.h <<\_ACEOF |
| 28874 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 28875 | _ACEOF |
| 28876 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28877 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28878 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28879 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 28880 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 |
| 28881 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 28882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28883 | else |
| 28884 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28885 | ac_ext=cc |
| 28886 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28887 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28888 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28889 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28890 | |
| 28891 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28892 | /* confdefs.h. */ |
| 28893 | _ACEOF |
| 28894 | cat confdefs.h >>conftest.$ac_ext |
| 28895 | cat >>conftest.$ac_ext <<_ACEOF |
| 28896 | /* end confdefs.h. */ |
| 28897 | #include <hash_set> |
| 28898 | int |
| 28899 | main () |
| 28900 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28901 | hash_set<int> t; return 0; |
| 28902 | ; |
| 28903 | return 0; |
| 28904 | } |
| 28905 | _ACEOF |
| 28906 | rm -f conftest.$ac_objext |
| 28907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28908 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28909 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28911 | rm -f conftest.er1 |
| 28912 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28914 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28915 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28916 | || test ! -s conftest.err' |
| 28917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28918 | (eval $ac_try) 2>&5 |
| 28919 | ac_status=$? |
| 28920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28921 | (exit $ac_status); }; } && |
| 28922 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28924 | (eval $ac_try) 2>&5 |
| 28925 | ac_status=$? |
| 28926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28927 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28928 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28929 | else |
| 28930 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28932 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28933 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28934 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28936 | ac_ext=c |
| 28937 | ac_cpp='$CPP $CPPFLAGS' |
| 28938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28941 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28942 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28943 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 28944 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28945 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 28946 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28947 | |
| 28948 | cat >>confdefs.h <<\_ACEOF |
| 28949 | #define HAVE_GLOBAL_HASH_SET 1 |
| 28950 | _ACEOF |
| 28951 | |
| 28952 | else |
| 28953 | |
| 28954 | cat >>confdefs.h <<\_ACEOF |
| 28955 | #define HAVE_GLOBAL_HASH_SET 0 |
| 28956 | _ACEOF |
| 28957 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28958 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28959 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28960 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 28961 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 28962 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 28963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28964 | else |
| 28965 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28966 | ac_ext=cc |
| 28967 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28968 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28969 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28970 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28971 | |
| 28972 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28973 | /* confdefs.h. */ |
| 28974 | _ACEOF |
| 28975 | cat confdefs.h >>conftest.$ac_ext |
| 28976 | cat >>conftest.$ac_ext <<_ACEOF |
| 28977 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28978 | #include <iterator> |
| 28979 | #ifdef HAVE_NAMESPACES |
| 28980 | using namespace std; |
| 28981 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28982 | int |
| 28983 | main () |
| 28984 | { |
| 28985 | iterator<int,int,int> t; return 0; |
| 28986 | ; |
| 28987 | return 0; |
| 28988 | } |
| 28989 | _ACEOF |
| 28990 | rm -f conftest.$ac_objext |
| 28991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28992 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28993 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28995 | rm -f conftest.er1 |
| 28996 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28998 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28999 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29000 | || test ! -s conftest.err' |
| 29001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29002 | (eval $ac_try) 2>&5 |
| 29003 | ac_status=$? |
| 29004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29005 | (exit $ac_status); }; } && |
| 29006 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29008 | (eval $ac_try) 2>&5 |
| 29009 | ac_status=$? |
| 29010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29011 | (exit $ac_status); }; }; then |
| 29012 | ac_cv_cxx_have_std_iterator=yes |
| 29013 | else |
| 29014 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29017 | ac_cv_cxx_have_std_iterator=no |
| 29018 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29020 | ac_ext=c |
| 29021 | ac_cpp='$CPP $CPPFLAGS' |
| 29022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29025 | |
| 29026 | |
| 29027 | fi |
| 29028 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 29029 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29030 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 29031 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29032 | |
| 29033 | cat >>confdefs.h <<\_ACEOF |
| 29034 | #define HAVE_STD_ITERATOR 1 |
| 29035 | _ACEOF |
| 29036 | |
| 29037 | else |
| 29038 | |
| 29039 | cat >>confdefs.h <<\_ACEOF |
| 29040 | #define HAVE_STD_ITERATOR 0 |
| 29041 | _ACEOF |
| 29042 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29043 | fi |
| 29044 | |
| 29045 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 29046 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 29047 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 29048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29049 | else |
| 29050 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29051 | ac_ext=cc |
| 29052 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29053 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29054 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29055 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29056 | |
| 29057 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29058 | /* confdefs.h. */ |
| 29059 | _ACEOF |
| 29060 | cat confdefs.h >>conftest.$ac_ext |
| 29061 | cat >>conftest.$ac_ext <<_ACEOF |
| 29062 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29063 | #include <iterator> |
| 29064 | #ifdef HAVE_NAMESPACES |
| 29065 | using namespace std; |
| 29066 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29067 | int |
| 29068 | main () |
| 29069 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 29070 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29071 | ; |
| 29072 | return 0; |
| 29073 | } |
| 29074 | _ACEOF |
| 29075 | rm -f conftest.$ac_objext |
| 29076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29077 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29078 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29080 | rm -f conftest.er1 |
| 29081 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29083 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29084 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29085 | || test ! -s conftest.err' |
| 29086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29087 | (eval $ac_try) 2>&5 |
| 29088 | ac_status=$? |
| 29089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29090 | (exit $ac_status); }; } && |
| 29091 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29093 | (eval $ac_try) 2>&5 |
| 29094 | ac_status=$? |
| 29095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29096 | (exit $ac_status); }; }; then |
| 29097 | ac_cv_cxx_have_bi_iterator=yes |
| 29098 | else |
| 29099 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29101 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29102 | ac_cv_cxx_have_bi_iterator=no |
| 29103 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29105 | ac_ext=c |
| 29106 | ac_cpp='$CPP $CPPFLAGS' |
| 29107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29110 | |
| 29111 | |
| 29112 | fi |
| 29113 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 29114 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29115 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 29116 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29117 | |
| 29118 | cat >>confdefs.h <<\_ACEOF |
| 29119 | #define HAVE_BI_ITERATOR 1 |
| 29120 | _ACEOF |
| 29121 | |
| 29122 | else |
| 29123 | |
| 29124 | cat >>confdefs.h <<\_ACEOF |
| 29125 | #define HAVE_BI_ITERATOR 0 |
| 29126 | _ACEOF |
| 29127 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29128 | fi |
| 29129 | |
| 29130 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 29131 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 29132 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 29133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29134 | else |
| 29135 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29136 | ac_ext=cc |
| 29137 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29138 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29139 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29140 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29141 | |
| 29142 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29143 | /* confdefs.h. */ |
| 29144 | _ACEOF |
| 29145 | cat confdefs.h >>conftest.$ac_ext |
| 29146 | cat >>conftest.$ac_ext <<_ACEOF |
| 29147 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29148 | #include <iterator> |
| 29149 | #ifdef HAVE_NAMESPACES |
| 29150 | using namespace std; |
| 29151 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29152 | int |
| 29153 | main () |
| 29154 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 29155 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29156 | ; |
| 29157 | return 0; |
| 29158 | } |
| 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +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_cxx_have_fwd_iterator=yes |
| 29183 | else |
| 29184 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29186 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29187 | ac_cv_cxx_have_fwd_iterator=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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29190 | ac_ext=c |
| 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 | |
| 29197 | fi |
| 29198 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 29199 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29200 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 29201 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29202 | |
| 29203 | cat >>confdefs.h <<\_ACEOF |
| 29204 | #define HAVE_FWD_ITERATOR 1 |
| 29205 | _ACEOF |
| 29206 | |
| 29207 | else |
| 29208 | |
| 29209 | cat >>confdefs.h <<\_ACEOF |
| 29210 | #define HAVE_FWD_ITERATOR 0 |
| 29211 | _ACEOF |
| 29212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29213 | fi |
| 29214 | |
| 29215 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29216 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 29217 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 |
| 29218 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 29219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29220 | else |
| 29221 | ac_ext=cc |
| 29222 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29223 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29224 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29225 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29226 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29227 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29228 | /* confdefs.h. */ |
| 29229 | _ACEOF |
| 29230 | cat confdefs.h >>conftest.$ac_ext |
| 29231 | cat >>conftest.$ac_ext <<_ACEOF |
| 29232 | /* end confdefs.h. */ |
| 29233 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29234 | int |
| 29235 | main () |
| 29236 | { |
| 29237 | float f; isnan(f); |
| 29238 | ; |
| 29239 | return 0; |
| 29240 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29241 | _ACEOF |
| 29242 | rm -f conftest.$ac_objext |
| 29243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29244 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29245 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29247 | rm -f conftest.er1 |
| 29248 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29250 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29251 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29252 | || test ! -s conftest.err' |
| 29253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29254 | (eval $ac_try) 2>&5 |
| 29255 | ac_status=$? |
| 29256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29257 | (exit $ac_status); }; } && |
| 29258 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29260 | (eval $ac_try) 2>&5 |
| 29261 | ac_status=$? |
| 29262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29263 | (exit $ac_status); }; }; then |
| 29264 | ac_cv_func_isnan_in_math_h=yes |
| 29265 | else |
| 29266 | echo "$as_me: failed program was:" >&5 |
| 29267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29268 | |
| 29269 | ac_cv_func_isnan_in_math_h=no |
| 29270 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29272 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29273 | ac_cpp='$CPP $CPPFLAGS' |
| 29274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29277 | |
| 29278 | fi |
| 29279 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 29280 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29281 | |
| 29282 | |
| 29283 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29284 | |
| 29285 | cat >>confdefs.h <<\_ACEOF |
| 29286 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 29287 | _ACEOF |
| 29288 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29289 | fi |
| 29290 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29291 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 29292 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 |
| 29293 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 29294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29295 | else |
| 29296 | ac_ext=cc |
| 29297 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29298 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29299 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29300 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29301 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29302 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29303 | /* confdefs.h. */ |
| 29304 | _ACEOF |
| 29305 | cat confdefs.h >>conftest.$ac_ext |
| 29306 | cat >>conftest.$ac_ext <<_ACEOF |
| 29307 | /* end confdefs.h. */ |
| 29308 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29309 | int |
| 29310 | main () |
| 29311 | { |
| 29312 | float f; isnan(f); |
| 29313 | ; |
| 29314 | return 0; |
| 29315 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29316 | _ACEOF |
| 29317 | rm -f conftest.$ac_objext |
| 29318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29319 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29320 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29322 | rm -f conftest.er1 |
| 29323 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29325 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29326 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29327 | || test ! -s conftest.err' |
| 29328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29329 | (eval $ac_try) 2>&5 |
| 29330 | ac_status=$? |
| 29331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29332 | (exit $ac_status); }; } && |
| 29333 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29335 | (eval $ac_try) 2>&5 |
| 29336 | ac_status=$? |
| 29337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29338 | (exit $ac_status); }; }; then |
| 29339 | ac_cv_func_isnan_in_cmath=yes |
| 29340 | else |
| 29341 | echo "$as_me: failed program was:" >&5 |
| 29342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29343 | |
| 29344 | ac_cv_func_isnan_in_cmath=no |
| 29345 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29347 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29348 | ac_cpp='$CPP $CPPFLAGS' |
| 29349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29352 | |
| 29353 | fi |
| 29354 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 29355 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29356 | |
| 29357 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29358 | |
| 29359 | cat >>confdefs.h <<\_ACEOF |
| 29360 | #define HAVE_ISNAN_IN_CMATH 1 |
| 29361 | _ACEOF |
| 29362 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29363 | fi |
| 29364 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29365 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 29366 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 |
| 29367 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 29368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29369 | else |
| 29370 | ac_ext=cc |
| 29371 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29372 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29373 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29374 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29375 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29376 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29377 | /* confdefs.h. */ |
| 29378 | _ACEOF |
| 29379 | cat confdefs.h >>conftest.$ac_ext |
| 29380 | cat >>conftest.$ac_ext <<_ACEOF |
| 29381 | /* end confdefs.h. */ |
| 29382 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29383 | int |
| 29384 | main () |
| 29385 | { |
| 29386 | float f; std::isnan(f); |
| 29387 | ; |
| 29388 | return 0; |
| 29389 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29390 | _ACEOF |
| 29391 | rm -f conftest.$ac_objext |
| 29392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29393 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29394 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29396 | rm -f conftest.er1 |
| 29397 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29399 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29400 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29401 | || test ! -s conftest.err' |
| 29402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29403 | (eval $ac_try) 2>&5 |
| 29404 | ac_status=$? |
| 29405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29406 | (exit $ac_status); }; } && |
| 29407 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29409 | (eval $ac_try) 2>&5 |
| 29410 | ac_status=$? |
| 29411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29412 | (exit $ac_status); }; }; then |
| 29413 | ac_cv_func_std_isnan_in_cmath=yes |
| 29414 | else |
| 29415 | echo "$as_me: failed program was:" >&5 |
| 29416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29417 | |
| 29418 | ac_cv_func_std_isnan_in_cmath=no |
| 29419 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29421 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29422 | ac_cpp='$CPP $CPPFLAGS' |
| 29423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29426 | |
| 29427 | fi |
| 29428 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 29429 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29430 | |
| 29431 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29432 | |
| 29433 | cat >>confdefs.h <<\_ACEOF |
| 29434 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 29435 | _ACEOF |
| 29436 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29437 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29438 | |
| 29439 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29440 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 29441 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 |
| 29442 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 29443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29444 | else |
| 29445 | ac_ext=cc |
| 29446 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29447 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29448 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29449 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29450 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29451 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29452 | /* confdefs.h. */ |
| 29453 | _ACEOF |
| 29454 | cat confdefs.h >>conftest.$ac_ext |
| 29455 | cat >>conftest.$ac_ext <<_ACEOF |
| 29456 | /* end confdefs.h. */ |
| 29457 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29458 | int |
| 29459 | main () |
| 29460 | { |
| 29461 | float f; isinf(f); |
| 29462 | ; |
| 29463 | return 0; |
| 29464 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29465 | _ACEOF |
| 29466 | rm -f conftest.$ac_objext |
| 29467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29468 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29469 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29471 | rm -f conftest.er1 |
| 29472 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29474 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29475 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29476 | || test ! -s conftest.err' |
| 29477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29478 | (eval $ac_try) 2>&5 |
| 29479 | ac_status=$? |
| 29480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29481 | (exit $ac_status); }; } && |
| 29482 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29484 | (eval $ac_try) 2>&5 |
| 29485 | ac_status=$? |
| 29486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29487 | (exit $ac_status); }; }; then |
| 29488 | ac_cv_func_isinf_in_math_h=yes |
| 29489 | else |
| 29490 | echo "$as_me: failed program was:" >&5 |
| 29491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29492 | |
| 29493 | ac_cv_func_isinf_in_math_h=no |
| 29494 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29496 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29497 | ac_cpp='$CPP $CPPFLAGS' |
| 29498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29501 | |
| 29502 | fi |
| 29503 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 29504 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29505 | |
| 29506 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29507 | |
| 29508 | cat >>confdefs.h <<\_ACEOF |
| 29509 | #define HAVE_ISINF_IN_MATH_H 1 |
| 29510 | _ACEOF |
| 29511 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29512 | fi |
| 29513 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29514 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 29515 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 |
| 29516 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 29517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29518 | else |
| 29519 | ac_ext=cc |
| 29520 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29521 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29522 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29523 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29524 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29525 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29526 | /* confdefs.h. */ |
| 29527 | _ACEOF |
| 29528 | cat confdefs.h >>conftest.$ac_ext |
| 29529 | cat >>conftest.$ac_ext <<_ACEOF |
| 29530 | /* end confdefs.h. */ |
| 29531 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29532 | int |
| 29533 | main () |
| 29534 | { |
| 29535 | float f; isinf(f); |
| 29536 | ; |
| 29537 | return 0; |
| 29538 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29539 | _ACEOF |
| 29540 | rm -f conftest.$ac_objext |
| 29541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29542 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29543 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29545 | rm -f conftest.er1 |
| 29546 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29548 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29549 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29550 | || test ! -s conftest.err' |
| 29551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29552 | (eval $ac_try) 2>&5 |
| 29553 | ac_status=$? |
| 29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29555 | (exit $ac_status); }; } && |
| 29556 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29558 | (eval $ac_try) 2>&5 |
| 29559 | ac_status=$? |
| 29560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29561 | (exit $ac_status); }; }; then |
| 29562 | ac_cv_func_isinf_in_cmath=yes |
| 29563 | else |
| 29564 | echo "$as_me: failed program was:" >&5 |
| 29565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29566 | |
| 29567 | ac_cv_func_isinf_in_cmath=no |
| 29568 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29570 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29571 | ac_cpp='$CPP $CPPFLAGS' |
| 29572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29575 | |
| 29576 | fi |
| 29577 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 29578 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29579 | |
| 29580 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29581 | |
| 29582 | cat >>confdefs.h <<\_ACEOF |
| 29583 | #define HAVE_ISINF_IN_CMATH 1 |
| 29584 | _ACEOF |
| 29585 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29586 | fi |
| 29587 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29588 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 29589 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 |
| 29590 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 29591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29592 | else |
| 29593 | ac_ext=cc |
| 29594 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29598 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29599 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29600 | /* confdefs.h. */ |
| 29601 | _ACEOF |
| 29602 | cat confdefs.h >>conftest.$ac_ext |
| 29603 | cat >>conftest.$ac_ext <<_ACEOF |
| 29604 | /* end confdefs.h. */ |
| 29605 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29606 | int |
| 29607 | main () |
| 29608 | { |
| 29609 | float f; std::isinf(f)} |
| 29610 | ; |
| 29611 | return 0; |
| 29612 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29613 | _ACEOF |
| 29614 | rm -f conftest.$ac_objext |
| 29615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29616 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29617 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29619 | rm -f conftest.er1 |
| 29620 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29622 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29623 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29624 | || test ! -s conftest.err' |
| 29625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29626 | (eval $ac_try) 2>&5 |
| 29627 | ac_status=$? |
| 29628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29629 | (exit $ac_status); }; } && |
| 29630 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29632 | (eval $ac_try) 2>&5 |
| 29633 | ac_status=$? |
| 29634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29635 | (exit $ac_status); }; }; then |
| 29636 | ac_cv_func_std_isinf_in_cmath=yes |
| 29637 | else |
| 29638 | echo "$as_me: failed program was:" >&5 |
| 29639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29640 | |
| 29641 | ac_cv_func_std_isinf_in_cmath=no |
| 29642 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29644 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29645 | ac_cpp='$CPP $CPPFLAGS' |
| 29646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29649 | |
| 29650 | fi |
| 29651 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 29652 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29653 | |
| 29654 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29655 | |
| 29656 | cat >>confdefs.h <<\_ACEOF |
| 29657 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 29658 | _ACEOF |
| 29659 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29660 | fi |
| 29661 | |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29662 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 29663 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 |
| 29664 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 29665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29666 | else |
| 29667 | ac_ext=cc |
| 29668 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29669 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29670 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29671 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29672 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29673 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29674 | /* confdefs.h. */ |
| 29675 | _ACEOF |
| 29676 | cat confdefs.h >>conftest.$ac_ext |
| 29677 | cat >>conftest.$ac_ext <<_ACEOF |
| 29678 | /* end confdefs.h. */ |
| 29679 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29680 | int |
| 29681 | main () |
| 29682 | { |
| 29683 | float f; finite(f); |
| 29684 | ; |
| 29685 | return 0; |
| 29686 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29687 | _ACEOF |
| 29688 | rm -f conftest.$ac_objext |
| 29689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29690 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29691 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29693 | rm -f conftest.er1 |
| 29694 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29696 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29697 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29698 | || test ! -s conftest.err' |
| 29699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29700 | (eval $ac_try) 2>&5 |
| 29701 | ac_status=$? |
| 29702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29703 | (exit $ac_status); }; } && |
| 29704 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29706 | (eval $ac_try) 2>&5 |
| 29707 | ac_status=$? |
| 29708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29709 | (exit $ac_status); }; }; then |
| 29710 | ac_cv_func_finite_in_ieeefp_h=yes |
| 29711 | else |
| 29712 | echo "$as_me: failed program was:" >&5 |
| 29713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29714 | |
| 29715 | ac_cv_func_finite_in_ieeefp_h=no |
| 29716 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29718 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29719 | ac_cpp='$CPP $CPPFLAGS' |
| 29720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29723 | |
| 29724 | fi |
| 29725 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 29726 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29727 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 29728 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29729 | |
| 29730 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 29731 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29732 | _ACEOF |
| 29733 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29734 | fi |
| 29735 | |
| 29736 | |
| 29737 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29738 | |
| 29739 | |
| 29740 | for ac_header in stdlib.h unistd.h |
| 29741 | do |
| 29742 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 29744 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29745 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 29746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 29747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29748 | fi |
| 29749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 29750 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 29751 | else |
| 29752 | # Is the header compilable? |
| 29753 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29754 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 29755 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29756 | /* confdefs.h. */ |
| 29757 | _ACEOF |
| 29758 | cat confdefs.h >>conftest.$ac_ext |
| 29759 | cat >>conftest.$ac_ext <<_ACEOF |
| 29760 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29761 | $ac_includes_default |
| 29762 | #include <$ac_header> |
| 29763 | _ACEOF |
| 29764 | rm -f conftest.$ac_objext |
| 29765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29766 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29767 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29769 | rm -f conftest.er1 |
| 29770 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29772 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29773 | { ac_try='test -z "$ac_c_werror_flag" |
| 29774 | || test ! -s conftest.err' |
| 29775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29776 | (eval $ac_try) 2>&5 |
| 29777 | ac_status=$? |
| 29778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29779 | (exit $ac_status); }; } && |
| 29780 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29782 | (eval $ac_try) 2>&5 |
| 29783 | ac_status=$? |
| 29784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29785 | (exit $ac_status); }; }; then |
| 29786 | ac_header_compiler=yes |
| 29787 | else |
| 29788 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29790 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29791 | ac_header_compiler=no |
| 29792 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29794 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29795 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 29796 | |
| 29797 | # Is the header present? |
| 29798 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29799 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 29800 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29801 | /* confdefs.h. */ |
| 29802 | _ACEOF |
| 29803 | cat confdefs.h >>conftest.$ac_ext |
| 29804 | cat >>conftest.$ac_ext <<_ACEOF |
| 29805 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29806 | #include <$ac_header> |
| 29807 | _ACEOF |
| 29808 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 29809 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 29810 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29811 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29812 | rm -f conftest.er1 |
| 29813 | cat conftest.err >&5 |
| 29814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29815 | (exit $ac_status); } >/dev/null; then |
| 29816 | if test -s conftest.err; then |
| 29817 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29818 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29819 | else |
| 29820 | ac_cpp_err= |
| 29821 | fi |
| 29822 | else |
| 29823 | ac_cpp_err=yes |
| 29824 | fi |
| 29825 | if test -z "$ac_cpp_err"; then |
| 29826 | ac_header_preproc=yes |
| 29827 | else |
| 29828 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29831 | ac_header_preproc=no |
| 29832 | fi |
| 29833 | rm -f conftest.err conftest.$ac_ext |
| 29834 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29835 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 29836 | |
| 29837 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29838 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29839 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29840 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29841 | 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] | 29842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29843 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29844 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29845 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29846 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29847 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29848 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29849 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29850 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29851 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29852 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29853 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29854 | 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] | 29855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29856 | 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] | 29857 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29858 | 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] | 29859 | ( |
| 29860 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29861 | ## ----------------------------------- ## |
| 29862 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29863 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29864 | _ASBOX |
| 29865 | ) | |
| 29866 | sed "s/^/$as_me: WARNING: /" >&2 |
| 29867 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29868 | esac |
| 29869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 29871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 29872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29873 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29874 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29875 | fi |
| 29876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 29877 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 29878 | |
| 29879 | fi |
| 29880 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29881 | cat >>confdefs.h <<_ACEOF |
| 29882 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29883 | _ACEOF |
| 29884 | |
| 29885 | fi |
| 29886 | |
| 29887 | done |
| 29888 | |
| 29889 | |
| 29890 | for ac_func in getpagesize |
| 29891 | do |
| 29892 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 29893 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29894 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 29895 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 29896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29897 | else |
| 29898 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29899 | /* confdefs.h. */ |
| 29900 | _ACEOF |
| 29901 | cat confdefs.h >>conftest.$ac_ext |
| 29902 | cat >>conftest.$ac_ext <<_ACEOF |
| 29903 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29904 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29905 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29906 | #define $ac_func innocuous_$ac_func |
| 29907 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29908 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29909 | which can conflict with char $ac_func (); below. |
| 29910 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29911 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29912 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29913 | #ifdef __STDC__ |
| 29914 | # include <limits.h> |
| 29915 | #else |
| 29916 | # include <assert.h> |
| 29917 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29918 | |
| 29919 | #undef $ac_func |
| 29920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29921 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 29922 | #ifdef __cplusplus |
| 29923 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29924 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29925 | #endif |
| 29926 | /* We use char because int might match the return type of a gcc2 |
| 29927 | builtin and then its argument prototype would still apply. */ |
| 29928 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29929 | /* The GNU C library defines this for functions which it implements |
| 29930 | to always fail with ENOSYS. Some functions are actually named |
| 29931 | something starting with __ and the normal name is an alias. */ |
| 29932 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 29933 | choke me |
| 29934 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29935 | char (*f) () = $ac_func; |
| 29936 | #endif |
| 29937 | #ifdef __cplusplus |
| 29938 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29939 | #endif |
| 29940 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29941 | int |
| 29942 | main () |
| 29943 | { |
| 29944 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29945 | ; |
| 29946 | return 0; |
| 29947 | } |
| 29948 | _ACEOF |
| 29949 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29951 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29952 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29954 | rm -f conftest.er1 |
| 29955 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29957 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29958 | { ac_try='test -z "$ac_c_werror_flag" |
| 29959 | || test ! -s conftest.err' |
| 29960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29961 | (eval $ac_try) 2>&5 |
| 29962 | ac_status=$? |
| 29963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29964 | (exit $ac_status); }; } && |
| 29965 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29967 | (eval $ac_try) 2>&5 |
| 29968 | ac_status=$? |
| 29969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29970 | (exit $ac_status); }; }; then |
| 29971 | eval "$as_ac_var=yes" |
| 29972 | else |
| 29973 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29975 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29976 | eval "$as_ac_var=no" |
| 29977 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29978 | rm -f conftest.err conftest.$ac_objext \ |
| 29979 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29980 | fi |
| 29981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 29982 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 29983 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29984 | cat >>confdefs.h <<_ACEOF |
| 29985 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29986 | _ACEOF |
| 29987 | |
| 29988 | fi |
| 29989 | done |
| 29990 | |
| 29991 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 29992 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 29993 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 29994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29995 | else |
| 29996 | if test "$cross_compiling" = yes; then |
| 29997 | ac_cv_func_mmap_fixed_mapped=no |
| 29998 | else |
| 29999 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30000 | /* confdefs.h. */ |
| 30001 | _ACEOF |
| 30002 | cat confdefs.h >>conftest.$ac_ext |
| 30003 | cat >>conftest.$ac_ext <<_ACEOF |
| 30004 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30005 | $ac_includes_default |
| 30006 | /* malloc might have been renamed as rpl_malloc. */ |
| 30007 | #undef malloc |
| 30008 | |
| 30009 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 30010 | Here is a matrix of mmap possibilities: |
| 30011 | mmap private not fixed |
| 30012 | mmap private fixed at somewhere currently unmapped |
| 30013 | mmap private fixed at somewhere already mapped |
| 30014 | mmap shared not fixed |
| 30015 | mmap shared fixed at somewhere currently unmapped |
| 30016 | mmap shared fixed at somewhere already mapped |
| 30017 | For private mappings, we should verify that changes cannot be read() |
| 30018 | back from the file, nor mmap's back from the file at a different |
| 30019 | address. (There have been systems where private was not correctly |
| 30020 | implemented like the infamous i386 svr4.0, and systems where the |
| 30021 | VM page cache was not coherent with the file system buffer cache |
| 30022 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 30023 | For shared mappings, we should conversely verify that changes get |
| 30024 | propagated back to all the places they're supposed to be. |
| 30025 | |
| 30026 | Grep wants private fixed already mapped. |
| 30027 | The main things grep needs to know about mmap are: |
| 30028 | * does it exist and is it safe to write into the mmap'd area |
| 30029 | * how to use it (BSD variants) */ |
| 30030 | |
| 30031 | #include <fcntl.h> |
| 30032 | #include <sys/mman.h> |
| 30033 | |
| 30034 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 30035 | char *malloc (); |
| 30036 | #endif |
| 30037 | |
| 30038 | /* This mess was copied from the GNU getpagesize.h. */ |
| 30039 | #if !HAVE_GETPAGESIZE |
| 30040 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 30041 | # if !HAVE_SYS_PARAM_H |
| 30042 | # define HAVE_SYS_PARAM_H 1 |
| 30043 | # endif |
| 30044 | |
| 30045 | # ifdef _SC_PAGESIZE |
| 30046 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 30047 | # else /* no _SC_PAGESIZE */ |
| 30048 | # if HAVE_SYS_PARAM_H |
| 30049 | # include <sys/param.h> |
| 30050 | # ifdef EXEC_PAGESIZE |
| 30051 | # define getpagesize() EXEC_PAGESIZE |
| 30052 | # else /* no EXEC_PAGESIZE */ |
| 30053 | # ifdef NBPG |
| 30054 | # define getpagesize() NBPG * CLSIZE |
| 30055 | # ifndef CLSIZE |
| 30056 | # define CLSIZE 1 |
| 30057 | # endif /* no CLSIZE */ |
| 30058 | # else /* no NBPG */ |
| 30059 | # ifdef NBPC |
| 30060 | # define getpagesize() NBPC |
| 30061 | # else /* no NBPC */ |
| 30062 | # ifdef PAGESIZE |
| 30063 | # define getpagesize() PAGESIZE |
| 30064 | # endif /* PAGESIZE */ |
| 30065 | # endif /* no NBPC */ |
| 30066 | # endif /* no NBPG */ |
| 30067 | # endif /* no EXEC_PAGESIZE */ |
| 30068 | # else /* no HAVE_SYS_PARAM_H */ |
| 30069 | # define getpagesize() 8192 /* punt totally */ |
| 30070 | # endif /* no HAVE_SYS_PARAM_H */ |
| 30071 | # endif /* no _SC_PAGESIZE */ |
| 30072 | |
| 30073 | #endif /* no HAVE_GETPAGESIZE */ |
| 30074 | |
| 30075 | int |
| 30076 | main () |
| 30077 | { |
| 30078 | char *data, *data2, *data3; |
| 30079 | int i, pagesize; |
| 30080 | int fd; |
| 30081 | |
| 30082 | pagesize = getpagesize (); |
| 30083 | |
| 30084 | /* First, make a file with some known garbage in it. */ |
| 30085 | data = (char *) malloc (pagesize); |
| 30086 | if (!data) |
| 30087 | exit (1); |
| 30088 | for (i = 0; i < pagesize; ++i) |
| 30089 | *(data + i) = rand (); |
| 30090 | umask (0); |
| 30091 | fd = creat ("conftest.mmap", 0600); |
| 30092 | if (fd < 0) |
| 30093 | exit (1); |
| 30094 | if (write (fd, data, pagesize) != pagesize) |
| 30095 | exit (1); |
| 30096 | close (fd); |
| 30097 | |
| 30098 | /* Next, try to mmap the file at a fixed address which already has |
| 30099 | something else allocated at it. If we can, also make sure that |
| 30100 | we see the same garbage. */ |
| 30101 | fd = open ("conftest.mmap", O_RDWR); |
| 30102 | if (fd < 0) |
| 30103 | exit (1); |
| 30104 | data2 = (char *) malloc (2 * pagesize); |
| 30105 | if (!data2) |
| 30106 | exit (1); |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30107 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30108 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30109 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30110 | exit (1); |
| 30111 | for (i = 0; i < pagesize; ++i) |
| 30112 | if (*(data + i) != *(data2 + i)) |
| 30113 | exit (1); |
| 30114 | |
| 30115 | /* Finally, make sure that changes to the mapped area do not |
| 30116 | percolate back to the file as seen by read(). (This is a bug on |
| 30117 | some variants of i386 svr4.0.) */ |
| 30118 | for (i = 0; i < pagesize; ++i) |
| 30119 | *(data2 + i) = *(data2 + i) + 1; |
| 30120 | data3 = (char *) malloc (pagesize); |
| 30121 | if (!data3) |
| 30122 | exit (1); |
| 30123 | if (read (fd, data3, pagesize) != pagesize) |
| 30124 | exit (1); |
| 30125 | for (i = 0; i < pagesize; ++i) |
| 30126 | if (*(data + i) != *(data3 + i)) |
| 30127 | exit (1); |
| 30128 | close (fd); |
| 30129 | exit (0); |
| 30130 | } |
| 30131 | _ACEOF |
| 30132 | rm -f conftest$ac_exeext |
| 30133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 30134 | (eval $ac_link) 2>&5 |
| 30135 | ac_status=$? |
| 30136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 30138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30139 | (eval $ac_try) 2>&5 |
| 30140 | ac_status=$? |
| 30141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30142 | (exit $ac_status); }; }; then |
| 30143 | ac_cv_func_mmap_fixed_mapped=yes |
| 30144 | else |
| 30145 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30146 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30148 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30149 | ( exit $ac_status ) |
| 30150 | ac_cv_func_mmap_fixed_mapped=no |
| 30151 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30152 | 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] | 30153 | fi |
| 30154 | fi |
| 30155 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 30156 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 30157 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 30158 | |
| 30159 | cat >>confdefs.h <<\_ACEOF |
| 30160 | #define HAVE_MMAP 1 |
| 30161 | _ACEOF |
| 30162 | |
| 30163 | fi |
| 30164 | rm -f conftest.mmap |
| 30165 | |
| 30166 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 30167 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 30168 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 30169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30170 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30171 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30172 | ac_cpp='$CPP $CPPFLAGS' |
| 30173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30176 | |
| 30177 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 30178 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30179 | else |
| 30180 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30181 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30182 | /* confdefs.h. */ |
| 30183 | _ACEOF |
| 30184 | cat confdefs.h >>conftest.$ac_ext |
| 30185 | cat >>conftest.$ac_ext <<_ACEOF |
| 30186 | /* end confdefs.h. */ |
| 30187 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30188 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 30189 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30190 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30191 | |
| 30192 | int |
| 30193 | main () |
| 30194 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30195 | |
| 30196 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30197 | fd = creat ("foo",0777); |
| 30198 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 30199 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 30200 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30201 | ; |
| 30202 | return 0; |
| 30203 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30204 | _ACEOF |
| 30205 | rm -f conftest$ac_exeext |
| 30206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 30207 | (eval $ac_link) 2>&5 |
| 30208 | ac_status=$? |
| 30209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 30211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30212 | (eval $ac_try) 2>&5 |
| 30213 | ac_status=$? |
| 30214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30215 | (exit $ac_status); }; }; then |
| 30216 | ac_cv_func_mmap_file=yes |
| 30217 | else |
| 30218 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30219 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30221 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30222 | ( exit $ac_status ) |
| 30223 | ac_cv_func_mmap_file=no |
| 30224 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30225 | 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] | 30226 | fi |
| 30227 | ac_ext=c |
| 30228 | ac_cpp='$CPP $CPPFLAGS' |
| 30229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30232 | |
| 30233 | |
| 30234 | fi |
| 30235 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 30236 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 30237 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 30238 | |
| 30239 | cat >>confdefs.h <<\_ACEOF |
| 30240 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30241 | _ACEOF |
| 30242 | |
| 30243 | MMAP_FILE=yes |
| 30244 | |
| 30245 | fi |
| 30246 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30247 | echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 30248 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6 |
| 30249 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 30250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30251 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30252 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30253 | ac_cv_need_dev_zero_for_mmap=yes |
| 30254 | else |
| 30255 | ac_cv_need_dev_zero_for_mmap=no |
| 30256 | fi |
| 30257 | |
| 30258 | fi |
| 30259 | echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 30260 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6 |
| 30261 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 30262 | |
| 30263 | cat >>confdefs.h <<\_ACEOF |
| 30264 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 30265 | _ACEOF |
| 30266 | |
| 30267 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30268 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 30269 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 30270 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 30271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30272 | else |
| 30273 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30274 | /* confdefs.h. */ |
| 30275 | _ACEOF |
| 30276 | cat confdefs.h >>conftest.$ac_ext |
| 30277 | cat >>conftest.$ac_ext <<_ACEOF |
| 30278 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30279 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 30280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30281 | #define mprotect innocuous_mprotect |
| 30282 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30283 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30284 | which can conflict with char mprotect (); below. |
| 30285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30286 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30287 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30288 | #ifdef __STDC__ |
| 30289 | # include <limits.h> |
| 30290 | #else |
| 30291 | # include <assert.h> |
| 30292 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30293 | |
| 30294 | #undef mprotect |
| 30295 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30296 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 30297 | #ifdef __cplusplus |
| 30298 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30299 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30300 | #endif |
| 30301 | /* We use char because int might match the return type of a gcc2 |
| 30302 | builtin and then its argument prototype would still apply. */ |
| 30303 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30304 | /* The GNU C library defines this for functions which it implements |
| 30305 | to always fail with ENOSYS. Some functions are actually named |
| 30306 | something starting with __ and the normal name is an alias. */ |
| 30307 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 30308 | choke me |
| 30309 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30310 | char (*f) () = mprotect; |
| 30311 | #endif |
| 30312 | #ifdef __cplusplus |
| 30313 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30314 | #endif |
| 30315 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30316 | int |
| 30317 | main () |
| 30318 | { |
| 30319 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30320 | ; |
| 30321 | return 0; |
| 30322 | } |
| 30323 | _ACEOF |
| 30324 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30326 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30327 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30329 | rm -f conftest.er1 |
| 30330 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30332 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30333 | { ac_try='test -z "$ac_c_werror_flag" |
| 30334 | || test ! -s conftest.err' |
| 30335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30336 | (eval $ac_try) 2>&5 |
| 30337 | ac_status=$? |
| 30338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30339 | (exit $ac_status); }; } && |
| 30340 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30342 | (eval $ac_try) 2>&5 |
| 30343 | ac_status=$? |
| 30344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30345 | (exit $ac_status); }; }; then |
| 30346 | ac_cv_func_mprotect=yes |
| 30347 | else |
| 30348 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30350 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30351 | ac_cv_func_mprotect=no |
| 30352 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30353 | rm -f conftest.err conftest.$ac_objext \ |
| 30354 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30355 | fi |
| 30356 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 30357 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 30358 | if test $ac_cv_func_mprotect = yes; then |
| 30359 | : |
| 30360 | else |
| 30361 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 30362 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 30363 | { (exit 1); exit 1; }; } |
| 30364 | fi |
| 30365 | |
| 30366 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30367 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30368 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30369 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 30370 | 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] | 30371 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30372 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30373 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30374 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 30375 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30376 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30377 | |
| 30378 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30379 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 30380 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30381 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 30382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30383 | else |
| 30384 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30385 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30386 | cp /dev/null conftest.c |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30387 | "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30388 | if test $? -eq 0 ; then |
| 30389 | llvm_cv_llvmgcc_sanity="yes" |
| 30390 | fi |
| 30391 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30392 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30393 | fi |
| 30394 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 30395 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 |
| 30396 | |
| 30397 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30398 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30399 | LLVMCC1=$llvmcc1path |
| 30400 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30401 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30402 | LLVMCC1PLUS=$llvmcc1pluspath |
| 30403 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30404 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 30405 | LLVMGCCDIR=$llvmgccdir |
| 30406 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30407 | fi |
| 30408 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30409 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 30410 | |
| 30411 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30412 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30413 | # information into substitutions that will end up in Makefile.config.in |
| 30414 | # that these configured values can be used by the makefiles |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30415 | eval LLVM_PREFIX="${prefix}"; |
| 30416 | eval LLVM_BINDIR="${prefix}/bin"; |
| 30417 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30418 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 30419 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 30420 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30421 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 30422 | eval LLVM_INFODIR="${prefix}/info"; |
| 30423 | eval LLVM_MANDIR="${prefix}/man"; |
| 30424 | LLVM_CONFIGTIME=`date` |
| 30425 | |
| 30426 | |
| 30427 | |
| 30428 | |
| 30429 | |
| 30430 | |
| 30431 | |
| 30432 | |
| 30433 | |
| 30434 | |
| 30435 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30436 | # Place the various directores into the config.h file as #defines so that we |
| 30437 | # can know about the installation paths within LLVM. |
| 30438 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30439 | cat >>confdefs.h <<_ACEOF |
| 30440 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 30441 | _ACEOF |
| 30442 | |
| 30443 | |
| 30444 | cat >>confdefs.h <<_ACEOF |
| 30445 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 30446 | _ACEOF |
| 30447 | |
| 30448 | |
| 30449 | cat >>confdefs.h <<_ACEOF |
| 30450 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 30451 | _ACEOF |
| 30452 | |
| 30453 | |
| 30454 | cat >>confdefs.h <<_ACEOF |
| 30455 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 30456 | _ACEOF |
| 30457 | |
| 30458 | |
| 30459 | cat >>confdefs.h <<_ACEOF |
| 30460 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 30461 | _ACEOF |
| 30462 | |
| 30463 | |
| 30464 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 30465 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30466 | _ACEOF |
| 30467 | |
| 30468 | |
| 30469 | cat >>confdefs.h <<_ACEOF |
| 30470 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 30471 | _ACEOF |
| 30472 | |
| 30473 | |
| 30474 | cat >>confdefs.h <<_ACEOF |
| 30475 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 30476 | _ACEOF |
| 30477 | |
| 30478 | |
| 30479 | cat >>confdefs.h <<_ACEOF |
| 30480 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 30481 | _ACEOF |
| 30482 | |
| 30483 | |
| 30484 | cat >>confdefs.h <<_ACEOF |
| 30485 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 30486 | _ACEOF |
| 30487 | |
| 30488 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30489 | |
| 30490 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
| 30491 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30492 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
| 30493 | |
| 30494 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
| 30495 | |
| 30496 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
| 30497 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30498 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
| 30499 | |
| 30500 | |
| 30501 | ac_config_files="$ac_config_files Makefile.config" |
| 30502 | |
| 30503 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30504 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 30505 | |
| 30506 | |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 30507 | ac_config_commands="$ac_config_commands setup" |
| 30508 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30509 | ac_config_commands="$ac_config_commands Makefile" |
| 30510 | |
| 30511 | |
| 30512 | ac_config_commands="$ac_config_commands Makefile.common" |
| 30513 | |
| 30514 | |
| 30515 | ac_config_commands="$ac_config_commands examples/Makefile" |
| 30516 | |
| 30517 | |
| 30518 | ac_config_commands="$ac_config_commands lib/Makefile" |
| 30519 | |
| 30520 | |
| 30521 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 30522 | |
| 30523 | |
| 30524 | ac_config_commands="$ac_config_commands test/Makefile" |
| 30525 | |
| 30526 | |
| 30527 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
| 30528 | |
| 30529 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30530 | ac_config_commands="$ac_config_commands tools/Makefile" |
| 30531 | |
| 30532 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30533 | ac_config_commands="$ac_config_commands utils/Makefile" |
| 30534 | |
| 30535 | |
| 30536 | ac_config_commands="$ac_config_commands projects/Makefile" |
| 30537 | |
| 30538 | |
| 30539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30540 | cat >confcache <<\_ACEOF |
| 30541 | # This file is a shell script that caches the results of configure |
| 30542 | # tests run on this system so they can be shared between configure |
| 30543 | # scripts and configure runs, see configure's option --config-cache. |
| 30544 | # It is not useful on other systems. If it contains results you don't |
| 30545 | # want to keep, you may remove or edit it. |
| 30546 | # |
| 30547 | # config.status only pays attention to the cache file if you give it |
| 30548 | # the --recheck option to rerun configure. |
| 30549 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30550 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30551 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 30552 | # following values. |
| 30553 | |
| 30554 | _ACEOF |
| 30555 | |
| 30556 | # The following way of writing the cache mishandles newlines in values, |
| 30557 | # but we know of no workaround that is simple, portable, and efficient. |
| 30558 | # So, don't put newlines in cache variables' values. |
| 30559 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 30560 | # and sets the high bit in the cache file unless we assign to the vars. |
| 30561 | { |
| 30562 | (set) 2>&1 | |
| 30563 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 30564 | *ac_space=\ *) |
| 30565 | # `set' does not quote correctly, so add quotes (double-quote |
| 30566 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 30567 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30568 | "s/'/'\\\\''/g; |
| 30569 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30570 | ;; |
| 30571 | *) |
| 30572 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 30573 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30574 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30575 | ;; |
| 30576 | esac; |
| 30577 | } | |
| 30578 | sed ' |
| 30579 | t clear |
| 30580 | : clear |
| 30581 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 30582 | t end |
| 30583 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 30584 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30585 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30586 | if test -w $cache_file; then |
| 30587 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 30588 | cat confcache >$cache_file |
| 30589 | else |
| 30590 | echo "not updating unwritable cache $cache_file" |
| 30591 | fi |
| 30592 | fi |
| 30593 | rm -f confcache |
| 30594 | |
| 30595 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 30596 | # Let make expand exec_prefix. |
| 30597 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 30598 | |
| 30599 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 30600 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 30601 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 30602 | # (actually we leave an empty line to preserve line numbers). |
| 30603 | if test "x$srcdir" = x.; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30604 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30605 | s/:*\$(srcdir):*/:/; |
| 30606 | s/:*\${srcdir}:*/:/; |
| 30607 | s/:*@srcdir@:*/:/; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30608 | s/^\([^=]*=[ ]*\):*/\1/; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30609 | s/:*$//; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30610 | s/^[^=]*=[ ]*$//; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30611 | }' |
| 30612 | fi |
| 30613 | |
| 30614 | DEFS=-DHAVE_CONFIG_H |
| 30615 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30616 | ac_libobjs= |
| 30617 | ac_ltlibobjs= |
| 30618 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 30619 | # 1. Remove the extension, and $U if already installed. |
| 30620 | ac_i=`echo "$ac_i" | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30621 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30622 | # 2. Add them. |
| 30623 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 30624 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 30625 | done |
| 30626 | LIBOBJS=$ac_libobjs |
| 30627 | |
| 30628 | LTLIBOBJS=$ac_ltlibobjs |
| 30629 | |
| 30630 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30631 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 30632 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 30633 | Usually this means the macro was only invoked conditionally." >&5 |
| 30634 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 30635 | Usually this means the macro was only invoked conditionally." >&2;} |
| 30636 | { (exit 1); exit 1; }; } |
| 30637 | fi |
| 30638 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 30639 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 30640 | Usually this means the macro was only invoked conditionally." >&5 |
| 30641 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 30642 | Usually this means the macro was only invoked conditionally." >&2;} |
| 30643 | { (exit 1); exit 1; }; } |
| 30644 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30645 | |
| 30646 | : ${CONFIG_STATUS=./config.status} |
| 30647 | ac_clean_files_save=$ac_clean_files |
| 30648 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 30649 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 30650 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 30651 | cat >$CONFIG_STATUS <<_ACEOF |
| 30652 | #! $SHELL |
| 30653 | # Generated by $as_me. |
| 30654 | # Run this file to recreate the current configuration. |
| 30655 | # Compiler output produced by configure, useful for debugging |
| 30656 | # configure, is in config.log if it exists. |
| 30657 | |
| 30658 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30659 | ac_cs_recheck=false |
| 30660 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30661 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 30662 | _ACEOF |
| 30663 | |
| 30664 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30665 | ## --------------------- ## |
| 30666 | ## M4sh Initialization. ## |
| 30667 | ## --------------------- ## |
| 30668 | |
| 30669 | # Be Bourne compatible |
| 30670 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 30671 | emulate sh |
| 30672 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30673 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 30674 | # is contrary to our usage. Disable this feature. |
| 30675 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30676 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 30677 | set -o posix |
| 30678 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30679 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30680 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30681 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30682 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30683 | as_unset=unset |
| 30684 | else |
| 30685 | as_unset=false |
| 30686 | fi |
| 30687 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30688 | |
| 30689 | # Work around bugs in pre-3.0 UWIN ksh. |
| 30690 | $as_unset ENV MAIL MAILPATH |
| 30691 | PS1='$ ' |
| 30692 | PS2='> ' |
| 30693 | PS4='+ ' |
| 30694 | |
| 30695 | # NLS nuisances. |
| 30696 | for as_var in \ |
| 30697 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 30698 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 30699 | LC_TELEPHONE LC_TIME |
| 30700 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30701 | 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] | 30702 | eval $as_var=C; export $as_var |
| 30703 | else |
| 30704 | $as_unset $as_var |
| 30705 | fi |
| 30706 | done |
| 30707 | |
| 30708 | # Required to use basename. |
| 30709 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 30710 | as_expr=expr |
| 30711 | else |
| 30712 | as_expr=false |
| 30713 | fi |
| 30714 | |
| 30715 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 30716 | as_basename=basename |
| 30717 | else |
| 30718 | as_basename=false |
| 30719 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30720 | |
| 30721 | |
| 30722 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30723 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30724 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 30725 | X"$0" : 'X\(//\)$' \| \ |
| 30726 | X"$0" : 'X\(/\)$' \| \ |
| 30727 | . : '\(.\)' 2>/dev/null || |
| 30728 | echo X/"$0" | |
| 30729 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 30730 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 30731 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 30732 | s/.*/./; q'` |
| 30733 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30734 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30735 | # PATH needs CR, and LINENO needs CR and PATH. |
| 30736 | # Avoid depending upon Character Ranges. |
| 30737 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 30738 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 30739 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 30740 | as_cr_digits='0123456789' |
| 30741 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 30742 | |
| 30743 | # The user is always right. |
| 30744 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30745 | echo "#! /bin/sh" >conf$$.sh |
| 30746 | echo "exit 0" >>conf$$.sh |
| 30747 | chmod +x conf$$.sh |
| 30748 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30749 | PATH_SEPARATOR=';' |
| 30750 | else |
| 30751 | PATH_SEPARATOR=: |
| 30752 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30753 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30754 | fi |
| 30755 | |
| 30756 | |
| 30757 | as_lineno_1=$LINENO |
| 30758 | as_lineno_2=$LINENO |
| 30759 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 30760 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 30761 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 30762 | # Find who we are. Look in the path if we contain no path at all |
| 30763 | # relative or not. |
| 30764 | case $0 in |
| 30765 | *[\\/]* ) as_myself=$0 ;; |
| 30766 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30767 | for as_dir in $PATH |
| 30768 | do |
| 30769 | IFS=$as_save_IFS |
| 30770 | test -z "$as_dir" && as_dir=. |
| 30771 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 30772 | done |
| 30773 | |
| 30774 | ;; |
| 30775 | esac |
| 30776 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 30777 | # in which case we are not to be found in the path. |
| 30778 | if test "x$as_myself" = x; then |
| 30779 | as_myself=$0 |
| 30780 | fi |
| 30781 | if test ! -f "$as_myself"; then |
| 30782 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 30783 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 30784 | { (exit 1); exit 1; }; } |
| 30785 | fi |
| 30786 | case $CONFIG_SHELL in |
| 30787 | '') |
| 30788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30789 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 30790 | do |
| 30791 | IFS=$as_save_IFS |
| 30792 | test -z "$as_dir" && as_dir=. |
| 30793 | for as_base in sh bash ksh sh5; do |
| 30794 | case $as_dir in |
| 30795 | /*) |
| 30796 | if ("$as_dir/$as_base" -c ' |
| 30797 | as_lineno_1=$LINENO |
| 30798 | as_lineno_2=$LINENO |
| 30799 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 30800 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 30801 | 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] | 30802 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 30803 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30804 | CONFIG_SHELL=$as_dir/$as_base |
| 30805 | export CONFIG_SHELL |
| 30806 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 30807 | fi;; |
| 30808 | esac |
| 30809 | done |
| 30810 | done |
| 30811 | ;; |
| 30812 | esac |
| 30813 | |
| 30814 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 30815 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 30816 | # line-number line before each line; the second 'sed' does the real |
| 30817 | # work. The second script uses 'N' to pair each line-number line |
| 30818 | # with the numbered line, and appends trailing '-' during |
| 30819 | # substitution so that $LINENO is not a special case at line end. |
| 30820 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 30821 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 30822 | sed '=' <$as_myself | |
| 30823 | sed ' |
| 30824 | N |
| 30825 | s,$,-, |
| 30826 | : loop |
| 30827 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 30828 | t loop |
| 30829 | s,-$,, |
| 30830 | s,^['$as_cr_digits']*\n,, |
| 30831 | ' >$as_me.lineno && |
| 30832 | chmod +x $as_me.lineno || |
| 30833 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 30834 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 30835 | { (exit 1); exit 1; }; } |
| 30836 | |
| 30837 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 30838 | # (the dirname of $[0] is not the place where we might find the |
| 30839 | # original and so on. Autoconf is especially sensible to this). |
| 30840 | . ./$as_me.lineno |
| 30841 | # Exit status is that of the last command. |
| 30842 | exit |
| 30843 | } |
| 30844 | |
| 30845 | |
| 30846 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 30847 | *c*,-n*) ECHO_N= ECHO_C=' |
| 30848 | ' ECHO_T=' ' ;; |
| 30849 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 30850 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 30851 | esac |
| 30852 | |
| 30853 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 30854 | as_expr=expr |
| 30855 | else |
| 30856 | as_expr=false |
| 30857 | fi |
| 30858 | |
| 30859 | rm -f conf$$ conf$$.exe conf$$.file |
| 30860 | echo >conf$$.file |
| 30861 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 30862 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 30863 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 30864 | if test -f conf$$.exe; then |
| 30865 | # Don't use ln at all; we don't have any links |
| 30866 | as_ln_s='cp -p' |
| 30867 | else |
| 30868 | as_ln_s='ln -s' |
| 30869 | fi |
| 30870 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 30871 | as_ln_s=ln |
| 30872 | else |
| 30873 | as_ln_s='cp -p' |
| 30874 | fi |
| 30875 | rm -f conf$$ conf$$.exe conf$$.file |
| 30876 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30877 | if mkdir -p . 2>/dev/null; then |
| 30878 | as_mkdir_p=: |
| 30879 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30880 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30881 | as_mkdir_p=false |
| 30882 | fi |
| 30883 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30884 | as_executable_p="test -f" |
| 30885 | |
| 30886 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30887 | 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] | 30888 | |
| 30889 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30890 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30891 | |
| 30892 | |
| 30893 | # IFS |
| 30894 | # We need space, tab and new line, in precisely that order. |
| 30895 | as_nl=' |
| 30896 | ' |
| 30897 | IFS=" $as_nl" |
| 30898 | |
| 30899 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30900 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30901 | |
| 30902 | exec 6>&1 |
| 30903 | |
| 30904 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 30905 | # report actual input values of CONFIG_FILES etc. instead of their |
| 30906 | # values after options handling. Logging --version etc. is OK. |
| 30907 | exec 5>>config.log |
| 30908 | { |
| 30909 | echo |
| 30910 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 30911 | ## Running $as_me. ## |
| 30912 | _ASBOX |
| 30913 | } >&5 |
| 30914 | cat >&5 <<_CSEOF |
| 30915 | |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 30916 | This file was extended by llvm $as_me 1.6cvs, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30917 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30918 | |
| 30919 | CONFIG_FILES = $CONFIG_FILES |
| 30920 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 30921 | CONFIG_LINKS = $CONFIG_LINKS |
| 30922 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 30923 | $ $0 $@ |
| 30924 | |
| 30925 | _CSEOF |
| 30926 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 30927 | echo >&5 |
| 30928 | _ACEOF |
| 30929 | |
| 30930 | # Files that config.status was made for. |
| 30931 | if test -n "$ac_config_files"; then |
| 30932 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 30933 | fi |
| 30934 | |
| 30935 | if test -n "$ac_config_headers"; then |
| 30936 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 30937 | fi |
| 30938 | |
| 30939 | if test -n "$ac_config_links"; then |
| 30940 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 30941 | fi |
| 30942 | |
| 30943 | if test -n "$ac_config_commands"; then |
| 30944 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 30945 | fi |
| 30946 | |
| 30947 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30948 | |
| 30949 | ac_cs_usage="\ |
| 30950 | \`$as_me' instantiates files from templates according to the |
| 30951 | current configuration. |
| 30952 | |
| 30953 | Usage: $0 [OPTIONS] [FILE]... |
| 30954 | |
| 30955 | -h, --help print this help, then exit |
| 30956 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30957 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30958 | -d, --debug don't remove temporary files |
| 30959 | --recheck update $as_me by reconfiguring in the same conditions |
| 30960 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30961 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30962 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30963 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30964 | |
| 30965 | Configuration files: |
| 30966 | $config_files |
| 30967 | |
| 30968 | Configuration headers: |
| 30969 | $config_headers |
| 30970 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30971 | Configuration commands: |
| 30972 | $config_commands |
| 30973 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30974 | Report bugs to <bug-autoconf@gnu.org>." |
| 30975 | _ACEOF |
| 30976 | |
| 30977 | cat >>$CONFIG_STATUS <<_ACEOF |
| 30978 | ac_cs_version="\\ |
John Criswell | 5690c53 | 2005-05-18 20:18:40 +0000 | [diff] [blame] | 30979 | llvm config.status 1.6cvs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30980 | configured by $0, generated by GNU Autoconf 2.59, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30981 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 30982 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30983 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30984 | This config.status script is free software; the Free Software Foundation |
| 30985 | gives unlimited permission to copy, distribute and modify it." |
| 30986 | srcdir=$srcdir |
| 30987 | INSTALL="$INSTALL" |
| 30988 | _ACEOF |
| 30989 | |
| 30990 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 30991 | # If no file are specified by the user, then we need to provide default |
| 30992 | # value. By we need to know if files were specified by the user. |
| 30993 | ac_need_defaults=: |
| 30994 | while test $# != 0 |
| 30995 | do |
| 30996 | case $1 in |
| 30997 | --*=*) |
| 30998 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 30999 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31000 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31001 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31002 | -*) |
| 31003 | ac_option=$1 |
| 31004 | ac_optarg=$2 |
| 31005 | ac_shift=shift |
| 31006 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31007 | *) # This is not an option, so the user has probably given explicit |
| 31008 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31009 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31010 | ac_need_defaults=false;; |
| 31011 | esac |
| 31012 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31013 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31014 | # Handling of the options. |
| 31015 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 31016 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31017 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 31018 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31019 | --version | --vers* | -V ) |
| 31020 | echo "$ac_cs_version"; exit 0 ;; |
| 31021 | --he | --h) |
| 31022 | # Conflict between --help and --header |
| 31023 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 31024 | Try \`$0 --help' for more information." >&5 |
| 31025 | echo "$as_me: error: ambiguous option: $1 |
| 31026 | Try \`$0 --help' for more information." >&2;} |
| 31027 | { (exit 1); exit 1; }; };; |
| 31028 | --help | --hel | -h ) |
| 31029 | echo "$ac_cs_usage"; exit 0 ;; |
| 31030 | --debug | --d* | -d ) |
| 31031 | debug=: ;; |
| 31032 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31033 | $ac_shift |
| 31034 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31035 | ac_need_defaults=false;; |
| 31036 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31037 | $ac_shift |
| 31038 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31039 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31040 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 31041 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 31042 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31043 | |
| 31044 | # This is an error. |
| 31045 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 31046 | Try \`$0 --help' for more information." >&5 |
| 31047 | echo "$as_me: error: unrecognized option: $1 |
| 31048 | Try \`$0 --help' for more information." >&2;} |
| 31049 | { (exit 1); exit 1; }; } ;; |
| 31050 | |
| 31051 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 31052 | |
| 31053 | esac |
| 31054 | shift |
| 31055 | done |
| 31056 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31057 | ac_configure_extra_args= |
| 31058 | |
| 31059 | if $ac_cs_silent; then |
| 31060 | exec 6>/dev/null |
| 31061 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 31062 | fi |
| 31063 | |
| 31064 | _ACEOF |
| 31065 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31066 | if \$ac_cs_recheck; then |
| 31067 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 31068 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 31069 | fi |
| 31070 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31071 | _ACEOF |
| 31072 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31073 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31074 | # |
| 31075 | # INIT-COMMANDS section. |
| 31076 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31077 | |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31078 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31079 | |
| 31080 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31081 | |
| 31082 | |
| 31083 | |
| 31084 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31085 | for ac_config_target in $ac_config_targets |
| 31086 | do |
| 31087 | case "$ac_config_target" in |
| 31088 | # Handling of arguments. |
| 31089 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31090 | "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31091 | "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31092 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 31093 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 31094 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31095 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31096 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31097 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 31098 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31099 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 31100 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31101 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 31102 | "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] | 31103 | "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] | 31104 | "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 31105 | "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] | 31106 | "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31107 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 31108 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 31109 | { (exit 1); exit 1; }; };; |
| 31110 | esac |
| 31111 | done |
| 31112 | |
| 31113 | # If the user did not use the arguments to specify the items to instantiate, |
| 31114 | # then the envvar interface is used. Set only those that are not. |
| 31115 | # We use the long form for the default assignment because of an extremely |
| 31116 | # bizarre bug on SunOS 4.1.3. |
| 31117 | if $ac_need_defaults; then |
| 31118 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 31119 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31120 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31121 | fi |
| 31122 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31123 | # Have a temporary directory for convenience. Make it in the build tree |
| 31124 | # simply because there is no reason to put it here, and in addition, |
| 31125 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31126 | # Create a temporary directory, and hook for its removal unless debugging. |
| 31127 | $debug || |
| 31128 | { |
| 31129 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 31130 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 31131 | } |
| 31132 | |
| 31133 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31134 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31135 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31136 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31137 | test -n "$tmp" && test -d "$tmp" |
| 31138 | } || |
| 31139 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31140 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31141 | (umask 077 && mkdir $tmp) |
| 31142 | } || |
| 31143 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31144 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31145 | { (exit 1); exit 1; } |
| 31146 | } |
| 31147 | |
| 31148 | _ACEOF |
| 31149 | |
| 31150 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31151 | |
| 31152 | # |
| 31153 | # CONFIG_FILES section. |
| 31154 | # |
| 31155 | |
| 31156 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 31157 | # This happens for instance when ./config.status config.h |
| 31158 | if test -n "\$CONFIG_FILES"; then |
| 31159 | # Protect against being on the right side of a sed subst in config.status. |
| 31160 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 31161 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 31162 | s,@SHELL@,$SHELL,;t t |
| 31163 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 31164 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 31165 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 31166 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 31167 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 31168 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 31169 | s,@exec_prefix@,$exec_prefix,;t t |
| 31170 | s,@prefix@,$prefix,;t t |
| 31171 | s,@program_transform_name@,$program_transform_name,;t t |
| 31172 | s,@bindir@,$bindir,;t t |
| 31173 | s,@sbindir@,$sbindir,;t t |
| 31174 | s,@libexecdir@,$libexecdir,;t t |
| 31175 | s,@datadir@,$datadir,;t t |
| 31176 | s,@sysconfdir@,$sysconfdir,;t t |
| 31177 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 31178 | s,@localstatedir@,$localstatedir,;t t |
| 31179 | s,@libdir@,$libdir,;t t |
| 31180 | s,@includedir@,$includedir,;t t |
| 31181 | s,@oldincludedir@,$oldincludedir,;t t |
| 31182 | s,@infodir@,$infodir,;t t |
| 31183 | s,@mandir@,$mandir,;t t |
| 31184 | s,@build_alias@,$build_alias,;t t |
| 31185 | s,@host_alias@,$host_alias,;t t |
| 31186 | s,@target_alias@,$target_alias,;t t |
| 31187 | s,@DEFS@,$DEFS,;t t |
| 31188 | s,@ECHO_C@,$ECHO_C,;t t |
| 31189 | s,@ECHO_N@,$ECHO_N,;t t |
| 31190 | s,@ECHO_T@,$ECHO_T,;t t |
| 31191 | s,@LIBS@,$LIBS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31192 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31193 | s,@subdirs@,$subdirs,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31194 | s,@build@,$build,;t t |
| 31195 | s,@build_cpu@,$build_cpu,;t t |
| 31196 | s,@build_vendor@,$build_vendor,;t t |
| 31197 | s,@build_os@,$build_os,;t t |
| 31198 | s,@host@,$host,;t t |
| 31199 | s,@host_cpu@,$host_cpu,;t t |
| 31200 | s,@host_vendor@,$host_vendor,;t t |
| 31201 | s,@host_os@,$host_os,;t t |
| 31202 | s,@target@,$target,;t t |
| 31203 | s,@target_cpu@,$target_cpu,;t t |
| 31204 | s,@target_vendor@,$target_vendor,;t t |
| 31205 | s,@target_os@,$target_os,;t t |
| 31206 | s,@OS@,$OS,;t t |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 31207 | s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t |
| 31208 | s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 31209 | s,@ARCH@,$ARCH,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31210 | s,@ENDIAN@,$ENDIAN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31211 | s,@CC@,$CC,;t t |
| 31212 | s,@CFLAGS@,$CFLAGS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31213 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 31214 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31215 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31216 | s,@EXEEXT@,$EXEEXT,;t t |
| 31217 | s,@OBJEXT@,$OBJEXT,;t t |
| 31218 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
| 31219 | s,@JIT@,$JIT,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31220 | s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 31221 | s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31222 | s,@CPP@,$CPP,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31223 | s,@CXX@,$CXX,;t t |
| 31224 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 31225 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31226 | s,@LEX@,$LEX,;t t |
| 31227 | s,@LEXLIB@,$LEXLIB,;t t |
| 31228 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 31229 | s,@FLEX@,$FLEX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31230 | s,@YACC@,$YACC,;t t |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 31231 | s,@BISON@,$BISON,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31232 | s,@ifGNUmake@,$ifGNUmake,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31233 | s,@LN_S@,$LN_S,;t t |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 31234 | s,@CMP@,$CMP,;t t |
| 31235 | s,@CP@,$CP,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31236 | s,@DATE@,$DATE,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31237 | s,@FIND@,$FIND,;t t |
| 31238 | s,@GREP@,$GREP,;t t |
| 31239 | s,@MKDIR@,$MKDIR,;t t |
| 31240 | s,@MV@,$MV,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31241 | s,@RANLIB@,$RANLIB,;t t |
| 31242 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31243 | s,@RM@,$RM,;t t |
| 31244 | s,@SED@,$SED,;t t |
Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 31245 | s,@TAR@,$TAR,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31246 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 31247 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 31248 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31249 | s,@BZIP2@,$BZIP2,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31250 | s,@DOT@,$DOT,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31251 | s,@DOXYGEN@,$DOXYGEN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31252 | s,@ETAGS@,$ETAGS,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31253 | s,@GROFF@,$GROFF,;t t |
| 31254 | s,@GZIP@,$GZIP,;t t |
| 31255 | s,@POD2HTML@,$POD2HTML,;t t |
| 31256 | s,@POD2MAN@,$POD2MAN,;t t |
Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 31257 | s,@RUNTEST@,$RUNTEST,;t t |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 31258 | s,@TCLSH@,$TCLSH,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31259 | s,@ZIP@,$ZIP,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31260 | s,@EGREP@,$EGREP,;t t |
| 31261 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t |
| 31262 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t |
| 31263 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t |
| 31264 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t |
| 31265 | s,@LIBADD_DL@,$LIBADD_DL,;t t |
| 31266 | s,@ECHO@,$ECHO,;t t |
| 31267 | s,@AR@,$AR,;t t |
| 31268 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 31269 | s,@STRIP@,$STRIP,;t t |
| 31270 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 31271 | s,@CXXCPP@,$CXXCPP,;t t |
| 31272 | s,@F77@,$F77,;t t |
| 31273 | s,@FFLAGS@,$FFLAGS,;t t |
| 31274 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
| 31275 | s,@LIBTOOL@,$LIBTOOL,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31276 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31277 | s,@LLVMGCC@,$LLVMGCC,;t t |
| 31278 | s,@LLVMGXX@,$LLVMGXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31279 | s,@ALLOCA@,$ALLOCA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31280 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 31281 | s,@LLVMCC1@,$LLVMCC1,;t t |
| 31282 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31283 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 31284 | s,@SHLIBEXT@,$SHLIBEXT,;t t |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31285 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t |
| 31286 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t |
| 31287 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t |
| 31288 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t |
| 31289 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t |
| 31290 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t |
| 31291 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t |
| 31292 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t |
| 31293 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t |
| 31294 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 31295 | s,@LIBOBJS@,$LIBOBJS,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31296 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31297 | CEOF |
| 31298 | |
| 31299 | _ACEOF |
| 31300 | |
| 31301 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31302 | # Split the substitutions into bite-sized pieces for seds with |
| 31303 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 31304 | ac_max_sed_lines=48 |
| 31305 | ac_sed_frag=1 # Number of current file. |
| 31306 | ac_beg=1 # First line for current file. |
| 31307 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 31308 | ac_more_lines=: |
| 31309 | ac_sed_cmds= |
| 31310 | while $ac_more_lines; do |
| 31311 | if test $ac_beg -gt 1; then |
| 31312 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 31313 | else |
| 31314 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 31315 | fi |
| 31316 | if test ! -s $tmp/subs.frag; then |
| 31317 | ac_more_lines=false |
| 31318 | else |
| 31319 | # The purpose of the label and of the branching condition is to |
| 31320 | # speed up the sed processing (if there are no `@' at all, there |
| 31321 | # is no need to browse any of the substitutions). |
| 31322 | # These are the two extra sed commands mentioned above. |
| 31323 | (echo ':t |
| 31324 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 31325 | if test -z "$ac_sed_cmds"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31326 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31327 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31328 | 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] | 31329 | fi |
| 31330 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 31331 | ac_beg=$ac_end |
| 31332 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 31333 | fi |
| 31334 | done |
| 31335 | if test -z "$ac_sed_cmds"; then |
| 31336 | ac_sed_cmds=cat |
| 31337 | fi |
| 31338 | fi # test -n "$CONFIG_FILES" |
| 31339 | |
| 31340 | _ACEOF |
| 31341 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31342 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 31343 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 31344 | case $ac_file in |
| 31345 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31346 | cat >$tmp/stdin |
| 31347 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 31348 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31349 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31350 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31351 | * ) ac_file_in=$ac_file.in ;; |
| 31352 | esac |
| 31353 | |
| 31354 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 31355 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 31356 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31357 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 31358 | X"$ac_file" : 'X\(//\)$' \| \ |
| 31359 | X"$ac_file" : 'X\(/\)' \| \ |
| 31360 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31361 | echo X"$ac_file" | |
| 31362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31363 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31364 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31365 | /^X\(\/\).*/{ s//\1/; q; } |
| 31366 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31367 | { if $as_mkdir_p; then |
| 31368 | mkdir -p "$ac_dir" |
| 31369 | else |
| 31370 | as_dir="$ac_dir" |
| 31371 | as_dirs= |
| 31372 | while test ! -d "$as_dir"; do |
| 31373 | as_dirs="$as_dir $as_dirs" |
| 31374 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31375 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31376 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31377 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31378 | X"$as_dir" : 'X\(/\)' \| \ |
| 31379 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31380 | echo X"$as_dir" | |
| 31381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31382 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31383 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31384 | /^X\(\/\).*/{ s//\1/; q; } |
| 31385 | s/.*/./; q'` |
| 31386 | done |
| 31387 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31388 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31389 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31390 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31391 | |
| 31392 | ac_builddir=. |
| 31393 | |
| 31394 | if test "$ac_dir" != .; then |
| 31395 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 31396 | # A "../" for each directory in $ac_dir_suffix. |
| 31397 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 31398 | else |
| 31399 | ac_dir_suffix= ac_top_builddir= |
| 31400 | fi |
| 31401 | |
| 31402 | case $srcdir in |
| 31403 | .) # No --srcdir option. We are building in place. |
| 31404 | ac_srcdir=. |
| 31405 | if test -z "$ac_top_builddir"; then |
| 31406 | ac_top_srcdir=. |
| 31407 | else |
| 31408 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 31409 | fi ;; |
| 31410 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 31411 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 31412 | ac_top_srcdir=$srcdir ;; |
| 31413 | *) # Relative path. |
| 31414 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 31415 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 31416 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31417 | |
| 31418 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 31419 | # the directories may not exist. |
| 31420 | case `pwd` in |
| 31421 | .) ac_abs_builddir="$ac_dir";; |
| 31422 | *) |
| 31423 | case "$ac_dir" in |
| 31424 | .) ac_abs_builddir=`pwd`;; |
| 31425 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 31426 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 31427 | esac;; |
| 31428 | esac |
| 31429 | case $ac_abs_builddir in |
| 31430 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31431 | *) |
| 31432 | case ${ac_top_builddir}. in |
| 31433 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 31434 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31435 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 31436 | esac;; |
| 31437 | esac |
| 31438 | case $ac_abs_builddir in |
| 31439 | .) ac_abs_srcdir=$ac_srcdir;; |
| 31440 | *) |
| 31441 | case $ac_srcdir in |
| 31442 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 31443 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 31444 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 31445 | esac;; |
| 31446 | esac |
| 31447 | case $ac_abs_builddir in |
| 31448 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31449 | *) |
| 31450 | case $ac_top_srcdir in |
| 31451 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 31452 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31453 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 31454 | esac;; |
| 31455 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31456 | |
| 31457 | |
| 31458 | case $INSTALL in |
| 31459 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 31460 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 31461 | esac |
| 31462 | |
| 31463 | if test x"$ac_file" != x-; then |
| 31464 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 31465 | echo "$as_me: creating $ac_file" >&6;} |
| 31466 | rm -f "$ac_file" |
| 31467 | fi |
| 31468 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 31469 | # use $as_me), people would be surprised to read: |
| 31470 | # /* config.h. Generated by config.status. */ |
| 31471 | if test x"$ac_file" = x-; then |
| 31472 | configure_input= |
| 31473 | else |
| 31474 | configure_input="$ac_file. " |
| 31475 | fi |
| 31476 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31477 | sed 's,.*/,,'` by configure." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31478 | |
| 31479 | # First look for the input files in the build tree, otherwise in the |
| 31480 | # src tree. |
| 31481 | ac_file_inputs=`IFS=: |
| 31482 | for f in $ac_file_in; do |
| 31483 | case $f in |
| 31484 | -) echo $tmp/stdin ;; |
| 31485 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31486 | # Absolute (can't be DOS-style, as IFS=:) |
| 31487 | 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] | 31488 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31489 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31490 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31491 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31492 | if test -f "$f"; then |
| 31493 | # Build tree |
| 31494 | echo "$f" |
| 31495 | elif test -f "$srcdir/$f"; then |
| 31496 | # Source tree |
| 31497 | echo "$srcdir/$f" |
| 31498 | else |
| 31499 | # /dev/null tree |
| 31500 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31501 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31502 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31503 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31504 | esac |
| 31505 | done` || { (exit 1); exit 1; } |
| 31506 | _ACEOF |
| 31507 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31508 | sed "$ac_vpsub |
| 31509 | $extrasub |
| 31510 | _ACEOF |
| 31511 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31512 | :t |
| 31513 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 31514 | s,@configure_input@,$configure_input,;t t |
| 31515 | s,@srcdir@,$ac_srcdir,;t t |
| 31516 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 31517 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 31518 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 31519 | s,@builddir@,$ac_builddir,;t t |
| 31520 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 31521 | s,@top_builddir@,$ac_top_builddir,;t t |
| 31522 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 31523 | s,@INSTALL@,$ac_INSTALL,;t t |
| 31524 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 31525 | rm -f $tmp/stdin |
| 31526 | if test x"$ac_file" != x-; then |
| 31527 | mv $tmp/out $ac_file |
| 31528 | else |
| 31529 | cat $tmp/out |
| 31530 | rm -f $tmp/out |
| 31531 | fi |
| 31532 | |
| 31533 | done |
| 31534 | _ACEOF |
| 31535 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31536 | |
| 31537 | # |
| 31538 | # CONFIG_HEADER section. |
| 31539 | # |
| 31540 | |
| 31541 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 31542 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 31543 | # |
| 31544 | # ac_d sets the value in "#define NAME VALUE" lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31545 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 31546 | ac_dB='[ ].*$,\1#\2' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31547 | ac_dC=' ' |
| 31548 | ac_dD=',;t' |
| 31549 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31550 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31551 | ac_uB='$,\1#\2define\3' |
| 31552 | ac_uC=' ' |
| 31553 | ac_uD=',;t' |
| 31554 | |
| 31555 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 31556 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 31557 | case $ac_file in |
| 31558 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31559 | cat >$tmp/stdin |
| 31560 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 31561 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31562 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31563 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31564 | * ) ac_file_in=$ac_file.in ;; |
| 31565 | esac |
| 31566 | |
| 31567 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 31568 | echo "$as_me: creating $ac_file" >&6;} |
| 31569 | |
| 31570 | # First look for the input files in the build tree, otherwise in the |
| 31571 | # src tree. |
| 31572 | ac_file_inputs=`IFS=: |
| 31573 | for f in $ac_file_in; do |
| 31574 | case $f in |
| 31575 | -) echo $tmp/stdin ;; |
| 31576 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31577 | # Absolute (can't be DOS-style, as IFS=:) |
| 31578 | 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] | 31579 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31580 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31581 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 31582 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31583 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31584 | if test -f "$f"; then |
| 31585 | # Build tree |
| 31586 | echo "$f" |
| 31587 | elif test -f "$srcdir/$f"; then |
| 31588 | # Source tree |
| 31589 | echo "$srcdir/$f" |
| 31590 | else |
| 31591 | # /dev/null tree |
| 31592 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31593 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31594 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31595 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31596 | esac |
| 31597 | done` || { (exit 1); exit 1; } |
| 31598 | # Remove the trailing spaces. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31599 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31600 | |
| 31601 | _ACEOF |
| 31602 | |
| 31603 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 31604 | # `conftest.undefs', that substitutes the proper values into |
| 31605 | # config.h.in to produce config.h. The first handles `#define' |
| 31606 | # templates, and the second `#undef' templates. |
| 31607 | # And first: Protect against being on the right side of a sed subst in |
| 31608 | # config.status. Protect against being in an unquoted here document |
| 31609 | # in config.status. |
| 31610 | rm -f conftest.defines conftest.undefs |
| 31611 | # Using a here document instead of a string reduces the quoting nightmare. |
| 31612 | # Putting comments in sed scripts is not portable. |
| 31613 | # |
| 31614 | # `end' is used to avoid that the second main sed command (meant for |
| 31615 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 31616 | # See the Autoconf documentation for `clear'. |
| 31617 | cat >confdef2sed.sed <<\_ACEOF |
| 31618 | s/[\\&,]/\\&/g |
| 31619 | s,[\\$`],\\&,g |
| 31620 | t clear |
| 31621 | : clear |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31622 | 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] | 31623 | t end |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31624 | 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] | 31625 | : end |
| 31626 | _ACEOF |
| 31627 | # If some macros were called several times there might be several times |
| 31628 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 31629 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 31630 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 31631 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 31632 | rm -f confdef2sed.sed |
| 31633 | |
| 31634 | # This sed command replaces #undef with comments. This is necessary, for |
| 31635 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 31636 | # on some systems where configure will not decide to define it. |
| 31637 | cat >>conftest.undefs <<\_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31638 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31639 | _ACEOF |
| 31640 | |
| 31641 | # Break up conftest.defines because some shells have a limit on the size |
| 31642 | # of here documents, and old seds have small limits too (100 cmds). |
| 31643 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31644 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31645 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 31646 | echo ' :' >>$CONFIG_STATUS |
| 31647 | rm -f conftest.tail |
| 31648 | while grep . conftest.defines >/dev/null |
| 31649 | do |
| 31650 | # Write a limited-size here document to $tmp/defines.sed. |
| 31651 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 31652 | # Speed up: don't consider the non `#define' lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31653 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31654 | # Work around the forget-to-reset-the-flag bug. |
| 31655 | echo 't clr' >>$CONFIG_STATUS |
| 31656 | echo ': clr' >>$CONFIG_STATUS |
| 31657 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 31658 | echo 'CEOF |
| 31659 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 31660 | rm -f $tmp/in |
| 31661 | mv $tmp/out $tmp/in |
| 31662 | ' >>$CONFIG_STATUS |
| 31663 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 31664 | rm -f conftest.defines |
| 31665 | mv conftest.tail conftest.defines |
| 31666 | done |
| 31667 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31668 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31669 | echo >>$CONFIG_STATUS |
| 31670 | |
| 31671 | # Break up conftest.undefs because some shells have a limit on the size |
| 31672 | # of here documents, and old seds have small limits too (100 cmds). |
| 31673 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 31674 | rm -f conftest.tail |
| 31675 | while grep . conftest.undefs >/dev/null |
| 31676 | do |
| 31677 | # Write a limited-size here document to $tmp/undefs.sed. |
| 31678 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 31679 | # Speed up: don't consider the non `#undef' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31680 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31681 | # Work around the forget-to-reset-the-flag bug. |
| 31682 | echo 't clr' >>$CONFIG_STATUS |
| 31683 | echo ': clr' >>$CONFIG_STATUS |
| 31684 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 31685 | echo 'CEOF |
| 31686 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 31687 | rm -f $tmp/in |
| 31688 | mv $tmp/out $tmp/in |
| 31689 | ' >>$CONFIG_STATUS |
| 31690 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 31691 | rm -f conftest.undefs |
| 31692 | mv conftest.tail conftest.undefs |
| 31693 | done |
| 31694 | rm -f conftest.undefs |
| 31695 | |
| 31696 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31697 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 31698 | # use $as_me), people would be surprised to read: |
| 31699 | # /* config.h. Generated by config.status. */ |
| 31700 | if test x"$ac_file" = x-; then |
| 31701 | echo "/* Generated by configure. */" >$tmp/config.h |
| 31702 | else |
| 31703 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 31704 | fi |
| 31705 | cat $tmp/in >>$tmp/config.h |
| 31706 | rm -f $tmp/in |
| 31707 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31708 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31709 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 31710 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 31711 | else |
| 31712 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 31713 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31714 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 31715 | X"$ac_file" : 'X\(//\)$' \| \ |
| 31716 | X"$ac_file" : 'X\(/\)' \| \ |
| 31717 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31718 | echo X"$ac_file" | |
| 31719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31721 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31722 | /^X\(\/\).*/{ s//\1/; q; } |
| 31723 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31724 | { if $as_mkdir_p; then |
| 31725 | mkdir -p "$ac_dir" |
| 31726 | else |
| 31727 | as_dir="$ac_dir" |
| 31728 | as_dirs= |
| 31729 | while test ! -d "$as_dir"; do |
| 31730 | as_dirs="$as_dir $as_dirs" |
| 31731 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31732 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31733 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31734 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31735 | X"$as_dir" : 'X\(/\)' \| \ |
| 31736 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31737 | echo X"$as_dir" | |
| 31738 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31739 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31740 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31741 | /^X\(\/\).*/{ s//\1/; q; } |
| 31742 | s/.*/./; q'` |
| 31743 | done |
| 31744 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31745 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31746 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31747 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31748 | |
| 31749 | rm -f $ac_file |
| 31750 | mv $tmp/config.h $ac_file |
| 31751 | fi |
| 31752 | else |
| 31753 | cat $tmp/config.h |
| 31754 | rm -f $tmp/config.h |
| 31755 | fi |
| 31756 | done |
| 31757 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31758 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31759 | |
| 31760 | # |
| 31761 | # CONFIG_COMMANDS section. |
| 31762 | # |
| 31763 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 31764 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 31765 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 31766 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 31767 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31768 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 31769 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 31770 | X"$ac_dest" : 'X\(/\)' \| \ |
| 31771 | . : '\(.\)' 2>/dev/null || |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31772 | echo X"$ac_dest" | |
| 31773 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31774 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31775 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31776 | /^X\(\/\).*/{ s//\1/; q; } |
| 31777 | s/.*/./; q'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31778 | { if $as_mkdir_p; then |
| 31779 | mkdir -p "$ac_dir" |
| 31780 | else |
| 31781 | as_dir="$ac_dir" |
| 31782 | as_dirs= |
| 31783 | while test ! -d "$as_dir"; do |
| 31784 | as_dirs="$as_dir $as_dirs" |
| 31785 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31786 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 31787 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31788 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31789 | X"$as_dir" : 'X\(/\)' \| \ |
| 31790 | . : '\(.\)' 2>/dev/null || |
| 31791 | echo X"$as_dir" | |
| 31792 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31793 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31794 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31795 | /^X\(\/\).*/{ s//\1/; q; } |
| 31796 | s/.*/./; q'` |
| 31797 | done |
| 31798 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31799 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31800 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31801 | { (exit 1); exit 1; }; }; } |
| 31802 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31803 | ac_builddir=. |
| 31804 | |
| 31805 | if test "$ac_dir" != .; then |
| 31806 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 31807 | # A "../" for each directory in $ac_dir_suffix. |
| 31808 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 31809 | else |
| 31810 | ac_dir_suffix= ac_top_builddir= |
| 31811 | fi |
| 31812 | |
| 31813 | case $srcdir in |
| 31814 | .) # No --srcdir option. We are building in place. |
| 31815 | ac_srcdir=. |
| 31816 | if test -z "$ac_top_builddir"; then |
| 31817 | ac_top_srcdir=. |
| 31818 | else |
| 31819 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 31820 | fi ;; |
| 31821 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 31822 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 31823 | ac_top_srcdir=$srcdir ;; |
| 31824 | *) # Relative path. |
| 31825 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 31826 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 31827 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31828 | |
| 31829 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 31830 | # the directories may not exist. |
| 31831 | case `pwd` in |
| 31832 | .) ac_abs_builddir="$ac_dir";; |
| 31833 | *) |
| 31834 | case "$ac_dir" in |
| 31835 | .) ac_abs_builddir=`pwd`;; |
| 31836 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 31837 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 31838 | esac;; |
| 31839 | esac |
| 31840 | case $ac_abs_builddir in |
| 31841 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31842 | *) |
| 31843 | case ${ac_top_builddir}. in |
| 31844 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 31845 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31846 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 31847 | esac;; |
| 31848 | esac |
| 31849 | case $ac_abs_builddir in |
| 31850 | .) ac_abs_srcdir=$ac_srcdir;; |
| 31851 | *) |
| 31852 | case $ac_srcdir in |
| 31853 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 31854 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 31855 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 31856 | esac;; |
| 31857 | esac |
| 31858 | case $ac_abs_builddir in |
| 31859 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31860 | *) |
| 31861 | case $ac_top_srcdir in |
| 31862 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 31863 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31864 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 31865 | esac;; |
| 31866 | esac |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31867 | |
| 31868 | |
| 31869 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 31870 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 31871 | case $ac_dest in |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31872 | Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 31873 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 31874 | Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 31875 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 31876 | examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 31877 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 31878 | lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 31879 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 31880 | runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 31881 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
| 31882 | test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 31883 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 31884 | test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 31885 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 31886 | tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 31887 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 31888 | utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 31889 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 31890 | projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 31891 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31892 | esac |
| 31893 | done |
| 31894 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31895 | |
| 31896 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31897 | |
| 31898 | { (exit 0); exit 0; } |
| 31899 | _ACEOF |
| 31900 | chmod +x $CONFIG_STATUS |
| 31901 | ac_clean_files=$ac_clean_files_save |
| 31902 | |
| 31903 | |
| 31904 | # configure is writing to config.log, and then calls config.status. |
| 31905 | # config.status does its own redirection, appending to config.log. |
| 31906 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 31907 | # by configure, so config.status won't be able to write to it; its |
| 31908 | # output is simply discarded. So we exec the FD to /dev/null, |
| 31909 | # effectively closing config.log, so it can be properly (re)opened and |
| 31910 | # appended to by config.status. When coming back to configure, we |
| 31911 | # need to make the FD available again. |
| 31912 | if test "$no_create" != yes; then |
| 31913 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31914 | ac_config_status_args= |
| 31915 | test "$silent" = yes && |
| 31916 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31917 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31918 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31919 | exec 5>>config.log |
| 31920 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 31921 | # would make configure fail if this is the last instruction. |
| 31922 | $ac_cs_success || { (exit 1); exit 1; } |
| 31923 | fi |
| 31924 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31925 | # |
| 31926 | # CONFIG_SUBDIRS section. |
| 31927 | # |
| 31928 | if test "$no_recursion" != yes; then |
| 31929 | |
| 31930 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 31931 | ac_sub_configure_args= |
| 31932 | ac_prev= |
| 31933 | for ac_arg in $ac_configure_args; do |
| 31934 | if test -n "$ac_prev"; then |
| 31935 | ac_prev= |
| 31936 | continue |
| 31937 | fi |
| 31938 | case $ac_arg in |
| 31939 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 31940 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 31941 | ac_prev=cache_file ;; |
| 31942 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 31943 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 31944 | | --c=*) |
| 31945 | ;; |
| 31946 | --config-cache | -C) |
| 31947 | ;; |
| 31948 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 31949 | ac_prev=srcdir ;; |
| 31950 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 31951 | ;; |
| 31952 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 31953 | ac_prev=prefix ;; |
| 31954 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 31955 | ;; |
| 31956 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 31957 | esac |
| 31958 | done |
| 31959 | |
| 31960 | # Always prepend --prefix to ensure using the same prefix |
| 31961 | # in subdir configurations. |
| 31962 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 31963 | |
| 31964 | ac_popdir=`pwd` |
| 31965 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 31966 | |
| 31967 | # Do not complain, so a configure script can configure whichever |
| 31968 | # parts of a large source tree are present. |
| 31969 | test -d $srcdir/$ac_dir || continue |
| 31970 | |
| 31971 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 31972 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 31973 | { if $as_mkdir_p; then |
| 31974 | mkdir -p "$ac_dir" |
| 31975 | else |
| 31976 | as_dir="$ac_dir" |
| 31977 | as_dirs= |
| 31978 | while test ! -d "$as_dir"; do |
| 31979 | as_dirs="$as_dir $as_dirs" |
| 31980 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31981 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31982 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31983 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31984 | X"$as_dir" : 'X\(/\)' \| \ |
| 31985 | . : '\(.\)' 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31986 | echo X"$as_dir" | |
| 31987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31988 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31989 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31990 | /^X\(\/\).*/{ s//\1/; q; } |
| 31991 | s/.*/./; q'` |
| 31992 | done |
| 31993 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31994 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31995 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31996 | { (exit 1); exit 1; }; }; } |
| 31997 | |
| 31998 | ac_builddir=. |
| 31999 | |
| 32000 | if test "$ac_dir" != .; then |
| 32001 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 32002 | # A "../" for each directory in $ac_dir_suffix. |
| 32003 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 32004 | else |
| 32005 | ac_dir_suffix= ac_top_builddir= |
| 32006 | fi |
| 32007 | |
| 32008 | case $srcdir in |
| 32009 | .) # No --srcdir option. We are building in place. |
| 32010 | ac_srcdir=. |
| 32011 | if test -z "$ac_top_builddir"; then |
| 32012 | ac_top_srcdir=. |
| 32013 | else |
| 32014 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 32015 | fi ;; |
| 32016 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 32017 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32018 | ac_top_srcdir=$srcdir ;; |
| 32019 | *) # Relative path. |
| 32020 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 32021 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 32022 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32023 | |
| 32024 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 32025 | # the directories may not exist. |
| 32026 | case `pwd` in |
| 32027 | .) ac_abs_builddir="$ac_dir";; |
| 32028 | *) |
| 32029 | case "$ac_dir" in |
| 32030 | .) ac_abs_builddir=`pwd`;; |
| 32031 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 32032 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 32033 | esac;; |
| 32034 | esac |
| 32035 | case $ac_abs_builddir in |
| 32036 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32037 | *) |
| 32038 | case ${ac_top_builddir}. in |
| 32039 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 32040 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32041 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 32042 | esac;; |
| 32043 | esac |
| 32044 | case $ac_abs_builddir in |
| 32045 | .) ac_abs_srcdir=$ac_srcdir;; |
| 32046 | *) |
| 32047 | case $ac_srcdir in |
| 32048 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 32049 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 32050 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 32051 | esac;; |
| 32052 | esac |
| 32053 | case $ac_abs_builddir in |
| 32054 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32055 | *) |
| 32056 | case $ac_top_srcdir in |
| 32057 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 32058 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32059 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 32060 | esac;; |
| 32061 | esac |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32062 | |
| 32063 | |
| 32064 | cd $ac_dir |
| 32065 | |
| 32066 | # Check for guested configure; otherwise get Cygnus style configure. |
| 32067 | if test -f $ac_srcdir/configure.gnu; then |
| 32068 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 32069 | elif test -f $ac_srcdir/configure; then |
| 32070 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 32071 | elif test -f $ac_srcdir/configure.in; then |
| 32072 | ac_sub_configure=$ac_configure |
| 32073 | else |
| 32074 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 32075 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 32076 | ac_sub_configure= |
| 32077 | fi |
| 32078 | |
| 32079 | # The recursion is here. |
| 32080 | if test -n "$ac_sub_configure"; then |
| 32081 | # Make the cache file name correct relative to the subdirectory. |
| 32082 | case $cache_file in |
| 32083 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 32084 | *) # Relative path. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32085 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32086 | esac |
| 32087 | |
| 32088 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 32089 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 32090 | # The eval makes quoting arguments work. |
| 32091 | eval $ac_sub_configure $ac_sub_configure_args \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32092 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 32093 | { { 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] | 32094 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 32095 | { (exit 1); exit 1; }; } |
| 32096 | fi |
| 32097 | |
| 32098 | cd $ac_popdir |
| 32099 | done |
| 32100 | fi |
| 32101 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 32102 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32103 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 32104 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 |
| 32105 | 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] | 32106 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 |
| 32107 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} |
| 32108 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 |
| 32109 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} |
| 32110 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 |
| 32111 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} |
| 32112 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 |
| 32113 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 32114 | fi |