John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.9cvs. |
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 | # |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 11 | # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
| 16 | # Be Bourne compatible |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 24 | set -o posix |
| 25 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | |
| 28 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | as_unset=unset |
| 31 | else |
| 32 | as_unset=false |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | # Work around bugs in pre-3.0 UWIN ksh. |
| 37 | $as_unset ENV MAIL MAILPATH |
| 38 | PS1='$ ' |
| 39 | PS2='> ' |
| 40 | PS4='+ ' |
| 41 | |
| 42 | # NLS nuisances. |
| 43 | for as_var in \ |
| 44 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 45 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 46 | LC_TELEPHONE LC_TIME |
| 47 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 48 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 49 | eval $as_var=C; export $as_var |
| 50 | else |
| 51 | $as_unset $as_var |
| 52 | fi |
| 53 | done |
| 54 | |
| 55 | # Required to use basename. |
| 56 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 57 | as_expr=expr |
| 58 | else |
| 59 | as_expr=false |
| 60 | fi |
| 61 | |
| 62 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 63 | as_basename=basename |
| 64 | else |
| 65 | as_basename=false |
| 66 | fi |
| 67 | |
| 68 | |
| 69 | # Name of the executable. |
| 70 | as_me=`$as_basename "$0" || |
| 71 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 72 | X"$0" : 'X\(//\)$' \| \ |
| 73 | X"$0" : 'X\(/\)$' \| \ |
| 74 | . : '\(.\)' 2>/dev/null || |
| 75 | echo X/"$0" | |
| 76 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 78 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 79 | s/.*/./; q'` |
| 80 | |
| 81 | |
| 82 | # PATH needs CR, and LINENO needs CR and PATH. |
| 83 | # Avoid depending upon Character Ranges. |
| 84 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 85 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 86 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 87 | as_cr_digits='0123456789' |
| 88 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 89 | |
| 90 | # The user is always right. |
| 91 | if test "${PATH_SEPARATOR+set}" != set; then |
| 92 | echo "#! /bin/sh" >conf$$.sh |
| 93 | echo "exit 0" >>conf$$.sh |
| 94 | chmod +x conf$$.sh |
| 95 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 96 | PATH_SEPARATOR=';' |
| 97 | else |
| 98 | PATH_SEPARATOR=: |
| 99 | fi |
| 100 | rm -f conf$$.sh |
| 101 | fi |
| 102 | |
| 103 | |
| 104 | as_lineno_1=$LINENO |
| 105 | as_lineno_2=$LINENO |
| 106 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 107 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 108 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 109 | # Find who we are. Look in the path if we contain no path at all |
| 110 | # relative or not. |
| 111 | case $0 in |
| 112 | *[\\/]* ) as_myself=$0 ;; |
| 113 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 114 | for as_dir in $PATH |
| 115 | do |
| 116 | IFS=$as_save_IFS |
| 117 | test -z "$as_dir" && as_dir=. |
| 118 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 119 | done |
| 120 | |
| 121 | ;; |
| 122 | esac |
| 123 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 124 | # in which case we are not to be found in the path. |
| 125 | if test "x$as_myself" = x; then |
| 126 | as_myself=$0 |
| 127 | fi |
| 128 | if test ! -f "$as_myself"; then |
| 129 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 130 | { (exit 1); exit 1; }; } |
| 131 | fi |
| 132 | case $CONFIG_SHELL in |
| 133 | '') |
| 134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 135 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 136 | do |
| 137 | IFS=$as_save_IFS |
| 138 | test -z "$as_dir" && as_dir=. |
| 139 | for as_base in sh bash ksh sh5; do |
| 140 | case $as_dir in |
| 141 | /*) |
| 142 | if ("$as_dir/$as_base" -c ' |
| 143 | as_lineno_1=$LINENO |
| 144 | as_lineno_2=$LINENO |
| 145 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 146 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 147 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 148 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 149 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 150 | CONFIG_SHELL=$as_dir/$as_base |
| 151 | export CONFIG_SHELL |
| 152 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 153 | fi;; |
| 154 | esac |
| 155 | done |
| 156 | done |
| 157 | ;; |
| 158 | esac |
| 159 | |
| 160 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 161 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 162 | # line-number line before each line; the second 'sed' does the real |
| 163 | # work. The second script uses 'N' to pair each line-number line |
| 164 | # with the numbered line, and appends trailing '-' during |
| 165 | # substitution so that $LINENO is not a special case at line end. |
| 166 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 167 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 168 | sed '=' <$as_myself | |
| 169 | sed ' |
| 170 | N |
| 171 | s,$,-, |
| 172 | : loop |
| 173 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 174 | t loop |
| 175 | s,-$,, |
| 176 | s,^['$as_cr_digits']*\n,, |
| 177 | ' >$as_me.lineno && |
| 178 | chmod +x $as_me.lineno || |
| 179 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 180 | { (exit 1); exit 1; }; } |
| 181 | |
| 182 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 183 | # (the dirname of $[0] is not the place where we might find the |
| 184 | # original and so on. Autoconf is especially sensible to this). |
| 185 | . ./$as_me.lineno |
| 186 | # Exit status is that of the last command. |
| 187 | exit |
| 188 | } |
| 189 | |
| 190 | |
| 191 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 192 | *c*,-n*) ECHO_N= ECHO_C=' |
| 193 | ' ECHO_T=' ' ;; |
| 194 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 195 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 196 | esac |
| 197 | |
| 198 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 199 | as_expr=expr |
| 200 | else |
| 201 | as_expr=false |
| 202 | fi |
| 203 | |
| 204 | rm -f conf$$ conf$$.exe conf$$.file |
| 205 | echo >conf$$.file |
| 206 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 207 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 208 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 209 | if test -f conf$$.exe; then |
| 210 | # Don't use ln at all; we don't have any links |
| 211 | as_ln_s='cp -p' |
| 212 | else |
| 213 | as_ln_s='ln -s' |
| 214 | fi |
| 215 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 216 | as_ln_s=ln |
| 217 | else |
| 218 | as_ln_s='cp -p' |
| 219 | fi |
| 220 | rm -f conf$$ conf$$.exe conf$$.file |
| 221 | |
| 222 | if mkdir -p . 2>/dev/null; then |
| 223 | as_mkdir_p=: |
| 224 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 225 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 226 | as_mkdir_p=false |
| 227 | fi |
| 228 | |
| 229 | as_executable_p="test -f" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 232 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 233 | |
| 234 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 236 | |
| 237 | |
| 238 | # IFS |
| 239 | # We need space, tab and new line, in precisely that order. |
| 240 | as_nl=' |
| 241 | ' |
| 242 | IFS=" $as_nl" |
| 243 | |
| 244 | # CDPATH. |
| 245 | $as_unset CDPATH |
| 246 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 247 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 248 | |
| 249 | # Check that we are running under the correct shell. |
| 250 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 251 | |
| 252 | case X$ECHO in |
| 253 | X*--fallback-echo) |
| 254 | # Remove one level of quotation (which was required for Make). |
| 255 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 256 | ;; |
| 257 | esac |
| 258 | |
| 259 | echo=${ECHO-echo} |
| 260 | if test "X$1" = X--no-reexec; then |
| 261 | # Discard the --no-reexec flag, and continue. |
| 262 | shift |
| 263 | elif test "X$1" = X--fallback-echo; then |
| 264 | # Avoid inline document here, it may be left over |
| 265 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 266 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 267 | # Yippee, $echo works! |
| 268 | : |
| 269 | else |
| 270 | # Restart under the correct shell. |
| 271 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 272 | fi |
| 273 | |
| 274 | if test "X$1" = X--fallback-echo; then |
| 275 | # used as fallback echo |
| 276 | shift |
| 277 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 278 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 279 | EOF |
| 280 | exit 0 |
| 281 | fi |
| 282 | |
| 283 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 284 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 286 | |
| 287 | if test -z "$ECHO"; then |
| 288 | if test "X${echo_test_string+set}" != Xset; then |
| 289 | # find a string as large as possible, as long as the shell can cope with it |
| 290 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 291 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 292 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 293 | echo_test_string="`eval $cmd`" && |
| 294 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 295 | then |
| 296 | break |
| 297 | fi |
| 298 | done |
| 299 | fi |
| 300 | |
| 301 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 302 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 303 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 304 | : |
| 305 | else |
| 306 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 307 | # backslashes. This makes it impossible to quote backslashes using |
| 308 | # echo "$something" | sed 's/\\/\\\\/g' |
| 309 | # |
| 310 | # So, first we look for a working echo in the user's PATH. |
| 311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 314 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 315 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 316 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 317 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 318 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 319 | echo="$dir/echo" |
| 320 | break |
| 321 | fi |
| 322 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 323 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 324 | |
| 325 | if test "X$echo" = Xecho; then |
| 326 | # We didn't find a better echo, so look for alternatives. |
| 327 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 328 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 329 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 330 | # This shell has a builtin print -r that does the trick. |
| 331 | echo='print -r' |
| 332 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 333 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 334 | # If we have ksh, try running configure again with it. |
| 335 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 336 | export ORIGINAL_CONFIG_SHELL |
| 337 | CONFIG_SHELL=/bin/ksh |
| 338 | export CONFIG_SHELL |
| 339 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 340 | else |
| 341 | # Try using printf. |
| 342 | echo='printf %s\n' |
| 343 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 344 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 345 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 346 | # Cool, printf works |
| 347 | : |
| 348 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 349 | test "X$echo_testing_string" = 'X\t' && |
| 350 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 351 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 352 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 353 | export CONFIG_SHELL |
| 354 | SHELL="$CONFIG_SHELL" |
| 355 | export SHELL |
| 356 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 357 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = 'X\t' && |
| 359 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 360 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 362 | else |
| 363 | # maybe with a smaller string... |
| 364 | prev=: |
| 365 | |
| 366 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 367 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 368 | then |
| 369 | break |
| 370 | fi |
| 371 | prev="$cmd" |
| 372 | done |
| 373 | |
| 374 | if test "$prev" != 'sed 50q "$0"'; then |
| 375 | echo_test_string=`eval $prev` |
| 376 | export echo_test_string |
| 377 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 378 | else |
| 379 | # Oops. We lost completely, so just stick with echo. |
| 380 | echo=echo |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | fi |
| 385 | fi |
| 386 | fi |
| 387 | |
| 388 | # Copy echo and quote the copy suitably for passing to libtool from |
| 389 | # the Makefile, instead of quoting the original, which is used later. |
| 390 | ECHO=$echo |
| 391 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 392 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 393 | fi |
| 394 | |
| 395 | |
| 396 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 397 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 398 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 400 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 401 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 402 | # Name of the host. |
| 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 404 | # so uname gets run too. |
| 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 406 | |
| 407 | exec 6>&1 |
| 408 | |
| 409 | # |
| 410 | # Initializations. |
| 411 | # |
| 412 | ac_default_prefix=/usr/local |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 414 | cross_compiling=no |
| 415 | subdirs= |
| 416 | MFLAGS= |
| 417 | MAKEFLAGS= |
| 418 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 419 | |
| 420 | # Maximum number of lines to put in a shell here document. |
| 421 | # This variable seems obsolete. It should probably be removed, and |
| 422 | # only ac_max_sed_lines should be used. |
| 423 | : ${ac_max_here_lines=38} |
| 424 | |
| 425 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 426 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 427 | PACKAGE_TARNAME='-llvm-' |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.9cvs' |
| 429 | PACKAGE_STRING='llvm 1.9cvs' |
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" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 435 | ac_subdirs_all="$ac_subdirs_all projects/privbracket" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" |
| 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" |
| 438 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" |
Alkis Evlogimenos | eadc9ef | 2005-01-05 17:57:28 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/llvm-java" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 441 | ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 442 | ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 443 | # Factoring default headers for most tests. |
| 444 | ac_includes_default="\ |
| 445 | #include <stdio.h> |
| 446 | #if HAVE_SYS_TYPES_H |
| 447 | # include <sys/types.h> |
| 448 | #endif |
| 449 | #if HAVE_SYS_STAT_H |
| 450 | # include <sys/stat.h> |
| 451 | #endif |
| 452 | #if STDC_HEADERS |
| 453 | # include <stdlib.h> |
| 454 | # include <stddef.h> |
| 455 | #else |
| 456 | # if HAVE_STDLIB_H |
| 457 | # include <stdlib.h> |
| 458 | # endif |
| 459 | #endif |
| 460 | #if HAVE_STRING_H |
| 461 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 462 | # include <memory.h> |
| 463 | # endif |
| 464 | # include <string.h> |
| 465 | #endif |
| 466 | #if HAVE_STRINGS_H |
| 467 | # include <strings.h> |
| 468 | #endif |
| 469 | #if HAVE_INTTYPES_H |
| 470 | # include <inttypes.h> |
| 471 | #else |
| 472 | # if HAVE_STDINT_H |
| 473 | # include <stdint.h> |
| 474 | # endif |
| 475 | #endif |
| 476 | #if HAVE_UNISTD_H |
| 477 | # include <unistd.h> |
| 478 | #endif" |
| 479 | |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 480 | 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 LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON NM ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR BINPWD GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 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 LLVMGCC_VERSION LLVMGCC_MAJVERS 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] | 481 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 482 | |
| 483 | # Initialize some variables set by options. |
| 484 | ac_init_help= |
| 485 | ac_init_version=false |
| 486 | # The variables have the same names as the options, with |
| 487 | # dashes changed to underlines. |
| 488 | cache_file=/dev/null |
| 489 | exec_prefix=NONE |
| 490 | no_create= |
| 491 | no_recursion= |
| 492 | prefix=NONE |
| 493 | program_prefix=NONE |
| 494 | program_suffix=NONE |
| 495 | program_transform_name=s,x,x, |
| 496 | silent= |
| 497 | site= |
| 498 | srcdir= |
| 499 | verbose= |
| 500 | x_includes=NONE |
| 501 | x_libraries=NONE |
| 502 | |
| 503 | # Installation directory options. |
| 504 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 505 | # and all the variables that are supposed to be based on exec_prefix |
| 506 | # by default will actually change. |
| 507 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 508 | bindir='${exec_prefix}/bin' |
| 509 | sbindir='${exec_prefix}/sbin' |
| 510 | libexecdir='${exec_prefix}/libexec' |
| 511 | datadir='${prefix}/share' |
| 512 | sysconfdir='${prefix}/etc' |
| 513 | sharedstatedir='${prefix}/com' |
| 514 | localstatedir='${prefix}/var' |
| 515 | libdir='${exec_prefix}/lib' |
| 516 | includedir='${prefix}/include' |
| 517 | oldincludedir='/usr/include' |
| 518 | infodir='${prefix}/info' |
| 519 | mandir='${prefix}/man' |
| 520 | |
| 521 | ac_prev= |
| 522 | for ac_option |
| 523 | do |
| 524 | # If the previous option needs an argument, assign it. |
| 525 | if test -n "$ac_prev"; then |
| 526 | eval "$ac_prev=\$ac_option" |
| 527 | ac_prev= |
| 528 | continue |
| 529 | fi |
| 530 | |
| 531 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 532 | |
| 533 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 534 | |
| 535 | case $ac_option in |
| 536 | |
| 537 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 538 | ac_prev=bindir ;; |
| 539 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 540 | bindir=$ac_optarg ;; |
| 541 | |
| 542 | -build | --build | --buil | --bui | --bu) |
| 543 | ac_prev=build_alias ;; |
| 544 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 545 | build_alias=$ac_optarg ;; |
| 546 | |
| 547 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 548 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 549 | ac_prev=cache_file ;; |
| 550 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 551 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 552 | cache_file=$ac_optarg ;; |
| 553 | |
| 554 | --config-cache | -C) |
| 555 | cache_file=config.cache ;; |
| 556 | |
| 557 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 558 | ac_prev=datadir ;; |
| 559 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 560 | | --da=*) |
| 561 | datadir=$ac_optarg ;; |
| 562 | |
| 563 | -disable-* | --disable-*) |
| 564 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 565 | # Reject names that are not valid shell variable names. |
| 566 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 567 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 568 | { (exit 1); exit 1; }; } |
| 569 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 570 | eval "enable_$ac_feature=no" ;; |
| 571 | |
| 572 | -enable-* | --enable-*) |
| 573 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 574 | # Reject names that are not valid shell variable names. |
| 575 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 576 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 577 | { (exit 1); exit 1; }; } |
| 578 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 579 | case $ac_option in |
| 580 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 581 | *) ac_optarg=yes ;; |
| 582 | esac |
| 583 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 584 | |
| 585 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 586 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 587 | | --exec | --exe | --ex) |
| 588 | ac_prev=exec_prefix ;; |
| 589 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 590 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 591 | | --exec=* | --exe=* | --ex=*) |
| 592 | exec_prefix=$ac_optarg ;; |
| 593 | |
| 594 | -gas | --gas | --ga | --g) |
| 595 | # Obsolete; use --with-gas. |
| 596 | with_gas=yes ;; |
| 597 | |
| 598 | -help | --help | --hel | --he | -h) |
| 599 | ac_init_help=long ;; |
| 600 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 601 | ac_init_help=recursive ;; |
| 602 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 603 | ac_init_help=short ;; |
| 604 | |
| 605 | -host | --host | --hos | --ho) |
| 606 | ac_prev=host_alias ;; |
| 607 | -host=* | --host=* | --hos=* | --ho=*) |
| 608 | host_alias=$ac_optarg ;; |
| 609 | |
| 610 | -includedir | --includedir | --includedi | --included | --include \ |
| 611 | | --includ | --inclu | --incl | --inc) |
| 612 | ac_prev=includedir ;; |
| 613 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 614 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 615 | includedir=$ac_optarg ;; |
| 616 | |
| 617 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 618 | ac_prev=infodir ;; |
| 619 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 620 | infodir=$ac_optarg ;; |
| 621 | |
| 622 | -libdir | --libdir | --libdi | --libd) |
| 623 | ac_prev=libdir ;; |
| 624 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 625 | libdir=$ac_optarg ;; |
| 626 | |
| 627 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 628 | | --libexe | --libex | --libe) |
| 629 | ac_prev=libexecdir ;; |
| 630 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 631 | | --libexe=* | --libex=* | --libe=*) |
| 632 | libexecdir=$ac_optarg ;; |
| 633 | |
| 634 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 635 | | --localstate | --localstat | --localsta | --localst \ |
| 636 | | --locals | --local | --loca | --loc | --lo) |
| 637 | ac_prev=localstatedir ;; |
| 638 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 639 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 640 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 641 | localstatedir=$ac_optarg ;; |
| 642 | |
| 643 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 644 | ac_prev=mandir ;; |
| 645 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 646 | mandir=$ac_optarg ;; |
| 647 | |
| 648 | -nfp | --nfp | --nf) |
| 649 | # Obsolete; use --without-fp. |
| 650 | with_fp=no ;; |
| 651 | |
| 652 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 653 | | --no-cr | --no-c | -n) |
| 654 | no_create=yes ;; |
| 655 | |
| 656 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 657 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 658 | no_recursion=yes ;; |
| 659 | |
| 660 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 661 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 662 | | --oldin | --oldi | --old | --ol | --o) |
| 663 | ac_prev=oldincludedir ;; |
| 664 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 665 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 666 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 667 | oldincludedir=$ac_optarg ;; |
| 668 | |
| 669 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 670 | ac_prev=prefix ;; |
| 671 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 672 | prefix=$ac_optarg ;; |
| 673 | |
| 674 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 675 | | --program-pre | --program-pr | --program-p) |
| 676 | ac_prev=program_prefix ;; |
| 677 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 678 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 679 | program_prefix=$ac_optarg ;; |
| 680 | |
| 681 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 682 | | --program-suf | --program-su | --program-s) |
| 683 | ac_prev=program_suffix ;; |
| 684 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 685 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 686 | program_suffix=$ac_optarg ;; |
| 687 | |
| 688 | -program-transform-name | --program-transform-name \ |
| 689 | | --program-transform-nam | --program-transform-na \ |
| 690 | | --program-transform-n | --program-transform- \ |
| 691 | | --program-transform | --program-transfor \ |
| 692 | | --program-transfo | --program-transf \ |
| 693 | | --program-trans | --program-tran \ |
| 694 | | --progr-tra | --program-tr | --program-t) |
| 695 | ac_prev=program_transform_name ;; |
| 696 | -program-transform-name=* | --program-transform-name=* \ |
| 697 | | --program-transform-nam=* | --program-transform-na=* \ |
| 698 | | --program-transform-n=* | --program-transform-=* \ |
| 699 | | --program-transform=* | --program-transfor=* \ |
| 700 | | --program-transfo=* | --program-transf=* \ |
| 701 | | --program-trans=* | --program-tran=* \ |
| 702 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 703 | program_transform_name=$ac_optarg ;; |
| 704 | |
| 705 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 706 | | -silent | --silent | --silen | --sile | --sil) |
| 707 | silent=yes ;; |
| 708 | |
| 709 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 710 | ac_prev=sbindir ;; |
| 711 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 712 | | --sbi=* | --sb=*) |
| 713 | sbindir=$ac_optarg ;; |
| 714 | |
| 715 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 716 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 717 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 718 | | --sha | --sh) |
| 719 | ac_prev=sharedstatedir ;; |
| 720 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 721 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 722 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 723 | | --sha=* | --sh=*) |
| 724 | sharedstatedir=$ac_optarg ;; |
| 725 | |
| 726 | -site | --site | --sit) |
| 727 | ac_prev=site ;; |
| 728 | -site=* | --site=* | --sit=*) |
| 729 | site=$ac_optarg ;; |
| 730 | |
| 731 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 732 | ac_prev=srcdir ;; |
| 733 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 734 | srcdir=$ac_optarg ;; |
| 735 | |
| 736 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 737 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 738 | ac_prev=sysconfdir ;; |
| 739 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 740 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 741 | sysconfdir=$ac_optarg ;; |
| 742 | |
| 743 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 744 | ac_prev=target_alias ;; |
| 745 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 746 | target_alias=$ac_optarg ;; |
| 747 | |
| 748 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 749 | verbose=yes ;; |
| 750 | |
| 751 | -version | --version | --versio | --versi | --vers | -V) |
| 752 | ac_init_version=: ;; |
| 753 | |
| 754 | -with-* | --with-*) |
| 755 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 756 | # Reject names that are not valid shell variable names. |
| 757 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 758 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 759 | { (exit 1); exit 1; }; } |
| 760 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 761 | case $ac_option in |
| 762 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 763 | *) ac_optarg=yes ;; |
| 764 | esac |
| 765 | eval "with_$ac_package='$ac_optarg'" ;; |
| 766 | |
| 767 | -without-* | --without-*) |
| 768 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 769 | # Reject names that are not valid shell variable names. |
| 770 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 771 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 772 | { (exit 1); exit 1; }; } |
| 773 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 774 | eval "with_$ac_package=no" ;; |
| 775 | |
| 776 | --x) |
| 777 | # Obsolete; use --with-x. |
| 778 | with_x=yes ;; |
| 779 | |
| 780 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 781 | | --x-incl | --x-inc | --x-in | --x-i) |
| 782 | ac_prev=x_includes ;; |
| 783 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 784 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 785 | x_includes=$ac_optarg ;; |
| 786 | |
| 787 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 788 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 789 | ac_prev=x_libraries ;; |
| 790 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 791 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 792 | x_libraries=$ac_optarg ;; |
| 793 | |
| 794 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 795 | Try \`$0 --help' for more information." >&2 |
| 796 | { (exit 1); exit 1; }; } |
| 797 | ;; |
| 798 | |
| 799 | *=*) |
| 800 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 801 | # Reject names that are not valid shell variable names. |
| 802 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 803 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 804 | { (exit 1); exit 1; }; } |
| 805 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 806 | eval "$ac_envvar='$ac_optarg'" |
| 807 | export $ac_envvar ;; |
| 808 | |
| 809 | *) |
| 810 | # FIXME: should be removed in autoconf 3.0. |
| 811 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 812 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 813 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 814 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 815 | ;; |
| 816 | |
| 817 | esac |
| 818 | done |
| 819 | |
| 820 | if test -n "$ac_prev"; then |
| 821 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 822 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 823 | { (exit 1); exit 1; }; } |
| 824 | fi |
| 825 | |
| 826 | # Be sure to have absolute paths. |
| 827 | for ac_var in exec_prefix prefix |
| 828 | do |
| 829 | eval ac_val=$`echo $ac_var` |
| 830 | case $ac_val in |
| 831 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 832 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 833 | { (exit 1); exit 1; }; };; |
| 834 | esac |
| 835 | done |
| 836 | |
| 837 | # Be sure to have absolute paths. |
| 838 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 839 | localstatedir libdir includedir oldincludedir infodir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 840 | do |
| 841 | eval ac_val=$`echo $ac_var` |
| 842 | case $ac_val in |
| 843 | [\\/$]* | ?:[\\/]* ) ;; |
| 844 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 845 | { (exit 1); exit 1; }; };; |
| 846 | esac |
| 847 | done |
| 848 | |
| 849 | # There might be people who depend on the old broken behavior: `$host' |
| 850 | # used to hold the argument of --host etc. |
| 851 | # FIXME: To remove some day. |
| 852 | build=$build_alias |
| 853 | host=$host_alias |
| 854 | target=$target_alias |
| 855 | |
| 856 | # FIXME: To remove some day. |
| 857 | if test "x$host_alias" != x; then |
| 858 | if test "x$build_alias" = x; then |
| 859 | cross_compiling=maybe |
| 860 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 861 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 862 | elif test "x$build_alias" != "x$host_alias"; then |
| 863 | cross_compiling=yes |
| 864 | fi |
| 865 | fi |
| 866 | |
| 867 | ac_tool_prefix= |
| 868 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 869 | |
| 870 | test "$silent" = yes && exec 6>/dev/null |
| 871 | |
| 872 | |
| 873 | # Find the source files, if location was not specified. |
| 874 | if test -z "$srcdir"; then |
| 875 | ac_srcdir_defaulted=yes |
| 876 | # Try the directory containing this script, then its parent. |
| 877 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 878 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 879 | X"$0" : 'X\(//\)[^/]' \| \ |
| 880 | X"$0" : 'X\(//\)$' \| \ |
| 881 | X"$0" : 'X\(/\)' \| \ |
| 882 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 883 | echo X"$0" | |
| 884 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 885 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 886 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 887 | /^X\(\/\).*/{ s//\1/; q; } |
| 888 | s/.*/./; q'` |
| 889 | srcdir=$ac_confdir |
| 890 | if test ! -r $srcdir/$ac_unique_file; then |
| 891 | srcdir=.. |
| 892 | fi |
| 893 | else |
| 894 | ac_srcdir_defaulted=no |
| 895 | fi |
| 896 | if test ! -r $srcdir/$ac_unique_file; then |
| 897 | if test "$ac_srcdir_defaulted" = yes; then |
| 898 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 899 | { (exit 1); exit 1; }; } |
| 900 | else |
| 901 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 902 | { (exit 1); exit 1; }; } |
| 903 | fi |
| 904 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 905 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 906 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 907 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 908 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 909 | ac_env_build_alias_set=${build_alias+set} |
| 910 | ac_env_build_alias_value=$build_alias |
| 911 | ac_cv_env_build_alias_set=${build_alias+set} |
| 912 | ac_cv_env_build_alias_value=$build_alias |
| 913 | ac_env_host_alias_set=${host_alias+set} |
| 914 | ac_env_host_alias_value=$host_alias |
| 915 | ac_cv_env_host_alias_set=${host_alias+set} |
| 916 | ac_cv_env_host_alias_value=$host_alias |
| 917 | ac_env_target_alias_set=${target_alias+set} |
| 918 | ac_env_target_alias_value=$target_alias |
| 919 | ac_cv_env_target_alias_set=${target_alias+set} |
| 920 | ac_cv_env_target_alias_value=$target_alias |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | ac_env_CC_set=${CC+set} |
| 922 | ac_env_CC_value=$CC |
| 923 | ac_cv_env_CC_set=${CC+set} |
| 924 | ac_cv_env_CC_value=$CC |
| 925 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 926 | ac_env_CFLAGS_value=$CFLAGS |
| 927 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 928 | ac_cv_env_CFLAGS_value=$CFLAGS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 929 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 930 | ac_env_LDFLAGS_value=$LDFLAGS |
| 931 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 932 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 933 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 934 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 935 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 936 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 937 | ac_env_CPP_set=${CPP+set} |
| 938 | ac_env_CPP_value=$CPP |
| 939 | ac_cv_env_CPP_set=${CPP+set} |
| 940 | ac_cv_env_CPP_value=$CPP |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 941 | ac_env_CXX_set=${CXX+set} |
| 942 | ac_env_CXX_value=$CXX |
| 943 | ac_cv_env_CXX_set=${CXX+set} |
| 944 | ac_cv_env_CXX_value=$CXX |
| 945 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 946 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 947 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 948 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 949 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 950 | ac_env_CXXCPP_value=$CXXCPP |
| 951 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 952 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 953 | ac_env_F77_set=${F77+set} |
| 954 | ac_env_F77_value=$F77 |
| 955 | ac_cv_env_F77_set=${F77+set} |
| 956 | ac_cv_env_F77_value=$F77 |
| 957 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 958 | ac_env_FFLAGS_value=$FFLAGS |
| 959 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 960 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 961 | |
| 962 | # |
| 963 | # Report the --help message. |
| 964 | # |
| 965 | if test "$ac_init_help" = "long"; then |
| 966 | # Omit some internal or obsolete options to make the list less imposing. |
| 967 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 968 | cat <<_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 969 | \`configure' configures llvm 1.9cvs to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 970 | |
| 971 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 972 | |
| 973 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 974 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 975 | |
| 976 | Defaults for the options are specified in brackets. |
| 977 | |
| 978 | Configuration: |
| 979 | -h, --help display this help and exit |
| 980 | --help=short display options specific to this package |
| 981 | --help=recursive display the short help of all the included packages |
| 982 | -V, --version display version information and exit |
| 983 | -q, --quiet, --silent do not print \`checking...' messages |
| 984 | --cache-file=FILE cache test results in FILE [disabled] |
| 985 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 986 | -n, --no-create do not create output files |
| 987 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 988 | |
| 989 | _ACEOF |
| 990 | |
| 991 | cat <<_ACEOF |
| 992 | Installation directories: |
| 993 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 994 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 995 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 996 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 997 | |
| 998 | By default, \`make install' will install all the files in |
| 999 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1000 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1001 | for instance \`--prefix=\$HOME'. |
| 1002 | |
| 1003 | For better control, use the options below. |
| 1004 | |
| 1005 | Fine tuning of the installation directories: |
| 1006 | --bindir=DIR user executables [EPREFIX/bin] |
| 1007 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1008 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1009 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1010 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1011 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1012 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1013 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1014 | --includedir=DIR C header files [PREFIX/include] |
| 1015 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1016 | --infodir=DIR info documentation [PREFIX/info] |
| 1017 | --mandir=DIR man documentation [PREFIX/man] |
| 1018 | _ACEOF |
| 1019 | |
| 1020 | cat <<\_ACEOF |
| 1021 | |
| 1022 | System types: |
| 1023 | --build=BUILD configure for building on BUILD [guessed] |
| 1024 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1025 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1026 | _ACEOF |
| 1027 | fi |
| 1028 | |
| 1029 | if test -n "$ac_init_help"; then |
| 1030 | case $ac_init_help in |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1031 | short | recursive ) echo "Configuration of llvm 1.9cvs:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1032 | esac |
| 1033 | cat <<\_ACEOF |
| 1034 | |
| 1035 | Optional Features: |
| 1036 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1037 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1038 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1039 | --enable-assertions |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 1040 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1041 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1042 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1043 | --enable-threads Use threads if available (default is YES) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1044 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1045 | all,host-only,{target-name} (default=all) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1046 | --enable-ltdl-install install libltdl |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1047 | --enable-shared[=PKGS] |
| 1048 | build shared libraries [default=yes] |
| 1049 | --enable-static[=PKGS] |
| 1050 | build static libraries [default=yes] |
| 1051 | --enable-fast-install[=PKGS] |
| 1052 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1054 | |
| 1055 | Optional Packages: |
| 1056 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1057 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1058 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1059 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1060 | --with-extra-options Specify addtional options to compile LLVM with |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1061 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1062 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1063 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1064 | both] |
| 1065 | --with-tags[=TAGS] |
| 1066 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1067 | |
| 1068 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1069 | CC C compiler command |
| 1070 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1071 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1072 | nonstandard directory <lib dir> |
| 1073 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1074 | headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1075 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1076 | CXX C++ compiler command |
| 1077 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1078 | CXXCPP C++ preprocessor |
| 1079 | F77 Fortran 77 compiler command |
| 1080 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1081 | |
| 1082 | Use these variables to override the choices made by `configure' or to help |
| 1083 | it to find libraries and programs with nonstandard names/locations. |
| 1084 | |
| 1085 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1086 | _ACEOF |
| 1087 | fi |
| 1088 | |
| 1089 | if test "$ac_init_help" = "recursive"; then |
| 1090 | # If there are subdirs, report their specific --help. |
| 1091 | ac_popdir=`pwd` |
| 1092 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1093 | test -d $ac_dir || continue |
| 1094 | ac_builddir=. |
| 1095 | |
| 1096 | if test "$ac_dir" != .; then |
| 1097 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1098 | # A "../" for each directory in $ac_dir_suffix. |
| 1099 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1100 | else |
| 1101 | ac_dir_suffix= ac_top_builddir= |
| 1102 | fi |
| 1103 | |
| 1104 | case $srcdir in |
| 1105 | .) # No --srcdir option. We are building in place. |
| 1106 | ac_srcdir=. |
| 1107 | if test -z "$ac_top_builddir"; then |
| 1108 | ac_top_srcdir=. |
| 1109 | else |
| 1110 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1111 | fi ;; |
| 1112 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1113 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1114 | ac_top_srcdir=$srcdir ;; |
| 1115 | *) # Relative path. |
| 1116 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1117 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1118 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1119 | |
| 1120 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1121 | # the directories may not exist. |
| 1122 | case `pwd` in |
| 1123 | .) ac_abs_builddir="$ac_dir";; |
| 1124 | *) |
| 1125 | case "$ac_dir" in |
| 1126 | .) ac_abs_builddir=`pwd`;; |
| 1127 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1128 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1129 | esac;; |
| 1130 | esac |
| 1131 | case $ac_abs_builddir in |
| 1132 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1133 | *) |
| 1134 | case ${ac_top_builddir}. in |
| 1135 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1136 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1137 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1138 | esac;; |
| 1139 | esac |
| 1140 | case $ac_abs_builddir in |
| 1141 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1142 | *) |
| 1143 | case $ac_srcdir in |
| 1144 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1145 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1146 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1147 | esac;; |
| 1148 | esac |
| 1149 | case $ac_abs_builddir in |
| 1150 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1151 | *) |
| 1152 | case $ac_top_srcdir in |
| 1153 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1154 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1155 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1156 | esac;; |
| 1157 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1158 | |
| 1159 | cd $ac_dir |
| 1160 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1161 | if test -f $ac_srcdir/configure.gnu; then |
| 1162 | echo |
| 1163 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1164 | elif test -f $ac_srcdir/configure; then |
| 1165 | echo |
| 1166 | $SHELL $ac_srcdir/configure --help=recursive |
| 1167 | elif test -f $ac_srcdir/configure.ac || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1168 | test -f $ac_srcdir/configure.in; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1169 | echo |
| 1170 | $ac_configure --help |
| 1171 | else |
| 1172 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1173 | fi |
| 1174 | cd $ac_popdir |
| 1175 | done |
| 1176 | fi |
| 1177 | |
| 1178 | test -n "$ac_init_help" && exit 0 |
| 1179 | if $ac_init_version; then |
| 1180 | cat <<\_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1181 | llvm configure 1.9cvs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1182 | generated by GNU Autoconf 2.59 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1184 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1185 | This configure script is free software; the Free Software Foundation |
| 1186 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1187 | |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 1188 | Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1189 | _ACEOF |
| 1190 | exit 0 |
| 1191 | fi |
| 1192 | exec 5>config.log |
| 1193 | cat >&5 <<_ACEOF |
| 1194 | This file contains any messages produced by compilers while |
| 1195 | running configure, to aid debugging if configure makes a mistake. |
| 1196 | |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1197 | It was created by llvm $as_me 1.9cvs, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1198 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1199 | |
| 1200 | $ $0 $@ |
| 1201 | |
| 1202 | _ACEOF |
| 1203 | { |
| 1204 | cat <<_ASUNAME |
| 1205 | ## --------- ## |
| 1206 | ## Platform. ## |
| 1207 | ## --------- ## |
| 1208 | |
| 1209 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1210 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1211 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1212 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1213 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1214 | |
| 1215 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1216 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1217 | |
| 1218 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1219 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1220 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1221 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1222 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1223 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1224 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1225 | |
| 1226 | _ASUNAME |
| 1227 | |
| 1228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1229 | for as_dir in $PATH |
| 1230 | do |
| 1231 | IFS=$as_save_IFS |
| 1232 | test -z "$as_dir" && as_dir=. |
| 1233 | echo "PATH: $as_dir" |
| 1234 | done |
| 1235 | |
| 1236 | } >&5 |
| 1237 | |
| 1238 | cat >&5 <<_ACEOF |
| 1239 | |
| 1240 | |
| 1241 | ## ----------- ## |
| 1242 | ## Core tests. ## |
| 1243 | ## ----------- ## |
| 1244 | |
| 1245 | _ACEOF |
| 1246 | |
| 1247 | |
| 1248 | # Keep a trace of the command line. |
| 1249 | # 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] | 1250 | # 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] | 1251 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1252 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1253 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1254 | ac_configure_args0= |
| 1255 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1256 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1257 | ac_must_keep_next=false |
| 1258 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1259 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1260 | for ac_arg |
| 1261 | do |
| 1262 | case $ac_arg in |
| 1263 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1264 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1265 | | -silent | --silent | --silen | --sile | --sil) |
| 1266 | continue ;; |
| 1267 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1268 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1269 | esac |
| 1270 | case $ac_pass in |
| 1271 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1272 | 2) |
| 1273 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1274 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1275 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1276 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1277 | case $ac_arg in |
| 1278 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1279 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1280 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1281 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1282 | case "$ac_configure_args0 " in |
| 1283 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1284 | esac |
| 1285 | ;; |
| 1286 | -* ) ac_must_keep_next=true ;; |
| 1287 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1288 | fi |
| 1289 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1290 | # Get rid of the leading space. |
| 1291 | ac_sep=" " |
| 1292 | ;; |
| 1293 | esac |
| 1294 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1295 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1296 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1297 | $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] | 1298 | |
| 1299 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1300 | # config.log. We remove comments because anyway the quotes in there |
| 1301 | # would cause problems or look ugly. |
| 1302 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1303 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1304 | trap 'exit_status=$? |
| 1305 | # Save into config.log some information that might help in debugging. |
| 1306 | { |
| 1307 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1308 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1309 | cat <<\_ASBOX |
| 1310 | ## ---------------- ## |
| 1311 | ## Cache variables. ## |
| 1312 | ## ---------------- ## |
| 1313 | _ASBOX |
| 1314 | echo |
| 1315 | # The following way of writing the cache mishandles newlines in values, |
| 1316 | { |
| 1317 | (set) 2>&1 | |
| 1318 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1319 | *ac_space=\ *) |
| 1320 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1321 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1322 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1323 | ;; |
| 1324 | *) |
| 1325 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1326 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1327 | ;; |
| 1328 | esac; |
| 1329 | } |
| 1330 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1331 | |
| 1332 | cat <<\_ASBOX |
| 1333 | ## ----------------- ## |
| 1334 | ## Output variables. ## |
| 1335 | ## ----------------- ## |
| 1336 | _ASBOX |
| 1337 | echo |
| 1338 | for ac_var in $ac_subst_vars |
| 1339 | do |
| 1340 | eval ac_val=$`echo $ac_var` |
| 1341 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1342 | done | sort |
| 1343 | echo |
| 1344 | |
| 1345 | if test -n "$ac_subst_files"; then |
| 1346 | cat <<\_ASBOX |
| 1347 | ## ------------- ## |
| 1348 | ## Output files. ## |
| 1349 | ## ------------- ## |
| 1350 | _ASBOX |
| 1351 | echo |
| 1352 | for ac_var in $ac_subst_files |
| 1353 | do |
| 1354 | eval ac_val=$`echo $ac_var` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1355 | echo "$ac_var='"'"'$ac_val'"'"'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1356 | done | sort |
| 1357 | echo |
| 1358 | fi |
| 1359 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1360 | if test -s confdefs.h; then |
| 1361 | cat <<\_ASBOX |
| 1362 | ## ----------- ## |
| 1363 | ## confdefs.h. ## |
| 1364 | ## ----------- ## |
| 1365 | _ASBOX |
| 1366 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1367 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1368 | echo |
| 1369 | fi |
| 1370 | test "$ac_signal" != 0 && |
| 1371 | echo "$as_me: caught signal $ac_signal" |
| 1372 | echo "$as_me: exit $exit_status" |
| 1373 | } >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1374 | rm -f core *.core && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1375 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1376 | exit $exit_status |
| 1377 | ' 0 |
| 1378 | for ac_signal in 1 2 13 15; do |
| 1379 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1380 | done |
| 1381 | ac_signal=0 |
| 1382 | |
| 1383 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1384 | rm -rf conftest* confdefs.h |
| 1385 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1386 | echo >confdefs.h |
| 1387 | |
| 1388 | # Predefined preprocessor variables. |
| 1389 | |
| 1390 | cat >>confdefs.h <<_ACEOF |
| 1391 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1392 | _ACEOF |
| 1393 | |
| 1394 | |
| 1395 | cat >>confdefs.h <<_ACEOF |
| 1396 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1397 | _ACEOF |
| 1398 | |
| 1399 | |
| 1400 | cat >>confdefs.h <<_ACEOF |
| 1401 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1402 | _ACEOF |
| 1403 | |
| 1404 | |
| 1405 | cat >>confdefs.h <<_ACEOF |
| 1406 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1407 | _ACEOF |
| 1408 | |
| 1409 | |
| 1410 | cat >>confdefs.h <<_ACEOF |
| 1411 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1412 | _ACEOF |
| 1413 | |
| 1414 | |
| 1415 | # Let the site file select an alternate cache file if it wants to. |
| 1416 | # Prefer explicitly selected file to automatically selected ones. |
| 1417 | if test -z "$CONFIG_SITE"; then |
| 1418 | if test "x$prefix" != xNONE; then |
| 1419 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1420 | else |
| 1421 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1422 | fi |
| 1423 | fi |
| 1424 | for ac_site_file in $CONFIG_SITE; do |
| 1425 | if test -r "$ac_site_file"; then |
| 1426 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1427 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1428 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1429 | . "$ac_site_file" |
| 1430 | fi |
| 1431 | done |
| 1432 | |
| 1433 | if test -r "$cache_file"; then |
| 1434 | # Some versions of bash will fail to source /dev/null (special |
| 1435 | # files actually), so we avoid doing that. |
| 1436 | if test -f "$cache_file"; then |
| 1437 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1438 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1439 | case $cache_file in |
| 1440 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1441 | *) . ./$cache_file;; |
| 1442 | esac |
| 1443 | fi |
| 1444 | else |
| 1445 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1446 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1447 | >$cache_file |
| 1448 | fi |
| 1449 | |
| 1450 | # Check that the precious variables saved in the cache have kept the same |
| 1451 | # value. |
| 1452 | ac_cache_corrupted=false |
| 1453 | for ac_var in `(set) 2>&1 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1454 | 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] | 1455 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1456 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1457 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1458 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1459 | case $ac_old_set,$ac_new_set in |
| 1460 | set,) |
| 1461 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1462 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1463 | ac_cache_corrupted=: ;; |
| 1464 | ,set) |
| 1465 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1466 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1467 | ac_cache_corrupted=: ;; |
| 1468 | ,);; |
| 1469 | *) |
| 1470 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1471 | { 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] | 1472 | 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] | 1473 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1475 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1476 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1477 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | fi;; |
| 1479 | esac |
| 1480 | # Pass precious variables to config.status. |
| 1481 | if test "$ac_new_set" = set; then |
| 1482 | case $ac_new_val in |
| 1483 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1484 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1485 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1486 | esac |
| 1487 | case " $ac_configure_args " in |
| 1488 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1489 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1490 | esac |
| 1491 | fi |
| 1492 | done |
| 1493 | if $ac_cache_corrupted; then |
| 1494 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1495 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1496 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1497 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1498 | { (exit 1); exit 1; }; } |
| 1499 | fi |
| 1500 | |
| 1501 | ac_ext=c |
| 1502 | ac_cpp='$CPP $CPPFLAGS' |
| 1503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | |
| 1522 | |
| 1523 | |
| 1524 | |
| 1525 | |
| 1526 | |
| 1527 | |
| 1528 | |
| 1529 | |
| 1530 | |
| 1531 | |
| 1532 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1533 | |
Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 1534 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1535 | |
| 1536 | |
| 1537 | |
| 1538 | |
| 1539 | |
| 1540 | |
| 1541 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1543 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | if test -f $ac_dir/install-sh; then |
| 1545 | ac_aux_dir=$ac_dir |
| 1546 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1547 | break |
| 1548 | elif test -f $ac_dir/install.sh; then |
| 1549 | ac_aux_dir=$ac_dir |
| 1550 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1551 | break |
| 1552 | elif test -f $ac_dir/shtool; then |
| 1553 | ac_aux_dir=$ac_dir |
| 1554 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1555 | break |
| 1556 | fi |
| 1557 | done |
| 1558 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1559 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1560 | 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] | 1561 | { (exit 1); exit 1; }; } |
| 1562 | fi |
| 1563 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1564 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1565 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1566 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1567 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1568 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1569 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 1570 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1571 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1572 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1573 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1574 | fi |
| 1575 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1576 | for i in `ls ${srcdir}/projects` |
| 1577 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1578 | if test -d ${srcdir}/projects/${i} ; then |
| 1579 | case ${i} in |
| 1580 | "CVS") ;; |
| 1581 | "sample") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1582 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1583 | subdirs="$subdirs projects/sample" |
| 1584 | ;; |
| 1585 | "Stacker") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1586 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1587 | subdirs="$subdirs projects/Stacker" |
| 1588 | ;; |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1589 | "privbracket") |
| 1590 | |
| 1591 | subdirs="$subdirs projects/privbracket" |
| 1592 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1593 | "llvm-test") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1594 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1595 | subdirs="$subdirs projects/llvm-test" |
| 1596 | ;; |
| 1597 | "llvm-reopt") |
| 1598 | |
| 1599 | subdirs="$subdirs projects/llvm-reopt" |
| 1600 | ;; |
| 1601 | "llvm-gcc") |
| 1602 | |
| 1603 | subdirs="$subdirs projects/llvm-gcc" |
| 1604 | ;; |
Alkis Evlogimenos | 7bd1ede | 2005-01-16 09:44:58 +0000 | [diff] [blame] | 1605 | "llvm-java") |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1606 | |
Alkis Evlogimenos | ae192d3 | 2005-01-14 07:52:28 +0000 | [diff] [blame] | 1607 | subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1608 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1609 | "llvm-tv") |
| 1610 | |
| 1611 | subdirs="$subdirs projects/llvm-tv" |
| 1612 | ;; |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1613 | "llvm-poolalloc") |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1614 | |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1615 | subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1616 | ;; |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 1617 | "llvm-kernel") |
| 1618 | |
| 1619 | subdirs="$subdirs projects/llvm-kernel" |
| 1620 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1621 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1622 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1623 | 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] | 1624 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1625 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1626 | fi |
| 1627 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1628 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1629 | |
| 1630 | # Make sure we can run config.sub. |
| 1631 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1632 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1633 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1634 | { (exit 1); exit 1; }; } |
| 1635 | |
| 1636 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1637 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1638 | if test "${ac_cv_build+set}" = set; then |
| 1639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1640 | else |
| 1641 | ac_cv_build_alias=$build_alias |
| 1642 | test -z "$ac_cv_build_alias" && |
| 1643 | ac_cv_build_alias=`$ac_config_guess` |
| 1644 | test -z "$ac_cv_build_alias" && |
| 1645 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1646 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1647 | { (exit 1); exit 1; }; } |
| 1648 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1649 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1650 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1651 | { (exit 1); exit 1; }; } |
| 1652 | |
| 1653 | fi |
| 1654 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1655 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1656 | build=$ac_cv_build |
| 1657 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1658 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1659 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1660 | |
| 1661 | |
| 1662 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1663 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1664 | if test "${ac_cv_host+set}" = set; then |
| 1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1666 | else |
| 1667 | ac_cv_host_alias=$host_alias |
| 1668 | test -z "$ac_cv_host_alias" && |
| 1669 | ac_cv_host_alias=$ac_cv_build_alias |
| 1670 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1671 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1672 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1673 | { (exit 1); exit 1; }; } |
| 1674 | |
| 1675 | fi |
| 1676 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1677 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1678 | host=$ac_cv_host |
| 1679 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1680 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1681 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1682 | |
| 1683 | |
| 1684 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1685 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1686 | if test "${ac_cv_target+set}" = set; then |
| 1687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1688 | else |
| 1689 | ac_cv_target_alias=$target_alias |
| 1690 | test "x$ac_cv_target_alias" = "x" && |
| 1691 | ac_cv_target_alias=$ac_cv_host_alias |
| 1692 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1693 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1694 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1695 | { (exit 1); exit 1; }; } |
| 1696 | |
| 1697 | fi |
| 1698 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1699 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1700 | target=$ac_cv_target |
| 1701 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1702 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1703 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1704 | |
| 1705 | |
| 1706 | # The aliases save the names the user supplied, while $host etc. |
| 1707 | # will get canonicalized. |
| 1708 | test -n "$target_alias" && |
| 1709 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1710 | NONENONEs,x,x, && |
| 1711 | program_prefix=${target_alias}- |
| 1712 | |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 1713 | echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 1714 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6 |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1715 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1717 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 1718 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1719 | *-*-aix*) |
| 1720 | llvm_cv_os_type="AIX" |
| 1721 | llvm_cv_platform_type="Unix" ;; |
| 1722 | *-*-cygwin*) |
| 1723 | llvm_cv_os_type="Cygwin" |
| 1724 | llvm_cv_platform_type="Unix" ;; |
| 1725 | *-*-darwin*) |
| 1726 | llvm_cv_os_type="Darwin" |
| 1727 | llvm_cv_platform_type="Unix" ;; |
| 1728 | *-*-freebsd*) |
| 1729 | llvm_cv_os_type="FreeBSD" |
| 1730 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 1731 | *-*-openbsd*) |
| 1732 | llvm_cv_os_type="OpenBSD" |
| 1733 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 1734 | *-*-hpux*) |
| 1735 | llvm_cv_os_type="HP-UX" |
| 1736 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1737 | *-*-interix*) |
| 1738 | llvm_cv_os_type="Interix" |
| 1739 | llvm_cv_platform_type="Unix" ;; |
| 1740 | *-*-linux*) |
| 1741 | llvm_cv_os_type="Linux" |
| 1742 | llvm_cv_platform_type="Unix" ;; |
| 1743 | *-*-solaris*) |
| 1744 | llvm_cv_os_type="SunOS" |
| 1745 | llvm_cv_platform_type="Unix" ;; |
| 1746 | *-*-win32*) |
| 1747 | llvm_cv_os_type="Win32" |
| 1748 | llvm_cv_platform_type="Win32" ;; |
| 1749 | *-*-mingw*) |
| 1750 | llvm_cv_os_type="MingW" |
| 1751 | llvm_cv_platform_type="Win32" ;; |
| 1752 | *) |
| 1753 | llvm_cv_os_type="Unknown" |
| 1754 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1755 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1756 | fi |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1757 | echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 1758 | echo "${ECHO_T}$llvm_cv_os_type" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1760 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 1761 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 1762 | 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] | 1763 | { (exit 1); exit 1; }; } |
| 1764 | fi |
| 1765 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1766 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1767 | |
| 1768 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1769 | case $llvm_cv_platform_type in |
| 1770 | Unix) |
| 1771 | |
| 1772 | cat >>confdefs.h <<\_ACEOF |
| 1773 | #define LLVM_ON_UNIX 1 |
| 1774 | _ACEOF |
| 1775 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1776 | LLVM_ON_UNIX=1 |
| 1777 | |
| 1778 | LLVM_ON_WIN32=0 |
| 1779 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1780 | ;; |
| 1781 | Win32) |
| 1782 | |
| 1783 | cat >>confdefs.h <<\_ACEOF |
| 1784 | #define LLVM_ON_WIN32 1 |
| 1785 | _ACEOF |
| 1786 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1787 | LLVM_ON_UNIX=0 |
| 1788 | |
| 1789 | LLVM_ON_WIN32=1 |
| 1790 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1791 | ;; |
| 1792 | esac |
| 1793 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1794 | echo "$as_me:$LINENO: checking target architecture" >&5 |
| 1795 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1796 | if test "${llvm_cv_target_arch+set}" = set; then |
| 1797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1798 | else |
| 1799 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1800 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 1801 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1802 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 1803 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 1804 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 1805 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1806 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1807 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1808 | fi |
| 1809 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 1810 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1811 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1812 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 1813 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 1814 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 1815 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1816 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1817 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1818 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1819 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1820 | ac_ext=c |
| 1821 | ac_cpp='$CPP $CPPFLAGS' |
| 1822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1825 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1826 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1827 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1830 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1832 | else |
| 1833 | if test -n "$CC"; then |
| 1834 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1835 | else |
| 1836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1837 | for as_dir in $PATH |
| 1838 | do |
| 1839 | IFS=$as_save_IFS |
| 1840 | test -z "$as_dir" && as_dir=. |
| 1841 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1843 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1845 | break 2 |
| 1846 | fi |
| 1847 | done |
| 1848 | done |
| 1849 | |
| 1850 | fi |
| 1851 | fi |
| 1852 | CC=$ac_cv_prog_CC |
| 1853 | if test -n "$CC"; then |
| 1854 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1855 | echo "${ECHO_T}$CC" >&6 |
| 1856 | else |
| 1857 | echo "$as_me:$LINENO: result: no" >&5 |
| 1858 | echo "${ECHO_T}no" >&6 |
| 1859 | fi |
| 1860 | |
| 1861 | fi |
| 1862 | if test -z "$ac_cv_prog_CC"; then |
| 1863 | ac_ct_CC=$CC |
| 1864 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1865 | set dummy gcc; ac_word=$2 |
| 1866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1868 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1870 | else |
| 1871 | if test -n "$ac_ct_CC"; then |
| 1872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1873 | else |
| 1874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1875 | for as_dir in $PATH |
| 1876 | do |
| 1877 | IFS=$as_save_IFS |
| 1878 | test -z "$as_dir" && as_dir=. |
| 1879 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1881 | ac_cv_prog_ac_ct_CC="gcc" |
| 1882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1883 | break 2 |
| 1884 | fi |
| 1885 | done |
| 1886 | done |
| 1887 | |
| 1888 | fi |
| 1889 | fi |
| 1890 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1891 | if test -n "$ac_ct_CC"; then |
| 1892 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1893 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1894 | else |
| 1895 | echo "$as_me:$LINENO: result: no" >&5 |
| 1896 | echo "${ECHO_T}no" >&6 |
| 1897 | fi |
| 1898 | |
| 1899 | CC=$ac_ct_CC |
| 1900 | else |
| 1901 | CC="$ac_cv_prog_CC" |
| 1902 | fi |
| 1903 | |
| 1904 | if test -z "$CC"; then |
| 1905 | if test -n "$ac_tool_prefix"; then |
| 1906 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1907 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1908 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1910 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1912 | else |
| 1913 | if test -n "$CC"; then |
| 1914 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1915 | else |
| 1916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1917 | for as_dir in $PATH |
| 1918 | do |
| 1919 | IFS=$as_save_IFS |
| 1920 | test -z "$as_dir" && as_dir=. |
| 1921 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1922 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1923 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1925 | break 2 |
| 1926 | fi |
| 1927 | done |
| 1928 | done |
| 1929 | |
| 1930 | fi |
| 1931 | fi |
| 1932 | CC=$ac_cv_prog_CC |
| 1933 | if test -n "$CC"; then |
| 1934 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1935 | echo "${ECHO_T}$CC" >&6 |
| 1936 | else |
| 1937 | echo "$as_me:$LINENO: result: no" >&5 |
| 1938 | echo "${ECHO_T}no" >&6 |
| 1939 | fi |
| 1940 | |
| 1941 | fi |
| 1942 | if test -z "$ac_cv_prog_CC"; then |
| 1943 | ac_ct_CC=$CC |
| 1944 | # Extract the first word of "cc", so it can be a program name with args. |
| 1945 | set dummy cc; ac_word=$2 |
| 1946 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1947 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1948 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1950 | else |
| 1951 | if test -n "$ac_ct_CC"; then |
| 1952 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1953 | else |
| 1954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1955 | for as_dir in $PATH |
| 1956 | do |
| 1957 | IFS=$as_save_IFS |
| 1958 | test -z "$as_dir" && as_dir=. |
| 1959 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1960 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1961 | ac_cv_prog_ac_ct_CC="cc" |
| 1962 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1963 | break 2 |
| 1964 | fi |
| 1965 | done |
| 1966 | done |
| 1967 | |
| 1968 | fi |
| 1969 | fi |
| 1970 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1971 | if test -n "$ac_ct_CC"; then |
| 1972 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1973 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1974 | else |
| 1975 | echo "$as_me:$LINENO: result: no" >&5 |
| 1976 | echo "${ECHO_T}no" >&6 |
| 1977 | fi |
| 1978 | |
| 1979 | CC=$ac_ct_CC |
| 1980 | else |
| 1981 | CC="$ac_cv_prog_CC" |
| 1982 | fi |
| 1983 | |
| 1984 | fi |
| 1985 | if test -z "$CC"; then |
| 1986 | # Extract the first word of "cc", so it can be a program name with args. |
| 1987 | set dummy cc; ac_word=$2 |
| 1988 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1990 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1992 | else |
| 1993 | if test -n "$CC"; then |
| 1994 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1995 | else |
| 1996 | ac_prog_rejected=no |
| 1997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1998 | for as_dir in $PATH |
| 1999 | do |
| 2000 | IFS=$as_save_IFS |
| 2001 | test -z "$as_dir" && as_dir=. |
| 2002 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2004 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2005 | ac_prog_rejected=yes |
| 2006 | continue |
| 2007 | fi |
| 2008 | ac_cv_prog_CC="cc" |
| 2009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2010 | break 2 |
| 2011 | fi |
| 2012 | done |
| 2013 | done |
| 2014 | |
| 2015 | if test $ac_prog_rejected = yes; then |
| 2016 | # We found a bogon in the path, so make sure we never use it. |
| 2017 | set dummy $ac_cv_prog_CC |
| 2018 | shift |
| 2019 | if test $# != 0; then |
| 2020 | # We chose a different compiler from the bogus one. |
| 2021 | # However, it has the same basename, so the bogon will be chosen |
| 2022 | # first if we set CC to just the basename; use the full file name. |
| 2023 | shift |
| 2024 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2025 | fi |
| 2026 | fi |
| 2027 | fi |
| 2028 | fi |
| 2029 | CC=$ac_cv_prog_CC |
| 2030 | if test -n "$CC"; then |
| 2031 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2032 | echo "${ECHO_T}$CC" >&6 |
| 2033 | else |
| 2034 | echo "$as_me:$LINENO: result: no" >&5 |
| 2035 | echo "${ECHO_T}no" >&6 |
| 2036 | fi |
| 2037 | |
| 2038 | fi |
| 2039 | if test -z "$CC"; then |
| 2040 | if test -n "$ac_tool_prefix"; then |
| 2041 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2042 | do |
| 2043 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2044 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2047 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2049 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2050 | if test -n "$CC"; then |
| 2051 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2052 | else |
| 2053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2054 | for as_dir in $PATH |
| 2055 | do |
| 2056 | IFS=$as_save_IFS |
| 2057 | test -z "$as_dir" && as_dir=. |
| 2058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2060 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2062 | break 2 |
| 2063 | fi |
| 2064 | done |
| 2065 | done |
| 2066 | |
| 2067 | fi |
| 2068 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 | CC=$ac_cv_prog_CC |
| 2070 | if test -n "$CC"; then |
| 2071 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2072 | echo "${ECHO_T}$CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2073 | else |
| 2074 | echo "$as_me:$LINENO: result: no" >&5 |
| 2075 | echo "${ECHO_T}no" >&6 |
| 2076 | fi |
| 2077 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2078 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2079 | done |
| 2080 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2081 | if test -z "$CC"; then |
| 2082 | ac_ct_CC=$CC |
| 2083 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 | do |
| 2085 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2086 | set dummy $ac_prog; ac_word=$2 |
| 2087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2089 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2091 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2092 | if test -n "$ac_ct_CC"; then |
| 2093 | 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] | 2094 | else |
| 2095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2096 | for as_dir in $PATH |
| 2097 | do |
| 2098 | IFS=$as_save_IFS |
| 2099 | test -z "$as_dir" && as_dir=. |
| 2100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2102 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2104 | break 2 |
| 2105 | fi |
| 2106 | done |
| 2107 | done |
| 2108 | |
| 2109 | fi |
| 2110 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2111 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2112 | if test -n "$ac_ct_CC"; then |
| 2113 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2114 | echo "${ECHO_T}$ac_ct_CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2115 | else |
| 2116 | echo "$as_me:$LINENO: result: no" >&5 |
| 2117 | echo "${ECHO_T}no" >&6 |
| 2118 | fi |
| 2119 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2120 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2122 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2123 | CC=$ac_ct_CC |
| 2124 | fi |
| 2125 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2126 | fi |
| 2127 | |
| 2128 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2129 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2130 | See \`config.log' for more details." >&5 |
| 2131 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2132 | See \`config.log' for more details." >&2;} |
| 2133 | { (exit 1); exit 1; }; } |
| 2134 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2135 | # Provide some information about the compiler. |
| 2136 | echo "$as_me:$LINENO:" \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2137 | "checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2138 | ac_compiler=`set X $ac_compile; echo $2` |
| 2139 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2140 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2141 | ac_status=$? |
| 2142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2143 | (exit $ac_status); } |
| 2144 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2145 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2146 | ac_status=$? |
| 2147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2148 | (exit $ac_status); } |
| 2149 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2150 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2151 | ac_status=$? |
| 2152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2153 | (exit $ac_status); } |
| 2154 | |
| 2155 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2156 | /* confdefs.h. */ |
| 2157 | _ACEOF |
| 2158 | cat confdefs.h >>conftest.$ac_ext |
| 2159 | cat >>conftest.$ac_ext <<_ACEOF |
| 2160 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2161 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2162 | int |
| 2163 | main () |
| 2164 | { |
| 2165 | |
| 2166 | ; |
| 2167 | return 0; |
| 2168 | } |
| 2169 | _ACEOF |
| 2170 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2171 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2172 | # Try to create an executable without -o first, disregard a.out. |
| 2173 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2174 | # of exeext. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2175 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2176 | 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] | 2177 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2178 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2179 | (eval $ac_link_default) 2>&5 |
| 2180 | ac_status=$? |
| 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2182 | (exit $ac_status); }; then |
| 2183 | # Find the output, starting from the most likely. This scheme is |
| 2184 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2185 | # resort. |
| 2186 | |
| 2187 | # Be careful to initialize this variable, since it used to be cached. |
| 2188 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2189 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2190 | # b.out is created by i960 compilers. |
| 2191 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2192 | do |
| 2193 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2194 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2195 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2196 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2197 | conftest.$ac_ext ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2198 | # This is the source file. |
| 2199 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2200 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2201 | # We found the default executable, but exeext='' is most |
| 2202 | # certainly right. |
| 2203 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2204 | *.* ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2205 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2206 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2207 | # but it would be cool to find out if it's true. Does anybody |
| 2208 | # maintain Libtool? --akim. |
| 2209 | export ac_cv_exeext |
| 2210 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2211 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2212 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2213 | esac |
| 2214 | done |
| 2215 | else |
| 2216 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2218 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2219 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2220 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2221 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2222 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2223 | { (exit 77); exit 77; }; } |
| 2224 | fi |
| 2225 | |
| 2226 | ac_exeext=$ac_cv_exeext |
| 2227 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2228 | echo "${ECHO_T}$ac_file" >&6 |
| 2229 | |
| 2230 | # Check the compiler produces executables we can run. If not, either |
| 2231 | # the compiler is broken, or we cross compile. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2232 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2233 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2234 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2235 | # If not cross compiling, check that we can run a simple program. |
| 2236 | if test "$cross_compiling" != yes; then |
| 2237 | if { ac_try='./$ac_file' |
| 2238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2239 | (eval $ac_try) 2>&5 |
| 2240 | ac_status=$? |
| 2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2242 | (exit $ac_status); }; }; then |
| 2243 | cross_compiling=no |
| 2244 | else |
| 2245 | if test "$cross_compiling" = maybe; then |
| 2246 | cross_compiling=yes |
| 2247 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2248 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2249 | If you meant to cross compile, use \`--host'. |
| 2250 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2251 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2252 | If you meant to cross compile, use \`--host'. |
| 2253 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2254 | { (exit 1); exit 1; }; } |
| 2255 | fi |
| 2256 | fi |
| 2257 | fi |
| 2258 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2259 | echo "${ECHO_T}yes" >&6 |
| 2260 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2261 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2262 | ac_clean_files=$ac_clean_files_save |
| 2263 | # Check the compiler produces executables we can run. If not, either |
| 2264 | # the compiler is broken, or we cross compile. |
| 2265 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2266 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2267 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2268 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2269 | |
| 2270 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2271 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2273 | (eval $ac_link) 2>&5 |
| 2274 | ac_status=$? |
| 2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2276 | (exit $ac_status); }; then |
| 2277 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2278 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2279 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2280 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2281 | for ac_file in conftest.exe conftest conftest.*; do |
| 2282 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2283 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2284 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2285 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2286 | export ac_cv_exeext |
| 2287 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2288 | * ) break;; |
| 2289 | esac |
| 2290 | done |
| 2291 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2292 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2293 | See \`config.log' for more details." >&5 |
| 2294 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2295 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2296 | { (exit 1); exit 1; }; } |
| 2297 | fi |
| 2298 | |
| 2299 | rm -f conftest$ac_cv_exeext |
| 2300 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2301 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2302 | |
| 2303 | rm -f conftest.$ac_ext |
| 2304 | EXEEXT=$ac_cv_exeext |
| 2305 | ac_exeext=$EXEEXT |
| 2306 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2307 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2308 | if test "${ac_cv_objext+set}" = set; then |
| 2309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2310 | else |
| 2311 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2312 | /* confdefs.h. */ |
| 2313 | _ACEOF |
| 2314 | cat confdefs.h >>conftest.$ac_ext |
| 2315 | cat >>conftest.$ac_ext <<_ACEOF |
| 2316 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2317 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2318 | int |
| 2319 | main () |
| 2320 | { |
| 2321 | |
| 2322 | ; |
| 2323 | return 0; |
| 2324 | } |
| 2325 | _ACEOF |
| 2326 | rm -f conftest.o conftest.obj |
| 2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2328 | (eval $ac_compile) 2>&5 |
| 2329 | ac_status=$? |
| 2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2331 | (exit $ac_status); }; then |
| 2332 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2333 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2334 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2336 | break;; |
| 2337 | esac |
| 2338 | done |
| 2339 | else |
| 2340 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2342 | |
| 2343 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2344 | See \`config.log' for more details." >&5 |
| 2345 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2346 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 | { (exit 1); exit 1; }; } |
| 2348 | fi |
| 2349 | |
| 2350 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2351 | fi |
| 2352 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2353 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2354 | OBJEXT=$ac_cv_objext |
| 2355 | ac_objext=$OBJEXT |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2356 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2357 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2358 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2360 | else |
| 2361 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2362 | /* confdefs.h. */ |
| 2363 | _ACEOF |
| 2364 | cat confdefs.h >>conftest.$ac_ext |
| 2365 | cat >>conftest.$ac_ext <<_ACEOF |
| 2366 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2367 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2368 | int |
| 2369 | main () |
| 2370 | { |
| 2371 | #ifndef __GNUC__ |
| 2372 | choke me |
| 2373 | #endif |
| 2374 | |
| 2375 | ; |
| 2376 | return 0; |
| 2377 | } |
| 2378 | _ACEOF |
| 2379 | rm -f conftest.$ac_objext |
| 2380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2381 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2382 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2384 | rm -f conftest.er1 |
| 2385 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2387 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2388 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2389 | || test ! -s conftest.err' |
| 2390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2391 | (eval $ac_try) 2>&5 |
| 2392 | ac_status=$? |
| 2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2394 | (exit $ac_status); }; } && |
| 2395 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2397 | (eval $ac_try) 2>&5 |
| 2398 | ac_status=$? |
| 2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2400 | (exit $ac_status); }; }; then |
| 2401 | ac_compiler_gnu=yes |
| 2402 | else |
| 2403 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2405 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2406 | ac_compiler_gnu=no |
| 2407 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2410 | |
| 2411 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2412 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2413 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2414 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2415 | ac_test_CFLAGS=${CFLAGS+set} |
| 2416 | ac_save_CFLAGS=$CFLAGS |
| 2417 | CFLAGS="-g" |
| 2418 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2419 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2420 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2422 | else |
| 2423 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2424 | /* confdefs.h. */ |
| 2425 | _ACEOF |
| 2426 | cat confdefs.h >>conftest.$ac_ext |
| 2427 | cat >>conftest.$ac_ext <<_ACEOF |
| 2428 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2429 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2430 | int |
| 2431 | main () |
| 2432 | { |
| 2433 | |
| 2434 | ; |
| 2435 | return 0; |
| 2436 | } |
| 2437 | _ACEOF |
| 2438 | rm -f conftest.$ac_objext |
| 2439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2440 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2441 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2443 | rm -f conftest.er1 |
| 2444 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2446 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2447 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2448 | || test ! -s conftest.err' |
| 2449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2450 | (eval $ac_try) 2>&5 |
| 2451 | ac_status=$? |
| 2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2453 | (exit $ac_status); }; } && |
| 2454 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2456 | (eval $ac_try) 2>&5 |
| 2457 | ac_status=$? |
| 2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2459 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2461 | else |
| 2462 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2464 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2465 | ac_cv_prog_cc_g=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2466 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2468 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2469 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2470 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2471 | if test "$ac_test_CFLAGS" = set; then |
| 2472 | CFLAGS=$ac_save_CFLAGS |
| 2473 | elif test $ac_cv_prog_cc_g = yes; then |
| 2474 | if test "$GCC" = yes; then |
| 2475 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2476 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2477 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2478 | fi |
| 2479 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2480 | if test "$GCC" = yes; then |
| 2481 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2482 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2483 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2484 | fi |
| 2485 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2486 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2487 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2488 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2490 | else |
| 2491 | ac_cv_prog_cc_stdc=no |
| 2492 | ac_save_CC=$CC |
| 2493 | cat >conftest.$ac_ext <<_ACEOF |
| 2494 | /* confdefs.h. */ |
| 2495 | _ACEOF |
| 2496 | cat confdefs.h >>conftest.$ac_ext |
| 2497 | cat >>conftest.$ac_ext <<_ACEOF |
| 2498 | /* end confdefs.h. */ |
| 2499 | #include <stdarg.h> |
| 2500 | #include <stdio.h> |
| 2501 | #include <sys/types.h> |
| 2502 | #include <sys/stat.h> |
| 2503 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2504 | struct buf { int x; }; |
| 2505 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2506 | static char *e (p, i) |
| 2507 | char **p; |
| 2508 | int i; |
| 2509 | { |
| 2510 | return p[i]; |
| 2511 | } |
| 2512 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2513 | { |
| 2514 | char *s; |
| 2515 | va_list v; |
| 2516 | va_start (v,p); |
| 2517 | s = g (p, va_arg (v,int)); |
| 2518 | va_end (v); |
| 2519 | return s; |
| 2520 | } |
| 2521 | |
| 2522 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2523 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2524 | These don't provoke an error unfortunately, instead are silently treated |
| 2525 | as 'x'. The following induces an error, until -std1 is added to get |
| 2526 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2527 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2528 | that's true only with -std1. */ |
| 2529 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2530 | |
| 2531 | int test (int i, double x); |
| 2532 | struct s1 {int (*f) (int a);}; |
| 2533 | struct s2 {int (*f) (double a);}; |
| 2534 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2535 | int argc; |
| 2536 | char **argv; |
| 2537 | int |
| 2538 | main () |
| 2539 | { |
| 2540 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2541 | ; |
| 2542 | return 0; |
| 2543 | } |
| 2544 | _ACEOF |
| 2545 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2546 | # breaks some systems' header files. |
| 2547 | # AIX -qlanglvl=ansi |
| 2548 | # Ultrix and OSF/1 -std1 |
| 2549 | # HP-UX 10.20 and later -Ae |
| 2550 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2551 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2552 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2553 | do |
| 2554 | CC="$ac_save_CC $ac_arg" |
| 2555 | rm -f conftest.$ac_objext |
| 2556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2557 | (eval $ac_compile) 2>conftest.er1 |
| 2558 | ac_status=$? |
| 2559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2560 | rm -f conftest.er1 |
| 2561 | cat conftest.err >&5 |
| 2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2563 | (exit $ac_status); } && |
| 2564 | { ac_try='test -z "$ac_c_werror_flag" |
| 2565 | || test ! -s conftest.err' |
| 2566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2567 | (eval $ac_try) 2>&5 |
| 2568 | ac_status=$? |
| 2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2570 | (exit $ac_status); }; } && |
| 2571 | { ac_try='test -s conftest.$ac_objext' |
| 2572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2573 | (eval $ac_try) 2>&5 |
| 2574 | ac_status=$? |
| 2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2576 | (exit $ac_status); }; }; then |
| 2577 | ac_cv_prog_cc_stdc=$ac_arg |
| 2578 | break |
| 2579 | else |
| 2580 | echo "$as_me: failed program was:" >&5 |
| 2581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2582 | |
| 2583 | fi |
| 2584 | rm -f conftest.err conftest.$ac_objext |
| 2585 | done |
| 2586 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2587 | CC=$ac_save_CC |
| 2588 | |
| 2589 | fi |
| 2590 | |
| 2591 | case "x$ac_cv_prog_cc_stdc" in |
| 2592 | x|xno) |
| 2593 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2594 | echo "${ECHO_T}none needed" >&6 ;; |
| 2595 | *) |
| 2596 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2597 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2598 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2599 | esac |
| 2600 | |
| 2601 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2602 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2603 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2604 | # the declaration of exit, since it's the most demanding environment. |
| 2605 | cat >conftest.$ac_ext <<_ACEOF |
| 2606 | #ifndef __cplusplus |
| 2607 | choke me |
| 2608 | #endif |
| 2609 | _ACEOF |
| 2610 | rm -f conftest.$ac_objext |
| 2611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2612 | (eval $ac_compile) 2>conftest.er1 |
| 2613 | ac_status=$? |
| 2614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2615 | rm -f conftest.er1 |
| 2616 | cat conftest.err >&5 |
| 2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2618 | (exit $ac_status); } && |
| 2619 | { ac_try='test -z "$ac_c_werror_flag" |
| 2620 | || test ! -s conftest.err' |
| 2621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2622 | (eval $ac_try) 2>&5 |
| 2623 | ac_status=$? |
| 2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2625 | (exit $ac_status); }; } && |
| 2626 | { ac_try='test -s conftest.$ac_objext' |
| 2627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2628 | (eval $ac_try) 2>&5 |
| 2629 | ac_status=$? |
| 2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2631 | (exit $ac_status); }; }; then |
| 2632 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2633 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2634 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2635 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2636 | 'extern "C" void exit (int) throw ();' \ |
| 2637 | 'extern "C" void exit (int);' \ |
| 2638 | 'void exit (int);' |
| 2639 | do |
| 2640 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2641 | /* confdefs.h. */ |
| 2642 | _ACEOF |
| 2643 | cat confdefs.h >>conftest.$ac_ext |
| 2644 | cat >>conftest.$ac_ext <<_ACEOF |
| 2645 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2646 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2647 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2648 | int |
| 2649 | main () |
| 2650 | { |
| 2651 | exit (42); |
| 2652 | ; |
| 2653 | return 0; |
| 2654 | } |
| 2655 | _ACEOF |
| 2656 | rm -f conftest.$ac_objext |
| 2657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2658 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2659 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2661 | rm -f conftest.er1 |
| 2662 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2664 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2665 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2666 | || test ! -s conftest.err' |
| 2667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2668 | (eval $ac_try) 2>&5 |
| 2669 | ac_status=$? |
| 2670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2671 | (exit $ac_status); }; } && |
| 2672 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2674 | (eval $ac_try) 2>&5 |
| 2675 | ac_status=$? |
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2677 | (exit $ac_status); }; }; then |
| 2678 | : |
| 2679 | else |
| 2680 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2683 | continue |
| 2684 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2686 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2687 | /* confdefs.h. */ |
| 2688 | _ACEOF |
| 2689 | cat confdefs.h >>conftest.$ac_ext |
| 2690 | cat >>conftest.$ac_ext <<_ACEOF |
| 2691 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2692 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2693 | int |
| 2694 | main () |
| 2695 | { |
| 2696 | exit (42); |
| 2697 | ; |
| 2698 | return 0; |
| 2699 | } |
| 2700 | _ACEOF |
| 2701 | rm -f conftest.$ac_objext |
| 2702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2703 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2704 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2706 | rm -f conftest.er1 |
| 2707 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2709 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2710 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2711 | || test ! -s conftest.err' |
| 2712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2713 | (eval $ac_try) 2>&5 |
| 2714 | ac_status=$? |
| 2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2716 | (exit $ac_status); }; } && |
| 2717 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2719 | (eval $ac_try) 2>&5 |
| 2720 | ac_status=$? |
| 2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2722 | (exit $ac_status); }; }; then |
| 2723 | break |
| 2724 | else |
| 2725 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2727 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2728 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2730 | done |
| 2731 | rm -f conftest* |
| 2732 | if test -n "$ac_declaration"; then |
| 2733 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2734 | echo $ac_declaration >>confdefs.h |
| 2735 | echo '#endif' >>confdefs.h |
| 2736 | fi |
| 2737 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2738 | else |
| 2739 | echo "$as_me: failed program was:" >&5 |
| 2740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2741 | |
| 2742 | fi |
| 2743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2744 | ac_ext=c |
| 2745 | ac_cpp='$CPP $CPPFLAGS' |
| 2746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2749 | |
| 2750 | |
| 2751 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 2752 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 2753 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 2754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2755 | else |
| 2756 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 2757 | cat >conftest.$ac_ext <<_ACEOF |
| 2758 | /* confdefs.h. */ |
| 2759 | _ACEOF |
| 2760 | cat confdefs.h >>conftest.$ac_ext |
| 2761 | cat >>conftest.$ac_ext <<_ACEOF |
| 2762 | /* end confdefs.h. */ |
| 2763 | #include <sys/types.h> |
| 2764 | #include <sys/param.h> |
| 2765 | |
| 2766 | int |
| 2767 | main () |
| 2768 | { |
| 2769 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2770 | bogus endian macros |
| 2771 | #endif |
| 2772 | |
| 2773 | ; |
| 2774 | return 0; |
| 2775 | } |
| 2776 | _ACEOF |
| 2777 | rm -f conftest.$ac_objext |
| 2778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2779 | (eval $ac_compile) 2>conftest.er1 |
| 2780 | ac_status=$? |
| 2781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2782 | rm -f conftest.er1 |
| 2783 | cat conftest.err >&5 |
| 2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 | (exit $ac_status); } && |
| 2786 | { ac_try='test -z "$ac_c_werror_flag" |
| 2787 | || test ! -s conftest.err' |
| 2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2789 | (eval $ac_try) 2>&5 |
| 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); }; } && |
| 2793 | { ac_try='test -s conftest.$ac_objext' |
| 2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2795 | (eval $ac_try) 2>&5 |
| 2796 | ac_status=$? |
| 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2798 | (exit $ac_status); }; }; then |
| 2799 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2800 | cat >conftest.$ac_ext <<_ACEOF |
| 2801 | /* confdefs.h. */ |
| 2802 | _ACEOF |
| 2803 | cat confdefs.h >>conftest.$ac_ext |
| 2804 | cat >>conftest.$ac_ext <<_ACEOF |
| 2805 | /* end confdefs.h. */ |
| 2806 | #include <sys/types.h> |
| 2807 | #include <sys/param.h> |
| 2808 | |
| 2809 | int |
| 2810 | main () |
| 2811 | { |
| 2812 | #if BYTE_ORDER != BIG_ENDIAN |
| 2813 | not big endian |
| 2814 | #endif |
| 2815 | |
| 2816 | ; |
| 2817 | return 0; |
| 2818 | } |
| 2819 | _ACEOF |
| 2820 | rm -f conftest.$ac_objext |
| 2821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2822 | (eval $ac_compile) 2>conftest.er1 |
| 2823 | ac_status=$? |
| 2824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2825 | rm -f conftest.er1 |
| 2826 | cat conftest.err >&5 |
| 2827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2828 | (exit $ac_status); } && |
| 2829 | { ac_try='test -z "$ac_c_werror_flag" |
| 2830 | || test ! -s conftest.err' |
| 2831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2832 | (eval $ac_try) 2>&5 |
| 2833 | ac_status=$? |
| 2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2835 | (exit $ac_status); }; } && |
| 2836 | { ac_try='test -s conftest.$ac_objext' |
| 2837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2838 | (eval $ac_try) 2>&5 |
| 2839 | ac_status=$? |
| 2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2841 | (exit $ac_status); }; }; then |
| 2842 | ac_cv_c_bigendian=yes |
| 2843 | else |
| 2844 | echo "$as_me: failed program was:" >&5 |
| 2845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2846 | |
| 2847 | ac_cv_c_bigendian=no |
| 2848 | fi |
| 2849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2850 | else |
| 2851 | echo "$as_me: failed program was:" >&5 |
| 2852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2853 | |
| 2854 | # It does not; compile a test program. |
| 2855 | if test "$cross_compiling" = yes; then |
| 2856 | # try to guess the endianness by grepping values into an object file |
| 2857 | ac_cv_c_bigendian=unknown |
| 2858 | cat >conftest.$ac_ext <<_ACEOF |
| 2859 | /* confdefs.h. */ |
| 2860 | _ACEOF |
| 2861 | cat confdefs.h >>conftest.$ac_ext |
| 2862 | cat >>conftest.$ac_ext <<_ACEOF |
| 2863 | /* end confdefs.h. */ |
| 2864 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 2865 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 2866 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 2867 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 2868 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 2869 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 2870 | int |
| 2871 | main () |
| 2872 | { |
| 2873 | _ascii (); _ebcdic (); |
| 2874 | ; |
| 2875 | return 0; |
| 2876 | } |
| 2877 | _ACEOF |
| 2878 | rm -f conftest.$ac_objext |
| 2879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2880 | (eval $ac_compile) 2>conftest.er1 |
| 2881 | ac_status=$? |
| 2882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2883 | rm -f conftest.er1 |
| 2884 | cat conftest.err >&5 |
| 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); } && |
| 2887 | { ac_try='test -z "$ac_c_werror_flag" |
| 2888 | || test ! -s conftest.err' |
| 2889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2890 | (eval $ac_try) 2>&5 |
| 2891 | ac_status=$? |
| 2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2893 | (exit $ac_status); }; } && |
| 2894 | { ac_try='test -s conftest.$ac_objext' |
| 2895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2896 | (eval $ac_try) 2>&5 |
| 2897 | ac_status=$? |
| 2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2899 | (exit $ac_status); }; }; then |
| 2900 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 2901 | ac_cv_c_bigendian=yes |
| 2902 | fi |
| 2903 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 2904 | if test "$ac_cv_c_bigendian" = unknown; then |
| 2905 | ac_cv_c_bigendian=no |
| 2906 | else |
| 2907 | # finding both strings is unlikely to happen, but who knows? |
| 2908 | ac_cv_c_bigendian=unknown |
| 2909 | fi |
| 2910 | fi |
| 2911 | else |
| 2912 | echo "$as_me: failed program was:" >&5 |
| 2913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2914 | |
| 2915 | fi |
| 2916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2917 | else |
| 2918 | cat >conftest.$ac_ext <<_ACEOF |
| 2919 | /* confdefs.h. */ |
| 2920 | _ACEOF |
| 2921 | cat confdefs.h >>conftest.$ac_ext |
| 2922 | cat >>conftest.$ac_ext <<_ACEOF |
| 2923 | /* end confdefs.h. */ |
| 2924 | int |
| 2925 | main () |
| 2926 | { |
| 2927 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2928 | union |
| 2929 | { |
| 2930 | long l; |
| 2931 | char c[sizeof (long)]; |
| 2932 | } u; |
| 2933 | u.l = 1; |
| 2934 | exit (u.c[sizeof (long) - 1] == 1); |
| 2935 | } |
| 2936 | _ACEOF |
| 2937 | rm -f conftest$ac_exeext |
| 2938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2939 | (eval $ac_link) 2>&5 |
| 2940 | ac_status=$? |
| 2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2942 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2944 | (eval $ac_try) 2>&5 |
| 2945 | ac_status=$? |
| 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2947 | (exit $ac_status); }; }; then |
| 2948 | ac_cv_c_bigendian=no |
| 2949 | else |
| 2950 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2951 | echo "$as_me: failed program was:" >&5 |
| 2952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2953 | |
| 2954 | ( exit $ac_status ) |
| 2955 | ac_cv_c_bigendian=yes |
| 2956 | fi |
| 2957 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2958 | fi |
| 2959 | fi |
| 2960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2961 | fi |
| 2962 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 2963 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 2964 | case $ac_cv_c_bigendian in |
| 2965 | yes) |
| 2966 | ENDIAN=big |
| 2967 | ;; |
| 2968 | no) |
| 2969 | ENDIAN=little |
| 2970 | ;; |
| 2971 | *) |
| 2972 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 2973 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 2974 | echo "$as_me: error: unknown endianness |
| 2975 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 2976 | { (exit 1); exit 1; }; } ;; |
| 2977 | esac |
| 2978 | |
| 2979 | |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2980 | if test "$cross_compiling" = yes; then |
| 2981 | LLVM_CROSS_COMPILING=1 |
| 2982 | |
| 2983 | |
| 2984 | echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 2985 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6 |
| 2986 | if test "${ac_cv_build_exeext+set}" = set; then |
| 2987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2988 | else |
| 2989 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 2990 | ac_cv_build_exeext=.exe |
| 2991 | else |
| 2992 | ac_build_prefix=${build_alias}- |
| 2993 | |
| 2994 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 2995 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 2996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2998 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 2999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3000 | else |
| 3001 | if test -n "$BUILD_CC"; then |
| 3002 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 3003 | else |
| 3004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3005 | for as_dir in $PATH |
| 3006 | do |
| 3007 | IFS=$as_save_IFS |
| 3008 | test -z "$as_dir" && as_dir=. |
| 3009 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3011 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 3012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3013 | break 2 |
| 3014 | fi |
| 3015 | done |
| 3016 | done |
| 3017 | |
| 3018 | fi |
| 3019 | fi |
| 3020 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 3021 | if test -n "$BUILD_CC"; then |
| 3022 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 3023 | echo "${ECHO_T}$BUILD_CC" >&6 |
| 3024 | else |
| 3025 | echo "$as_me:$LINENO: result: no" >&5 |
| 3026 | echo "${ECHO_T}no" >&6 |
| 3027 | fi |
| 3028 | |
| 3029 | if test -z "$BUILD_CC"; then |
| 3030 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3031 | set dummy gcc; ac_word=$2 |
| 3032 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3034 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 3035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3036 | else |
| 3037 | if test -n "$BUILD_CC"; then |
| 3038 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 3039 | else |
| 3040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3041 | for as_dir in $PATH |
| 3042 | do |
| 3043 | IFS=$as_save_IFS |
| 3044 | test -z "$as_dir" && as_dir=. |
| 3045 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3046 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3047 | ac_cv_prog_BUILD_CC="gcc" |
| 3048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3049 | break 2 |
| 3050 | fi |
| 3051 | done |
| 3052 | done |
| 3053 | |
| 3054 | fi |
| 3055 | fi |
| 3056 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 3057 | if test -n "$BUILD_CC"; then |
| 3058 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 3059 | echo "${ECHO_T}$BUILD_CC" >&6 |
| 3060 | else |
| 3061 | echo "$as_me:$LINENO: result: no" >&5 |
| 3062 | echo "${ECHO_T}no" >&6 |
| 3063 | fi |
| 3064 | |
| 3065 | if test -z "$BUILD_CC"; then |
| 3066 | # Extract the first word of "cc", so it can be a program name with args. |
| 3067 | set dummy cc; ac_word=$2 |
| 3068 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3070 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3072 | else |
| 3073 | if test -n "$BUILD_CC"; then |
| 3074 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 3075 | else |
| 3076 | ac_prog_rejected=no |
| 3077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3078 | for as_dir in $PATH |
| 3079 | do |
| 3080 | IFS=$as_save_IFS |
| 3081 | test -z "$as_dir" && as_dir=. |
| 3082 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3084 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3085 | ac_prog_rejected=yes |
| 3086 | continue |
| 3087 | fi |
| 3088 | ac_cv_prog_BUILD_CC="cc" |
| 3089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3090 | break 2 |
| 3091 | fi |
| 3092 | done |
| 3093 | done |
| 3094 | |
| 3095 | if test $ac_prog_rejected = yes; then |
| 3096 | # We found a bogon in the path, so make sure we never use it. |
| 3097 | set dummy $ac_cv_prog_BUILD_CC |
| 3098 | shift |
| 3099 | if test $# != 0; then |
| 3100 | # We chose a different compiler from the bogus one. |
| 3101 | # However, it has the same basename, so the bogon will be chosen |
| 3102 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 3103 | shift |
| 3104 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 3105 | fi |
| 3106 | fi |
| 3107 | fi |
| 3108 | fi |
| 3109 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 3110 | if test -n "$BUILD_CC"; then |
| 3111 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 3112 | echo "${ECHO_T}$BUILD_CC" >&6 |
| 3113 | else |
| 3114 | echo "$as_me:$LINENO: result: no" >&5 |
| 3115 | echo "${ECHO_T}no" >&6 |
| 3116 | fi |
| 3117 | |
| 3118 | fi |
| 3119 | fi |
| 3120 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 3121 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 3122 | { (exit 1); exit 1; }; } |
| 3123 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 3124 | rm -f conftest* |
| 3125 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 3126 | ac_cv_build_exeext= |
| 3127 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 3128 | (eval $ac_build_link) 2>&5 |
| 3129 | ac_status=$? |
| 3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3131 | (exit $ac_status); }; then |
| 3132 | for file in conftest.*; do |
| 3133 | case $file in |
| 3134 | *.c | *.o | *.obj) ;; |
| 3135 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 3136 | esac |
| 3137 | done |
| 3138 | else |
| 3139 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 3140 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 3141 | { (exit 1); exit 1; }; } |
| 3142 | fi |
| 3143 | rm -f conftest* |
| 3144 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 3145 | fi |
| 3146 | fi |
| 3147 | |
| 3148 | BUILD_EXEEXT="" |
| 3149 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 3150 | echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 3151 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6 |
| 3152 | ac_build_exeext=$BUILD_EXEEXT |
| 3153 | |
| 3154 | else |
| 3155 | LLVM_CROSS_COMPILING=0 |
| 3156 | |
| 3157 | fi |
| 3158 | |
Reid Spencer | 4ebf331 | 2006-04-08 01:41:26 +0000 | [diff] [blame] | 3159 | if test -d "CVS" -o -d "${srcdir}/CVS"; then |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3160 | cvsbuild="yes" |
| 3161 | optimize="no" |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3162 | CVSBUILD=CVSBUILD=1 |
| 3163 | |
| 3164 | else |
| 3165 | cvsbuild="no" |
| 3166 | optimize="yes" |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3167 | fi |
| 3168 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3169 | |
| 3170 | # Check whether --enable-optimized or --disable-optimized was given. |
| 3171 | if test "${enable_optimized+set}" = set; then |
| 3172 | enableval="$enable_optimized" |
| 3173 | |
| 3174 | else |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3175 | enableval=$optimize |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3176 | fi; |
| 3177 | if test ${enableval} = "no" ; then |
| 3178 | ENABLE_OPTIMIZED= |
| 3179 | |
| 3180 | else |
| 3181 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 3182 | |
| 3183 | fi |
| 3184 | |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3185 | # Check whether --enable-assertions or --disable-assertions was given. |
| 3186 | if test "${enable_assertions+set}" = set; then |
| 3187 | enableval="$enable_assertions" |
| 3188 | |
| 3189 | else |
Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 3190 | enableval="yes" |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3191 | fi; |
Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 3192 | if test ${enableval} = "yes" ; then |
| 3193 | DISABLE_ASSERTIONS= |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3194 | |
| 3195 | else |
Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 3196 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 3197 | |
| 3198 | fi |
| 3199 | |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 3200 | # Check whether --enable-debug-runtime or --disable-debug-runtime was given. |
| 3201 | if test "${enable_debug_runtime+set}" = set; then |
| 3202 | enableval="$enable_debug_runtime" |
| 3203 | |
| 3204 | else |
| 3205 | enableval=no |
| 3206 | fi; |
| 3207 | if test ${enableval} = "no" ; then |
| 3208 | DEBUG_RUNTIME= |
| 3209 | |
| 3210 | else |
| 3211 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 3212 | |
| 3213 | fi |
| 3214 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3215 | # Check whether --enable-jit or --disable-jit was given. |
| 3216 | if test "${enable_jit+set}" = set; then |
| 3217 | enableval="$enable_jit" |
| 3218 | |
| 3219 | else |
| 3220 | enableval=default |
| 3221 | fi; |
| 3222 | if test ${enableval} = "no" |
| 3223 | then |
| 3224 | JIT= |
| 3225 | |
| 3226 | else |
Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 3227 | case "$llvm_cv_target_arch" in |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3228 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3229 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3230 | Sparc) TARGET_HAS_JIT=1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3231 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3232 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3233 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3234 | x86_64) TARGET_HAS_JIT=0 |
Reid Spencer | 95ed843 | 2004-12-23 06:22:33 +0000 | [diff] [blame] | 3235 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3236 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3237 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3238 | IA64) TARGET_HAS_JIT=0 |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3239 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3240 | *) TARGET_HAS_JIT=0 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3241 | ;; |
| 3242 | esac |
| 3243 | fi |
| 3244 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3245 | # Check whether --enable-doxygen or --disable-doxygen was given. |
| 3246 | if test "${enable_doxygen+set}" = set; then |
| 3247 | enableval="$enable_doxygen" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3248 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3249 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3250 | enableval=default |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3251 | fi; |
| 3252 | case "$enableval" in |
| 3253 | yes) ENABLE_DOXYGEN=1 |
| 3254 | ;; |
| 3255 | no) ENABLE_DOXYGEN=0 |
| 3256 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3257 | default) ENABLE_DOXYGEN=0 |
| 3258 | ;; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3259 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 3260 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 3261 | { (exit 1); exit 1; }; } ;; |
| 3262 | esac |
| 3263 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 3264 | # Check whether --enable-threads or --disable-threads was given. |
| 3265 | if test "${enable_threads+set}" = set; then |
| 3266 | enableval="$enable_threads" |
| 3267 | |
| 3268 | else |
| 3269 | enableval=yes |
| 3270 | fi; |
| 3271 | case "$enableval" in |
| 3272 | yes) ENABLE_THREADS=1 |
| 3273 | ;; |
| 3274 | no) ENABLE_THREADS=0 |
| 3275 | ;; |
| 3276 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 3277 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 3278 | { (exit 1); exit 1; }; } ;; |
| 3279 | esac |
| 3280 | |
| 3281 | cat >>confdefs.h <<_ACEOF |
| 3282 | #define ENABLE_THREADS $ENABLE_THREADS |
| 3283 | _ACEOF |
| 3284 | |
| 3285 | |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3286 | TARGETS_TO_BUILD="" |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3287 | # Check whether --enable-targets or --disable-targets was given. |
| 3288 | if test "${enable_targets+set}" = set; then |
| 3289 | enableval="$enable_targets" |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3290 | |
| 3291 | else |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3292 | enableval=all |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3293 | fi; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3294 | case "$enableval" in |
Rafael Espindola | 7bc59bc | 2006-05-14 22:18:28 +0000 | [diff] [blame] | 3295 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3296 | host-only) |
| 3297 | case "$llvm_cv_target_arch" in |
| 3298 | x86) TARGETS_TO_BUILD="X86" ;; |
| 3299 | x86_64) TARGETS_TO_BUILD="X86" ;; |
Chris Lattner | 7df583e | 2006-04-20 17:01:19 +0000 | [diff] [blame] | 3300 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3301 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 3302 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 3303 | IA64) TARGETS_TO_BUILD="IA64" ;; |
| 3304 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3305 | echo "$as_me: error: Can not set target to build" >&2;} |
| 3306 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3307 | esac |
| 3308 | ;; |
| 3309 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 3310 | case "$a_target" in |
| 3311 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 3312 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
Chris Lattner | 7df583e | 2006-04-20 17:01:19 +0000 | [diff] [blame] | 3313 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3314 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 3315 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 3316 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3317 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 3318 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 3319 | { (exit 1); exit 1; }; } ;; |
| 3320 | esac |
| 3321 | done |
| 3322 | ;; |
| 3323 | esac |
Reid Spencer | 675f092 | 2005-04-22 17:06:18 +0000 | [diff] [blame] | 3324 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3325 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 3326 | |
| 3327 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3328 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3329 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 3330 | if test "${with_llvmgccdir+set}" = set; then |
| 3331 | withval="$with_llvmgccdir" |
| 3332 | |
| 3333 | else |
| 3334 | withval=default |
| 3335 | fi; |
| 3336 | case "$withval" in |
| 3337 | default) WITH_LLVMGCCDIR=default ;; |
Reid Spencer | 0fa145d | 2006-05-21 10:40:20 +0000 | [diff] [blame] | 3338 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3339 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 3340 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 3341 | { (exit 1); exit 1; }; } ;; |
| 3342 | esac |
| 3343 | |
| 3344 | |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 3345 | # Check whether --with-extra-options or --without-extra-options was given. |
| 3346 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 3347 | withval="$with_extra_options" |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 3348 | |
| 3349 | else |
Reid Spencer | ceaf1c3 | 2006-07-28 22:50:07 +0000 | [diff] [blame] | 3350 | withval=default |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 3351 | fi; |
Reid Spencer | ceaf1c3 | 2006-07-28 22:50:07 +0000 | [diff] [blame] | 3352 | case "$withval" in |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 3353 | default) EXTRA_OPTIONS= ;; |
Reid Spencer | ceaf1c3 | 2006-07-28 22:50:07 +0000 | [diff] [blame] | 3354 | *) EXTRA_OPTIONS=$withval ;; |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 3355 | esac |
| 3356 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 3357 | |
| 3358 | |
| 3359 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3360 | ac_ext=c |
| 3361 | ac_cpp='$CPP $CPPFLAGS' |
| 3362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3365 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3366 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3367 | # On Suns, sometimes $CPP names a directory. |
| 3368 | if test -n "$CPP" && test -d "$CPP"; then |
| 3369 | CPP= |
| 3370 | fi |
| 3371 | if test -z "$CPP"; then |
| 3372 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3374 | else |
| 3375 | # Double quotes because CPP needs to be expanded |
| 3376 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3377 | do |
| 3378 | ac_preproc_ok=false |
| 3379 | for ac_c_preproc_warn_flag in '' yes |
| 3380 | do |
| 3381 | # Use a header file that comes with gcc, so configuring glibc |
| 3382 | # with a fresh cross-compiler works. |
| 3383 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3384 | # <limits.h> exists even on freestanding compilers. |
| 3385 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3386 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3387 | cat >conftest.$ac_ext <<_ACEOF |
| 3388 | /* confdefs.h. */ |
| 3389 | _ACEOF |
| 3390 | cat confdefs.h >>conftest.$ac_ext |
| 3391 | cat >>conftest.$ac_ext <<_ACEOF |
| 3392 | /* end confdefs.h. */ |
| 3393 | #ifdef __STDC__ |
| 3394 | # include <limits.h> |
| 3395 | #else |
| 3396 | # include <assert.h> |
| 3397 | #endif |
| 3398 | Syntax error |
| 3399 | _ACEOF |
| 3400 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3401 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3402 | ac_status=$? |
| 3403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3404 | rm -f conftest.er1 |
| 3405 | cat conftest.err >&5 |
| 3406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3407 | (exit $ac_status); } >/dev/null; then |
| 3408 | if test -s conftest.err; then |
| 3409 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3410 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3411 | else |
| 3412 | ac_cpp_err= |
| 3413 | fi |
| 3414 | else |
| 3415 | ac_cpp_err=yes |
| 3416 | fi |
| 3417 | if test -z "$ac_cpp_err"; then |
| 3418 | : |
| 3419 | else |
| 3420 | echo "$as_me: failed program was:" >&5 |
| 3421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3422 | |
| 3423 | # Broken: fails on valid input. |
| 3424 | continue |
| 3425 | fi |
| 3426 | rm -f conftest.err conftest.$ac_ext |
| 3427 | |
| 3428 | # OK, works on sane cases. Now check whether non-existent headers |
| 3429 | # can be detected and how. |
| 3430 | cat >conftest.$ac_ext <<_ACEOF |
| 3431 | /* confdefs.h. */ |
| 3432 | _ACEOF |
| 3433 | cat confdefs.h >>conftest.$ac_ext |
| 3434 | cat >>conftest.$ac_ext <<_ACEOF |
| 3435 | /* end confdefs.h. */ |
| 3436 | #include <ac_nonexistent.h> |
| 3437 | _ACEOF |
| 3438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3440 | ac_status=$? |
| 3441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3442 | rm -f conftest.er1 |
| 3443 | cat conftest.err >&5 |
| 3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3445 | (exit $ac_status); } >/dev/null; then |
| 3446 | if test -s conftest.err; then |
| 3447 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3449 | else |
| 3450 | ac_cpp_err= |
| 3451 | fi |
| 3452 | else |
| 3453 | ac_cpp_err=yes |
| 3454 | fi |
| 3455 | if test -z "$ac_cpp_err"; then |
| 3456 | # Broken: success on invalid input. |
| 3457 | continue |
| 3458 | else |
| 3459 | echo "$as_me: failed program was:" >&5 |
| 3460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3461 | |
| 3462 | # Passes both tests. |
| 3463 | ac_preproc_ok=: |
| 3464 | break |
| 3465 | fi |
| 3466 | rm -f conftest.err conftest.$ac_ext |
| 3467 | |
| 3468 | done |
| 3469 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3470 | rm -f conftest.err conftest.$ac_ext |
| 3471 | if $ac_preproc_ok; then |
| 3472 | break |
| 3473 | fi |
| 3474 | |
| 3475 | done |
| 3476 | ac_cv_prog_CPP=$CPP |
| 3477 | |
| 3478 | fi |
| 3479 | CPP=$ac_cv_prog_CPP |
| 3480 | else |
| 3481 | ac_cv_prog_CPP=$CPP |
| 3482 | fi |
| 3483 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3484 | echo "${ECHO_T}$CPP" >&6 |
| 3485 | ac_preproc_ok=false |
| 3486 | for ac_c_preproc_warn_flag in '' yes |
| 3487 | do |
| 3488 | # Use a header file that comes with gcc, so configuring glibc |
| 3489 | # with a fresh cross-compiler works. |
| 3490 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3491 | # <limits.h> exists even on freestanding compilers. |
| 3492 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3493 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3494 | cat >conftest.$ac_ext <<_ACEOF |
| 3495 | /* confdefs.h. */ |
| 3496 | _ACEOF |
| 3497 | cat confdefs.h >>conftest.$ac_ext |
| 3498 | cat >>conftest.$ac_ext <<_ACEOF |
| 3499 | /* end confdefs.h. */ |
| 3500 | #ifdef __STDC__ |
| 3501 | # include <limits.h> |
| 3502 | #else |
| 3503 | # include <assert.h> |
| 3504 | #endif |
| 3505 | Syntax error |
| 3506 | _ACEOF |
| 3507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3509 | ac_status=$? |
| 3510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3511 | rm -f conftest.er1 |
| 3512 | cat conftest.err >&5 |
| 3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3514 | (exit $ac_status); } >/dev/null; then |
| 3515 | if test -s conftest.err; then |
| 3516 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3517 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3518 | else |
| 3519 | ac_cpp_err= |
| 3520 | fi |
| 3521 | else |
| 3522 | ac_cpp_err=yes |
| 3523 | fi |
| 3524 | if test -z "$ac_cpp_err"; then |
| 3525 | : |
| 3526 | else |
| 3527 | echo "$as_me: failed program was:" >&5 |
| 3528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3529 | |
| 3530 | # Broken: fails on valid input. |
| 3531 | continue |
| 3532 | fi |
| 3533 | rm -f conftest.err conftest.$ac_ext |
| 3534 | |
| 3535 | # OK, works on sane cases. Now check whether non-existent headers |
| 3536 | # can be detected and how. |
| 3537 | cat >conftest.$ac_ext <<_ACEOF |
| 3538 | /* confdefs.h. */ |
| 3539 | _ACEOF |
| 3540 | cat confdefs.h >>conftest.$ac_ext |
| 3541 | cat >>conftest.$ac_ext <<_ACEOF |
| 3542 | /* end confdefs.h. */ |
| 3543 | #include <ac_nonexistent.h> |
| 3544 | _ACEOF |
| 3545 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3547 | ac_status=$? |
| 3548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3549 | rm -f conftest.er1 |
| 3550 | cat conftest.err >&5 |
| 3551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3552 | (exit $ac_status); } >/dev/null; then |
| 3553 | if test -s conftest.err; then |
| 3554 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3555 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3556 | else |
| 3557 | ac_cpp_err= |
| 3558 | fi |
| 3559 | else |
| 3560 | ac_cpp_err=yes |
| 3561 | fi |
| 3562 | if test -z "$ac_cpp_err"; then |
| 3563 | # Broken: success on invalid input. |
| 3564 | continue |
| 3565 | else |
| 3566 | echo "$as_me: failed program was:" >&5 |
| 3567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3568 | |
| 3569 | # Passes both tests. |
| 3570 | ac_preproc_ok=: |
| 3571 | break |
| 3572 | fi |
| 3573 | rm -f conftest.err conftest.$ac_ext |
| 3574 | |
| 3575 | done |
| 3576 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3577 | rm -f conftest.err conftest.$ac_ext |
| 3578 | if $ac_preproc_ok; then |
| 3579 | : |
| 3580 | else |
| 3581 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3582 | See \`config.log' for more details." >&5 |
| 3583 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3584 | See \`config.log' for more details." >&2;} |
| 3585 | { (exit 1); exit 1; }; } |
| 3586 | fi |
| 3587 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3588 | ac_ext=c |
| 3589 | ac_cpp='$CPP $CPPFLAGS' |
| 3590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3593 | |
| 3594 | ac_ext=c |
| 3595 | ac_cpp='$CPP $CPPFLAGS' |
| 3596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3599 | if test -n "$ac_tool_prefix"; then |
| 3600 | for ac_prog in gcc |
| 3601 | do |
| 3602 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3603 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3606 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3608 | else |
| 3609 | if test -n "$CC"; then |
| 3610 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3611 | else |
| 3612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3613 | for as_dir in $PATH |
| 3614 | do |
| 3615 | IFS=$as_save_IFS |
| 3616 | test -z "$as_dir" && as_dir=. |
| 3617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3619 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3621 | break 2 |
| 3622 | fi |
| 3623 | done |
| 3624 | done |
| 3625 | |
| 3626 | fi |
| 3627 | fi |
| 3628 | CC=$ac_cv_prog_CC |
| 3629 | if test -n "$CC"; then |
| 3630 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3631 | echo "${ECHO_T}$CC" >&6 |
| 3632 | else |
| 3633 | echo "$as_me:$LINENO: result: no" >&5 |
| 3634 | echo "${ECHO_T}no" >&6 |
| 3635 | fi |
| 3636 | |
| 3637 | test -n "$CC" && break |
| 3638 | done |
| 3639 | fi |
| 3640 | if test -z "$CC"; then |
| 3641 | ac_ct_CC=$CC |
| 3642 | for ac_prog in gcc |
| 3643 | do |
| 3644 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3645 | set dummy $ac_prog; ac_word=$2 |
| 3646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3648 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3650 | else |
| 3651 | if test -n "$ac_ct_CC"; then |
| 3652 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3653 | else |
| 3654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3655 | for as_dir in $PATH |
| 3656 | do |
| 3657 | IFS=$as_save_IFS |
| 3658 | test -z "$as_dir" && as_dir=. |
| 3659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3661 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3663 | break 2 |
| 3664 | fi |
| 3665 | done |
| 3666 | done |
| 3667 | |
| 3668 | fi |
| 3669 | fi |
| 3670 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3671 | if test -n "$ac_ct_CC"; then |
| 3672 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3673 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3674 | else |
| 3675 | echo "$as_me:$LINENO: result: no" >&5 |
| 3676 | echo "${ECHO_T}no" >&6 |
| 3677 | fi |
| 3678 | |
| 3679 | test -n "$ac_ct_CC" && break |
| 3680 | done |
| 3681 | |
| 3682 | CC=$ac_ct_CC |
| 3683 | fi |
| 3684 | |
| 3685 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3686 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3687 | See \`config.log' for more details." >&5 |
| 3688 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3689 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3690 | { (exit 1); exit 1; }; } |
| 3691 | |
| 3692 | # Provide some information about the compiler. |
| 3693 | echo "$as_me:$LINENO:" \ |
| 3694 | "checking for C compiler version" >&5 |
| 3695 | ac_compiler=`set X $ac_compile; echo $2` |
| 3696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3697 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3698 | ac_status=$? |
| 3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3700 | (exit $ac_status); } |
| 3701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3702 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3703 | ac_status=$? |
| 3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3705 | (exit $ac_status); } |
| 3706 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3707 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3708 | ac_status=$? |
| 3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3710 | (exit $ac_status); } |
| 3711 | |
| 3712 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3713 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3714 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3716 | else |
| 3717 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3718 | /* confdefs.h. */ |
| 3719 | _ACEOF |
| 3720 | cat confdefs.h >>conftest.$ac_ext |
| 3721 | cat >>conftest.$ac_ext <<_ACEOF |
| 3722 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3723 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3724 | int |
| 3725 | main () |
| 3726 | { |
| 3727 | #ifndef __GNUC__ |
| 3728 | choke me |
| 3729 | #endif |
| 3730 | |
| 3731 | ; |
| 3732 | return 0; |
| 3733 | } |
| 3734 | _ACEOF |
| 3735 | rm -f conftest.$ac_objext |
| 3736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3737 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3738 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3740 | rm -f conftest.er1 |
| 3741 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3743 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3744 | { ac_try='test -z "$ac_c_werror_flag" |
| 3745 | || test ! -s conftest.err' |
| 3746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3747 | (eval $ac_try) 2>&5 |
| 3748 | ac_status=$? |
| 3749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3750 | (exit $ac_status); }; } && |
| 3751 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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); }; }; then |
| 3757 | ac_compiler_gnu=yes |
| 3758 | else |
| 3759 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3762 | ac_compiler_gnu=no |
| 3763 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3765 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3766 | |
| 3767 | fi |
| 3768 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3769 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3770 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3771 | ac_test_CFLAGS=${CFLAGS+set} |
| 3772 | ac_save_CFLAGS=$CFLAGS |
| 3773 | CFLAGS="-g" |
| 3774 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3775 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3776 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3778 | else |
| 3779 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3780 | /* confdefs.h. */ |
| 3781 | _ACEOF |
| 3782 | cat confdefs.h >>conftest.$ac_ext |
| 3783 | cat >>conftest.$ac_ext <<_ACEOF |
| 3784 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3785 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3786 | int |
| 3787 | main () |
| 3788 | { |
| 3789 | |
| 3790 | ; |
| 3791 | return 0; |
| 3792 | } |
| 3793 | _ACEOF |
| 3794 | rm -f conftest.$ac_objext |
| 3795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3796 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3797 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3799 | rm -f conftest.er1 |
| 3800 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3802 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3803 | { ac_try='test -z "$ac_c_werror_flag" |
| 3804 | || test ! -s conftest.err' |
| 3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3806 | (eval $ac_try) 2>&5 |
| 3807 | ac_status=$? |
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3809 | (exit $ac_status); }; } && |
| 3810 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3812 | (eval $ac_try) 2>&5 |
| 3813 | ac_status=$? |
| 3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3815 | (exit $ac_status); }; }; then |
| 3816 | ac_cv_prog_cc_g=yes |
| 3817 | else |
| 3818 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3820 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3821 | ac_cv_prog_cc_g=no |
| 3822 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3826 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3827 | if test "$ac_test_CFLAGS" = set; then |
| 3828 | CFLAGS=$ac_save_CFLAGS |
| 3829 | elif test $ac_cv_prog_cc_g = yes; then |
| 3830 | if test "$GCC" = yes; then |
| 3831 | CFLAGS="-g -O2" |
| 3832 | else |
| 3833 | CFLAGS="-g" |
| 3834 | fi |
| 3835 | else |
| 3836 | if test "$GCC" = yes; then |
| 3837 | CFLAGS="-O2" |
| 3838 | else |
| 3839 | CFLAGS= |
| 3840 | fi |
| 3841 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3842 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3843 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3844 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3846 | else |
| 3847 | ac_cv_prog_cc_stdc=no |
| 3848 | ac_save_CC=$CC |
| 3849 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3850 | /* confdefs.h. */ |
| 3851 | _ACEOF |
| 3852 | cat confdefs.h >>conftest.$ac_ext |
| 3853 | cat >>conftest.$ac_ext <<_ACEOF |
| 3854 | /* end confdefs.h. */ |
| 3855 | #include <stdarg.h> |
| 3856 | #include <stdio.h> |
| 3857 | #include <sys/types.h> |
| 3858 | #include <sys/stat.h> |
| 3859 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3860 | struct buf { int x; }; |
| 3861 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3862 | static char *e (p, i) |
| 3863 | char **p; |
| 3864 | int i; |
| 3865 | { |
| 3866 | return p[i]; |
| 3867 | } |
| 3868 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3869 | { |
| 3870 | char *s; |
| 3871 | va_list v; |
| 3872 | va_start (v,p); |
| 3873 | s = g (p, va_arg (v,int)); |
| 3874 | va_end (v); |
| 3875 | return s; |
| 3876 | } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3877 | |
| 3878 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3879 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3880 | These don't provoke an error unfortunately, instead are silently treated |
| 3881 | as 'x'. The following induces an error, until -std1 is added to get |
| 3882 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3883 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3884 | that's true only with -std1. */ |
| 3885 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3886 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3887 | int test (int i, double x); |
| 3888 | struct s1 {int (*f) (int a);}; |
| 3889 | struct s2 {int (*f) (double a);}; |
| 3890 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3891 | int argc; |
| 3892 | char **argv; |
| 3893 | int |
| 3894 | main () |
| 3895 | { |
| 3896 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3897 | ; |
| 3898 | return 0; |
| 3899 | } |
| 3900 | _ACEOF |
| 3901 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3902 | # breaks some systems' header files. |
| 3903 | # AIX -qlanglvl=ansi |
| 3904 | # Ultrix and OSF/1 -std1 |
| 3905 | # HP-UX 10.20 and later -Ae |
| 3906 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3907 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3908 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3909 | do |
| 3910 | CC="$ac_save_CC $ac_arg" |
| 3911 | rm -f conftest.$ac_objext |
| 3912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3913 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3914 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3916 | rm -f conftest.er1 |
| 3917 | cat conftest.err >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3919 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3920 | { ac_try='test -z "$ac_c_werror_flag" |
| 3921 | || test ! -s conftest.err' |
| 3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3923 | (eval $ac_try) 2>&5 |
| 3924 | ac_status=$? |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); }; } && |
| 3927 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3929 | (eval $ac_try) 2>&5 |
| 3930 | ac_status=$? |
| 3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3932 | (exit $ac_status); }; }; then |
| 3933 | ac_cv_prog_cc_stdc=$ac_arg |
| 3934 | break |
| 3935 | else |
| 3936 | echo "$as_me: failed program was:" >&5 |
| 3937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3938 | |
| 3939 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3940 | rm -f conftest.err conftest.$ac_objext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3941 | done |
| 3942 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3943 | CC=$ac_save_CC |
| 3944 | |
| 3945 | fi |
| 3946 | |
| 3947 | case "x$ac_cv_prog_cc_stdc" in |
| 3948 | x|xno) |
| 3949 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3950 | echo "${ECHO_T}none needed" >&6 ;; |
| 3951 | *) |
| 3952 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3953 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3954 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3955 | esac |
| 3956 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3958 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3959 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3960 | # the declaration of exit, since it's the most demanding environment. |
| 3961 | cat >conftest.$ac_ext <<_ACEOF |
| 3962 | #ifndef __cplusplus |
| 3963 | choke me |
| 3964 | #endif |
| 3965 | _ACEOF |
| 3966 | rm -f conftest.$ac_objext |
| 3967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3968 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3969 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3971 | rm -f conftest.er1 |
| 3972 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3974 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3975 | { ac_try='test -z "$ac_c_werror_flag" |
| 3976 | || test ! -s conftest.err' |
| 3977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3978 | (eval $ac_try) 2>&5 |
| 3979 | ac_status=$? |
| 3980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3981 | (exit $ac_status); }; } && |
| 3982 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3984 | (eval $ac_try) 2>&5 |
| 3985 | ac_status=$? |
| 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3987 | (exit $ac_status); }; }; then |
| 3988 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3989 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3990 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3991 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3992 | 'extern "C" void exit (int) throw ();' \ |
| 3993 | 'extern "C" void exit (int);' \ |
| 3994 | 'void exit (int);' |
| 3995 | do |
| 3996 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3997 | /* confdefs.h. */ |
| 3998 | _ACEOF |
| 3999 | cat confdefs.h >>conftest.$ac_ext |
| 4000 | cat >>conftest.$ac_ext <<_ACEOF |
| 4001 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4002 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4003 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4004 | int |
| 4005 | main () |
| 4006 | { |
| 4007 | exit (42); |
| 4008 | ; |
| 4009 | return 0; |
| 4010 | } |
| 4011 | _ACEOF |
| 4012 | rm -f conftest.$ac_objext |
| 4013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4014 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4015 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4017 | rm -f conftest.er1 |
| 4018 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4020 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4021 | { ac_try='test -z "$ac_c_werror_flag" |
| 4022 | || test ! -s conftest.err' |
| 4023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4024 | (eval $ac_try) 2>&5 |
| 4025 | ac_status=$? |
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4027 | (exit $ac_status); }; } && |
| 4028 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4030 | (eval $ac_try) 2>&5 |
| 4031 | ac_status=$? |
| 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4033 | (exit $ac_status); }; }; then |
| 4034 | : |
| 4035 | else |
| 4036 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4038 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4039 | continue |
| 4040 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4042 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4043 | /* confdefs.h. */ |
| 4044 | _ACEOF |
| 4045 | cat confdefs.h >>conftest.$ac_ext |
| 4046 | cat >>conftest.$ac_ext <<_ACEOF |
| 4047 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4048 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4049 | int |
| 4050 | main () |
| 4051 | { |
| 4052 | exit (42); |
| 4053 | ; |
| 4054 | return 0; |
| 4055 | } |
| 4056 | _ACEOF |
| 4057 | rm -f conftest.$ac_objext |
| 4058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4059 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4060 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4062 | rm -f conftest.er1 |
| 4063 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4065 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4066 | { ac_try='test -z "$ac_c_werror_flag" |
| 4067 | || test ! -s conftest.err' |
| 4068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4069 | (eval $ac_try) 2>&5 |
| 4070 | ac_status=$? |
| 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4072 | (exit $ac_status); }; } && |
| 4073 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4075 | (eval $ac_try) 2>&5 |
| 4076 | ac_status=$? |
| 4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4078 | (exit $ac_status); }; }; then |
| 4079 | break |
| 4080 | else |
| 4081 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4084 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4086 | done |
| 4087 | rm -f conftest* |
| 4088 | if test -n "$ac_declaration"; then |
| 4089 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4090 | echo $ac_declaration >>confdefs.h |
| 4091 | echo '#endif' >>confdefs.h |
| 4092 | fi |
| 4093 | |
| 4094 | else |
| 4095 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4097 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4098 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4100 | ac_ext=c |
| 4101 | ac_cpp='$CPP $CPPFLAGS' |
| 4102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4105 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4106 | ac_ext=cc |
| 4107 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4108 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4109 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4110 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4111 | if test -n "$ac_tool_prefix"; then |
| 4112 | for ac_prog in $CCC g++ |
| 4113 | do |
| 4114 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4115 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4116 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4118 | if test "${ac_cv_prog_CXX+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4120 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4121 | if test -n "$CXX"; then |
| 4122 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4123 | else |
| 4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4125 | for as_dir in $PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4126 | do |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4127 | IFS=$as_save_IFS |
| 4128 | test -z "$as_dir" && as_dir=. |
| 4129 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4131 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4133 | break 2 |
| 4134 | fi |
| 4135 | done |
| 4136 | done |
| 4137 | |
| 4138 | fi |
| 4139 | fi |
| 4140 | CXX=$ac_cv_prog_CXX |
| 4141 | if test -n "$CXX"; then |
| 4142 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 4143 | echo "${ECHO_T}$CXX" >&6 |
| 4144 | else |
| 4145 | echo "$as_me:$LINENO: result: no" >&5 |
| 4146 | echo "${ECHO_T}no" >&6 |
| 4147 | fi |
| 4148 | |
| 4149 | test -n "$CXX" && break |
| 4150 | done |
| 4151 | fi |
| 4152 | if test -z "$CXX"; then |
| 4153 | ac_ct_CXX=$CXX |
| 4154 | for ac_prog in $CCC g++ |
| 4155 | do |
| 4156 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4157 | set dummy $ac_prog; ac_word=$2 |
| 4158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4160 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4162 | else |
| 4163 | if test -n "$ac_ct_CXX"; then |
| 4164 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4165 | else |
| 4166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4167 | for as_dir in $PATH |
| 4168 | do |
| 4169 | IFS=$as_save_IFS |
| 4170 | test -z "$as_dir" && as_dir=. |
| 4171 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4173 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4175 | break 2 |
| 4176 | fi |
| 4177 | done |
| 4178 | done |
| 4179 | |
| 4180 | fi |
| 4181 | fi |
| 4182 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4183 | if test -n "$ac_ct_CXX"; then |
| 4184 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 4185 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 4186 | else |
| 4187 | echo "$as_me:$LINENO: result: no" >&5 |
| 4188 | echo "${ECHO_T}no" >&6 |
| 4189 | fi |
| 4190 | |
| 4191 | test -n "$ac_ct_CXX" && break |
| 4192 | done |
| 4193 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 4194 | |
| 4195 | CXX=$ac_ct_CXX |
| 4196 | fi |
| 4197 | |
| 4198 | |
| 4199 | # Provide some information about the compiler. |
| 4200 | echo "$as_me:$LINENO:" \ |
| 4201 | "checking for C++ compiler version" >&5 |
| 4202 | ac_compiler=`set X $ac_compile; echo $2` |
| 4203 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4204 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4205 | ac_status=$? |
| 4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4207 | (exit $ac_status); } |
| 4208 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4209 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4210 | ac_status=$? |
| 4211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4212 | (exit $ac_status); } |
| 4213 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4214 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4215 | ac_status=$? |
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4217 | (exit $ac_status); } |
| 4218 | |
| 4219 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 4220 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 4221 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 4222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4223 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4224 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4225 | /* confdefs.h. */ |
| 4226 | _ACEOF |
| 4227 | cat confdefs.h >>conftest.$ac_ext |
| 4228 | cat >>conftest.$ac_ext <<_ACEOF |
| 4229 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4230 | |
| 4231 | int |
| 4232 | main () |
| 4233 | { |
| 4234 | #ifndef __GNUC__ |
| 4235 | choke me |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4236 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4237 | |
| 4238 | ; |
| 4239 | return 0; |
| 4240 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4241 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4242 | rm -f conftest.$ac_objext |
| 4243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4244 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4245 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4246 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4247 | rm -f conftest.er1 |
| 4248 | cat conftest.err >&5 |
| 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4250 | (exit $ac_status); } && |
| 4251 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4252 | || test ! -s conftest.err' |
| 4253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4254 | (eval $ac_try) 2>&5 |
| 4255 | ac_status=$? |
| 4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4257 | (exit $ac_status); }; } && |
| 4258 | { ac_try='test -s conftest.$ac_objext' |
| 4259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4260 | (eval $ac_try) 2>&5 |
| 4261 | ac_status=$? |
| 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4263 | (exit $ac_status); }; }; then |
| 4264 | ac_compiler_gnu=yes |
| 4265 | else |
| 4266 | echo "$as_me: failed program was:" >&5 |
| 4267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4268 | |
| 4269 | ac_compiler_gnu=no |
| 4270 | fi |
| 4271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4272 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4273 | |
| 4274 | fi |
| 4275 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4276 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4277 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4278 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4279 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4280 | CXXFLAGS="-g" |
| 4281 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4282 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4283 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4285 | else |
| 4286 | cat >conftest.$ac_ext <<_ACEOF |
| 4287 | /* confdefs.h. */ |
| 4288 | _ACEOF |
| 4289 | cat confdefs.h >>conftest.$ac_ext |
| 4290 | cat >>conftest.$ac_ext <<_ACEOF |
| 4291 | /* end confdefs.h. */ |
| 4292 | |
| 4293 | int |
| 4294 | main () |
| 4295 | { |
| 4296 | |
| 4297 | ; |
| 4298 | return 0; |
| 4299 | } |
| 4300 | _ACEOF |
| 4301 | rm -f conftest.$ac_objext |
| 4302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4303 | (eval $ac_compile) 2>conftest.er1 |
| 4304 | ac_status=$? |
| 4305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4306 | rm -f conftest.er1 |
| 4307 | cat conftest.err >&5 |
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4309 | (exit $ac_status); } && |
| 4310 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4311 | || test ! -s conftest.err' |
| 4312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4313 | (eval $ac_try) 2>&5 |
| 4314 | ac_status=$? |
| 4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4316 | (exit $ac_status); }; } && |
| 4317 | { ac_try='test -s conftest.$ac_objext' |
| 4318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4319 | (eval $ac_try) 2>&5 |
| 4320 | ac_status=$? |
| 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4322 | (exit $ac_status); }; }; then |
| 4323 | ac_cv_prog_cxx_g=yes |
| 4324 | else |
| 4325 | echo "$as_me: failed program was:" >&5 |
| 4326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4327 | |
| 4328 | ac_cv_prog_cxx_g=no |
| 4329 | fi |
| 4330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4331 | fi |
| 4332 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4333 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4334 | if test "$ac_test_CXXFLAGS" = set; then |
| 4335 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4336 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4337 | if test "$GXX" = yes; then |
| 4338 | CXXFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4339 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4340 | CXXFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4341 | fi |
| 4342 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4343 | if test "$GXX" = yes; then |
| 4344 | CXXFLAGS="-O2" |
| 4345 | else |
| 4346 | CXXFLAGS= |
| 4347 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4348 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4349 | for ac_declaration in \ |
| 4350 | '' \ |
| 4351 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4352 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4353 | 'extern "C" void exit (int) throw ();' \ |
| 4354 | 'extern "C" void exit (int);' \ |
| 4355 | 'void exit (int);' |
| 4356 | do |
| 4357 | cat >conftest.$ac_ext <<_ACEOF |
| 4358 | /* confdefs.h. */ |
| 4359 | _ACEOF |
| 4360 | cat confdefs.h >>conftest.$ac_ext |
| 4361 | cat >>conftest.$ac_ext <<_ACEOF |
| 4362 | /* end confdefs.h. */ |
| 4363 | $ac_declaration |
| 4364 | #include <stdlib.h> |
| 4365 | int |
| 4366 | main () |
| 4367 | { |
| 4368 | exit (42); |
| 4369 | ; |
| 4370 | return 0; |
| 4371 | } |
| 4372 | _ACEOF |
| 4373 | rm -f conftest.$ac_objext |
| 4374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4375 | (eval $ac_compile) 2>conftest.er1 |
| 4376 | ac_status=$? |
| 4377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4378 | rm -f conftest.er1 |
| 4379 | cat conftest.err >&5 |
| 4380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4381 | (exit $ac_status); } && |
| 4382 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4383 | || test ! -s conftest.err' |
| 4384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4385 | (eval $ac_try) 2>&5 |
| 4386 | ac_status=$? |
| 4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4388 | (exit $ac_status); }; } && |
| 4389 | { ac_try='test -s conftest.$ac_objext' |
| 4390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4391 | (eval $ac_try) 2>&5 |
| 4392 | ac_status=$? |
| 4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4394 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4395 | : |
| 4396 | else |
| 4397 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4400 | continue |
| 4401 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4403 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4404 | /* confdefs.h. */ |
| 4405 | _ACEOF |
| 4406 | cat confdefs.h >>conftest.$ac_ext |
| 4407 | cat >>conftest.$ac_ext <<_ACEOF |
| 4408 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4409 | $ac_declaration |
| 4410 | int |
| 4411 | main () |
| 4412 | { |
| 4413 | exit (42); |
| 4414 | ; |
| 4415 | return 0; |
| 4416 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4417 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4418 | rm -f conftest.$ac_objext |
| 4419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4420 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4421 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4422 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4423 | rm -f conftest.er1 |
| 4424 | cat conftest.err >&5 |
| 4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4426 | (exit $ac_status); } && |
| 4427 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4428 | || test ! -s conftest.err' |
| 4429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4430 | (eval $ac_try) 2>&5 |
| 4431 | ac_status=$? |
| 4432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4433 | (exit $ac_status); }; } && |
| 4434 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4440 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4441 | else |
| 4442 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4444 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4445 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4447 | done |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4448 | rm -f conftest* |
| 4449 | if test -n "$ac_declaration"; then |
| 4450 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4451 | echo $ac_declaration >>confdefs.h |
| 4452 | echo '#endif' >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4453 | fi |
| 4454 | |
| 4455 | ac_ext=c |
| 4456 | ac_cpp='$CPP $CPPFLAGS' |
| 4457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4460 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4461 | echo "$as_me:$LINENO: checking " >&5 |
| 4462 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 4463 | if test "${ac_cv_has_flex+set}" = set; then |
| 4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4465 | else |
| 4466 | for ac_prog in flex lex |
| 4467 | do |
| 4468 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4469 | set dummy $ac_prog; ac_word=$2 |
| 4470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4472 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4474 | else |
| 4475 | if test -n "$LEX"; then |
| 4476 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4477 | else |
| 4478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4479 | for as_dir in $PATH |
| 4480 | do |
| 4481 | IFS=$as_save_IFS |
| 4482 | test -z "$as_dir" && as_dir=. |
| 4483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4485 | ac_cv_prog_LEX="$ac_prog" |
| 4486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4487 | break 2 |
| 4488 | fi |
| 4489 | done |
| 4490 | done |
| 4491 | |
| 4492 | fi |
| 4493 | fi |
| 4494 | LEX=$ac_cv_prog_LEX |
| 4495 | if test -n "$LEX"; then |
| 4496 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4497 | echo "${ECHO_T}$LEX" >&6 |
| 4498 | else |
| 4499 | echo "$as_me:$LINENO: result: no" >&5 |
| 4500 | echo "${ECHO_T}no" >&6 |
| 4501 | fi |
| 4502 | |
| 4503 | test -n "$LEX" && break |
| 4504 | done |
| 4505 | test -n "$LEX" || LEX=":" |
| 4506 | |
| 4507 | if test -z "$LEXLIB" |
| 4508 | then |
| 4509 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 4510 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4511 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4513 | else |
| 4514 | ac_check_lib_save_LIBS=$LIBS |
| 4515 | LIBS="-lfl $LIBS" |
| 4516 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4517 | /* confdefs.h. */ |
| 4518 | _ACEOF |
| 4519 | cat confdefs.h >>conftest.$ac_ext |
| 4520 | cat >>conftest.$ac_ext <<_ACEOF |
| 4521 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4522 | |
| 4523 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4524 | #ifdef __cplusplus |
| 4525 | extern "C" |
| 4526 | #endif |
| 4527 | /* We use char because int might match the return type of a gcc2 |
| 4528 | builtin and then its argument prototype would still apply. */ |
| 4529 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4530 | int |
| 4531 | main () |
| 4532 | { |
| 4533 | yywrap (); |
| 4534 | ; |
| 4535 | return 0; |
| 4536 | } |
| 4537 | _ACEOF |
| 4538 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4540 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4541 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4543 | rm -f conftest.er1 |
| 4544 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4547 | { ac_try='test -z "$ac_c_werror_flag" |
| 4548 | || test ! -s conftest.err' |
| 4549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4550 | (eval $ac_try) 2>&5 |
| 4551 | ac_status=$? |
| 4552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4553 | (exit $ac_status); }; } && |
| 4554 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4556 | (eval $ac_try) 2>&5 |
| 4557 | ac_status=$? |
| 4558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4559 | (exit $ac_status); }; }; then |
| 4560 | ac_cv_lib_fl_yywrap=yes |
| 4561 | else |
| 4562 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4564 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4565 | ac_cv_lib_fl_yywrap=no |
| 4566 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4567 | rm -f conftest.err conftest.$ac_objext \ |
| 4568 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4569 | LIBS=$ac_check_lib_save_LIBS |
| 4570 | fi |
| 4571 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 4572 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4573 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4574 | LEXLIB="-lfl" |
| 4575 | else |
| 4576 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 4577 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4578 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4580 | else |
| 4581 | ac_check_lib_save_LIBS=$LIBS |
| 4582 | LIBS="-ll $LIBS" |
| 4583 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4584 | /* confdefs.h. */ |
| 4585 | _ACEOF |
| 4586 | cat confdefs.h >>conftest.$ac_ext |
| 4587 | cat >>conftest.$ac_ext <<_ACEOF |
| 4588 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4589 | |
| 4590 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4591 | #ifdef __cplusplus |
| 4592 | extern "C" |
| 4593 | #endif |
| 4594 | /* We use char because int might match the return type of a gcc2 |
| 4595 | builtin and then its argument prototype would still apply. */ |
| 4596 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4597 | int |
| 4598 | main () |
| 4599 | { |
| 4600 | yywrap (); |
| 4601 | ; |
| 4602 | return 0; |
| 4603 | } |
| 4604 | _ACEOF |
| 4605 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4607 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4608 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4610 | rm -f conftest.er1 |
| 4611 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4613 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4614 | { ac_try='test -z "$ac_c_werror_flag" |
| 4615 | || test ! -s conftest.err' |
| 4616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4617 | (eval $ac_try) 2>&5 |
| 4618 | ac_status=$? |
| 4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4620 | (exit $ac_status); }; } && |
| 4621 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4623 | (eval $ac_try) 2>&5 |
| 4624 | ac_status=$? |
| 4625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4626 | (exit $ac_status); }; }; then |
| 4627 | ac_cv_lib_l_yywrap=yes |
| 4628 | else |
| 4629 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4631 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4632 | ac_cv_lib_l_yywrap=no |
| 4633 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4634 | rm -f conftest.err conftest.$ac_objext \ |
| 4635 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4636 | LIBS=$ac_check_lib_save_LIBS |
| 4637 | fi |
| 4638 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 4639 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4640 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4641 | LEXLIB="-ll" |
| 4642 | fi |
| 4643 | |
| 4644 | fi |
| 4645 | |
| 4646 | fi |
| 4647 | |
| 4648 | if test "x$LEX" != "x:"; then |
| 4649 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 4650 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4651 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4653 | else |
| 4654 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4655 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 4656 | cat >conftest.l <<_ACEOF |
| 4657 | %% |
| 4658 | %% |
| 4659 | _ACEOF |
| 4660 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4661 | (eval $LEX conftest.l) 2>&5 |
| 4662 | ac_status=$? |
| 4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4664 | (exit $ac_status); } |
| 4665 | if test -f lex.yy.c; then |
| 4666 | ac_cv_prog_lex_root=lex.yy |
| 4667 | elif test -f lexyy.c; then |
| 4668 | ac_cv_prog_lex_root=lexyy |
| 4669 | else |
| 4670 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 4671 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4672 | { (exit 1); exit 1; }; } |
| 4673 | fi |
| 4674 | fi |
| 4675 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 4676 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 4677 | rm -f conftest.l |
| 4678 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4679 | |
| 4680 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 4681 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4682 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4684 | else |
| 4685 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4686 | # default is implementation-dependent. Figure out which it is, since |
| 4687 | # not all implementations provide the %pointer and %array declarations. |
| 4688 | ac_cv_prog_lex_yytext_pointer=no |
| 4689 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4690 | ac_save_LIBS=$LIBS |
| 4691 | LIBS="$LIBS $LEXLIB" |
| 4692 | cat >conftest.$ac_ext <<_ACEOF |
| 4693 | `cat $LEX_OUTPUT_ROOT.c` |
| 4694 | _ACEOF |
| 4695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4697 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4698 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4700 | rm -f conftest.er1 |
| 4701 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4703 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4704 | { ac_try='test -z "$ac_c_werror_flag" |
| 4705 | || test ! -s conftest.err' |
| 4706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4707 | (eval $ac_try) 2>&5 |
| 4708 | ac_status=$? |
| 4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4710 | (exit $ac_status); }; } && |
| 4711 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4713 | (eval $ac_try) 2>&5 |
| 4714 | ac_status=$? |
| 4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4716 | (exit $ac_status); }; }; then |
| 4717 | ac_cv_prog_lex_yytext_pointer=yes |
| 4718 | else |
| 4719 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4721 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4722 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4723 | rm -f conftest.err conftest.$ac_objext \ |
| 4724 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4725 | LIBS=$ac_save_LIBS |
| 4726 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4727 | |
| 4728 | fi |
| 4729 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 4730 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4731 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4732 | |
| 4733 | cat >>confdefs.h <<\_ACEOF |
| 4734 | #define YYTEXT_POINTER 1 |
| 4735 | _ACEOF |
| 4736 | |
| 4737 | fi |
| 4738 | |
| 4739 | fi |
| 4740 | |
| 4741 | fi |
| 4742 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 4743 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 4744 | if test "$LEX" != "flex"; then |
| 4745 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 4746 | echo "$as_me: error: flex not found but required" >&2;} |
| 4747 | { (exit 1); exit 1; }; } |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4748 | else |
| 4749 | FLEX=flex |
| 4750 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4751 | fi |
| 4752 | |
| 4753 | echo "$as_me:$LINENO: checking " >&5 |
| 4754 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4755 | if test "${llvm_cv_has_bison+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4757 | else |
| 4758 | for ac_prog in 'bison -y' byacc |
| 4759 | do |
| 4760 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4761 | set dummy $ac_prog; ac_word=$2 |
| 4762 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4764 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 4765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4766 | else |
| 4767 | if test -n "$YACC"; then |
| 4768 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4769 | else |
| 4770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4771 | for as_dir in $PATH |
| 4772 | do |
| 4773 | IFS=$as_save_IFS |
| 4774 | test -z "$as_dir" && as_dir=. |
| 4775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4777 | ac_cv_prog_YACC="$ac_prog" |
| 4778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4779 | break 2 |
| 4780 | fi |
| 4781 | done |
| 4782 | done |
| 4783 | |
| 4784 | fi |
| 4785 | fi |
| 4786 | YACC=$ac_cv_prog_YACC |
| 4787 | if test -n "$YACC"; then |
| 4788 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4789 | echo "${ECHO_T}$YACC" >&6 |
| 4790 | else |
| 4791 | echo "$as_me:$LINENO: result: no" >&5 |
| 4792 | echo "${ECHO_T}no" >&6 |
| 4793 | fi |
| 4794 | |
| 4795 | test -n "$YACC" && break |
| 4796 | done |
| 4797 | test -n "$YACC" || YACC="yacc" |
| 4798 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4799 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4800 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 4801 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4802 | if test "$YACC" != "bison -y"; then |
| 4803 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 4804 | echo "$as_me: error: bison not found but required" >&2;} |
| 4805 | { (exit 1); exit 1; }; } |
| 4806 | else |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4807 | BISON=bison |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4808 | |
| 4809 | fi |
| 4810 | |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 4811 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4812 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 4813 | if test "${lt_cv_path_NM+set}" = set; then |
| 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4815 | else |
| 4816 | if test -n "$NM"; then |
| 4817 | # Let the user override the test. |
| 4818 | lt_cv_path_NM="$NM" |
| 4819 | else |
| 4820 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4821 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 4822 | IFS="$lt_save_ifs" |
| 4823 | test -z "$ac_dir" && ac_dir=. |
| 4824 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 4825 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4826 | # Check to see if the nm accepts a BSD-compat flag. |
| 4827 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4828 | # nm: unknown option "B" ignored |
| 4829 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4830 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4831 | */dev/null* | *'Invalid file or object type'*) |
| 4832 | lt_cv_path_NM="$tmp_nm -B" |
| 4833 | break |
| 4834 | ;; |
| 4835 | *) |
| 4836 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4837 | */dev/null*) |
| 4838 | lt_cv_path_NM="$tmp_nm -p" |
| 4839 | break |
| 4840 | ;; |
| 4841 | *) |
| 4842 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4843 | continue # so that we can try to find one that supports BSD flags |
| 4844 | ;; |
| 4845 | esac |
| 4846 | esac |
| 4847 | fi |
| 4848 | done |
| 4849 | IFS="$lt_save_ifs" |
| 4850 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4851 | fi |
| 4852 | fi |
| 4853 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4854 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 4855 | NM="$lt_cv_path_NM" |
| 4856 | |
| 4857 | |
| 4858 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4859 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 4860 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 4861 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4863 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4864 | llvm_cv_gnu_make_command='' |
| 4865 | for a in "$MAKE" make gmake gnumake ; do |
| 4866 | if test -z "$a" ; then continue ; fi ; |
| 4867 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 4868 | then |
| 4869 | llvm_cv_gnu_make_command=$a ; |
| 4870 | break; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4871 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4872 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4873 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4874 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 4875 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 |
| 4876 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 4877 | ifGNUmake='' ; |
| 4878 | else |
| 4879 | ifGNUmake='#' ; |
| 4880 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 4881 | echo "${ECHO_T}\"Not found\"" >&6; |
| 4882 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4883 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4884 | |
| 4885 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4886 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4887 | LN_S=$as_ln_s |
| 4888 | if test "$LN_S" = "ln -s"; then |
| 4889 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4890 | echo "${ECHO_T}yes" >&6 |
| 4891 | else |
| 4892 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4893 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4894 | fi |
| 4895 | |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 4896 | # Extract the first word of "cmp", so it can be a program name with args. |
| 4897 | set dummy cmp; 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_path_CMP+set}" = set; then |
| 4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4902 | else |
| 4903 | case $CMP in |
| 4904 | [\\/]* | ?:[\\/]*) |
| 4905 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 4906 | ;; |
| 4907 | *) |
| 4908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4909 | for as_dir in $PATH |
| 4910 | do |
| 4911 | IFS=$as_save_IFS |
| 4912 | test -z "$as_dir" && as_dir=. |
| 4913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4915 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 4916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4917 | break 2 |
| 4918 | fi |
| 4919 | done |
| 4920 | done |
| 4921 | |
| 4922 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 4923 | ;; |
| 4924 | esac |
| 4925 | fi |
| 4926 | CMP=$ac_cv_path_CMP |
| 4927 | |
| 4928 | if test -n "$CMP"; then |
| 4929 | echo "$as_me:$LINENO: result: $CMP" >&5 |
| 4930 | echo "${ECHO_T}$CMP" >&6 |
| 4931 | else |
| 4932 | echo "$as_me:$LINENO: result: no" >&5 |
| 4933 | echo "${ECHO_T}no" >&6 |
| 4934 | fi |
| 4935 | |
| 4936 | # Extract the first word of "cp", so it can be a program name with args. |
| 4937 | set dummy cp; ac_word=$2 |
| 4938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4940 | if test "${ac_cv_path_CP+set}" = set; then |
| 4941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4942 | else |
| 4943 | case $CP in |
| 4944 | [\\/]* | ?:[\\/]*) |
| 4945 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4946 | ;; |
| 4947 | *) |
| 4948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4949 | for as_dir in $PATH |
| 4950 | do |
| 4951 | IFS=$as_save_IFS |
| 4952 | test -z "$as_dir" && as_dir=. |
| 4953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4955 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 4956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4957 | break 2 |
| 4958 | fi |
| 4959 | done |
| 4960 | done |
| 4961 | |
| 4962 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4963 | ;; |
| 4964 | esac |
| 4965 | fi |
| 4966 | CP=$ac_cv_path_CP |
| 4967 | |
| 4968 | if test -n "$CP"; then |
| 4969 | echo "$as_me:$LINENO: result: $CP" >&5 |
| 4970 | echo "${ECHO_T}$CP" >&6 |
| 4971 | else |
| 4972 | echo "$as_me:$LINENO: result: no" >&5 |
| 4973 | echo "${ECHO_T}no" >&6 |
| 4974 | fi |
| 4975 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4976 | # Extract the first word of "date", so it can be a program name with args. |
| 4977 | set dummy date; ac_word=$2 |
| 4978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4980 | if test "${ac_cv_path_DATE+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4982 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4983 | case $DATE in |
| 4984 | [\\/]* | ?:[\\/]*) |
| 4985 | 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] | 4986 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4987 | *) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4989 | for as_dir in $PATH |
| 4990 | do |
| 4991 | IFS=$as_save_IFS |
| 4992 | test -z "$as_dir" && as_dir=. |
| 4993 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4995 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 4996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4997 | break 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4998 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4999 | done |
| 5000 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5001 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5002 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5003 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5004 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5005 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5006 | DATE=$ac_cv_path_DATE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5007 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5008 | if test -n "$DATE"; then |
| 5009 | echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5010 | echo "${ECHO_T}$DATE" >&6 |
| 5011 | else |
| 5012 | echo "$as_me:$LINENO: result: no" >&5 |
| 5013 | echo "${ECHO_T}no" >&6 |
| 5014 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5015 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5016 | # Extract the first word of "find", so it can be a program name with args. |
| 5017 | set dummy find; ac_word=$2 |
| 5018 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5020 | if test "${ac_cv_path_FIND+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5022 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5023 | case $FIND in |
| 5024 | [\\/]* | ?:[\\/]*) |
| 5025 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5026 | ;; |
| 5027 | *) |
| 5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5029 | for as_dir in $PATH |
| 5030 | do |
| 5031 | IFS=$as_save_IFS |
| 5032 | test -z "$as_dir" && as_dir=. |
| 5033 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5035 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 5036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5037 | break 2 |
| 5038 | fi |
| 5039 | done |
| 5040 | done |
| 5041 | |
| 5042 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 5043 | ;; |
| 5044 | esac |
| 5045 | fi |
| 5046 | FIND=$ac_cv_path_FIND |
| 5047 | |
| 5048 | if test -n "$FIND"; then |
| 5049 | echo "$as_me:$LINENO: result: $FIND" >&5 |
| 5050 | echo "${ECHO_T}$FIND" >&6 |
| 5051 | else |
| 5052 | echo "$as_me:$LINENO: result: no" >&5 |
| 5053 | echo "${ECHO_T}no" >&6 |
| 5054 | fi |
| 5055 | |
| 5056 | # Extract the first word of "grep", so it can be a program name with args. |
| 5057 | set dummy grep; ac_word=$2 |
| 5058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5060 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5062 | else |
| 5063 | case $GREP in |
| 5064 | [\\/]* | ?:[\\/]*) |
| 5065 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 5066 | ;; |
| 5067 | *) |
| 5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5069 | for as_dir in $PATH |
| 5070 | do |
| 5071 | IFS=$as_save_IFS |
| 5072 | test -z "$as_dir" && as_dir=. |
| 5073 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5075 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 5076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5077 | break 2 |
| 5078 | fi |
| 5079 | done |
| 5080 | done |
| 5081 | |
| 5082 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 5083 | ;; |
| 5084 | esac |
| 5085 | fi |
| 5086 | GREP=$ac_cv_path_GREP |
| 5087 | |
| 5088 | if test -n "$GREP"; then |
| 5089 | echo "$as_me:$LINENO: result: $GREP" >&5 |
| 5090 | echo "${ECHO_T}$GREP" >&6 |
| 5091 | else |
| 5092 | echo "$as_me:$LINENO: result: no" >&5 |
| 5093 | echo "${ECHO_T}no" >&6 |
| 5094 | fi |
| 5095 | |
| 5096 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 5097 | set dummy mkdir; ac_word=$2 |
| 5098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5100 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5102 | else |
| 5103 | case $MKDIR in |
| 5104 | [\\/]* | ?:[\\/]*) |
| 5105 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 5106 | ;; |
| 5107 | *) |
| 5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5109 | for as_dir in $PATH |
| 5110 | do |
| 5111 | IFS=$as_save_IFS |
| 5112 | test -z "$as_dir" && as_dir=. |
| 5113 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5115 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 5116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5117 | break 2 |
| 5118 | fi |
| 5119 | done |
| 5120 | done |
| 5121 | |
| 5122 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 5123 | ;; |
| 5124 | esac |
| 5125 | fi |
| 5126 | MKDIR=$ac_cv_path_MKDIR |
| 5127 | |
| 5128 | if test -n "$MKDIR"; then |
| 5129 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 5130 | echo "${ECHO_T}$MKDIR" >&6 |
| 5131 | else |
| 5132 | echo "$as_me:$LINENO: result: no" >&5 |
| 5133 | echo "${ECHO_T}no" >&6 |
| 5134 | fi |
| 5135 | |
| 5136 | # Extract the first word of "mv", so it can be a program name with args. |
| 5137 | set dummy mv; ac_word=$2 |
| 5138 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5140 | if test "${ac_cv_path_MV+set}" = set; then |
| 5141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5142 | else |
| 5143 | case $MV in |
| 5144 | [\\/]* | ?:[\\/]*) |
| 5145 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 5146 | ;; |
| 5147 | *) |
| 5148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5149 | for as_dir in $PATH |
| 5150 | do |
| 5151 | IFS=$as_save_IFS |
| 5152 | test -z "$as_dir" && as_dir=. |
| 5153 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5154 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5155 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 5156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5157 | break 2 |
| 5158 | fi |
| 5159 | done |
| 5160 | done |
| 5161 | |
| 5162 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 5163 | ;; |
| 5164 | esac |
| 5165 | fi |
| 5166 | MV=$ac_cv_path_MV |
| 5167 | |
| 5168 | if test -n "$MV"; then |
| 5169 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 5170 | echo "${ECHO_T}$MV" >&6 |
| 5171 | else |
| 5172 | echo "$as_me:$LINENO: result: no" >&5 |
| 5173 | echo "${ECHO_T}no" >&6 |
| 5174 | fi |
| 5175 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5176 | if test -n "$ac_tool_prefix"; then |
| 5177 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5178 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5179 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5181 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5183 | else |
| 5184 | if test -n "$RANLIB"; then |
| 5185 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5186 | else |
| 5187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5188 | for as_dir in $PATH |
| 5189 | do |
| 5190 | IFS=$as_save_IFS |
| 5191 | test -z "$as_dir" && as_dir=. |
| 5192 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5193 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5194 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5196 | break 2 |
| 5197 | fi |
| 5198 | done |
| 5199 | done |
| 5200 | |
| 5201 | fi |
| 5202 | fi |
| 5203 | RANLIB=$ac_cv_prog_RANLIB |
| 5204 | if test -n "$RANLIB"; then |
| 5205 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5206 | echo "${ECHO_T}$RANLIB" >&6 |
| 5207 | else |
| 5208 | echo "$as_me:$LINENO: result: no" >&5 |
| 5209 | echo "${ECHO_T}no" >&6 |
| 5210 | fi |
| 5211 | |
| 5212 | fi |
| 5213 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5214 | ac_ct_RANLIB=$RANLIB |
| 5215 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5216 | set dummy ranlib; ac_word=$2 |
| 5217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5219 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5221 | else |
| 5222 | if test -n "$ac_ct_RANLIB"; then |
| 5223 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5224 | else |
| 5225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5226 | for as_dir in $PATH |
| 5227 | do |
| 5228 | IFS=$as_save_IFS |
| 5229 | test -z "$as_dir" && as_dir=. |
| 5230 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5232 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5234 | break 2 |
| 5235 | fi |
| 5236 | done |
| 5237 | done |
| 5238 | |
| 5239 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5240 | fi |
| 5241 | fi |
| 5242 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5243 | if test -n "$ac_ct_RANLIB"; then |
| 5244 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5245 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5246 | else |
| 5247 | echo "$as_me:$LINENO: result: no" >&5 |
| 5248 | echo "${ECHO_T}no" >&6 |
| 5249 | fi |
| 5250 | |
| 5251 | RANLIB=$ac_ct_RANLIB |
| 5252 | else |
| 5253 | RANLIB="$ac_cv_prog_RANLIB" |
| 5254 | fi |
| 5255 | |
| 5256 | # Extract the first word of "rm", so it can be a program name with args. |
| 5257 | set dummy rm; ac_word=$2 |
| 5258 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5260 | if test "${ac_cv_path_RM+set}" = set; then |
| 5261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5262 | else |
| 5263 | case $RM in |
| 5264 | [\\/]* | ?:[\\/]*) |
| 5265 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 5266 | ;; |
| 5267 | *) |
| 5268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5269 | for as_dir in $PATH |
| 5270 | do |
| 5271 | IFS=$as_save_IFS |
| 5272 | test -z "$as_dir" && as_dir=. |
| 5273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5274 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5275 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 5276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5277 | break 2 |
| 5278 | fi |
| 5279 | done |
| 5280 | done |
| 5281 | |
| 5282 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 5283 | ;; |
| 5284 | esac |
| 5285 | fi |
| 5286 | RM=$ac_cv_path_RM |
| 5287 | |
| 5288 | if test -n "$RM"; then |
| 5289 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 5290 | echo "${ECHO_T}$RM" >&6 |
| 5291 | else |
| 5292 | echo "$as_me:$LINENO: result: no" >&5 |
| 5293 | echo "${ECHO_T}no" >&6 |
| 5294 | fi |
| 5295 | |
| 5296 | # Extract the first word of "sed", so it can be a program name with args. |
| 5297 | set dummy sed; ac_word=$2 |
| 5298 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5300 | if test "${ac_cv_path_SED+set}" = set; then |
| 5301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5302 | else |
| 5303 | case $SED in |
| 5304 | [\\/]* | ?:[\\/]*) |
| 5305 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 5306 | ;; |
| 5307 | *) |
| 5308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5309 | for as_dir in $PATH |
| 5310 | do |
| 5311 | IFS=$as_save_IFS |
| 5312 | test -z "$as_dir" && as_dir=. |
| 5313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5315 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 5316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5317 | break 2 |
| 5318 | fi |
| 5319 | done |
| 5320 | done |
| 5321 | |
| 5322 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 5323 | ;; |
| 5324 | esac |
| 5325 | fi |
| 5326 | SED=$ac_cv_path_SED |
| 5327 | |
| 5328 | if test -n "$SED"; then |
| 5329 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 5330 | echo "${ECHO_T}$SED" >&6 |
| 5331 | else |
| 5332 | echo "$as_me:$LINENO: result: no" >&5 |
| 5333 | echo "${ECHO_T}no" >&6 |
| 5334 | fi |
| 5335 | |
| 5336 | # Extract the first word of "tar", so it can be a program name with args. |
| 5337 | set dummy tar; ac_word=$2 |
| 5338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5340 | if test "${ac_cv_path_TAR+set}" = set; then |
| 5341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5342 | else |
| 5343 | case $TAR in |
| 5344 | [\\/]* | ?:[\\/]*) |
| 5345 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 5346 | ;; |
| 5347 | *) |
| 5348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5349 | for as_dir in $PATH |
| 5350 | do |
| 5351 | IFS=$as_save_IFS |
| 5352 | test -z "$as_dir" && as_dir=. |
| 5353 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5354 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5355 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 5356 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5357 | break 2 |
| 5358 | fi |
| 5359 | done |
| 5360 | done |
| 5361 | |
| 5362 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 5363 | ;; |
| 5364 | esac |
| 5365 | fi |
| 5366 | TAR=$ac_cv_path_TAR |
| 5367 | |
| 5368 | if test -n "$TAR"; then |
| 5369 | echo "$as_me:$LINENO: result: $TAR" >&5 |
| 5370 | echo "${ECHO_T}$TAR" >&6 |
| 5371 | else |
| 5372 | echo "$as_me:$LINENO: result: no" >&5 |
| 5373 | echo "${ECHO_T}no" >&6 |
| 5374 | fi |
| 5375 | |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 5376 | # Extract the first word of "pwd", so it can be a program name with args. |
| 5377 | set dummy pwd; ac_word=$2 |
| 5378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5380 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5382 | else |
| 5383 | case $BINPWD in |
| 5384 | [\\/]* | ?:[\\/]*) |
| 5385 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 5386 | ;; |
| 5387 | *) |
| 5388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5389 | for as_dir in $PATH |
| 5390 | do |
| 5391 | IFS=$as_save_IFS |
| 5392 | test -z "$as_dir" && as_dir=. |
| 5393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5395 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 5396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5397 | break 2 |
| 5398 | fi |
| 5399 | done |
| 5400 | done |
| 5401 | |
| 5402 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 5403 | ;; |
| 5404 | esac |
| 5405 | fi |
| 5406 | BINPWD=$ac_cv_path_BINPWD |
| 5407 | |
| 5408 | if test -n "$BINPWD"; then |
| 5409 | echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 5410 | echo "${ECHO_T}$BINPWD" >&6 |
| 5411 | else |
| 5412 | echo "$as_me:$LINENO: result: no" >&5 |
| 5413 | echo "${ECHO_T}no" >&6 |
| 5414 | fi |
| 5415 | |
Reid Spencer | ecbd242 | 2006-06-02 23:13:18 +0000 | [diff] [blame] | 5416 | |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5417 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 5418 | set dummy Graphviz; ac_word=$2 |
| 5419 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5421 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 5422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5423 | else |
| 5424 | case $GRAPHVIZ in |
| 5425 | [\\/]* | ?:[\\/]*) |
| 5426 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 5427 | ;; |
| 5428 | *) |
| 5429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5430 | for as_dir in $PATH |
| 5431 | do |
| 5432 | IFS=$as_save_IFS |
| 5433 | test -z "$as_dir" && as_dir=. |
| 5434 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5435 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5436 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 5437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5438 | break 2 |
| 5439 | fi |
| 5440 | done |
| 5441 | done |
| 5442 | |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5443 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5444 | ;; |
| 5445 | esac |
| 5446 | fi |
| 5447 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 5448 | |
| 5449 | if test -n "$GRAPHVIZ"; then |
| 5450 | echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 5451 | echo "${ECHO_T}$GRAPHVIZ" >&6 |
| 5452 | else |
| 5453 | echo "$as_me:$LINENO: result: no" >&5 |
| 5454 | echo "${ECHO_T}no" >&6 |
| 5455 | fi |
| 5456 | |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5457 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5458 | |
| 5459 | cat >>confdefs.h <<\_ACEOF |
| 5460 | #define HAVE_GRAPHVIZ 1 |
| 5461 | _ACEOF |
| 5462 | |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5463 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 5464 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 5465 | fi |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5466 | |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5467 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5468 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5469 | _ACEOF |
| 5470 | |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5471 | fi |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5472 | # Extract the first word of "dot", so it can be a program name with args. |
| 5473 | set dummy dot; ac_word=$2 |
| 5474 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5476 | if test "${ac_cv_path_DOT+set}" = set; then |
| 5477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5478 | else |
| 5479 | case $DOT in |
| 5480 | [\\/]* | ?:[\\/]*) |
| 5481 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 5482 | ;; |
| 5483 | *) |
| 5484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5485 | for as_dir in $PATH |
| 5486 | do |
| 5487 | IFS=$as_save_IFS |
| 5488 | test -z "$as_dir" && as_dir=. |
| 5489 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5491 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 5492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5493 | break 2 |
| 5494 | fi |
| 5495 | done |
| 5496 | done |
| 5497 | |
| 5498 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 5499 | ;; |
| 5500 | esac |
| 5501 | fi |
| 5502 | DOT=$ac_cv_path_DOT |
| 5503 | |
| 5504 | if test -n "$DOT"; then |
| 5505 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 5506 | echo "${ECHO_T}$DOT" >&6 |
| 5507 | else |
| 5508 | echo "$as_me:$LINENO: result: no" >&5 |
| 5509 | echo "${ECHO_T}no" >&6 |
| 5510 | fi |
| 5511 | |
| 5512 | if test "$DOT" != "echo dot" ; then |
| 5513 | |
| 5514 | cat >>confdefs.h <<\_ACEOF |
| 5515 | #define HAVE_DOT 1 |
| 5516 | _ACEOF |
| 5517 | |
| 5518 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 5519 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 5520 | fi |
| 5521 | |
| 5522 | cat >>confdefs.h <<_ACEOF |
| 5523 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 5524 | _ACEOF |
| 5525 | |
| 5526 | fi |
| 5527 | for ac_prog in gv gsview32 |
| 5528 | do |
| 5529 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5530 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5533 | if test "${ac_cv_path_GV+set}" = set; then |
| 5534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5535 | else |
| 5536 | case $GV in |
| 5537 | [\\/]* | ?:[\\/]*) |
| 5538 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 5539 | ;; |
| 5540 | *) |
| 5541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5542 | for as_dir in $PATH |
| 5543 | do |
| 5544 | IFS=$as_save_IFS |
| 5545 | test -z "$as_dir" && as_dir=. |
| 5546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5548 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 5549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5550 | break 2 |
| 5551 | fi |
| 5552 | done |
| 5553 | done |
| 5554 | |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5555 | ;; |
| 5556 | esac |
| 5557 | fi |
| 5558 | GV=$ac_cv_path_GV |
| 5559 | |
| 5560 | if test -n "$GV"; then |
| 5561 | echo "$as_me:$LINENO: result: $GV" >&5 |
| 5562 | echo "${ECHO_T}$GV" >&6 |
| 5563 | else |
| 5564 | echo "$as_me:$LINENO: result: no" >&5 |
| 5565 | echo "${ECHO_T}no" >&6 |
| 5566 | fi |
| 5567 | |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5568 | test -n "$GV" && break |
| 5569 | done |
| 5570 | test -n "$GV" || GV="echo gv" |
| 5571 | |
Misha Brukman | f83d406 | 2005-11-01 21:00:49 +0000 | [diff] [blame] | 5572 | if test "$GV" != "echo gv" ; then |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5573 | |
| 5574 | cat >>confdefs.h <<\_ACEOF |
| 5575 | #define HAVE_GV 1 |
| 5576 | _ACEOF |
| 5577 | |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5578 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 5579 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 5580 | fi |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5581 | |
| 5582 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5583 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5584 | _ACEOF |
| 5585 | |
| 5586 | fi |
Reid Spencer | ecbd242 | 2006-06-02 23:13:18 +0000 | [diff] [blame] | 5587 | # Extract the first word of "dotty", so it can be a program name with args. |
| 5588 | set dummy dotty; 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_DOTTY+set}" = set; then |
| 5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5593 | else |
| 5594 | case $DOTTY in |
| 5595 | [\\/]* | ?:[\\/]*) |
| 5596 | ac_cv_path_DOTTY="$DOTTY" # 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_DOTTY="$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_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 5614 | ;; |
| 5615 | esac |
| 5616 | fi |
| 5617 | DOTTY=$ac_cv_path_DOTTY |
| 5618 | |
| 5619 | if test -n "$DOTTY"; then |
| 5620 | echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 5621 | echo "${ECHO_T}$DOTTY" >&6 |
| 5622 | else |
| 5623 | echo "$as_me:$LINENO: result: no" >&5 |
| 5624 | echo "${ECHO_T}no" >&6 |
| 5625 | fi |
| 5626 | |
| 5627 | if test "$DOTTY" != "echo dotty" ; then |
| 5628 | |
| 5629 | cat >>confdefs.h <<\_ACEOF |
| 5630 | #define HAVE_DOTTY 1 |
| 5631 | _ACEOF |
| 5632 | |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5633 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 5634 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 5635 | fi |
Reid Spencer | ecbd242 | 2006-06-02 23:13:18 +0000 | [diff] [blame] | 5636 | |
| 5637 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 5638 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
Reid Spencer | ecbd242 | 2006-06-02 23:13:18 +0000 | [diff] [blame] | 5639 | _ACEOF |
| 5640 | |
| 5641 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5642 | |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 5643 | |
| 5644 | # Extract the first word of "perl", so it can be a program name with args. |
| 5645 | set dummy perl; ac_word=$2 |
| 5646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5648 | if test "${ac_cv_path_PERL+set}" = set; then |
| 5649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5650 | else |
| 5651 | case $PERL in |
| 5652 | [\\/]* | ?:[\\/]*) |
| 5653 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 5654 | ;; |
| 5655 | *) |
| 5656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5657 | for as_dir in $PATH |
| 5658 | do |
| 5659 | IFS=$as_save_IFS |
| 5660 | test -z "$as_dir" && as_dir=. |
| 5661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5663 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 5664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5665 | break 2 |
| 5666 | fi |
| 5667 | done |
| 5668 | done |
| 5669 | |
| 5670 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 5671 | ;; |
| 5672 | esac |
| 5673 | fi |
| 5674 | PERL=$ac_cv_path_PERL |
| 5675 | |
| 5676 | if test -n "$PERL"; then |
| 5677 | echo "$as_me:$LINENO: result: $PERL" >&5 |
| 5678 | echo "${ECHO_T}$PERL" >&6 |
| 5679 | else |
| 5680 | echo "$as_me:$LINENO: result: no" >&5 |
| 5681 | echo "${ECHO_T}no" >&6 |
| 5682 | fi |
| 5683 | |
| 5684 | if test "$PERL" != "none"; then |
| 5685 | echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 5686 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6 |
| 5687 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 5688 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5689 | echo "${ECHO_T}yes" >&6 |
| 5690 | else |
| 5691 | PERL=none |
| 5692 | echo "$as_me:$LINENO: result: not found" >&5 |
| 5693 | echo "${ECHO_T}not found" >&6 |
| 5694 | fi |
| 5695 | fi |
| 5696 | |
| 5697 | |
| 5698 | if test x"$PERL" = xnone; then |
| 5699 | HAVE_PERL=0 |
| 5700 | |
| 5701 | else |
| 5702 | HAVE_PERL=1 |
| 5703 | |
| 5704 | fi |
| 5705 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5706 | # Find a good install program. We prefer a C program (faster), |
| 5707 | # so one script is as good as another. But avoid the broken or |
| 5708 | # incompatible versions: |
| 5709 | # SysV /etc/install, /usr/sbin/install |
| 5710 | # SunOS /usr/etc/install |
| 5711 | # IRIX /sbin/install |
| 5712 | # AIX /bin/install |
| 5713 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5714 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5715 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5716 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5717 | # OS/2's system install, which has a completely different semantic |
| 5718 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5719 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5720 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5721 | if test -z "$INSTALL"; then |
| 5722 | if test "${ac_cv_path_install+set}" = set; then |
| 5723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5724 | else |
| 5725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5726 | for as_dir in $PATH |
| 5727 | do |
| 5728 | IFS=$as_save_IFS |
| 5729 | test -z "$as_dir" && as_dir=. |
| 5730 | # Account for people who put trailing slashes in PATH elements. |
| 5731 | case $as_dir/ in |
| 5732 | ./ | .// | /cC/* | \ |
| 5733 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5734 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5735 | /usr/ucb/* ) ;; |
| 5736 | *) |
| 5737 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5738 | # Don't use installbsd from OSF since it installs stuff as root |
| 5739 | # by default. |
| 5740 | for ac_prog in ginstall scoinst install; do |
| 5741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5742 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5743 | if test $ac_prog = install && |
| 5744 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5745 | # AIX install. It has an incompatible calling convention. |
| 5746 | : |
| 5747 | elif test $ac_prog = install && |
| 5748 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5749 | # program-specific install script used by HP pwplus--don't use. |
| 5750 | : |
| 5751 | else |
| 5752 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5753 | break 3 |
| 5754 | fi |
| 5755 | fi |
| 5756 | done |
| 5757 | done |
| 5758 | ;; |
| 5759 | esac |
| 5760 | done |
| 5761 | |
| 5762 | |
| 5763 | fi |
| 5764 | if test "${ac_cv_path_install+set}" = set; then |
| 5765 | INSTALL=$ac_cv_path_install |
| 5766 | else |
| 5767 | # As a last resort, use the slow shell script. We don't cache a |
| 5768 | # path for INSTALL within a source directory, because that will |
| 5769 | # break other packages using the cache if that directory is |
| 5770 | # removed, or if the path is relative. |
| 5771 | INSTALL=$ac_install_sh |
| 5772 | fi |
| 5773 | fi |
| 5774 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5775 | echo "${ECHO_T}$INSTALL" >&6 |
| 5776 | |
| 5777 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5778 | # It thinks the first close brace ends the variable substitution. |
| 5779 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5780 | |
| 5781 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5782 | |
| 5783 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5784 | |
| 5785 | |
| 5786 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 5787 | set dummy bzip2; ac_word=$2 |
| 5788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5790 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 5791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5792 | else |
| 5793 | case $BZIP2 in |
| 5794 | [\\/]* | ?:[\\/]*) |
| 5795 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 5796 | ;; |
| 5797 | *) |
| 5798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5799 | for as_dir in $PATH |
| 5800 | do |
| 5801 | IFS=$as_save_IFS |
| 5802 | test -z "$as_dir" && as_dir=. |
| 5803 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5805 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 5806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5807 | break 2 |
| 5808 | fi |
| 5809 | done |
| 5810 | done |
| 5811 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5812 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5813 | ;; |
| 5814 | esac |
| 5815 | fi |
| 5816 | BZIP2=$ac_cv_path_BZIP2 |
| 5817 | |
| 5818 | if test -n "$BZIP2"; then |
| 5819 | echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 5820 | echo "${ECHO_T}$BZIP2" >&6 |
| 5821 | else |
| 5822 | echo "$as_me:$LINENO: result: no" >&5 |
| 5823 | echo "${ECHO_T}no" >&6 |
| 5824 | fi |
| 5825 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5826 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 5827 | set dummy doxygen; ac_word=$2 |
| 5828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5830 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 5831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5832 | else |
| 5833 | case $DOXYGEN in |
| 5834 | [\\/]* | ?:[\\/]*) |
| 5835 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 5836 | ;; |
| 5837 | *) |
| 5838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5839 | for as_dir in $PATH |
| 5840 | do |
| 5841 | IFS=$as_save_IFS |
| 5842 | test -z "$as_dir" && as_dir=. |
| 5843 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5845 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 5846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5847 | break 2 |
| 5848 | fi |
| 5849 | done |
| 5850 | done |
| 5851 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5852 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5853 | ;; |
| 5854 | esac |
| 5855 | fi |
| 5856 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 5857 | |
| 5858 | if test -n "$DOXYGEN"; then |
| 5859 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 5860 | echo "${ECHO_T}$DOXYGEN" >&6 |
| 5861 | else |
| 5862 | echo "$as_me:$LINENO: result: no" >&5 |
| 5863 | echo "${ECHO_T}no" >&6 |
| 5864 | fi |
| 5865 | |
| 5866 | # Extract the first word of "etags", so it can be a program name with args. |
| 5867 | set dummy etags; ac_word=$2 |
| 5868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5870 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5872 | else |
| 5873 | case $ETAGS in |
| 5874 | [\\/]* | ?:[\\/]*) |
| 5875 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 5876 | ;; |
| 5877 | *) |
| 5878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5879 | for as_dir in $PATH |
| 5880 | do |
| 5881 | IFS=$as_save_IFS |
| 5882 | test -z "$as_dir" && as_dir=. |
| 5883 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5885 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 5886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5887 | break 2 |
| 5888 | fi |
| 5889 | done |
| 5890 | done |
| 5891 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5892 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5893 | ;; |
| 5894 | esac |
| 5895 | fi |
| 5896 | ETAGS=$ac_cv_path_ETAGS |
| 5897 | |
| 5898 | if test -n "$ETAGS"; then |
| 5899 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 5900 | echo "${ECHO_T}$ETAGS" >&6 |
| 5901 | else |
| 5902 | echo "$as_me:$LINENO: result: no" >&5 |
| 5903 | echo "${ECHO_T}no" >&6 |
| 5904 | fi |
| 5905 | |
| 5906 | # Extract the first word of "groff", so it can be a program name with args. |
| 5907 | set dummy groff; ac_word=$2 |
| 5908 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5910 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 5911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5912 | else |
| 5913 | case $GROFF in |
| 5914 | [\\/]* | ?:[\\/]*) |
| 5915 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 5916 | ;; |
| 5917 | *) |
| 5918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5919 | for as_dir in $PATH |
| 5920 | do |
| 5921 | IFS=$as_save_IFS |
| 5922 | test -z "$as_dir" && as_dir=. |
| 5923 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5925 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 5926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5927 | break 2 |
| 5928 | fi |
| 5929 | done |
| 5930 | done |
| 5931 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5932 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5933 | ;; |
| 5934 | esac |
| 5935 | fi |
| 5936 | GROFF=$ac_cv_path_GROFF |
| 5937 | |
| 5938 | if test -n "$GROFF"; then |
| 5939 | echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 5940 | echo "${ECHO_T}$GROFF" >&6 |
| 5941 | else |
| 5942 | echo "$as_me:$LINENO: result: no" >&5 |
| 5943 | echo "${ECHO_T}no" >&6 |
| 5944 | fi |
| 5945 | |
| 5946 | # Extract the first word of "gzip", so it can be a program name with args. |
| 5947 | set dummy gzip; ac_word=$2 |
| 5948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5950 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 5951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5952 | else |
| 5953 | case $GZIP in |
| 5954 | [\\/]* | ?:[\\/]*) |
| 5955 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 5956 | ;; |
| 5957 | *) |
| 5958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5959 | for as_dir in $PATH |
| 5960 | do |
| 5961 | IFS=$as_save_IFS |
| 5962 | test -z "$as_dir" && as_dir=. |
| 5963 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5965 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 5966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5967 | break 2 |
| 5968 | fi |
| 5969 | done |
| 5970 | done |
| 5971 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 5972 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5973 | ;; |
| 5974 | esac |
| 5975 | fi |
| 5976 | GZIP=$ac_cv_path_GZIP |
| 5977 | |
| 5978 | if test -n "$GZIP"; then |
| 5979 | echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 5980 | echo "${ECHO_T}$GZIP" >&6 |
| 5981 | else |
| 5982 | echo "$as_me:$LINENO: result: no" >&5 |
| 5983 | echo "${ECHO_T}no" >&6 |
| 5984 | fi |
| 5985 | |
| 5986 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 5987 | set dummy pod2html; ac_word=$2 |
| 5988 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5990 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 5991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5992 | else |
| 5993 | case $POD2HTML in |
| 5994 | [\\/]* | ?:[\\/]*) |
| 5995 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 5996 | ;; |
| 5997 | *) |
| 5998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5999 | for as_dir in $PATH |
| 6000 | do |
| 6001 | IFS=$as_save_IFS |
| 6002 | test -z "$as_dir" && as_dir=. |
| 6003 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6004 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6005 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 6006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6007 | break 2 |
| 6008 | fi |
| 6009 | done |
| 6010 | done |
| 6011 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 6012 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6013 | ;; |
| 6014 | esac |
| 6015 | fi |
| 6016 | POD2HTML=$ac_cv_path_POD2HTML |
| 6017 | |
| 6018 | if test -n "$POD2HTML"; then |
| 6019 | echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 6020 | echo "${ECHO_T}$POD2HTML" >&6 |
| 6021 | else |
| 6022 | echo "$as_me:$LINENO: result: no" >&5 |
| 6023 | echo "${ECHO_T}no" >&6 |
| 6024 | fi |
| 6025 | |
| 6026 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 6027 | set dummy pod2man; ac_word=$2 |
| 6028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6030 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6032 | else |
| 6033 | case $POD2MAN in |
| 6034 | [\\/]* | ?:[\\/]*) |
| 6035 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 6036 | ;; |
| 6037 | *) |
| 6038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6039 | for as_dir in $PATH |
| 6040 | do |
| 6041 | IFS=$as_save_IFS |
| 6042 | test -z "$as_dir" && as_dir=. |
| 6043 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6045 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 6046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6047 | break 2 |
| 6048 | fi |
| 6049 | done |
| 6050 | done |
| 6051 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 6052 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6053 | ;; |
| 6054 | esac |
| 6055 | fi |
| 6056 | POD2MAN=$ac_cv_path_POD2MAN |
| 6057 | |
| 6058 | if test -n "$POD2MAN"; then |
| 6059 | echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 6060 | echo "${ECHO_T}$POD2MAN" >&6 |
| 6061 | else |
| 6062 | echo "$as_me:$LINENO: result: no" >&5 |
| 6063 | echo "${ECHO_T}no" >&6 |
| 6064 | fi |
| 6065 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6066 | # Extract the first word of "runtest", so it can be a program name with args. |
| 6067 | set dummy runtest; ac_word=$2 |
| 6068 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6070 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6072 | else |
| 6073 | case $RUNTEST in |
| 6074 | [\\/]* | ?:[\\/]*) |
| 6075 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 6076 | ;; |
| 6077 | *) |
| 6078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6079 | for as_dir in $PATH |
| 6080 | do |
| 6081 | IFS=$as_save_IFS |
| 6082 | test -z "$as_dir" && as_dir=. |
| 6083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6084 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6085 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 6086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6087 | break 2 |
| 6088 | fi |
| 6089 | done |
| 6090 | done |
| 6091 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 6092 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6093 | ;; |
| 6094 | esac |
| 6095 | fi |
| 6096 | RUNTEST=$ac_cv_path_RUNTEST |
| 6097 | |
| 6098 | if test -n "$RUNTEST"; then |
| 6099 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 6100 | echo "${ECHO_T}$RUNTEST" >&6 |
| 6101 | else |
| 6102 | echo "$as_me:$LINENO: result: no" >&5 |
| 6103 | echo "${ECHO_T}no" >&6 |
| 6104 | fi |
| 6105 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6106 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6107 | no_itcl=true |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6108 | echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 6109 | 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] | 6110 | |
| 6111 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 6112 | if test "${with_tclinclude+set}" = set; then |
| 6113 | withval="$with_tclinclude" |
| 6114 | with_tclinclude=${withval} |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6115 | else |
| 6116 | with_tclinclude='' |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6117 | fi; |
| 6118 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 6119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6120 | else |
| 6121 | |
| 6122 | if test x"${with_tclinclude}" != x ; then |
| 6123 | if test -f ${with_tclinclude}/tclsh ; then |
| 6124 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 6125 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 6126 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 6127 | else |
| 6128 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 6129 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 6130 | { (exit 1); exit 1; }; } |
| 6131 | fi |
| 6132 | fi |
| 6133 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6134 | if test x"${ac_cv_path_tclsh}" = x ; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6135 | echo "$as_me:$LINENO: result: none" >&5 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6136 | echo "${ECHO_T}none" >&6 |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 6137 | 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] | 6138 | do |
| 6139 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6140 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6143 | if test "${ac_cv_path_TCLSH+set}" = set; then |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6145 | else |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6146 | case $TCLSH in |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6147 | [\\/]* | ?:[\\/]*) |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6148 | 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] | 6149 | ;; |
| 6150 | *) |
| 6151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6152 | for as_dir in $PATH |
| 6153 | do |
| 6154 | IFS=$as_save_IFS |
| 6155 | test -z "$as_dir" && as_dir=. |
| 6156 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6158 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6160 | break 2 |
| 6161 | fi |
| 6162 | done |
| 6163 | done |
| 6164 | |
| 6165 | ;; |
| 6166 | esac |
| 6167 | fi |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6168 | TCLSH=$ac_cv_path_TCLSH |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6169 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6170 | if test -n "$TCLSH"; then |
| 6171 | echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 6172 | echo "${ECHO_T}$TCLSH" >&6 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6173 | else |
| 6174 | echo "$as_me:$LINENO: result: no" >&5 |
| 6175 | echo "${ECHO_T}no" >&6 |
| 6176 | fi |
| 6177 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6178 | test -n "$TCLSH" && break |
| 6179 | done |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6180 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 6181 | if test x"${TCLSH}" = x ; then |
| 6182 | ac_cv_path_tclsh=''; |
| 6183 | else |
| 6184 | ac_cv_path_tclsh="${TCLSH}"; |
| 6185 | fi |
| 6186 | else |
| 6187 | echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 6188 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6 |
| 6189 | TCLSH="${ac_cv_path_tclsh}" |
| 6190 | |
| 6191 | fi |
| 6192 | |
| 6193 | fi |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 6194 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6195 | # Extract the first word of "zip", so it can be a program name with args. |
| 6196 | set dummy zip; ac_word=$2 |
| 6197 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6199 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 6200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6201 | else |
| 6202 | case $ZIP in |
| 6203 | [\\/]* | ?:[\\/]*) |
| 6204 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 6205 | ;; |
| 6206 | *) |
| 6207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6208 | for as_dir in $PATH |
| 6209 | do |
| 6210 | IFS=$as_save_IFS |
| 6211 | test -z "$as_dir" && as_dir=. |
| 6212 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6214 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 6215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6216 | break 2 |
| 6217 | fi |
| 6218 | done |
| 6219 | done |
| 6220 | |
Reid Spencer | f9b458c | 2006-04-27 07:49:24 +0000 | [diff] [blame] | 6221 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6222 | ;; |
| 6223 | esac |
| 6224 | fi |
| 6225 | ZIP=$ac_cv_path_ZIP |
| 6226 | |
| 6227 | if test -n "$ZIP"; then |
| 6228 | echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 6229 | echo "${ECHO_T}$ZIP" >&6 |
| 6230 | else |
| 6231 | echo "$as_me:$LINENO: result: no" >&5 |
| 6232 | echo "${ECHO_T}no" >&6 |
| 6233 | fi |
| 6234 | |
| 6235 | |
| 6236 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 6237 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 |
| 6238 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 6239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6240 | else |
| 6241 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6242 | ac_cpp='$CPP $CPPFLAGS' |
| 6243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6246 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6247 | oldcflags="$CFLAGS" |
| 6248 | CFLAGS="$CFLAGS -Wl,-R." |
| 6249 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6250 | /* confdefs.h. */ |
| 6251 | _ACEOF |
| 6252 | cat confdefs.h >>conftest.$ac_ext |
| 6253 | cat >>conftest.$ac_ext <<_ACEOF |
| 6254 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6255 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6256 | int |
| 6257 | main () |
| 6258 | { |
| 6259 | int main() { return 0; } |
| 6260 | ; |
| 6261 | return 0; |
| 6262 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6263 | _ACEOF |
| 6264 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6266 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6267 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6269 | rm -f conftest.er1 |
| 6270 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6272 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6273 | { ac_try='test -z "$ac_c_werror_flag" |
| 6274 | || test ! -s conftest.err' |
| 6275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6276 | (eval $ac_try) 2>&5 |
| 6277 | ac_status=$? |
| 6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6279 | (exit $ac_status); }; } && |
| 6280 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6282 | (eval $ac_try) 2>&5 |
| 6283 | ac_status=$? |
| 6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6285 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6286 | llvm_cv_link_use_r=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6287 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6288 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6290 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6291 | llvm_cv_link_use_r=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6292 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6293 | rm -f conftest.err conftest.$ac_objext \ |
| 6294 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6295 | CFLAGS="$oldcflags" |
| 6296 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6297 | ac_cpp='$CPP $CPPFLAGS' |
| 6298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6301 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6303 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6304 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 6305 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 |
| 6306 | if test "$llvm_cv_link_use_r" = yes ; then |
| 6307 | |
| 6308 | cat >>confdefs.h <<\_ACEOF |
| 6309 | #define HAVE_LINK_R 1 |
| 6310 | _ACEOF |
| 6311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6312 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6313 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6314 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6315 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6316 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6317 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 6318 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 6319 | if test "${ac_cv_c_const+set}" = set; then |
| 6320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6321 | else |
| 6322 | cat >conftest.$ac_ext <<_ACEOF |
| 6323 | /* confdefs.h. */ |
| 6324 | _ACEOF |
| 6325 | cat confdefs.h >>conftest.$ac_ext |
| 6326 | cat >>conftest.$ac_ext <<_ACEOF |
| 6327 | /* end confdefs.h. */ |
| 6328 | |
| 6329 | int |
| 6330 | main () |
| 6331 | { |
| 6332 | /* FIXME: Include the comments suggested by Paul. */ |
| 6333 | #ifndef __cplusplus |
| 6334 | /* Ultrix mips cc rejects this. */ |
| 6335 | typedef int charset[2]; |
| 6336 | const charset x; |
| 6337 | /* SunOS 4.1.1 cc rejects this. */ |
| 6338 | char const *const *ccp; |
| 6339 | char **p; |
| 6340 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6341 | struct point {int x, y;}; |
| 6342 | static struct point const zero = {0,0}; |
| 6343 | /* AIX XL C 1.02.0.0 rejects this. |
| 6344 | It does not let you subtract one const X* pointer from another in |
| 6345 | an arm of an if-expression whose if-part is not a constant |
| 6346 | expression */ |
| 6347 | const char *g = "string"; |
| 6348 | ccp = &g + (g ? g-g : 0); |
| 6349 | /* HPUX 7.0 cc rejects these. */ |
| 6350 | ++ccp; |
| 6351 | p = (char**) ccp; |
| 6352 | ccp = (char const *const *) p; |
| 6353 | { /* SCO 3.2v4 cc rejects this. */ |
| 6354 | char *t; |
| 6355 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6356 | |
| 6357 | *t++ = 0; |
| 6358 | } |
| 6359 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6360 | int x[] = {25, 17}; |
| 6361 | const int *foo = &x[0]; |
| 6362 | ++foo; |
| 6363 | } |
| 6364 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6365 | typedef const int *iptr; |
| 6366 | iptr p = 0; |
| 6367 | ++p; |
| 6368 | } |
| 6369 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6370 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6371 | struct s { int j; const int *ap[3]; }; |
| 6372 | struct s *b; b->j = 5; |
| 6373 | } |
| 6374 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6375 | const int foo = 10; |
| 6376 | } |
| 6377 | #endif |
| 6378 | |
| 6379 | ; |
| 6380 | return 0; |
| 6381 | } |
| 6382 | _ACEOF |
| 6383 | rm -f conftest.$ac_objext |
| 6384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6385 | (eval $ac_compile) 2>conftest.er1 |
| 6386 | ac_status=$? |
| 6387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6388 | rm -f conftest.er1 |
| 6389 | cat conftest.err >&5 |
| 6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6391 | (exit $ac_status); } && |
| 6392 | { ac_try='test -z "$ac_c_werror_flag" |
| 6393 | || test ! -s conftest.err' |
| 6394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6395 | (eval $ac_try) 2>&5 |
| 6396 | ac_status=$? |
| 6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6398 | (exit $ac_status); }; } && |
| 6399 | { ac_try='test -s conftest.$ac_objext' |
| 6400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6401 | (eval $ac_try) 2>&5 |
| 6402 | ac_status=$? |
| 6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6404 | (exit $ac_status); }; }; then |
| 6405 | ac_cv_c_const=yes |
| 6406 | else |
| 6407 | echo "$as_me: failed program was:" >&5 |
| 6408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6409 | |
| 6410 | ac_cv_c_const=no |
| 6411 | fi |
| 6412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6413 | fi |
| 6414 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 6415 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 6416 | if test $ac_cv_c_const = no; then |
| 6417 | |
| 6418 | cat >>confdefs.h <<\_ACEOF |
| 6419 | #define const |
| 6420 | _ACEOF |
| 6421 | |
| 6422 | fi |
| 6423 | |
| 6424 | |
| 6425 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 6426 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 6427 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 6428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6429 | else |
| 6430 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 6431 | then ac_cv_prog_egrep='grep -E' |
| 6432 | else ac_cv_prog_egrep='egrep' |
| 6433 | fi |
| 6434 | fi |
| 6435 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 6436 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 6437 | EGREP=$ac_cv_prog_egrep |
| 6438 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6439 | |
| 6440 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 6441 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6442 | if test "${ac_cv_header_stdc+set}" = set; then |
| 6443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6444 | else |
| 6445 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6446 | /* confdefs.h. */ |
| 6447 | _ACEOF |
| 6448 | cat confdefs.h >>conftest.$ac_ext |
| 6449 | cat >>conftest.$ac_ext <<_ACEOF |
| 6450 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6451 | #include <stdlib.h> |
| 6452 | #include <stdarg.h> |
| 6453 | #include <string.h> |
| 6454 | #include <float.h> |
| 6455 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6456 | int |
| 6457 | main () |
| 6458 | { |
| 6459 | |
| 6460 | ; |
| 6461 | return 0; |
| 6462 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6463 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6464 | rm -f conftest.$ac_objext |
| 6465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6466 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6467 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6469 | rm -f conftest.er1 |
| 6470 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6472 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6473 | { ac_try='test -z "$ac_c_werror_flag" |
| 6474 | || test ! -s conftest.err' |
| 6475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6476 | (eval $ac_try) 2>&5 |
| 6477 | ac_status=$? |
| 6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6479 | (exit $ac_status); }; } && |
| 6480 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6482 | (eval $ac_try) 2>&5 |
| 6483 | ac_status=$? |
| 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6485 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6486 | ac_cv_header_stdc=yes |
| 6487 | else |
| 6488 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6490 | |
| 6491 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6492 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6494 | |
| 6495 | if test $ac_cv_header_stdc = yes; then |
| 6496 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6497 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6498 | /* confdefs.h. */ |
| 6499 | _ACEOF |
| 6500 | cat confdefs.h >>conftest.$ac_ext |
| 6501 | cat >>conftest.$ac_ext <<_ACEOF |
| 6502 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6503 | #include <string.h> |
| 6504 | |
| 6505 | _ACEOF |
| 6506 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6507 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6508 | : |
| 6509 | else |
| 6510 | ac_cv_header_stdc=no |
| 6511 | fi |
| 6512 | rm -f conftest* |
| 6513 | |
| 6514 | fi |
| 6515 | |
| 6516 | if test $ac_cv_header_stdc = yes; then |
| 6517 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6518 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6519 | /* confdefs.h. */ |
| 6520 | _ACEOF |
| 6521 | cat confdefs.h >>conftest.$ac_ext |
| 6522 | cat >>conftest.$ac_ext <<_ACEOF |
| 6523 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6524 | #include <stdlib.h> |
| 6525 | |
| 6526 | _ACEOF |
| 6527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6528 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6529 | : |
| 6530 | else |
| 6531 | ac_cv_header_stdc=no |
| 6532 | fi |
| 6533 | rm -f conftest* |
| 6534 | |
| 6535 | fi |
| 6536 | |
| 6537 | if test $ac_cv_header_stdc = yes; then |
| 6538 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6539 | if test "$cross_compiling" = yes; then |
| 6540 | : |
| 6541 | else |
| 6542 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6543 | /* confdefs.h. */ |
| 6544 | _ACEOF |
| 6545 | cat confdefs.h >>conftest.$ac_ext |
| 6546 | cat >>conftest.$ac_ext <<_ACEOF |
| 6547 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6548 | #include <ctype.h> |
| 6549 | #if ((' ' & 0x0FF) == 0x020) |
| 6550 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6551 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6552 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6553 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6554 | (('a' <= (c) && (c) <= 'i') \ |
| 6555 | || ('j' <= (c) && (c) <= 'r') \ |
| 6556 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6557 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6558 | #endif |
| 6559 | |
| 6560 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6561 | int |
| 6562 | main () |
| 6563 | { |
| 6564 | int i; |
| 6565 | for (i = 0; i < 256; i++) |
| 6566 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6567 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6568 | exit(2); |
| 6569 | exit (0); |
| 6570 | } |
| 6571 | _ACEOF |
| 6572 | rm -f conftest$ac_exeext |
| 6573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6574 | (eval $ac_link) 2>&5 |
| 6575 | ac_status=$? |
| 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6579 | (eval $ac_try) 2>&5 |
| 6580 | ac_status=$? |
| 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6582 | (exit $ac_status); }; }; then |
| 6583 | : |
| 6584 | else |
| 6585 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6586 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6588 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6589 | ( exit $ac_status ) |
| 6590 | ac_cv_header_stdc=no |
| 6591 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6592 | 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] | 6593 | fi |
| 6594 | fi |
| 6595 | fi |
| 6596 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6597 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6598 | if test $ac_cv_header_stdc = yes; then |
| 6599 | |
| 6600 | cat >>confdefs.h <<\_ACEOF |
| 6601 | #define STDC_HEADERS 1 |
| 6602 | _ACEOF |
| 6603 | |
| 6604 | fi |
| 6605 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6606 | |
| 6607 | |
| 6608 | |
| 6609 | |
| 6610 | |
| 6611 | ac_header_dirent=no |
| 6612 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 6613 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6614 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6615 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 6616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6618 | else |
| 6619 | cat >conftest.$ac_ext <<_ACEOF |
| 6620 | /* confdefs.h. */ |
| 6621 | _ACEOF |
| 6622 | cat confdefs.h >>conftest.$ac_ext |
| 6623 | cat >>conftest.$ac_ext <<_ACEOF |
| 6624 | /* end confdefs.h. */ |
| 6625 | #include <sys/types.h> |
| 6626 | #include <$ac_hdr> |
| 6627 | |
| 6628 | int |
| 6629 | main () |
| 6630 | { |
| 6631 | if ((DIR *) 0) |
| 6632 | return 0; |
| 6633 | ; |
| 6634 | return 0; |
| 6635 | } |
| 6636 | _ACEOF |
| 6637 | rm -f conftest.$ac_objext |
| 6638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6639 | (eval $ac_compile) 2>conftest.er1 |
| 6640 | ac_status=$? |
| 6641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6642 | rm -f conftest.er1 |
| 6643 | cat conftest.err >&5 |
| 6644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6645 | (exit $ac_status); } && |
| 6646 | { ac_try='test -z "$ac_c_werror_flag" |
| 6647 | || test ! -s conftest.err' |
| 6648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6649 | (eval $ac_try) 2>&5 |
| 6650 | ac_status=$? |
| 6651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6652 | (exit $ac_status); }; } && |
| 6653 | { ac_try='test -s conftest.$ac_objext' |
| 6654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6655 | (eval $ac_try) 2>&5 |
| 6656 | ac_status=$? |
| 6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6658 | (exit $ac_status); }; }; then |
| 6659 | eval "$as_ac_Header=yes" |
| 6660 | else |
| 6661 | echo "$as_me: failed program was:" >&5 |
| 6662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6663 | |
| 6664 | eval "$as_ac_Header=no" |
| 6665 | fi |
| 6666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6667 | fi |
| 6668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6670 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6671 | cat >>confdefs.h <<_ACEOF |
| 6672 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 6673 | _ACEOF |
| 6674 | |
| 6675 | ac_header_dirent=$ac_hdr; break |
| 6676 | fi |
| 6677 | |
| 6678 | done |
| 6679 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6680 | if test $ac_header_dirent = dirent.h; then |
| 6681 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6682 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6683 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6685 | else |
| 6686 | ac_func_search_save_LIBS=$LIBS |
| 6687 | ac_cv_search_opendir=no |
| 6688 | cat >conftest.$ac_ext <<_ACEOF |
| 6689 | /* confdefs.h. */ |
| 6690 | _ACEOF |
| 6691 | cat confdefs.h >>conftest.$ac_ext |
| 6692 | cat >>conftest.$ac_ext <<_ACEOF |
| 6693 | /* end confdefs.h. */ |
| 6694 | |
| 6695 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6696 | #ifdef __cplusplus |
| 6697 | extern "C" |
| 6698 | #endif |
| 6699 | /* We use char because int might match the return type of a gcc2 |
| 6700 | builtin and then its argument prototype would still apply. */ |
| 6701 | char opendir (); |
| 6702 | int |
| 6703 | main () |
| 6704 | { |
| 6705 | opendir (); |
| 6706 | ; |
| 6707 | return 0; |
| 6708 | } |
| 6709 | _ACEOF |
| 6710 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6712 | (eval $ac_link) 2>conftest.er1 |
| 6713 | ac_status=$? |
| 6714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6715 | rm -f conftest.er1 |
| 6716 | cat conftest.err >&5 |
| 6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6718 | (exit $ac_status); } && |
| 6719 | { ac_try='test -z "$ac_c_werror_flag" |
| 6720 | || test ! -s conftest.err' |
| 6721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6722 | (eval $ac_try) 2>&5 |
| 6723 | ac_status=$? |
| 6724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6725 | (exit $ac_status); }; } && |
| 6726 | { ac_try='test -s conftest$ac_exeext' |
| 6727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6728 | (eval $ac_try) 2>&5 |
| 6729 | ac_status=$? |
| 6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6731 | (exit $ac_status); }; }; then |
| 6732 | ac_cv_search_opendir="none required" |
| 6733 | else |
| 6734 | echo "$as_me: failed program was:" >&5 |
| 6735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6736 | |
| 6737 | fi |
| 6738 | rm -f conftest.err conftest.$ac_objext \ |
| 6739 | conftest$ac_exeext conftest.$ac_ext |
| 6740 | if test "$ac_cv_search_opendir" = no; then |
| 6741 | for ac_lib in dir; do |
| 6742 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6743 | cat >conftest.$ac_ext <<_ACEOF |
| 6744 | /* confdefs.h. */ |
| 6745 | _ACEOF |
| 6746 | cat confdefs.h >>conftest.$ac_ext |
| 6747 | cat >>conftest.$ac_ext <<_ACEOF |
| 6748 | /* end confdefs.h. */ |
| 6749 | |
| 6750 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6751 | #ifdef __cplusplus |
| 6752 | extern "C" |
| 6753 | #endif |
| 6754 | /* We use char because int might match the return type of a gcc2 |
| 6755 | builtin and then its argument prototype would still apply. */ |
| 6756 | char opendir (); |
| 6757 | int |
| 6758 | main () |
| 6759 | { |
| 6760 | opendir (); |
| 6761 | ; |
| 6762 | return 0; |
| 6763 | } |
| 6764 | _ACEOF |
| 6765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6767 | (eval $ac_link) 2>conftest.er1 |
| 6768 | ac_status=$? |
| 6769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6770 | rm -f conftest.er1 |
| 6771 | cat conftest.err >&5 |
| 6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6773 | (exit $ac_status); } && |
| 6774 | { ac_try='test -z "$ac_c_werror_flag" |
| 6775 | || test ! -s conftest.err' |
| 6776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6777 | (eval $ac_try) 2>&5 |
| 6778 | ac_status=$? |
| 6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6780 | (exit $ac_status); }; } && |
| 6781 | { ac_try='test -s conftest$ac_exeext' |
| 6782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6783 | (eval $ac_try) 2>&5 |
| 6784 | ac_status=$? |
| 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6786 | (exit $ac_status); }; }; then |
| 6787 | ac_cv_search_opendir="-l$ac_lib" |
| 6788 | break |
| 6789 | else |
| 6790 | echo "$as_me: failed program was:" >&5 |
| 6791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6792 | |
| 6793 | fi |
| 6794 | rm -f conftest.err conftest.$ac_objext \ |
| 6795 | conftest$ac_exeext conftest.$ac_ext |
| 6796 | done |
| 6797 | fi |
| 6798 | LIBS=$ac_func_search_save_LIBS |
| 6799 | fi |
| 6800 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6801 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6802 | if test "$ac_cv_search_opendir" != no; then |
| 6803 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6804 | |
| 6805 | fi |
| 6806 | |
| 6807 | else |
| 6808 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6809 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6810 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6812 | else |
| 6813 | ac_func_search_save_LIBS=$LIBS |
| 6814 | ac_cv_search_opendir=no |
| 6815 | cat >conftest.$ac_ext <<_ACEOF |
| 6816 | /* confdefs.h. */ |
| 6817 | _ACEOF |
| 6818 | cat confdefs.h >>conftest.$ac_ext |
| 6819 | cat >>conftest.$ac_ext <<_ACEOF |
| 6820 | /* end confdefs.h. */ |
| 6821 | |
| 6822 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6823 | #ifdef __cplusplus |
| 6824 | extern "C" |
| 6825 | #endif |
| 6826 | /* We use char because int might match the return type of a gcc2 |
| 6827 | builtin and then its argument prototype would still apply. */ |
| 6828 | char opendir (); |
| 6829 | int |
| 6830 | main () |
| 6831 | { |
| 6832 | opendir (); |
| 6833 | ; |
| 6834 | return 0; |
| 6835 | } |
| 6836 | _ACEOF |
| 6837 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6839 | (eval $ac_link) 2>conftest.er1 |
| 6840 | ac_status=$? |
| 6841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6842 | rm -f conftest.er1 |
| 6843 | cat conftest.err >&5 |
| 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6845 | (exit $ac_status); } && |
| 6846 | { ac_try='test -z "$ac_c_werror_flag" |
| 6847 | || test ! -s conftest.err' |
| 6848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6849 | (eval $ac_try) 2>&5 |
| 6850 | ac_status=$? |
| 6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6852 | (exit $ac_status); }; } && |
| 6853 | { ac_try='test -s conftest$ac_exeext' |
| 6854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6855 | (eval $ac_try) 2>&5 |
| 6856 | ac_status=$? |
| 6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6858 | (exit $ac_status); }; }; then |
| 6859 | ac_cv_search_opendir="none required" |
| 6860 | else |
| 6861 | echo "$as_me: failed program was:" >&5 |
| 6862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6863 | |
| 6864 | fi |
| 6865 | rm -f conftest.err conftest.$ac_objext \ |
| 6866 | conftest$ac_exeext conftest.$ac_ext |
| 6867 | if test "$ac_cv_search_opendir" = no; then |
| 6868 | for ac_lib in x; do |
| 6869 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6870 | cat >conftest.$ac_ext <<_ACEOF |
| 6871 | /* confdefs.h. */ |
| 6872 | _ACEOF |
| 6873 | cat confdefs.h >>conftest.$ac_ext |
| 6874 | cat >>conftest.$ac_ext <<_ACEOF |
| 6875 | /* end confdefs.h. */ |
| 6876 | |
| 6877 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6878 | #ifdef __cplusplus |
| 6879 | extern "C" |
| 6880 | #endif |
| 6881 | /* We use char because int might match the return type of a gcc2 |
| 6882 | builtin and then its argument prototype would still apply. */ |
| 6883 | char opendir (); |
| 6884 | int |
| 6885 | main () |
| 6886 | { |
| 6887 | opendir (); |
| 6888 | ; |
| 6889 | return 0; |
| 6890 | } |
| 6891 | _ACEOF |
| 6892 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6894 | (eval $ac_link) 2>conftest.er1 |
| 6895 | ac_status=$? |
| 6896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6897 | rm -f conftest.er1 |
| 6898 | cat conftest.err >&5 |
| 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6900 | (exit $ac_status); } && |
| 6901 | { ac_try='test -z "$ac_c_werror_flag" |
| 6902 | || test ! -s conftest.err' |
| 6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6904 | (eval $ac_try) 2>&5 |
| 6905 | ac_status=$? |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); }; } && |
| 6908 | { ac_try='test -s conftest$ac_exeext' |
| 6909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6910 | (eval $ac_try) 2>&5 |
| 6911 | ac_status=$? |
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6913 | (exit $ac_status); }; }; then |
| 6914 | ac_cv_search_opendir="-l$ac_lib" |
| 6915 | break |
| 6916 | else |
| 6917 | echo "$as_me: failed program was:" >&5 |
| 6918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6919 | |
| 6920 | fi |
| 6921 | rm -f conftest.err conftest.$ac_objext \ |
| 6922 | conftest$ac_exeext conftest.$ac_ext |
| 6923 | done |
| 6924 | fi |
| 6925 | LIBS=$ac_func_search_save_LIBS |
| 6926 | fi |
| 6927 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6928 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6929 | if test "$ac_cv_search_opendir" != no; then |
| 6930 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6931 | |
| 6932 | fi |
| 6933 | |
| 6934 | fi |
| 6935 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6936 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6937 | |
| 6938 | |
| 6939 | |
| 6940 | |
| 6941 | |
| 6942 | |
| 6943 | |
| 6944 | |
| 6945 | |
| 6946 | 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] | 6947 | inttypes.h stdint.h unistd.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6948 | do |
| 6949 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6950 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6952 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6954 | else |
| 6955 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6956 | /* confdefs.h. */ |
| 6957 | _ACEOF |
| 6958 | cat confdefs.h >>conftest.$ac_ext |
| 6959 | cat >>conftest.$ac_ext <<_ACEOF |
| 6960 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6961 | $ac_includes_default |
| 6962 | |
| 6963 | #include <$ac_header> |
| 6964 | _ACEOF |
| 6965 | rm -f conftest.$ac_objext |
| 6966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6967 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6968 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6970 | rm -f conftest.er1 |
| 6971 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6973 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6974 | { ac_try='test -z "$ac_c_werror_flag" |
| 6975 | || test ! -s conftest.err' |
| 6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6977 | (eval $ac_try) 2>&5 |
| 6978 | ac_status=$? |
| 6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6980 | (exit $ac_status); }; } && |
| 6981 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6983 | (eval $ac_try) 2>&5 |
| 6984 | ac_status=$? |
| 6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6986 | (exit $ac_status); }; }; then |
| 6987 | eval "$as_ac_Header=yes" |
| 6988 | else |
| 6989 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6991 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6992 | eval "$as_ac_Header=no" |
| 6993 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6995 | fi |
| 6996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6998 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6999 | cat >>confdefs.h <<_ACEOF |
| 7000 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7001 | _ACEOF |
| 7002 | |
| 7003 | fi |
| 7004 | |
| 7005 | done |
| 7006 | |
| 7007 | |
| 7008 | |
| 7009 | for ac_header in dlfcn.h |
| 7010 | do |
| 7011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7012 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7013 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7017 | fi |
| 7018 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7019 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7020 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7021 | # Is the header compilable? |
| 7022 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7023 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7024 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7025 | /* confdefs.h. */ |
| 7026 | _ACEOF |
| 7027 | cat confdefs.h >>conftest.$ac_ext |
| 7028 | cat >>conftest.$ac_ext <<_ACEOF |
| 7029 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7030 | $ac_includes_default |
| 7031 | #include <$ac_header> |
| 7032 | _ACEOF |
| 7033 | rm -f conftest.$ac_objext |
| 7034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7035 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7036 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7038 | rm -f conftest.er1 |
| 7039 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7041 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7042 | { ac_try='test -z "$ac_c_werror_flag" |
| 7043 | || test ! -s conftest.err' |
| 7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7045 | (eval $ac_try) 2>&5 |
| 7046 | ac_status=$? |
| 7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7048 | (exit $ac_status); }; } && |
| 7049 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7051 | (eval $ac_try) 2>&5 |
| 7052 | ac_status=$? |
| 7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7054 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7055 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7056 | else |
| 7057 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7059 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7060 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7061 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7063 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7064 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7065 | |
| 7066 | # Is the header present? |
| 7067 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7068 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7069 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7070 | /* confdefs.h. */ |
| 7071 | _ACEOF |
| 7072 | cat confdefs.h >>conftest.$ac_ext |
| 7073 | cat >>conftest.$ac_ext <<_ACEOF |
| 7074 | /* end confdefs.h. */ |
| 7075 | #include <$ac_header> |
| 7076 | _ACEOF |
| 7077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7079 | ac_status=$? |
| 7080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7081 | rm -f conftest.er1 |
| 7082 | cat conftest.err >&5 |
| 7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7084 | (exit $ac_status); } >/dev/null; then |
| 7085 | if test -s conftest.err; then |
| 7086 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7087 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7088 | else |
| 7089 | ac_cpp_err= |
| 7090 | fi |
| 7091 | else |
| 7092 | ac_cpp_err=yes |
| 7093 | fi |
| 7094 | if test -z "$ac_cpp_err"; then |
| 7095 | ac_header_preproc=yes |
| 7096 | else |
| 7097 | echo "$as_me: failed program was:" >&5 |
| 7098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7099 | |
| 7100 | ac_header_preproc=no |
| 7101 | fi |
| 7102 | rm -f conftest.err conftest.$ac_ext |
| 7103 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7104 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7105 | |
| 7106 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7107 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7108 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7109 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7110 | 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] | 7111 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7112 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7113 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7114 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7115 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7116 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7117 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7118 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7119 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7120 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7121 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7122 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7123 | 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] | 7124 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7125 | 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] | 7126 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7127 | 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] | 7128 | ( |
| 7129 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7130 | ## ----------------------------------- ## |
| 7131 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 7132 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7133 | _ASBOX |
| 7134 | ) | |
| 7135 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7136 | ;; |
| 7137 | esac |
| 7138 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7140 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7142 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7143 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7144 | fi |
| 7145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7147 | |
| 7148 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7149 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7150 | cat >>confdefs.h <<_ACEOF |
| 7151 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7152 | _ACEOF |
| 7153 | |
| 7154 | fi |
| 7155 | |
| 7156 | done |
| 7157 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7158 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. |
| 7159 | if test "${enable_ltdl_install+set}" = set; then |
| 7160 | enableval="$enable_ltdl_install" |
| 7161 | |
| 7162 | fi; |
| 7163 | |
| 7164 | |
| 7165 | |
| 7166 | if test x"${enable_ltdl_install-no}" != xno; then |
| 7167 | INSTALL_LTDL_TRUE= |
| 7168 | INSTALL_LTDL_FALSE='#' |
| 7169 | else |
| 7170 | INSTALL_LTDL_TRUE='#' |
| 7171 | INSTALL_LTDL_FALSE= |
| 7172 | fi |
| 7173 | |
| 7174 | |
| 7175 | |
| 7176 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 7177 | CONVENIENCE_LTDL_TRUE= |
| 7178 | CONVENIENCE_LTDL_FALSE='#' |
| 7179 | else |
| 7180 | CONVENIENCE_LTDL_TRUE='#' |
| 7181 | CONVENIENCE_LTDL_FALSE= |
| 7182 | fi |
| 7183 | |
| 7184 | |
| 7185 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7186 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 7187 | library_names_spec= |
| 7188 | libname_spec='lib$name' |
| 7189 | soname_spec= |
| 7190 | shrext_cmds=".so" |
| 7191 | postinstall_cmds= |
| 7192 | postuninstall_cmds= |
| 7193 | finish_cmds= |
| 7194 | finish_eval= |
| 7195 | shlibpath_var= |
| 7196 | shlibpath_overrides_runpath=unknown |
| 7197 | version_type=none |
| 7198 | dynamic_linker="$host_os ld.so" |
| 7199 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 7200 | if test "$GCC" = yes; then |
| 7201 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7202 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7203 | # if the path contains ";" then we assume it to be the separator |
| 7204 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7205 | # assumed that no part of a normal pathname contains ";" but that should |
| 7206 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7207 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7208 | else |
| 7209 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7210 | fi |
| 7211 | else |
| 7212 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7213 | fi |
| 7214 | need_lib_prefix=unknown |
| 7215 | hardcode_into_libs=no |
| 7216 | |
| 7217 | # when you set need_version to no, make sure it does not cause -set_version |
| 7218 | # flags to be left without arguments |
| 7219 | need_version=unknown |
| 7220 | |
| 7221 | case $host_os in |
| 7222 | aix3*) |
| 7223 | version_type=linux |
| 7224 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 7225 | shlibpath_var=LIBPATH |
| 7226 | |
| 7227 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7228 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7229 | ;; |
| 7230 | |
| 7231 | aix4* | aix5*) |
| 7232 | version_type=linux |
| 7233 | need_lib_prefix=no |
| 7234 | need_version=no |
| 7235 | hardcode_into_libs=yes |
| 7236 | if test "$host_cpu" = ia64; then |
| 7237 | # AIX 5 supports IA64 |
| 7238 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 7239 | shlibpath_var=LD_LIBRARY_PATH |
| 7240 | else |
| 7241 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7242 | # for dependence libraries. The import file would start with |
| 7243 | # the line `#! .'. This would cause the generated library to |
| 7244 | # depend on `.', always an invalid library. This was fixed in |
| 7245 | # development snapshots of GCC prior to 3.0. |
| 7246 | case $host_os in |
| 7247 | aix4 | aix4.[01] | aix4.[01].*) |
| 7248 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7249 | echo ' yes ' |
| 7250 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7251 | : |
| 7252 | else |
| 7253 | can_build_shared=no |
| 7254 | fi |
| 7255 | ;; |
| 7256 | esac |
| 7257 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7258 | # soname into executable. Probably we can add versioning support to |
| 7259 | # collect2, so additional links can be useful in future. |
| 7260 | if test "$aix_use_runtimelinking" = yes; then |
| 7261 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7262 | # instead of lib<name>.a to let people know that these are not |
| 7263 | # typical AIX shared libraries. |
| 7264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7265 | else |
| 7266 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7267 | # and later when we are not doing run time linking. |
| 7268 | library_names_spec='${libname}${release}.a $libname.a' |
| 7269 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7270 | fi |
| 7271 | shlibpath_var=LIBPATH |
| 7272 | fi |
| 7273 | ;; |
| 7274 | |
| 7275 | amigaos*) |
| 7276 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7277 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7278 | 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' |
| 7279 | ;; |
| 7280 | |
| 7281 | beos*) |
| 7282 | library_names_spec='${libname}${shared_ext}' |
| 7283 | dynamic_linker="$host_os ld.so" |
| 7284 | shlibpath_var=LIBRARY_PATH |
| 7285 | ;; |
| 7286 | |
| 7287 | bsdi[45]*) |
| 7288 | version_type=linux |
| 7289 | need_version=no |
| 7290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7291 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7292 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7293 | shlibpath_var=LD_LIBRARY_PATH |
| 7294 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7295 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 7296 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7297 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7298 | # libtool to hard-code these into programs |
| 7299 | ;; |
| 7300 | |
| 7301 | cygwin* | mingw* | pw32*) |
| 7302 | version_type=windows |
| 7303 | shrext_cmds=".dll" |
| 7304 | need_version=no |
| 7305 | need_lib_prefix=no |
| 7306 | |
| 7307 | case $GCC,$host_os in |
| 7308 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 7309 | library_names_spec='$libname.dll.a' |
| 7310 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7311 | postinstall_cmds='base_file=`basename \${file}`~ |
| 7312 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 7313 | dldir=$destdir/`dirname \$dlpath`~ |
| 7314 | test -d \$dldir || mkdir -p \$dldir~ |
| 7315 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 7316 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 7317 | dlpath=$dir/\$dldll~ |
| 7318 | $rm \$dlpath' |
| 7319 | shlibpath_overrides_runpath=yes |
| 7320 | |
| 7321 | case $host_os in |
| 7322 | cygwin*) |
| 7323 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7324 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7325 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 7326 | ;; |
| 7327 | mingw*) |
| 7328 | # MinGW DLLs use traditional 'lib' prefix |
| 7329 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7330 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7331 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7332 | # It is most probably a Windows format PATH printed by |
| 7333 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7334 | # path with ; separators, and with drive letters. We can handle the |
| 7335 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7336 | # especially as we might pass files found there to a mingw objdump, |
| 7337 | # which wouldn't understand a cygwinified path. Ahh. |
| 7338 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7339 | else |
| 7340 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7341 | fi |
| 7342 | ;; |
| 7343 | pw32*) |
| 7344 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7345 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 7346 | ;; |
| 7347 | esac |
| 7348 | ;; |
| 7349 | |
| 7350 | *) |
| 7351 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 7352 | ;; |
| 7353 | esac |
| 7354 | dynamic_linker='Win32 ld.exe' |
| 7355 | # FIXME: first we should search . and the directory the executable is in |
| 7356 | shlibpath_var=PATH |
| 7357 | ;; |
| 7358 | |
| 7359 | darwin* | rhapsody*) |
| 7360 | dynamic_linker="$host_os dyld" |
| 7361 | version_type=darwin |
| 7362 | need_lib_prefix=no |
| 7363 | need_version=no |
| 7364 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 7365 | soname_spec='${libname}${release}${major}$shared_ext' |
| 7366 | shlibpath_overrides_runpath=yes |
| 7367 | shlibpath_var=DYLD_LIBRARY_PATH |
| 7368 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7369 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7370 | if test "$GCC" = yes; then |
| 7371 | 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"` |
| 7372 | else |
| 7373 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 7374 | fi |
| 7375 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7376 | ;; |
| 7377 | |
| 7378 | dgux*) |
| 7379 | version_type=linux |
| 7380 | need_lib_prefix=no |
| 7381 | need_version=no |
| 7382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7383 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7384 | shlibpath_var=LD_LIBRARY_PATH |
| 7385 | ;; |
| 7386 | |
| 7387 | freebsd1*) |
| 7388 | dynamic_linker=no |
| 7389 | ;; |
| 7390 | |
| 7391 | kfreebsd*-gnu) |
| 7392 | version_type=linux |
| 7393 | need_lib_prefix=no |
| 7394 | need_version=no |
| 7395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7396 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7397 | shlibpath_var=LD_LIBRARY_PATH |
| 7398 | shlibpath_overrides_runpath=no |
| 7399 | hardcode_into_libs=yes |
| 7400 | dynamic_linker='GNU ld.so' |
| 7401 | ;; |
| 7402 | |
| 7403 | freebsd*) |
| 7404 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7405 | version_type=freebsd-$objformat |
| 7406 | case $version_type in |
| 7407 | freebsd-elf*) |
| 7408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7409 | need_version=no |
| 7410 | need_lib_prefix=no |
| 7411 | ;; |
| 7412 | freebsd-*) |
| 7413 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 7414 | need_version=yes |
| 7415 | ;; |
| 7416 | esac |
| 7417 | shlibpath_var=LD_LIBRARY_PATH |
| 7418 | case $host_os in |
| 7419 | freebsd2*) |
| 7420 | shlibpath_overrides_runpath=yes |
| 7421 | ;; |
| 7422 | freebsd3.01* | freebsdelf3.01*) |
| 7423 | shlibpath_overrides_runpath=yes |
| 7424 | hardcode_into_libs=yes |
| 7425 | ;; |
| 7426 | *) # from 3.2 on |
| 7427 | shlibpath_overrides_runpath=no |
| 7428 | hardcode_into_libs=yes |
| 7429 | ;; |
| 7430 | esac |
| 7431 | ;; |
| 7432 | |
| 7433 | gnu*) |
| 7434 | version_type=linux |
| 7435 | need_lib_prefix=no |
| 7436 | need_version=no |
| 7437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7438 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7439 | shlibpath_var=LD_LIBRARY_PATH |
| 7440 | hardcode_into_libs=yes |
| 7441 | ;; |
| 7442 | |
| 7443 | hpux9* | hpux10* | hpux11*) |
| 7444 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7445 | # link against other versions. |
| 7446 | version_type=sunos |
| 7447 | need_lib_prefix=no |
| 7448 | need_version=no |
| 7449 | case "$host_cpu" in |
| 7450 | ia64*) |
| 7451 | shrext_cmds='.so' |
| 7452 | hardcode_into_libs=yes |
| 7453 | dynamic_linker="$host_os dld.so" |
| 7454 | shlibpath_var=LD_LIBRARY_PATH |
| 7455 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7457 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7458 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7459 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7460 | else |
| 7461 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7462 | fi |
| 7463 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7464 | ;; |
| 7465 | hppa*64*) |
| 7466 | shrext_cmds='.sl' |
| 7467 | hardcode_into_libs=yes |
| 7468 | dynamic_linker="$host_os dld.sl" |
| 7469 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7470 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7472 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7473 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7474 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7475 | ;; |
| 7476 | *) |
| 7477 | shrext_cmds='.sl' |
| 7478 | dynamic_linker="$host_os dld.sl" |
| 7479 | shlibpath_var=SHLIB_PATH |
| 7480 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7482 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7483 | ;; |
| 7484 | esac |
| 7485 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7486 | postinstall_cmds='chmod 555 $lib' |
| 7487 | ;; |
| 7488 | |
| 7489 | irix5* | irix6* | nonstopux*) |
| 7490 | case $host_os in |
| 7491 | nonstopux*) version_type=nonstopux ;; |
| 7492 | *) |
| 7493 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7494 | version_type=linux |
| 7495 | else |
| 7496 | version_type=irix |
| 7497 | fi ;; |
| 7498 | esac |
| 7499 | need_lib_prefix=no |
| 7500 | need_version=no |
| 7501 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7503 | case $host_os in |
| 7504 | irix5* | nonstopux*) |
| 7505 | libsuff= shlibsuff= |
| 7506 | ;; |
| 7507 | *) |
| 7508 | case $LD in # libtool.m4 will add one of these switches to LD |
| 7509 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7510 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7511 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7512 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7513 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7514 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 7515 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7516 | esac |
| 7517 | ;; |
| 7518 | esac |
| 7519 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7520 | shlibpath_overrides_runpath=no |
| 7521 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7522 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 7523 | hardcode_into_libs=yes |
| 7524 | ;; |
| 7525 | |
| 7526 | # No shared lib support for Linux oldld, aout, or coff. |
| 7527 | linux*oldld* | linux*aout* | linux*coff*) |
| 7528 | dynamic_linker=no |
| 7529 | ;; |
| 7530 | |
| 7531 | # This must be Linux ELF. |
| 7532 | linux*) |
| 7533 | version_type=linux |
| 7534 | need_lib_prefix=no |
| 7535 | need_version=no |
| 7536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7537 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7538 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7539 | shlibpath_var=LD_LIBRARY_PATH |
| 7540 | shlibpath_overrides_runpath=no |
| 7541 | # This implies no fast_install, which is unacceptable. |
| 7542 | # Some rework will be needed to allow for fast_install |
| 7543 | # before this can be enabled. |
| 7544 | hardcode_into_libs=yes |
| 7545 | |
| 7546 | # Append ld.so.conf contents to the search path |
| 7547 | if test -f /etc/ld.so.conf; then |
| 7548 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 7549 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 7550 | fi |
| 7551 | |
| 7552 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7553 | # powerpc, because MkLinux only supported shared libraries with the |
| 7554 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7555 | # most powerpc-linux boxes support dynamic linking these days and |
| 7556 | # people can always --disable-shared, the test was removed, and we |
| 7557 | # assume the GNU/Linux dynamic linker is in use. |
| 7558 | dynamic_linker='GNU/Linux ld.so' |
| 7559 | ;; |
| 7560 | |
| 7561 | knetbsd*-gnu) |
| 7562 | version_type=linux |
| 7563 | need_lib_prefix=no |
| 7564 | need_version=no |
| 7565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7567 | shlibpath_var=LD_LIBRARY_PATH |
| 7568 | shlibpath_overrides_runpath=no |
| 7569 | hardcode_into_libs=yes |
| 7570 | dynamic_linker='GNU ld.so' |
| 7571 | ;; |
| 7572 | |
| 7573 | netbsd*) |
| 7574 | version_type=sunos |
| 7575 | need_lib_prefix=no |
| 7576 | need_version=no |
| 7577 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7579 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7580 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7581 | else |
| 7582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7583 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7584 | dynamic_linker='NetBSD ld.elf_so' |
| 7585 | fi |
| 7586 | shlibpath_var=LD_LIBRARY_PATH |
| 7587 | shlibpath_overrides_runpath=yes |
| 7588 | hardcode_into_libs=yes |
| 7589 | ;; |
| 7590 | |
| 7591 | newsos6) |
| 7592 | version_type=linux |
| 7593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7594 | shlibpath_var=LD_LIBRARY_PATH |
| 7595 | shlibpath_overrides_runpath=yes |
| 7596 | ;; |
| 7597 | |
| 7598 | nto-qnx*) |
| 7599 | version_type=linux |
| 7600 | need_lib_prefix=no |
| 7601 | need_version=no |
| 7602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7603 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7604 | shlibpath_var=LD_LIBRARY_PATH |
| 7605 | shlibpath_overrides_runpath=yes |
| 7606 | ;; |
| 7607 | |
| 7608 | openbsd*) |
| 7609 | version_type=sunos |
| 7610 | need_lib_prefix=no |
| 7611 | need_version=no |
| 7612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7613 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7614 | shlibpath_var=LD_LIBRARY_PATH |
| 7615 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7616 | case $host_os in |
| 7617 | openbsd2.[89] | openbsd2.[89].*) |
| 7618 | shlibpath_overrides_runpath=no |
| 7619 | ;; |
| 7620 | *) |
| 7621 | shlibpath_overrides_runpath=yes |
| 7622 | ;; |
| 7623 | esac |
| 7624 | else |
| 7625 | shlibpath_overrides_runpath=yes |
| 7626 | fi |
| 7627 | ;; |
| 7628 | |
| 7629 | os2*) |
| 7630 | libname_spec='$name' |
| 7631 | shrext_cmds=".dll" |
| 7632 | need_lib_prefix=no |
| 7633 | library_names_spec='$libname${shared_ext} $libname.a' |
| 7634 | dynamic_linker='OS/2 ld.exe' |
| 7635 | shlibpath_var=LIBPATH |
| 7636 | ;; |
| 7637 | |
| 7638 | osf3* | osf4* | osf5*) |
| 7639 | version_type=osf |
| 7640 | need_lib_prefix=no |
| 7641 | need_version=no |
| 7642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7644 | shlibpath_var=LD_LIBRARY_PATH |
| 7645 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7646 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7647 | ;; |
| 7648 | |
| 7649 | sco3.2v5*) |
| 7650 | version_type=osf |
| 7651 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7653 | shlibpath_var=LD_LIBRARY_PATH |
| 7654 | ;; |
| 7655 | |
| 7656 | solaris*) |
| 7657 | version_type=linux |
| 7658 | need_lib_prefix=no |
| 7659 | need_version=no |
| 7660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7662 | shlibpath_var=LD_LIBRARY_PATH |
| 7663 | shlibpath_overrides_runpath=yes |
| 7664 | hardcode_into_libs=yes |
| 7665 | # ldd complains unless libraries are executable |
| 7666 | postinstall_cmds='chmod +x $lib' |
| 7667 | ;; |
| 7668 | |
| 7669 | sunos4*) |
| 7670 | version_type=sunos |
| 7671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7672 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7673 | shlibpath_var=LD_LIBRARY_PATH |
| 7674 | shlibpath_overrides_runpath=yes |
| 7675 | if test "$with_gnu_ld" = yes; then |
| 7676 | need_lib_prefix=no |
| 7677 | fi |
| 7678 | need_version=yes |
| 7679 | ;; |
| 7680 | |
| 7681 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7682 | version_type=linux |
| 7683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7684 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7685 | shlibpath_var=LD_LIBRARY_PATH |
| 7686 | case $host_vendor in |
| 7687 | sni) |
| 7688 | shlibpath_overrides_runpath=no |
| 7689 | need_lib_prefix=no |
| 7690 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7691 | runpath_var=LD_RUN_PATH |
| 7692 | ;; |
| 7693 | siemens) |
| 7694 | need_lib_prefix=no |
| 7695 | ;; |
| 7696 | motorola) |
| 7697 | need_lib_prefix=no |
| 7698 | need_version=no |
| 7699 | shlibpath_overrides_runpath=no |
| 7700 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7701 | ;; |
| 7702 | esac |
| 7703 | ;; |
| 7704 | |
| 7705 | sysv4*MP*) |
| 7706 | if test -d /usr/nec ;then |
| 7707 | version_type=linux |
| 7708 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7709 | soname_spec='$libname${shared_ext}.$major' |
| 7710 | shlibpath_var=LD_LIBRARY_PATH |
| 7711 | fi |
| 7712 | ;; |
| 7713 | |
| 7714 | uts4*) |
| 7715 | version_type=linux |
| 7716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7717 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7718 | shlibpath_var=LD_LIBRARY_PATH |
| 7719 | ;; |
| 7720 | |
| 7721 | *) |
| 7722 | dynamic_linker=no |
| 7723 | ;; |
| 7724 | esac |
| 7725 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 7726 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7727 | test "$dynamic_linker" = no && can_build_shared=no |
| 7728 | |
| 7729 | |
| 7730 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 7731 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 |
| 7732 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 7733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7734 | else |
| 7735 | |
| 7736 | module=yes |
| 7737 | eval libltdl_cv_shlibext=$shrext_cmds |
| 7738 | |
| 7739 | fi |
| 7740 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 7741 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 |
| 7742 | if test -n "$libltdl_cv_shlibext"; then |
| 7743 | |
| 7744 | cat >>confdefs.h <<_ACEOF |
| 7745 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 7746 | _ACEOF |
| 7747 | |
| 7748 | fi |
| 7749 | |
| 7750 | |
| 7751 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 7752 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 |
| 7753 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 7754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7755 | else |
| 7756 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 7757 | fi |
| 7758 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 7759 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 |
| 7760 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 7761 | |
| 7762 | cat >>confdefs.h <<_ACEOF |
| 7763 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 7764 | _ACEOF |
| 7765 | |
| 7766 | fi |
| 7767 | |
| 7768 | |
| 7769 | echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 7770 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 |
| 7771 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 7772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7773 | else |
| 7774 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 7775 | fi |
| 7776 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 7777 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 |
| 7778 | if test -n "$libltdl_cv_sys_search_path"; then |
| 7779 | sys_search_path= |
| 7780 | for dir in $libltdl_cv_sys_search_path; do |
| 7781 | if test -z "$sys_search_path"; then |
| 7782 | sys_search_path="$dir" |
| 7783 | else |
| 7784 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 7785 | fi |
| 7786 | done |
| 7787 | |
| 7788 | cat >>confdefs.h <<_ACEOF |
| 7789 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 7790 | _ACEOF |
| 7791 | |
| 7792 | fi |
| 7793 | |
| 7794 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 7795 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 7796 | if test "${libltdl_cv_objdir+set}" = set; then |
| 7797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7798 | else |
| 7799 | libltdl_cv_objdir="$objdir" |
| 7800 | if test -n "$objdir"; then |
| 7801 | : |
| 7802 | else |
| 7803 | rm -f .libs 2>/dev/null |
| 7804 | mkdir .libs 2>/dev/null |
| 7805 | if test -d .libs; then |
| 7806 | libltdl_cv_objdir=.libs |
| 7807 | else |
| 7808 | # MS-DOS does not allow filenames that begin with a dot. |
| 7809 | libltdl_cv_objdir=_libs |
| 7810 | fi |
| 7811 | rmdir .libs 2>/dev/null |
| 7812 | fi |
| 7813 | |
| 7814 | fi |
| 7815 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 7816 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 |
| 7817 | |
| 7818 | cat >>confdefs.h <<_ACEOF |
| 7819 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 7820 | _ACEOF |
| 7821 | |
| 7822 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7823 | |
| 7824 | |
| 7825 | |
| 7826 | |
| 7827 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7828 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 7829 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 7830 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 7831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7832 | else |
| 7833 | |
| 7834 | # These are sane defaults that work on at least a few old systems. |
| 7835 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7836 | |
| 7837 | # Character class describing NM global symbol codes. |
| 7838 | symcode='[BCDEGRST]' |
| 7839 | |
| 7840 | # Regexp to match symbols that can be accessed directly from C. |
| 7841 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7842 | |
| 7843 | # Transform the above into a raw symbol and a C symbol. |
| 7844 | symxfrm='\1 \2\3 \3' |
| 7845 | |
| 7846 | # Transform an extracted symbol line into a proper C declaration |
| 7847 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 7848 | |
| 7849 | # Transform an extracted symbol line into symbol name and symbol address |
| 7850 | 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'" |
| 7851 | |
| 7852 | # Define system-specific variables. |
| 7853 | case $host_os in |
| 7854 | aix*) |
| 7855 | symcode='[BCDT]' |
| 7856 | ;; |
| 7857 | cygwin* | mingw* | pw32*) |
| 7858 | symcode='[ABCDGISTW]' |
| 7859 | ;; |
| 7860 | hpux*) # Its linker distinguishes data from code symbols |
| 7861 | if test "$host_cpu" = ia64; then |
| 7862 | symcode='[ABCDEGRST]' |
| 7863 | fi |
| 7864 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7865 | 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'" |
| 7866 | ;; |
| 7867 | linux*) |
| 7868 | if test "$host_cpu" = ia64; then |
| 7869 | symcode='[ABCDGIRSTW]' |
| 7870 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7871 | 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'" |
| 7872 | fi |
| 7873 | ;; |
| 7874 | irix* | nonstopux*) |
| 7875 | symcode='[BCDEGRST]' |
| 7876 | ;; |
| 7877 | osf*) |
| 7878 | symcode='[BCDEGQRST]' |
| 7879 | ;; |
| 7880 | solaris* | sysv5*) |
| 7881 | symcode='[BDRT]' |
| 7882 | ;; |
| 7883 | sysv4) |
| 7884 | symcode='[DFNSTU]' |
| 7885 | ;; |
| 7886 | esac |
| 7887 | |
| 7888 | # Handle CRLF in mingw tool chain |
| 7889 | opt_cr= |
| 7890 | case $build_os in |
| 7891 | mingw*) |
| 7892 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7893 | ;; |
| 7894 | esac |
| 7895 | |
| 7896 | # If we're using GNU nm, then use its standard symbol codes. |
| 7897 | case `$NM -V 2>&1` in |
| 7898 | *GNU* | *'with BFD'*) |
| 7899 | symcode='[ABCDGIRSTW]' ;; |
| 7900 | esac |
| 7901 | |
| 7902 | # Try without a prefix undercore, then with it. |
| 7903 | for ac_symprfx in "" "_"; do |
| 7904 | |
| 7905 | # Write the raw and C identifiers. |
| 7906 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 7907 | |
| 7908 | # Check to see that the pipe works correctly. |
| 7909 | pipe_works=no |
| 7910 | |
| 7911 | rm -f conftest* |
| 7912 | cat > conftest.$ac_ext <<EOF |
| 7913 | #ifdef __cplusplus |
| 7914 | extern "C" { |
| 7915 | #endif |
| 7916 | char nm_test_var; |
| 7917 | void nm_test_func(){} |
| 7918 | #ifdef __cplusplus |
| 7919 | } |
| 7920 | #endif |
| 7921 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7922 | EOF |
| 7923 | |
| 7924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7925 | (eval $ac_compile) 2>&5 |
| 7926 | ac_status=$? |
| 7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7928 | (exit $ac_status); }; then |
| 7929 | # Now try to grab the symbols. |
| 7930 | nlist=conftest.nm |
| 7931 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 7932 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 7933 | ac_status=$? |
| 7934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7935 | (exit $ac_status); } && test -s "$nlist"; then |
| 7936 | # Try sorting and uniquifying the output. |
| 7937 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7938 | mv -f "$nlist"T "$nlist" |
| 7939 | else |
| 7940 | rm -f "$nlist"T |
| 7941 | fi |
| 7942 | |
| 7943 | # Make sure that we snagged all the symbols we need. |
| 7944 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 7945 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 7946 | cat <<EOF > conftest.$ac_ext |
| 7947 | #ifdef __cplusplus |
| 7948 | extern "C" { |
| 7949 | #endif |
| 7950 | |
| 7951 | EOF |
| 7952 | # Now generate the symbol file. |
| 7953 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 7954 | |
| 7955 | cat <<EOF >> conftest.$ac_ext |
| 7956 | #if defined (__STDC__) && __STDC__ |
| 7957 | # define lt_ptr_t void * |
| 7958 | #else |
| 7959 | # define lt_ptr_t char * |
| 7960 | # define const |
| 7961 | #endif |
| 7962 | |
| 7963 | /* The mapping between symbol names and symbols. */ |
| 7964 | const struct { |
| 7965 | const char *name; |
| 7966 | lt_ptr_t address; |
| 7967 | } |
| 7968 | lt_preloaded_symbols[] = |
| 7969 | { |
| 7970 | EOF |
| 7971 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 7972 | cat <<\EOF >> conftest.$ac_ext |
| 7973 | {0, (lt_ptr_t) 0} |
| 7974 | }; |
| 7975 | |
| 7976 | #ifdef __cplusplus |
| 7977 | } |
| 7978 | #endif |
| 7979 | EOF |
| 7980 | # Now try linking the two files. |
| 7981 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7982 | lt_save_LIBS="$LIBS" |
| 7983 | lt_save_CFLAGS="$CFLAGS" |
| 7984 | LIBS="conftstm.$ac_objext" |
| 7985 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7987 | (eval $ac_link) 2>&5 |
| 7988 | ac_status=$? |
| 7989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7990 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 7991 | pipe_works=yes |
| 7992 | fi |
| 7993 | LIBS="$lt_save_LIBS" |
| 7994 | CFLAGS="$lt_save_CFLAGS" |
| 7995 | else |
| 7996 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7997 | fi |
| 7998 | else |
| 7999 | echo "cannot find nm_test_var in $nlist" >&5 |
| 8000 | fi |
| 8001 | else |
| 8002 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8003 | fi |
| 8004 | else |
| 8005 | echo "$progname: failed program was:" >&5 |
| 8006 | cat conftest.$ac_ext >&5 |
| 8007 | fi |
| 8008 | rm -f conftest* conftst* |
| 8009 | |
| 8010 | # Do not use the global_symbol_pipe unless it works. |
| 8011 | if test "$pipe_works" = yes; then |
| 8012 | break |
| 8013 | else |
| 8014 | lt_cv_sys_global_symbol_pipe= |
| 8015 | fi |
| 8016 | done |
| 8017 | |
| 8018 | fi |
| 8019 | |
| 8020 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 8021 | lt_cv_sys_global_symbol_to_cdecl= |
| 8022 | fi |
| 8023 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 8024 | echo "$as_me:$LINENO: result: failed" >&5 |
| 8025 | echo "${ECHO_T}failed" >&6 |
| 8026 | else |
| 8027 | echo "$as_me:$LINENO: result: ok" >&5 |
| 8028 | echo "${ECHO_T}ok" >&6 |
| 8029 | fi |
| 8030 | |
| 8031 | |
| 8032 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 8033 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 |
| 8034 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 8035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8036 | else |
| 8037 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 8038 | libltdl_cv_preloaded_symbols=yes |
| 8039 | else |
| 8040 | libltdl_cv_preloaded_symbols=no |
| 8041 | fi |
| 8042 | |
| 8043 | fi |
| 8044 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 8045 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 |
| 8046 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 8047 | |
| 8048 | cat >>confdefs.h <<\_ACEOF |
| 8049 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 8050 | _ACEOF |
| 8051 | |
| 8052 | fi |
| 8053 | |
| 8054 | LIBADD_DL= |
| 8055 | |
| 8056 | ac_ext=c |
| 8057 | ac_cpp='$CPP $CPPFLAGS' |
| 8058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8061 | |
| 8062 | |
| 8063 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8064 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 8065 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8067 | else |
| 8068 | cat >conftest.$ac_ext <<_ACEOF |
| 8069 | /* confdefs.h. */ |
| 8070 | _ACEOF |
| 8071 | cat confdefs.h >>conftest.$ac_ext |
| 8072 | cat >>conftest.$ac_ext <<_ACEOF |
| 8073 | /* end confdefs.h. */ |
| 8074 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8076 | #define shl_load innocuous_shl_load |
| 8077 | |
| 8078 | /* System header to define __stub macros and hopefully few prototypes, |
| 8079 | which can conflict with char shl_load (); below. |
| 8080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8081 | <limits.h> exists even on freestanding compilers. */ |
| 8082 | |
| 8083 | #ifdef __STDC__ |
| 8084 | # include <limits.h> |
| 8085 | #else |
| 8086 | # include <assert.h> |
| 8087 | #endif |
| 8088 | |
| 8089 | #undef shl_load |
| 8090 | |
| 8091 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8092 | #ifdef __cplusplus |
| 8093 | extern "C" |
| 8094 | { |
| 8095 | #endif |
| 8096 | /* We use char because int might match the return type of a gcc2 |
| 8097 | builtin and then its argument prototype would still apply. */ |
| 8098 | char shl_load (); |
| 8099 | /* The GNU C library defines this for functions which it implements |
| 8100 | to always fail with ENOSYS. Some functions are actually named |
| 8101 | something starting with __ and the normal name is an alias. */ |
| 8102 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 8103 | choke me |
| 8104 | #else |
| 8105 | char (*f) () = shl_load; |
| 8106 | #endif |
| 8107 | #ifdef __cplusplus |
| 8108 | } |
| 8109 | #endif |
| 8110 | |
| 8111 | int |
| 8112 | main () |
| 8113 | { |
| 8114 | return f != shl_load; |
| 8115 | ; |
| 8116 | return 0; |
| 8117 | } |
| 8118 | _ACEOF |
| 8119 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8121 | (eval $ac_link) 2>conftest.er1 |
| 8122 | ac_status=$? |
| 8123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8124 | rm -f conftest.er1 |
| 8125 | cat conftest.err >&5 |
| 8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8127 | (exit $ac_status); } && |
| 8128 | { ac_try='test -z "$ac_c_werror_flag" |
| 8129 | || test ! -s conftest.err' |
| 8130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8131 | (eval $ac_try) 2>&5 |
| 8132 | ac_status=$? |
| 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8134 | (exit $ac_status); }; } && |
| 8135 | { ac_try='test -s conftest$ac_exeext' |
| 8136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8137 | (eval $ac_try) 2>&5 |
| 8138 | ac_status=$? |
| 8139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8140 | (exit $ac_status); }; }; then |
| 8141 | ac_cv_func_shl_load=yes |
| 8142 | else |
| 8143 | echo "$as_me: failed program was:" >&5 |
| 8144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8145 | |
| 8146 | ac_cv_func_shl_load=no |
| 8147 | fi |
| 8148 | rm -f conftest.err conftest.$ac_objext \ |
| 8149 | conftest$ac_exeext conftest.$ac_ext |
| 8150 | fi |
| 8151 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8152 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 8153 | if test $ac_cv_func_shl_load = yes; then |
| 8154 | |
| 8155 | cat >>confdefs.h <<\_ACEOF |
| 8156 | #define HAVE_SHL_LOAD 1 |
| 8157 | _ACEOF |
| 8158 | |
| 8159 | else |
| 8160 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8161 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8162 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8164 | else |
| 8165 | ac_check_lib_save_LIBS=$LIBS |
| 8166 | LIBS="-ldld $LIBS" |
| 8167 | cat >conftest.$ac_ext <<_ACEOF |
| 8168 | /* confdefs.h. */ |
| 8169 | _ACEOF |
| 8170 | cat confdefs.h >>conftest.$ac_ext |
| 8171 | cat >>conftest.$ac_ext <<_ACEOF |
| 8172 | /* end confdefs.h. */ |
| 8173 | |
| 8174 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8175 | #ifdef __cplusplus |
| 8176 | extern "C" |
| 8177 | #endif |
| 8178 | /* We use char because int might match the return type of a gcc2 |
| 8179 | builtin and then its argument prototype would still apply. */ |
| 8180 | char shl_load (); |
| 8181 | int |
| 8182 | main () |
| 8183 | { |
| 8184 | shl_load (); |
| 8185 | ; |
| 8186 | return 0; |
| 8187 | } |
| 8188 | _ACEOF |
| 8189 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8191 | (eval $ac_link) 2>conftest.er1 |
| 8192 | ac_status=$? |
| 8193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8194 | rm -f conftest.er1 |
| 8195 | cat conftest.err >&5 |
| 8196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8197 | (exit $ac_status); } && |
| 8198 | { ac_try='test -z "$ac_c_werror_flag" |
| 8199 | || test ! -s conftest.err' |
| 8200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8201 | (eval $ac_try) 2>&5 |
| 8202 | ac_status=$? |
| 8203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8204 | (exit $ac_status); }; } && |
| 8205 | { ac_try='test -s conftest$ac_exeext' |
| 8206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8207 | (eval $ac_try) 2>&5 |
| 8208 | ac_status=$? |
| 8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8210 | (exit $ac_status); }; }; then |
| 8211 | ac_cv_lib_dld_shl_load=yes |
| 8212 | else |
| 8213 | echo "$as_me: failed program was:" >&5 |
| 8214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8215 | |
| 8216 | ac_cv_lib_dld_shl_load=no |
| 8217 | fi |
| 8218 | rm -f conftest.err conftest.$ac_objext \ |
| 8219 | conftest$ac_exeext conftest.$ac_ext |
| 8220 | LIBS=$ac_check_lib_save_LIBS |
| 8221 | fi |
| 8222 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8223 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 8224 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 8225 | |
| 8226 | cat >>confdefs.h <<\_ACEOF |
| 8227 | #define HAVE_SHL_LOAD 1 |
| 8228 | _ACEOF |
| 8229 | |
| 8230 | LIBADD_DL="$LIBADD_DL -ldld" |
| 8231 | else |
| 8232 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8233 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8234 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8236 | else |
| 8237 | ac_check_lib_save_LIBS=$LIBS |
| 8238 | LIBS="-ldl $LIBS" |
| 8239 | cat >conftest.$ac_ext <<_ACEOF |
| 8240 | /* confdefs.h. */ |
| 8241 | _ACEOF |
| 8242 | cat confdefs.h >>conftest.$ac_ext |
| 8243 | cat >>conftest.$ac_ext <<_ACEOF |
| 8244 | /* end confdefs.h. */ |
| 8245 | |
| 8246 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8247 | #ifdef __cplusplus |
| 8248 | extern "C" |
| 8249 | #endif |
| 8250 | /* We use char because int might match the return type of a gcc2 |
| 8251 | builtin and then its argument prototype would still apply. */ |
| 8252 | char dlopen (); |
| 8253 | int |
| 8254 | main () |
| 8255 | { |
| 8256 | dlopen (); |
| 8257 | ; |
| 8258 | return 0; |
| 8259 | } |
| 8260 | _ACEOF |
| 8261 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8263 | (eval $ac_link) 2>conftest.er1 |
| 8264 | ac_status=$? |
| 8265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8266 | rm -f conftest.er1 |
| 8267 | cat conftest.err >&5 |
| 8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8269 | (exit $ac_status); } && |
| 8270 | { ac_try='test -z "$ac_c_werror_flag" |
| 8271 | || test ! -s conftest.err' |
| 8272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8273 | (eval $ac_try) 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); }; } && |
| 8277 | { ac_try='test -s conftest$ac_exeext' |
| 8278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8279 | (eval $ac_try) 2>&5 |
| 8280 | ac_status=$? |
| 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8282 | (exit $ac_status); }; }; then |
| 8283 | ac_cv_lib_dl_dlopen=yes |
| 8284 | else |
| 8285 | echo "$as_me: failed program was:" >&5 |
| 8286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8287 | |
| 8288 | ac_cv_lib_dl_dlopen=no |
| 8289 | fi |
| 8290 | rm -f conftest.err conftest.$ac_objext \ |
| 8291 | conftest$ac_exeext conftest.$ac_ext |
| 8292 | LIBS=$ac_check_lib_save_LIBS |
| 8293 | fi |
| 8294 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8295 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8296 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8297 | |
| 8298 | cat >>confdefs.h <<\_ACEOF |
| 8299 | #define HAVE_LIBDL 1 |
| 8300 | _ACEOF |
| 8301 | |
| 8302 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 8303 | else |
| 8304 | cat >conftest.$ac_ext <<_ACEOF |
| 8305 | /* confdefs.h. */ |
| 8306 | _ACEOF |
| 8307 | cat confdefs.h >>conftest.$ac_ext |
| 8308 | cat >>conftest.$ac_ext <<_ACEOF |
| 8309 | /* end confdefs.h. */ |
| 8310 | #if HAVE_DLFCN_H |
| 8311 | # include <dlfcn.h> |
| 8312 | #endif |
| 8313 | |
| 8314 | int |
| 8315 | main () |
| 8316 | { |
| 8317 | dlopen(0, 0); |
| 8318 | ; |
| 8319 | return 0; |
| 8320 | } |
| 8321 | _ACEOF |
| 8322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8324 | (eval $ac_link) 2>conftest.er1 |
| 8325 | ac_status=$? |
| 8326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8327 | rm -f conftest.er1 |
| 8328 | cat conftest.err >&5 |
| 8329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8330 | (exit $ac_status); } && |
| 8331 | { ac_try='test -z "$ac_c_werror_flag" |
| 8332 | || test ! -s conftest.err' |
| 8333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8334 | (eval $ac_try) 2>&5 |
| 8335 | ac_status=$? |
| 8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8337 | (exit $ac_status); }; } && |
| 8338 | { ac_try='test -s conftest$ac_exeext' |
| 8339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8340 | (eval $ac_try) 2>&5 |
| 8341 | ac_status=$? |
| 8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8343 | (exit $ac_status); }; }; then |
| 8344 | |
| 8345 | cat >>confdefs.h <<\_ACEOF |
| 8346 | #define HAVE_LIBDL 1 |
| 8347 | _ACEOF |
| 8348 | libltdl_cv_func_dlopen="yes" |
| 8349 | else |
| 8350 | echo "$as_me: failed program was:" >&5 |
| 8351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8352 | |
| 8353 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8354 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8355 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8357 | else |
| 8358 | ac_check_lib_save_LIBS=$LIBS |
| 8359 | LIBS="-lsvld $LIBS" |
| 8360 | cat >conftest.$ac_ext <<_ACEOF |
| 8361 | /* confdefs.h. */ |
| 8362 | _ACEOF |
| 8363 | cat confdefs.h >>conftest.$ac_ext |
| 8364 | cat >>conftest.$ac_ext <<_ACEOF |
| 8365 | /* end confdefs.h. */ |
| 8366 | |
| 8367 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8368 | #ifdef __cplusplus |
| 8369 | extern "C" |
| 8370 | #endif |
| 8371 | /* We use char because int might match the return type of a gcc2 |
| 8372 | builtin and then its argument prototype would still apply. */ |
| 8373 | char dlopen (); |
| 8374 | int |
| 8375 | main () |
| 8376 | { |
| 8377 | dlopen (); |
| 8378 | ; |
| 8379 | return 0; |
| 8380 | } |
| 8381 | _ACEOF |
| 8382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8384 | (eval $ac_link) 2>conftest.er1 |
| 8385 | ac_status=$? |
| 8386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8387 | rm -f conftest.er1 |
| 8388 | cat conftest.err >&5 |
| 8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8390 | (exit $ac_status); } && |
| 8391 | { ac_try='test -z "$ac_c_werror_flag" |
| 8392 | || test ! -s conftest.err' |
| 8393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8394 | (eval $ac_try) 2>&5 |
| 8395 | ac_status=$? |
| 8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8397 | (exit $ac_status); }; } && |
| 8398 | { ac_try='test -s conftest$ac_exeext' |
| 8399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8400 | (eval $ac_try) 2>&5 |
| 8401 | ac_status=$? |
| 8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8403 | (exit $ac_status); }; }; then |
| 8404 | ac_cv_lib_svld_dlopen=yes |
| 8405 | else |
| 8406 | echo "$as_me: failed program was:" >&5 |
| 8407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8408 | |
| 8409 | ac_cv_lib_svld_dlopen=no |
| 8410 | fi |
| 8411 | rm -f conftest.err conftest.$ac_objext \ |
| 8412 | conftest$ac_exeext conftest.$ac_ext |
| 8413 | LIBS=$ac_check_lib_save_LIBS |
| 8414 | fi |
| 8415 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8416 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8417 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8418 | |
| 8419 | cat >>confdefs.h <<\_ACEOF |
| 8420 | #define HAVE_LIBDL 1 |
| 8421 | _ACEOF |
| 8422 | |
| 8423 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 8424 | else |
| 8425 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8426 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 8427 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8429 | else |
| 8430 | ac_check_lib_save_LIBS=$LIBS |
| 8431 | LIBS="-ldld $LIBS" |
| 8432 | cat >conftest.$ac_ext <<_ACEOF |
| 8433 | /* confdefs.h. */ |
| 8434 | _ACEOF |
| 8435 | cat confdefs.h >>conftest.$ac_ext |
| 8436 | cat >>conftest.$ac_ext <<_ACEOF |
| 8437 | /* end confdefs.h. */ |
| 8438 | |
| 8439 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8440 | #ifdef __cplusplus |
| 8441 | extern "C" |
| 8442 | #endif |
| 8443 | /* We use char because int might match the return type of a gcc2 |
| 8444 | builtin and then its argument prototype would still apply. */ |
| 8445 | char dld_link (); |
| 8446 | int |
| 8447 | main () |
| 8448 | { |
| 8449 | dld_link (); |
| 8450 | ; |
| 8451 | return 0; |
| 8452 | } |
| 8453 | _ACEOF |
| 8454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8456 | (eval $ac_link) 2>conftest.er1 |
| 8457 | ac_status=$? |
| 8458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8459 | rm -f conftest.er1 |
| 8460 | cat conftest.err >&5 |
| 8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8462 | (exit $ac_status); } && |
| 8463 | { ac_try='test -z "$ac_c_werror_flag" |
| 8464 | || test ! -s conftest.err' |
| 8465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8466 | (eval $ac_try) 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); }; } && |
| 8470 | { ac_try='test -s conftest$ac_exeext' |
| 8471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8472 | (eval $ac_try) 2>&5 |
| 8473 | ac_status=$? |
| 8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8475 | (exit $ac_status); }; }; then |
| 8476 | ac_cv_lib_dld_dld_link=yes |
| 8477 | else |
| 8478 | echo "$as_me: failed program was:" >&5 |
| 8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8480 | |
| 8481 | ac_cv_lib_dld_dld_link=no |
| 8482 | fi |
| 8483 | rm -f conftest.err conftest.$ac_objext \ |
| 8484 | conftest$ac_exeext conftest.$ac_ext |
| 8485 | LIBS=$ac_check_lib_save_LIBS |
| 8486 | fi |
| 8487 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8488 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8489 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 8490 | |
| 8491 | cat >>confdefs.h <<\_ACEOF |
| 8492 | #define HAVE_DLD 1 |
| 8493 | _ACEOF |
| 8494 | |
| 8495 | LIBADD_DL="$LIBADD_DL -ldld" |
| 8496 | else |
| 8497 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 8498 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 |
| 8499 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 8500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8501 | else |
| 8502 | cat >conftest.$ac_ext <<_ACEOF |
| 8503 | /* confdefs.h. */ |
| 8504 | _ACEOF |
| 8505 | cat confdefs.h >>conftest.$ac_ext |
| 8506 | cat >>conftest.$ac_ext <<_ACEOF |
| 8507 | /* end confdefs.h. */ |
| 8508 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 8509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8510 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 8511 | |
| 8512 | /* System header to define __stub macros and hopefully few prototypes, |
| 8513 | which can conflict with char _dyld_func_lookup (); below. |
| 8514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8515 | <limits.h> exists even on freestanding compilers. */ |
| 8516 | |
| 8517 | #ifdef __STDC__ |
| 8518 | # include <limits.h> |
| 8519 | #else |
| 8520 | # include <assert.h> |
| 8521 | #endif |
| 8522 | |
| 8523 | #undef _dyld_func_lookup |
| 8524 | |
| 8525 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8526 | #ifdef __cplusplus |
| 8527 | extern "C" |
| 8528 | { |
| 8529 | #endif |
| 8530 | /* We use char because int might match the return type of a gcc2 |
| 8531 | builtin and then its argument prototype would still apply. */ |
| 8532 | char _dyld_func_lookup (); |
| 8533 | /* The GNU C library defines this for functions which it implements |
| 8534 | to always fail with ENOSYS. Some functions are actually named |
| 8535 | something starting with __ and the normal name is an alias. */ |
| 8536 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) |
| 8537 | choke me |
| 8538 | #else |
| 8539 | char (*f) () = _dyld_func_lookup; |
| 8540 | #endif |
| 8541 | #ifdef __cplusplus |
| 8542 | } |
| 8543 | #endif |
| 8544 | |
| 8545 | int |
| 8546 | main () |
| 8547 | { |
| 8548 | return f != _dyld_func_lookup; |
| 8549 | ; |
| 8550 | return 0; |
| 8551 | } |
| 8552 | _ACEOF |
| 8553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8555 | (eval $ac_link) 2>conftest.er1 |
| 8556 | ac_status=$? |
| 8557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8558 | rm -f conftest.er1 |
| 8559 | cat conftest.err >&5 |
| 8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8561 | (exit $ac_status); } && |
| 8562 | { ac_try='test -z "$ac_c_werror_flag" |
| 8563 | || test ! -s conftest.err' |
| 8564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8565 | (eval $ac_try) 2>&5 |
| 8566 | ac_status=$? |
| 8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8568 | (exit $ac_status); }; } && |
| 8569 | { ac_try='test -s conftest$ac_exeext' |
| 8570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8571 | (eval $ac_try) 2>&5 |
| 8572 | ac_status=$? |
| 8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8574 | (exit $ac_status); }; }; then |
| 8575 | ac_cv_func__dyld_func_lookup=yes |
| 8576 | else |
| 8577 | echo "$as_me: failed program was:" >&5 |
| 8578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8579 | |
| 8580 | ac_cv_func__dyld_func_lookup=no |
| 8581 | fi |
| 8582 | rm -f conftest.err conftest.$ac_objext \ |
| 8583 | conftest$ac_exeext conftest.$ac_ext |
| 8584 | fi |
| 8585 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 8586 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 |
| 8587 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 8588 | |
| 8589 | cat >>confdefs.h <<\_ACEOF |
| 8590 | #define HAVE_DYLD 1 |
| 8591 | _ACEOF |
| 8592 | |
| 8593 | fi |
| 8594 | |
| 8595 | |
| 8596 | fi |
| 8597 | |
| 8598 | |
| 8599 | fi |
| 8600 | |
| 8601 | |
| 8602 | fi |
| 8603 | rm -f conftest.err conftest.$ac_objext \ |
| 8604 | conftest$ac_exeext conftest.$ac_ext |
| 8605 | |
| 8606 | fi |
| 8607 | |
| 8608 | |
| 8609 | fi |
| 8610 | |
| 8611 | |
| 8612 | fi |
| 8613 | |
| 8614 | |
| 8615 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 8616 | then |
| 8617 | lt_save_LIBS="$LIBS" |
| 8618 | LIBS="$LIBS $LIBADD_DL" |
| 8619 | |
| 8620 | for ac_func in dlerror |
| 8621 | do |
| 8622 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8623 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8624 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8625 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8627 | else |
| 8628 | cat >conftest.$ac_ext <<_ACEOF |
| 8629 | /* confdefs.h. */ |
| 8630 | _ACEOF |
| 8631 | cat confdefs.h >>conftest.$ac_ext |
| 8632 | cat >>conftest.$ac_ext <<_ACEOF |
| 8633 | /* end confdefs.h. */ |
| 8634 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8636 | #define $ac_func innocuous_$ac_func |
| 8637 | |
| 8638 | /* System header to define __stub macros and hopefully few prototypes, |
| 8639 | which can conflict with char $ac_func (); below. |
| 8640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8641 | <limits.h> exists even on freestanding compilers. */ |
| 8642 | |
| 8643 | #ifdef __STDC__ |
| 8644 | # include <limits.h> |
| 8645 | #else |
| 8646 | # include <assert.h> |
| 8647 | #endif |
| 8648 | |
| 8649 | #undef $ac_func |
| 8650 | |
| 8651 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8652 | #ifdef __cplusplus |
| 8653 | extern "C" |
| 8654 | { |
| 8655 | #endif |
| 8656 | /* We use char because int might match the return type of a gcc2 |
| 8657 | builtin and then its argument prototype would still apply. */ |
| 8658 | char $ac_func (); |
| 8659 | /* The GNU C library defines this for functions which it implements |
| 8660 | to always fail with ENOSYS. Some functions are actually named |
| 8661 | something starting with __ and the normal name is an alias. */ |
| 8662 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8663 | choke me |
| 8664 | #else |
| 8665 | char (*f) () = $ac_func; |
| 8666 | #endif |
| 8667 | #ifdef __cplusplus |
| 8668 | } |
| 8669 | #endif |
| 8670 | |
| 8671 | int |
| 8672 | main () |
| 8673 | { |
| 8674 | return f != $ac_func; |
| 8675 | ; |
| 8676 | return 0; |
| 8677 | } |
| 8678 | _ACEOF |
| 8679 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8681 | (eval $ac_link) 2>conftest.er1 |
| 8682 | ac_status=$? |
| 8683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8684 | rm -f conftest.er1 |
| 8685 | cat conftest.err >&5 |
| 8686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8687 | (exit $ac_status); } && |
| 8688 | { ac_try='test -z "$ac_c_werror_flag" |
| 8689 | || test ! -s conftest.err' |
| 8690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8691 | (eval $ac_try) 2>&5 |
| 8692 | ac_status=$? |
| 8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8694 | (exit $ac_status); }; } && |
| 8695 | { ac_try='test -s conftest$ac_exeext' |
| 8696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8697 | (eval $ac_try) 2>&5 |
| 8698 | ac_status=$? |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); }; }; then |
| 8701 | eval "$as_ac_var=yes" |
| 8702 | else |
| 8703 | echo "$as_me: failed program was:" >&5 |
| 8704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8705 | |
| 8706 | eval "$as_ac_var=no" |
| 8707 | fi |
| 8708 | rm -f conftest.err conftest.$ac_objext \ |
| 8709 | conftest$ac_exeext conftest.$ac_ext |
| 8710 | fi |
| 8711 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8712 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8713 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8714 | cat >>confdefs.h <<_ACEOF |
| 8715 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8716 | _ACEOF |
| 8717 | |
| 8718 | fi |
| 8719 | done |
| 8720 | |
| 8721 | LIBS="$lt_save_LIBS" |
| 8722 | fi |
| 8723 | ac_ext=c |
| 8724 | ac_cpp='$CPP $CPPFLAGS' |
| 8725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8728 | |
| 8729 | |
| 8730 | |
| 8731 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 8732 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 |
| 8733 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 8734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8735 | else |
| 8736 | ac_cv_sys_symbol_underscore=no |
| 8737 | cat > conftest.$ac_ext <<EOF |
| 8738 | void nm_test_func(){} |
| 8739 | int main(){nm_test_func;return 0;} |
| 8740 | EOF |
| 8741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8742 | (eval $ac_compile) 2>&5 |
| 8743 | ac_status=$? |
| 8744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8745 | (exit $ac_status); }; then |
| 8746 | # Now try to grab the symbols. |
| 8747 | ac_nlist=conftest.nm |
| 8748 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 8749 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 8750 | ac_status=$? |
| 8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8752 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 8753 | # See whether the symbols have a leading underscore. |
| 8754 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 8755 | ac_cv_sys_symbol_underscore=yes |
| 8756 | else |
| 8757 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 8758 | : |
| 8759 | else |
| 8760 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 8761 | fi |
| 8762 | fi |
| 8763 | else |
| 8764 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8765 | fi |
| 8766 | else |
| 8767 | echo "configure: failed program was:" >&5 |
| 8768 | cat conftest.c >&5 |
| 8769 | fi |
| 8770 | rm -rf conftest* |
| 8771 | |
| 8772 | fi |
| 8773 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 8774 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 |
| 8775 | |
| 8776 | |
| 8777 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 8778 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 8779 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 8780 | echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 8781 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 |
| 8782 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 8783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8784 | else |
| 8785 | libltdl_cv_need_uscore=unknown |
| 8786 | save_LIBS="$LIBS" |
| 8787 | LIBS="$LIBS $LIBADD_DL" |
| 8788 | if test "$cross_compiling" = yes; then : |
| 8789 | libltdl_cv_need_uscore=cross |
| 8790 | else |
| 8791 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8792 | lt_status=$lt_dlunknown |
| 8793 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 8794 | #line 8794 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8795 | #include "confdefs.h" |
| 8796 | |
| 8797 | #if HAVE_DLFCN_H |
| 8798 | #include <dlfcn.h> |
| 8799 | #endif |
| 8800 | |
| 8801 | #include <stdio.h> |
| 8802 | |
| 8803 | #ifdef RTLD_GLOBAL |
| 8804 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8805 | #else |
| 8806 | # ifdef DL_GLOBAL |
| 8807 | # define LT_DLGLOBAL DL_GLOBAL |
| 8808 | # else |
| 8809 | # define LT_DLGLOBAL 0 |
| 8810 | # endif |
| 8811 | #endif |
| 8812 | |
| 8813 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8814 | find out it does not work in some platform. */ |
| 8815 | #ifndef LT_DLLAZY_OR_NOW |
| 8816 | # ifdef RTLD_LAZY |
| 8817 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8818 | # else |
| 8819 | # ifdef DL_LAZY |
| 8820 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8821 | # else |
| 8822 | # ifdef RTLD_NOW |
| 8823 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8824 | # else |
| 8825 | # ifdef DL_NOW |
| 8826 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8827 | # else |
| 8828 | # define LT_DLLAZY_OR_NOW 0 |
| 8829 | # endif |
| 8830 | # endif |
| 8831 | # endif |
| 8832 | # endif |
| 8833 | #endif |
| 8834 | |
| 8835 | #ifdef __cplusplus |
| 8836 | extern "C" void exit (int); |
| 8837 | #endif |
| 8838 | |
| 8839 | void fnord() { int i=42;} |
| 8840 | int main () |
| 8841 | { |
| 8842 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8843 | int status = $lt_dlunknown; |
| 8844 | |
| 8845 | if (self) |
| 8846 | { |
| 8847 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8848 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8849 | /* dlclose (self); */ |
| 8850 | } |
| 8851 | |
| 8852 | exit (status); |
| 8853 | } |
| 8854 | EOF |
| 8855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8856 | (eval $ac_link) 2>&5 |
| 8857 | ac_status=$? |
| 8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8859 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8860 | (./conftest; exit; ) 2>/dev/null |
| 8861 | lt_status=$? |
| 8862 | case x$lt_status in |
| 8863 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 8864 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 8865 | x$lt_unknown|x*) ;; |
| 8866 | esac |
| 8867 | else : |
| 8868 | # compilation failed |
| 8869 | |
| 8870 | fi |
| 8871 | fi |
| 8872 | rm -fr conftest* |
| 8873 | |
| 8874 | LIBS="$save_LIBS" |
| 8875 | |
| 8876 | fi |
| 8877 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 8878 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 |
| 8879 | fi |
| 8880 | fi |
| 8881 | |
| 8882 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 8883 | |
| 8884 | cat >>confdefs.h <<\_ACEOF |
| 8885 | #define NEED_USCORE 1 |
| 8886 | _ACEOF |
| 8887 | |
| 8888 | fi |
| 8889 | |
| 8890 | |
| 8891 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 8892 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 |
| 8893 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 8894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8895 | else |
| 8896 | # PORTME does your system automatically load deplibs for dlopen? |
| 8897 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 8898 | # For now, we just catch OSes we know something about -- in the |
| 8899 | # future, we'll try test this programmatically. |
| 8900 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8901 | case "$host_os" in |
| 8902 | aix3*|aix4.1.*|aix4.2.*) |
| 8903 | # Unknown whether this is true for these versions of AIX, but |
| 8904 | # we want this `case' here to explicitly catch those versions. |
| 8905 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8906 | ;; |
| 8907 | aix[45]*) |
| 8908 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8909 | ;; |
| 8910 | darwin*) |
| 8911 | # Assuming the user has installed a libdl from somewhere, this is true |
| 8912 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 8913 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8914 | ;; |
| 8915 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 8916 | # GNU and its variants, using gnu ld.so (Glibc) |
| 8917 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8918 | ;; |
| 8919 | hpux10*|hpux11*) |
| 8920 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8921 | ;; |
| 8922 | irix[12345]*|irix6.[01]*) |
| 8923 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 8924 | # know how it worked for any of those versions. |
| 8925 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8926 | ;; |
| 8927 | irix*) |
| 8928 | # The case above catches anything before 6.2, and it's known that |
| 8929 | # at 6.2 and later dlopen does load deplibs. |
| 8930 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8931 | ;; |
| 8932 | netbsd*) |
| 8933 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8934 | ;; |
| 8935 | openbsd*) |
| 8936 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8937 | ;; |
| 8938 | osf[1234]*) |
| 8939 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 8940 | # it did *not* use an RPATH in a shared library to find objects the |
| 8941 | # library depends on, so we explictly say `no'. |
| 8942 | libltdl_cv_sys_dlopen_deplibs=no |
| 8943 | ;; |
| 8944 | osf5.0|osf5.0a|osf5.1) |
| 8945 | # dlopen *does* load deplibs and with the right loader patch applied |
| 8946 | # it even uses RPATH in a shared library to search for shared objects |
| 8947 | # that the library depends on, but there's no easy way to know if that |
| 8948 | # patch is installed. Since this is the case, all we can really |
| 8949 | # say is unknown -- it depends on the patch being installed. If |
| 8950 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 8951 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8952 | ;; |
| 8953 | osf*) |
| 8954 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 8955 | # the comments above for what we know about them. |
| 8956 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 8957 | # is used to find them so we can finally say `yes'. |
| 8958 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8959 | ;; |
| 8960 | solaris*) |
| 8961 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8962 | ;; |
| 8963 | esac |
| 8964 | |
| 8965 | fi |
| 8966 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 8967 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 |
| 8968 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 8969 | |
| 8970 | cat >>confdefs.h <<\_ACEOF |
| 8971 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 8972 | _ACEOF |
| 8973 | |
| 8974 | fi |
| 8975 | |
| 8976 | |
| 8977 | for ac_header in argz.h |
| 8978 | do |
| 8979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8985 | fi |
| 8986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8988 | else |
| 8989 | # Is the header compilable? |
| 8990 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8991 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8992 | cat >conftest.$ac_ext <<_ACEOF |
| 8993 | /* confdefs.h. */ |
| 8994 | _ACEOF |
| 8995 | cat confdefs.h >>conftest.$ac_ext |
| 8996 | cat >>conftest.$ac_ext <<_ACEOF |
| 8997 | /* end confdefs.h. */ |
| 8998 | $ac_includes_default |
| 8999 | #include <$ac_header> |
| 9000 | _ACEOF |
| 9001 | rm -f conftest.$ac_objext |
| 9002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9003 | (eval $ac_compile) 2>conftest.er1 |
| 9004 | ac_status=$? |
| 9005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9006 | rm -f conftest.er1 |
| 9007 | cat conftest.err >&5 |
| 9008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9009 | (exit $ac_status); } && |
| 9010 | { ac_try='test -z "$ac_c_werror_flag" |
| 9011 | || test ! -s conftest.err' |
| 9012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9013 | (eval $ac_try) 2>&5 |
| 9014 | ac_status=$? |
| 9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9016 | (exit $ac_status); }; } && |
| 9017 | { ac_try='test -s conftest.$ac_objext' |
| 9018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9019 | (eval $ac_try) 2>&5 |
| 9020 | ac_status=$? |
| 9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9022 | (exit $ac_status); }; }; then |
| 9023 | ac_header_compiler=yes |
| 9024 | else |
| 9025 | echo "$as_me: failed program was:" >&5 |
| 9026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9027 | |
| 9028 | ac_header_compiler=no |
| 9029 | fi |
| 9030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9032 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9033 | |
| 9034 | # Is the header present? |
| 9035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9037 | cat >conftest.$ac_ext <<_ACEOF |
| 9038 | /* confdefs.h. */ |
| 9039 | _ACEOF |
| 9040 | cat confdefs.h >>conftest.$ac_ext |
| 9041 | cat >>conftest.$ac_ext <<_ACEOF |
| 9042 | /* end confdefs.h. */ |
| 9043 | #include <$ac_header> |
| 9044 | _ACEOF |
| 9045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9047 | ac_status=$? |
| 9048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9049 | rm -f conftest.er1 |
| 9050 | cat conftest.err >&5 |
| 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 | (exit $ac_status); } >/dev/null; then |
| 9053 | if test -s conftest.err; then |
| 9054 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9056 | else |
| 9057 | ac_cpp_err= |
| 9058 | fi |
| 9059 | else |
| 9060 | ac_cpp_err=yes |
| 9061 | fi |
| 9062 | if test -z "$ac_cpp_err"; then |
| 9063 | ac_header_preproc=yes |
| 9064 | else |
| 9065 | echo "$as_me: failed program was:" >&5 |
| 9066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9067 | |
| 9068 | ac_header_preproc=no |
| 9069 | fi |
| 9070 | rm -f conftest.err conftest.$ac_ext |
| 9071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9072 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9073 | |
| 9074 | # So? What about this header? |
| 9075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9076 | yes:no: ) |
| 9077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9080 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9081 | ac_header_preproc=yes |
| 9082 | ;; |
| 9083 | no:yes:* ) |
| 9084 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9085 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9086 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9087 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9088 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9089 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9090 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9091 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9093 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9094 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9095 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9096 | ( |
| 9097 | cat <<\_ASBOX |
| 9098 | ## ----------------------------------- ## |
| 9099 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9100 | ## ----------------------------------- ## |
| 9101 | _ASBOX |
| 9102 | ) | |
| 9103 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9104 | ;; |
| 9105 | esac |
| 9106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9110 | else |
| 9111 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9112 | fi |
| 9113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9115 | |
| 9116 | fi |
| 9117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9118 | cat >>confdefs.h <<_ACEOF |
| 9119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9120 | _ACEOF |
| 9121 | |
| 9122 | fi |
| 9123 | |
| 9124 | done |
| 9125 | |
| 9126 | |
| 9127 | echo "$as_me:$LINENO: checking for error_t" >&5 |
| 9128 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 |
| 9129 | if test "${ac_cv_type_error_t+set}" = set; then |
| 9130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9131 | else |
| 9132 | cat >conftest.$ac_ext <<_ACEOF |
| 9133 | /* confdefs.h. */ |
| 9134 | _ACEOF |
| 9135 | cat confdefs.h >>conftest.$ac_ext |
| 9136 | cat >>conftest.$ac_ext <<_ACEOF |
| 9137 | /* end confdefs.h. */ |
| 9138 | #if HAVE_ARGZ_H |
| 9139 | # include <argz.h> |
| 9140 | #endif |
| 9141 | |
| 9142 | int |
| 9143 | main () |
| 9144 | { |
| 9145 | if ((error_t *) 0) |
| 9146 | return 0; |
| 9147 | if (sizeof (error_t)) |
| 9148 | return 0; |
| 9149 | ; |
| 9150 | return 0; |
| 9151 | } |
| 9152 | _ACEOF |
| 9153 | rm -f conftest.$ac_objext |
| 9154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9155 | (eval $ac_compile) 2>conftest.er1 |
| 9156 | ac_status=$? |
| 9157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9158 | rm -f conftest.er1 |
| 9159 | cat conftest.err >&5 |
| 9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9161 | (exit $ac_status); } && |
| 9162 | { ac_try='test -z "$ac_c_werror_flag" |
| 9163 | || test ! -s conftest.err' |
| 9164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9165 | (eval $ac_try) 2>&5 |
| 9166 | ac_status=$? |
| 9167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9168 | (exit $ac_status); }; } && |
| 9169 | { ac_try='test -s conftest.$ac_objext' |
| 9170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9171 | (eval $ac_try) 2>&5 |
| 9172 | ac_status=$? |
| 9173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9174 | (exit $ac_status); }; }; then |
| 9175 | ac_cv_type_error_t=yes |
| 9176 | else |
| 9177 | echo "$as_me: failed program was:" >&5 |
| 9178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9179 | |
| 9180 | ac_cv_type_error_t=no |
| 9181 | fi |
| 9182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9183 | fi |
| 9184 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 9185 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 |
| 9186 | if test $ac_cv_type_error_t = yes; then |
| 9187 | |
| 9188 | cat >>confdefs.h <<_ACEOF |
| 9189 | #define HAVE_ERROR_T 1 |
| 9190 | _ACEOF |
| 9191 | |
| 9192 | |
| 9193 | else |
| 9194 | |
| 9195 | cat >>confdefs.h <<\_ACEOF |
| 9196 | #define error_t int |
| 9197 | _ACEOF |
| 9198 | |
| 9199 | fi |
| 9200 | |
| 9201 | |
| 9202 | |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | |
| 9207 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 9208 | do |
| 9209 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9210 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9211 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9212 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9214 | else |
| 9215 | cat >conftest.$ac_ext <<_ACEOF |
| 9216 | /* confdefs.h. */ |
| 9217 | _ACEOF |
| 9218 | cat confdefs.h >>conftest.$ac_ext |
| 9219 | cat >>conftest.$ac_ext <<_ACEOF |
| 9220 | /* end confdefs.h. */ |
| 9221 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9223 | #define $ac_func innocuous_$ac_func |
| 9224 | |
| 9225 | /* System header to define __stub macros and hopefully few prototypes, |
| 9226 | which can conflict with char $ac_func (); below. |
| 9227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9228 | <limits.h> exists even on freestanding compilers. */ |
| 9229 | |
| 9230 | #ifdef __STDC__ |
| 9231 | # include <limits.h> |
| 9232 | #else |
| 9233 | # include <assert.h> |
| 9234 | #endif |
| 9235 | |
| 9236 | #undef $ac_func |
| 9237 | |
| 9238 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9239 | #ifdef __cplusplus |
| 9240 | extern "C" |
| 9241 | { |
| 9242 | #endif |
| 9243 | /* We use char because int might match the return type of a gcc2 |
| 9244 | builtin and then its argument prototype would still apply. */ |
| 9245 | char $ac_func (); |
| 9246 | /* The GNU C library defines this for functions which it implements |
| 9247 | to always fail with ENOSYS. Some functions are actually named |
| 9248 | something starting with __ and the normal name is an alias. */ |
| 9249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9250 | choke me |
| 9251 | #else |
| 9252 | char (*f) () = $ac_func; |
| 9253 | #endif |
| 9254 | #ifdef __cplusplus |
| 9255 | } |
| 9256 | #endif |
| 9257 | |
| 9258 | int |
| 9259 | main () |
| 9260 | { |
| 9261 | return f != $ac_func; |
| 9262 | ; |
| 9263 | return 0; |
| 9264 | } |
| 9265 | _ACEOF |
| 9266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9268 | (eval $ac_link) 2>conftest.er1 |
| 9269 | ac_status=$? |
| 9270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9271 | rm -f conftest.er1 |
| 9272 | cat conftest.err >&5 |
| 9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9274 | (exit $ac_status); } && |
| 9275 | { ac_try='test -z "$ac_c_werror_flag" |
| 9276 | || test ! -s conftest.err' |
| 9277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9278 | (eval $ac_try) 2>&5 |
| 9279 | ac_status=$? |
| 9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9281 | (exit $ac_status); }; } && |
| 9282 | { ac_try='test -s conftest$ac_exeext' |
| 9283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9284 | (eval $ac_try) 2>&5 |
| 9285 | ac_status=$? |
| 9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9287 | (exit $ac_status); }; }; then |
| 9288 | eval "$as_ac_var=yes" |
| 9289 | else |
| 9290 | echo "$as_me: failed program was:" >&5 |
| 9291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9292 | |
| 9293 | eval "$as_ac_var=no" |
| 9294 | fi |
| 9295 | rm -f conftest.err conftest.$ac_objext \ |
| 9296 | conftest$ac_exeext conftest.$ac_ext |
| 9297 | fi |
| 9298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9299 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9300 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9301 | cat >>confdefs.h <<_ACEOF |
| 9302 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9303 | _ACEOF |
| 9304 | |
| 9305 | fi |
| 9306 | done |
| 9307 | |
| 9308 | |
| 9309 | |
| 9310 | |
| 9311 | |
| 9312 | |
| 9313 | |
| 9314 | |
| 9315 | |
| 9316 | |
| 9317 | |
| 9318 | |
| 9319 | |
| 9320 | |
| 9321 | |
| 9322 | |
| 9323 | |
| 9324 | |
| 9325 | |
| 9326 | |
| 9327 | |
| 9328 | |
| 9329 | |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | |
| 9334 | |
| 9335 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 9336 | stdio.h unistd.h |
| 9337 | do |
| 9338 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9339 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9340 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9341 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9342 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9344 | fi |
| 9345 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9346 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9347 | else |
| 9348 | # Is the header compilable? |
| 9349 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9350 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9351 | cat >conftest.$ac_ext <<_ACEOF |
| 9352 | /* confdefs.h. */ |
| 9353 | _ACEOF |
| 9354 | cat confdefs.h >>conftest.$ac_ext |
| 9355 | cat >>conftest.$ac_ext <<_ACEOF |
| 9356 | /* end confdefs.h. */ |
| 9357 | $ac_includes_default |
| 9358 | #include <$ac_header> |
| 9359 | _ACEOF |
| 9360 | rm -f conftest.$ac_objext |
| 9361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9362 | (eval $ac_compile) 2>conftest.er1 |
| 9363 | ac_status=$? |
| 9364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9365 | rm -f conftest.er1 |
| 9366 | cat conftest.err >&5 |
| 9367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9368 | (exit $ac_status); } && |
| 9369 | { ac_try='test -z "$ac_c_werror_flag" |
| 9370 | || test ! -s conftest.err' |
| 9371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9372 | (eval $ac_try) 2>&5 |
| 9373 | ac_status=$? |
| 9374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9375 | (exit $ac_status); }; } && |
| 9376 | { ac_try='test -s conftest.$ac_objext' |
| 9377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9378 | (eval $ac_try) 2>&5 |
| 9379 | ac_status=$? |
| 9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9381 | (exit $ac_status); }; }; then |
| 9382 | ac_header_compiler=yes |
| 9383 | else |
| 9384 | echo "$as_me: failed program was:" >&5 |
| 9385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9386 | |
| 9387 | ac_header_compiler=no |
| 9388 | fi |
| 9389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9390 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9391 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9392 | |
| 9393 | # Is the header present? |
| 9394 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9395 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9396 | cat >conftest.$ac_ext <<_ACEOF |
| 9397 | /* confdefs.h. */ |
| 9398 | _ACEOF |
| 9399 | cat confdefs.h >>conftest.$ac_ext |
| 9400 | cat >>conftest.$ac_ext <<_ACEOF |
| 9401 | /* end confdefs.h. */ |
| 9402 | #include <$ac_header> |
| 9403 | _ACEOF |
| 9404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9406 | ac_status=$? |
| 9407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9408 | rm -f conftest.er1 |
| 9409 | cat conftest.err >&5 |
| 9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9411 | (exit $ac_status); } >/dev/null; then |
| 9412 | if test -s conftest.err; then |
| 9413 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9415 | else |
| 9416 | ac_cpp_err= |
| 9417 | fi |
| 9418 | else |
| 9419 | ac_cpp_err=yes |
| 9420 | fi |
| 9421 | if test -z "$ac_cpp_err"; then |
| 9422 | ac_header_preproc=yes |
| 9423 | else |
| 9424 | echo "$as_me: failed program was:" >&5 |
| 9425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9426 | |
| 9427 | ac_header_preproc=no |
| 9428 | fi |
| 9429 | rm -f conftest.err conftest.$ac_ext |
| 9430 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9431 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9432 | |
| 9433 | # So? What about this header? |
| 9434 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9435 | yes:no: ) |
| 9436 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9437 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9439 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9440 | ac_header_preproc=yes |
| 9441 | ;; |
| 9442 | no:yes:* ) |
| 9443 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9444 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9445 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9446 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9447 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9448 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9449 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9450 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9452 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9453 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9454 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9455 | ( |
| 9456 | cat <<\_ASBOX |
| 9457 | ## ----------------------------------- ## |
| 9458 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9459 | ## ----------------------------------- ## |
| 9460 | _ASBOX |
| 9461 | ) | |
| 9462 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9463 | ;; |
| 9464 | esac |
| 9465 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9469 | else |
| 9470 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9471 | fi |
| 9472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9473 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9474 | |
| 9475 | fi |
| 9476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9477 | cat >>confdefs.h <<_ACEOF |
| 9478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9479 | _ACEOF |
| 9480 | |
| 9481 | fi |
| 9482 | |
| 9483 | done |
| 9484 | |
| 9485 | |
| 9486 | |
| 9487 | |
| 9488 | |
| 9489 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 9490 | do |
| 9491 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9497 | fi |
| 9498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9500 | else |
| 9501 | # Is the header compilable? |
| 9502 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9503 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9504 | cat >conftest.$ac_ext <<_ACEOF |
| 9505 | /* confdefs.h. */ |
| 9506 | _ACEOF |
| 9507 | cat confdefs.h >>conftest.$ac_ext |
| 9508 | cat >>conftest.$ac_ext <<_ACEOF |
| 9509 | /* end confdefs.h. */ |
| 9510 | $ac_includes_default |
| 9511 | #include <$ac_header> |
| 9512 | _ACEOF |
| 9513 | rm -f conftest.$ac_objext |
| 9514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9515 | (eval $ac_compile) 2>conftest.er1 |
| 9516 | ac_status=$? |
| 9517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9518 | rm -f conftest.er1 |
| 9519 | cat conftest.err >&5 |
| 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9521 | (exit $ac_status); } && |
| 9522 | { ac_try='test -z "$ac_c_werror_flag" |
| 9523 | || test ! -s conftest.err' |
| 9524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9525 | (eval $ac_try) 2>&5 |
| 9526 | ac_status=$? |
| 9527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9528 | (exit $ac_status); }; } && |
| 9529 | { ac_try='test -s conftest.$ac_objext' |
| 9530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9531 | (eval $ac_try) 2>&5 |
| 9532 | ac_status=$? |
| 9533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9534 | (exit $ac_status); }; }; then |
| 9535 | ac_header_compiler=yes |
| 9536 | else |
| 9537 | echo "$as_me: failed program was:" >&5 |
| 9538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9539 | |
| 9540 | ac_header_compiler=no |
| 9541 | fi |
| 9542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9544 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9545 | |
| 9546 | # Is the header present? |
| 9547 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9548 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9549 | cat >conftest.$ac_ext <<_ACEOF |
| 9550 | /* confdefs.h. */ |
| 9551 | _ACEOF |
| 9552 | cat confdefs.h >>conftest.$ac_ext |
| 9553 | cat >>conftest.$ac_ext <<_ACEOF |
| 9554 | /* end confdefs.h. */ |
| 9555 | #include <$ac_header> |
| 9556 | _ACEOF |
| 9557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9559 | ac_status=$? |
| 9560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9561 | rm -f conftest.er1 |
| 9562 | cat conftest.err >&5 |
| 9563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9564 | (exit $ac_status); } >/dev/null; then |
| 9565 | if test -s conftest.err; then |
| 9566 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9568 | else |
| 9569 | ac_cpp_err= |
| 9570 | fi |
| 9571 | else |
| 9572 | ac_cpp_err=yes |
| 9573 | fi |
| 9574 | if test -z "$ac_cpp_err"; then |
| 9575 | ac_header_preproc=yes |
| 9576 | else |
| 9577 | echo "$as_me: failed program was:" >&5 |
| 9578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9579 | |
| 9580 | ac_header_preproc=no |
| 9581 | fi |
| 9582 | rm -f conftest.err conftest.$ac_ext |
| 9583 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9584 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9585 | |
| 9586 | # So? What about this header? |
| 9587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9588 | yes:no: ) |
| 9589 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9590 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9591 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9592 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9593 | ac_header_preproc=yes |
| 9594 | ;; |
| 9595 | no:yes:* ) |
| 9596 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9597 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9598 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9599 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9600 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9601 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9602 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9603 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9606 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9607 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9608 | ( |
| 9609 | cat <<\_ASBOX |
| 9610 | ## ----------------------------------- ## |
| 9611 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9612 | ## ----------------------------------- ## |
| 9613 | _ASBOX |
| 9614 | ) | |
| 9615 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9616 | ;; |
| 9617 | esac |
| 9618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9622 | else |
| 9623 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9624 | fi |
| 9625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9627 | |
| 9628 | fi |
| 9629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9630 | cat >>confdefs.h <<_ACEOF |
| 9631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9632 | _ACEOF |
| 9633 | |
| 9634 | fi |
| 9635 | |
| 9636 | done |
| 9637 | |
| 9638 | |
| 9639 | |
| 9640 | for ac_header in string.h strings.h |
| 9641 | do |
| 9642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9644 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9648 | fi |
| 9649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9650 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9651 | else |
| 9652 | # Is the header compilable? |
| 9653 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9655 | cat >conftest.$ac_ext <<_ACEOF |
| 9656 | /* confdefs.h. */ |
| 9657 | _ACEOF |
| 9658 | cat confdefs.h >>conftest.$ac_ext |
| 9659 | cat >>conftest.$ac_ext <<_ACEOF |
| 9660 | /* end confdefs.h. */ |
| 9661 | $ac_includes_default |
| 9662 | #include <$ac_header> |
| 9663 | _ACEOF |
| 9664 | rm -f conftest.$ac_objext |
| 9665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9666 | (eval $ac_compile) 2>conftest.er1 |
| 9667 | ac_status=$? |
| 9668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9669 | rm -f conftest.er1 |
| 9670 | cat conftest.err >&5 |
| 9671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9672 | (exit $ac_status); } && |
| 9673 | { ac_try='test -z "$ac_c_werror_flag" |
| 9674 | || test ! -s conftest.err' |
| 9675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9676 | (eval $ac_try) 2>&5 |
| 9677 | ac_status=$? |
| 9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9679 | (exit $ac_status); }; } && |
| 9680 | { ac_try='test -s conftest.$ac_objext' |
| 9681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9682 | (eval $ac_try) 2>&5 |
| 9683 | ac_status=$? |
| 9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9685 | (exit $ac_status); }; }; then |
| 9686 | ac_header_compiler=yes |
| 9687 | else |
| 9688 | echo "$as_me: failed program was:" >&5 |
| 9689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9690 | |
| 9691 | ac_header_compiler=no |
| 9692 | fi |
| 9693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9694 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9695 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9696 | |
| 9697 | # Is the header present? |
| 9698 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9699 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9700 | cat >conftest.$ac_ext <<_ACEOF |
| 9701 | /* confdefs.h. */ |
| 9702 | _ACEOF |
| 9703 | cat confdefs.h >>conftest.$ac_ext |
| 9704 | cat >>conftest.$ac_ext <<_ACEOF |
| 9705 | /* end confdefs.h. */ |
| 9706 | #include <$ac_header> |
| 9707 | _ACEOF |
| 9708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9710 | ac_status=$? |
| 9711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9712 | rm -f conftest.er1 |
| 9713 | cat conftest.err >&5 |
| 9714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9715 | (exit $ac_status); } >/dev/null; then |
| 9716 | if test -s conftest.err; then |
| 9717 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9718 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9719 | else |
| 9720 | ac_cpp_err= |
| 9721 | fi |
| 9722 | else |
| 9723 | ac_cpp_err=yes |
| 9724 | fi |
| 9725 | if test -z "$ac_cpp_err"; then |
| 9726 | ac_header_preproc=yes |
| 9727 | else |
| 9728 | echo "$as_me: failed program was:" >&5 |
| 9729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9730 | |
| 9731 | ac_header_preproc=no |
| 9732 | fi |
| 9733 | rm -f conftest.err conftest.$ac_ext |
| 9734 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9735 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9736 | |
| 9737 | # So? What about this header? |
| 9738 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9739 | yes:no: ) |
| 9740 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9741 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9742 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9743 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9744 | ac_header_preproc=yes |
| 9745 | ;; |
| 9746 | no:yes:* ) |
| 9747 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9748 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9749 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9750 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9751 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9752 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9753 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9754 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9756 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9757 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9758 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9759 | ( |
| 9760 | cat <<\_ASBOX |
| 9761 | ## ----------------------------------- ## |
| 9762 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9763 | ## ----------------------------------- ## |
| 9764 | _ASBOX |
| 9765 | ) | |
| 9766 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9767 | ;; |
| 9768 | esac |
| 9769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9773 | else |
| 9774 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9775 | fi |
| 9776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9778 | |
| 9779 | fi |
| 9780 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9781 | cat >>confdefs.h <<_ACEOF |
| 9782 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9783 | _ACEOF |
| 9784 | break |
| 9785 | fi |
| 9786 | |
| 9787 | done |
| 9788 | |
| 9789 | |
| 9790 | |
| 9791 | |
| 9792 | for ac_func in strchr index |
| 9793 | do |
| 9794 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9795 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9796 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9797 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9799 | else |
| 9800 | cat >conftest.$ac_ext <<_ACEOF |
| 9801 | /* confdefs.h. */ |
| 9802 | _ACEOF |
| 9803 | cat confdefs.h >>conftest.$ac_ext |
| 9804 | cat >>conftest.$ac_ext <<_ACEOF |
| 9805 | /* end confdefs.h. */ |
| 9806 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9807 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9808 | #define $ac_func innocuous_$ac_func |
| 9809 | |
| 9810 | /* System header to define __stub macros and hopefully few prototypes, |
| 9811 | which can conflict with char $ac_func (); below. |
| 9812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9813 | <limits.h> exists even on freestanding compilers. */ |
| 9814 | |
| 9815 | #ifdef __STDC__ |
| 9816 | # include <limits.h> |
| 9817 | #else |
| 9818 | # include <assert.h> |
| 9819 | #endif |
| 9820 | |
| 9821 | #undef $ac_func |
| 9822 | |
| 9823 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9824 | #ifdef __cplusplus |
| 9825 | extern "C" |
| 9826 | { |
| 9827 | #endif |
| 9828 | /* We use char because int might match the return type of a gcc2 |
| 9829 | builtin and then its argument prototype would still apply. */ |
| 9830 | char $ac_func (); |
| 9831 | /* The GNU C library defines this for functions which it implements |
| 9832 | to always fail with ENOSYS. Some functions are actually named |
| 9833 | something starting with __ and the normal name is an alias. */ |
| 9834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9835 | choke me |
| 9836 | #else |
| 9837 | char (*f) () = $ac_func; |
| 9838 | #endif |
| 9839 | #ifdef __cplusplus |
| 9840 | } |
| 9841 | #endif |
| 9842 | |
| 9843 | int |
| 9844 | main () |
| 9845 | { |
| 9846 | return f != $ac_func; |
| 9847 | ; |
| 9848 | return 0; |
| 9849 | } |
| 9850 | _ACEOF |
| 9851 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9853 | (eval $ac_link) 2>conftest.er1 |
| 9854 | ac_status=$? |
| 9855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9856 | rm -f conftest.er1 |
| 9857 | cat conftest.err >&5 |
| 9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9859 | (exit $ac_status); } && |
| 9860 | { ac_try='test -z "$ac_c_werror_flag" |
| 9861 | || test ! -s conftest.err' |
| 9862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9863 | (eval $ac_try) 2>&5 |
| 9864 | ac_status=$? |
| 9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9866 | (exit $ac_status); }; } && |
| 9867 | { ac_try='test -s conftest$ac_exeext' |
| 9868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9869 | (eval $ac_try) 2>&5 |
| 9870 | ac_status=$? |
| 9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9872 | (exit $ac_status); }; }; then |
| 9873 | eval "$as_ac_var=yes" |
| 9874 | else |
| 9875 | echo "$as_me: failed program was:" >&5 |
| 9876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9877 | |
| 9878 | eval "$as_ac_var=no" |
| 9879 | fi |
| 9880 | rm -f conftest.err conftest.$ac_objext \ |
| 9881 | conftest$ac_exeext conftest.$ac_ext |
| 9882 | fi |
| 9883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9884 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9885 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9886 | cat >>confdefs.h <<_ACEOF |
| 9887 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9888 | _ACEOF |
| 9889 | break |
| 9890 | fi |
| 9891 | done |
| 9892 | |
| 9893 | |
| 9894 | |
| 9895 | for ac_func in strrchr rindex |
| 9896 | do |
| 9897 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9898 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9899 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9900 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9902 | else |
| 9903 | cat >conftest.$ac_ext <<_ACEOF |
| 9904 | /* confdefs.h. */ |
| 9905 | _ACEOF |
| 9906 | cat confdefs.h >>conftest.$ac_ext |
| 9907 | cat >>conftest.$ac_ext <<_ACEOF |
| 9908 | /* end confdefs.h. */ |
| 9909 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9910 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9911 | #define $ac_func innocuous_$ac_func |
| 9912 | |
| 9913 | /* System header to define __stub macros and hopefully few prototypes, |
| 9914 | which can conflict with char $ac_func (); below. |
| 9915 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9916 | <limits.h> exists even on freestanding compilers. */ |
| 9917 | |
| 9918 | #ifdef __STDC__ |
| 9919 | # include <limits.h> |
| 9920 | #else |
| 9921 | # include <assert.h> |
| 9922 | #endif |
| 9923 | |
| 9924 | #undef $ac_func |
| 9925 | |
| 9926 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9927 | #ifdef __cplusplus |
| 9928 | extern "C" |
| 9929 | { |
| 9930 | #endif |
| 9931 | /* We use char because int might match the return type of a gcc2 |
| 9932 | builtin and then its argument prototype would still apply. */ |
| 9933 | char $ac_func (); |
| 9934 | /* The GNU C library defines this for functions which it implements |
| 9935 | to always fail with ENOSYS. Some functions are actually named |
| 9936 | something starting with __ and the normal name is an alias. */ |
| 9937 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9938 | choke me |
| 9939 | #else |
| 9940 | char (*f) () = $ac_func; |
| 9941 | #endif |
| 9942 | #ifdef __cplusplus |
| 9943 | } |
| 9944 | #endif |
| 9945 | |
| 9946 | int |
| 9947 | main () |
| 9948 | { |
| 9949 | return f != $ac_func; |
| 9950 | ; |
| 9951 | return 0; |
| 9952 | } |
| 9953 | _ACEOF |
| 9954 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9956 | (eval $ac_link) 2>conftest.er1 |
| 9957 | ac_status=$? |
| 9958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9959 | rm -f conftest.er1 |
| 9960 | cat conftest.err >&5 |
| 9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9962 | (exit $ac_status); } && |
| 9963 | { ac_try='test -z "$ac_c_werror_flag" |
| 9964 | || test ! -s conftest.err' |
| 9965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9966 | (eval $ac_try) 2>&5 |
| 9967 | ac_status=$? |
| 9968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9969 | (exit $ac_status); }; } && |
| 9970 | { ac_try='test -s conftest$ac_exeext' |
| 9971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9972 | (eval $ac_try) 2>&5 |
| 9973 | ac_status=$? |
| 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9975 | (exit $ac_status); }; }; then |
| 9976 | eval "$as_ac_var=yes" |
| 9977 | else |
| 9978 | echo "$as_me: failed program was:" >&5 |
| 9979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9980 | |
| 9981 | eval "$as_ac_var=no" |
| 9982 | fi |
| 9983 | rm -f conftest.err conftest.$ac_objext \ |
| 9984 | conftest$ac_exeext conftest.$ac_ext |
| 9985 | fi |
| 9986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9987 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9988 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9989 | cat >>confdefs.h <<_ACEOF |
| 9990 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9991 | _ACEOF |
| 9992 | break |
| 9993 | fi |
| 9994 | done |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | for ac_func in memcpy bcopy |
| 9999 | do |
| 10000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10001 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10003 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10005 | else |
| 10006 | cat >conftest.$ac_ext <<_ACEOF |
| 10007 | /* confdefs.h. */ |
| 10008 | _ACEOF |
| 10009 | cat confdefs.h >>conftest.$ac_ext |
| 10010 | cat >>conftest.$ac_ext <<_ACEOF |
| 10011 | /* end confdefs.h. */ |
| 10012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10014 | #define $ac_func innocuous_$ac_func |
| 10015 | |
| 10016 | /* System header to define __stub macros and hopefully few prototypes, |
| 10017 | which can conflict with char $ac_func (); below. |
| 10018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10019 | <limits.h> exists even on freestanding compilers. */ |
| 10020 | |
| 10021 | #ifdef __STDC__ |
| 10022 | # include <limits.h> |
| 10023 | #else |
| 10024 | # include <assert.h> |
| 10025 | #endif |
| 10026 | |
| 10027 | #undef $ac_func |
| 10028 | |
| 10029 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10030 | #ifdef __cplusplus |
| 10031 | extern "C" |
| 10032 | { |
| 10033 | #endif |
| 10034 | /* We use char because int might match the return type of a gcc2 |
| 10035 | builtin and then its argument prototype would still apply. */ |
| 10036 | char $ac_func (); |
| 10037 | /* The GNU C library defines this for functions which it implements |
| 10038 | to always fail with ENOSYS. Some functions are actually named |
| 10039 | something starting with __ and the normal name is an alias. */ |
| 10040 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10041 | choke me |
| 10042 | #else |
| 10043 | char (*f) () = $ac_func; |
| 10044 | #endif |
| 10045 | #ifdef __cplusplus |
| 10046 | } |
| 10047 | #endif |
| 10048 | |
| 10049 | int |
| 10050 | main () |
| 10051 | { |
| 10052 | return f != $ac_func; |
| 10053 | ; |
| 10054 | return 0; |
| 10055 | } |
| 10056 | _ACEOF |
| 10057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10059 | (eval $ac_link) 2>conftest.er1 |
| 10060 | ac_status=$? |
| 10061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10062 | rm -f conftest.er1 |
| 10063 | cat conftest.err >&5 |
| 10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10065 | (exit $ac_status); } && |
| 10066 | { ac_try='test -z "$ac_c_werror_flag" |
| 10067 | || test ! -s conftest.err' |
| 10068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10069 | (eval $ac_try) 2>&5 |
| 10070 | ac_status=$? |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); }; } && |
| 10073 | { ac_try='test -s conftest$ac_exeext' |
| 10074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10075 | (eval $ac_try) 2>&5 |
| 10076 | ac_status=$? |
| 10077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10078 | (exit $ac_status); }; }; then |
| 10079 | eval "$as_ac_var=yes" |
| 10080 | else |
| 10081 | echo "$as_me: failed program was:" >&5 |
| 10082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10083 | |
| 10084 | eval "$as_ac_var=no" |
| 10085 | fi |
| 10086 | rm -f conftest.err conftest.$ac_objext \ |
| 10087 | conftest$ac_exeext conftest.$ac_ext |
| 10088 | fi |
| 10089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10090 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10091 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10092 | cat >>confdefs.h <<_ACEOF |
| 10093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10094 | _ACEOF |
| 10095 | break |
| 10096 | fi |
| 10097 | done |
| 10098 | |
| 10099 | |
| 10100 | |
| 10101 | for ac_func in memmove strcmp |
| 10102 | do |
| 10103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10104 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10106 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10108 | else |
| 10109 | cat >conftest.$ac_ext <<_ACEOF |
| 10110 | /* confdefs.h. */ |
| 10111 | _ACEOF |
| 10112 | cat confdefs.h >>conftest.$ac_ext |
| 10113 | cat >>conftest.$ac_ext <<_ACEOF |
| 10114 | /* end confdefs.h. */ |
| 10115 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10116 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10117 | #define $ac_func innocuous_$ac_func |
| 10118 | |
| 10119 | /* System header to define __stub macros and hopefully few prototypes, |
| 10120 | which can conflict with char $ac_func (); below. |
| 10121 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10122 | <limits.h> exists even on freestanding compilers. */ |
| 10123 | |
| 10124 | #ifdef __STDC__ |
| 10125 | # include <limits.h> |
| 10126 | #else |
| 10127 | # include <assert.h> |
| 10128 | #endif |
| 10129 | |
| 10130 | #undef $ac_func |
| 10131 | |
| 10132 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10133 | #ifdef __cplusplus |
| 10134 | extern "C" |
| 10135 | { |
| 10136 | #endif |
| 10137 | /* We use char because int might match the return type of a gcc2 |
| 10138 | builtin and then its argument prototype would still apply. */ |
| 10139 | char $ac_func (); |
| 10140 | /* The GNU C library defines this for functions which it implements |
| 10141 | to always fail with ENOSYS. Some functions are actually named |
| 10142 | something starting with __ and the normal name is an alias. */ |
| 10143 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10144 | choke me |
| 10145 | #else |
| 10146 | char (*f) () = $ac_func; |
| 10147 | #endif |
| 10148 | #ifdef __cplusplus |
| 10149 | } |
| 10150 | #endif |
| 10151 | |
| 10152 | int |
| 10153 | main () |
| 10154 | { |
| 10155 | return f != $ac_func; |
| 10156 | ; |
| 10157 | return 0; |
| 10158 | } |
| 10159 | _ACEOF |
| 10160 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10162 | (eval $ac_link) 2>conftest.er1 |
| 10163 | ac_status=$? |
| 10164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10165 | rm -f conftest.er1 |
| 10166 | cat conftest.err >&5 |
| 10167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10168 | (exit $ac_status); } && |
| 10169 | { ac_try='test -z "$ac_c_werror_flag" |
| 10170 | || test ! -s conftest.err' |
| 10171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10172 | (eval $ac_try) 2>&5 |
| 10173 | ac_status=$? |
| 10174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10175 | (exit $ac_status); }; } && |
| 10176 | { ac_try='test -s conftest$ac_exeext' |
| 10177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10178 | (eval $ac_try) 2>&5 |
| 10179 | ac_status=$? |
| 10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10181 | (exit $ac_status); }; }; then |
| 10182 | eval "$as_ac_var=yes" |
| 10183 | else |
| 10184 | echo "$as_me: failed program was:" >&5 |
| 10185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10186 | |
| 10187 | eval "$as_ac_var=no" |
| 10188 | fi |
| 10189 | rm -f conftest.err conftest.$ac_objext \ |
| 10190 | conftest$ac_exeext conftest.$ac_ext |
| 10191 | fi |
| 10192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10193 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10194 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10195 | cat >>confdefs.h <<_ACEOF |
| 10196 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10197 | _ACEOF |
| 10198 | |
| 10199 | fi |
| 10200 | done |
| 10201 | |
| 10202 | |
| 10203 | |
| 10204 | |
| 10205 | for ac_func in closedir opendir readdir |
| 10206 | do |
| 10207 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10208 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10209 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10210 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10212 | else |
| 10213 | cat >conftest.$ac_ext <<_ACEOF |
| 10214 | /* confdefs.h. */ |
| 10215 | _ACEOF |
| 10216 | cat confdefs.h >>conftest.$ac_ext |
| 10217 | cat >>conftest.$ac_ext <<_ACEOF |
| 10218 | /* end confdefs.h. */ |
| 10219 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10220 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10221 | #define $ac_func innocuous_$ac_func |
| 10222 | |
| 10223 | /* System header to define __stub macros and hopefully few prototypes, |
| 10224 | which can conflict with char $ac_func (); below. |
| 10225 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10226 | <limits.h> exists even on freestanding compilers. */ |
| 10227 | |
| 10228 | #ifdef __STDC__ |
| 10229 | # include <limits.h> |
| 10230 | #else |
| 10231 | # include <assert.h> |
| 10232 | #endif |
| 10233 | |
| 10234 | #undef $ac_func |
| 10235 | |
| 10236 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10237 | #ifdef __cplusplus |
| 10238 | extern "C" |
| 10239 | { |
| 10240 | #endif |
| 10241 | /* We use char because int might match the return type of a gcc2 |
| 10242 | builtin and then its argument prototype would still apply. */ |
| 10243 | char $ac_func (); |
| 10244 | /* The GNU C library defines this for functions which it implements |
| 10245 | to always fail with ENOSYS. Some functions are actually named |
| 10246 | something starting with __ and the normal name is an alias. */ |
| 10247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10248 | choke me |
| 10249 | #else |
| 10250 | char (*f) () = $ac_func; |
| 10251 | #endif |
| 10252 | #ifdef __cplusplus |
| 10253 | } |
| 10254 | #endif |
| 10255 | |
| 10256 | int |
| 10257 | main () |
| 10258 | { |
| 10259 | return f != $ac_func; |
| 10260 | ; |
| 10261 | return 0; |
| 10262 | } |
| 10263 | _ACEOF |
| 10264 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10266 | (eval $ac_link) 2>conftest.er1 |
| 10267 | ac_status=$? |
| 10268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10269 | rm -f conftest.er1 |
| 10270 | cat conftest.err >&5 |
| 10271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10272 | (exit $ac_status); } && |
| 10273 | { ac_try='test -z "$ac_c_werror_flag" |
| 10274 | || test ! -s conftest.err' |
| 10275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10276 | (eval $ac_try) 2>&5 |
| 10277 | ac_status=$? |
| 10278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10279 | (exit $ac_status); }; } && |
| 10280 | { ac_try='test -s conftest$ac_exeext' |
| 10281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10282 | (eval $ac_try) 2>&5 |
| 10283 | ac_status=$? |
| 10284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10285 | (exit $ac_status); }; }; then |
| 10286 | eval "$as_ac_var=yes" |
| 10287 | else |
| 10288 | echo "$as_me: failed program was:" >&5 |
| 10289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10290 | |
| 10291 | eval "$as_ac_var=no" |
| 10292 | fi |
| 10293 | rm -f conftest.err conftest.$ac_objext \ |
| 10294 | conftest$ac_exeext conftest.$ac_ext |
| 10295 | fi |
| 10296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10297 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10298 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10299 | cat >>confdefs.h <<_ACEOF |
| 10300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10301 | _ACEOF |
| 10302 | |
| 10303 | fi |
| 10304 | done |
| 10305 | |
| 10306 | |
| 10307 | # Check whether --enable-shared or --disable-shared was given. |
| 10308 | if test "${enable_shared+set}" = set; then |
| 10309 | enableval="$enable_shared" |
| 10310 | p=${PACKAGE-default} |
| 10311 | case $enableval in |
| 10312 | yes) enable_shared=yes ;; |
| 10313 | no) enable_shared=no ;; |
| 10314 | *) |
| 10315 | enable_shared=no |
| 10316 | # Look at the argument we got. We use all the common list separators. |
| 10317 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10318 | for pkg in $enableval; do |
| 10319 | IFS="$lt_save_ifs" |
| 10320 | if test "X$pkg" = "X$p"; then |
| 10321 | enable_shared=yes |
| 10322 | fi |
| 10323 | done |
| 10324 | IFS="$lt_save_ifs" |
| 10325 | ;; |
| 10326 | esac |
| 10327 | else |
| 10328 | enable_shared=yes |
| 10329 | fi; |
| 10330 | |
| 10331 | # Check whether --enable-static or --disable-static was given. |
| 10332 | if test "${enable_static+set}" = set; then |
| 10333 | enableval="$enable_static" |
| 10334 | p=${PACKAGE-default} |
| 10335 | case $enableval in |
| 10336 | yes) enable_static=yes ;; |
| 10337 | no) enable_static=no ;; |
| 10338 | *) |
| 10339 | enable_static=no |
| 10340 | # Look at the argument we got. We use all the common list separators. |
| 10341 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10342 | for pkg in $enableval; do |
| 10343 | IFS="$lt_save_ifs" |
| 10344 | if test "X$pkg" = "X$p"; then |
| 10345 | enable_static=yes |
| 10346 | fi |
| 10347 | done |
| 10348 | IFS="$lt_save_ifs" |
| 10349 | ;; |
| 10350 | esac |
| 10351 | else |
| 10352 | enable_static=yes |
| 10353 | fi; |
| 10354 | |
| 10355 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 10356 | if test "${enable_fast_install+set}" = set; then |
| 10357 | enableval="$enable_fast_install" |
| 10358 | p=${PACKAGE-default} |
| 10359 | case $enableval in |
| 10360 | yes) enable_fast_install=yes ;; |
| 10361 | no) enable_fast_install=no ;; |
| 10362 | *) |
| 10363 | enable_fast_install=no |
| 10364 | # Look at the argument we got. We use all the common list separators. |
| 10365 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10366 | for pkg in $enableval; do |
| 10367 | IFS="$lt_save_ifs" |
| 10368 | if test "X$pkg" = "X$p"; then |
| 10369 | enable_fast_install=yes |
| 10370 | fi |
| 10371 | done |
| 10372 | IFS="$lt_save_ifs" |
| 10373 | ;; |
| 10374 | esac |
| 10375 | else |
| 10376 | enable_fast_install=yes |
| 10377 | fi; |
| 10378 | |
| 10379 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 10380 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 10381 | if test "${lt_cv_path_SED+set}" = set; then |
| 10382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10383 | else |
| 10384 | # Loop through the user's path and test for sed and gsed. |
| 10385 | # Then use that list of sed's as ones to test for truncation. |
| 10386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10387 | for as_dir in $PATH |
| 10388 | do |
| 10389 | IFS=$as_save_IFS |
| 10390 | test -z "$as_dir" && as_dir=. |
| 10391 | for lt_ac_prog in sed gsed; do |
| 10392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10393 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 10394 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 10395 | fi |
| 10396 | done |
| 10397 | done |
| 10398 | done |
| 10399 | lt_ac_max=0 |
| 10400 | lt_ac_count=0 |
| 10401 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 10402 | # along with /bin/sed that truncates output. |
| 10403 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 10404 | test ! -f $lt_ac_sed && break |
| 10405 | cat /dev/null > conftest.in |
| 10406 | lt_ac_count=0 |
| 10407 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 10408 | # Check for GNU sed and select it if it is found. |
| 10409 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 10410 | lt_cv_path_SED=$lt_ac_sed |
| 10411 | break |
| 10412 | fi |
| 10413 | while true; do |
| 10414 | cat conftest.in conftest.in >conftest.tmp |
| 10415 | mv conftest.tmp conftest.in |
| 10416 | cp conftest.in conftest.nl |
| 10417 | echo >>conftest.nl |
| 10418 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 10419 | cmp -s conftest.out conftest.nl || break |
| 10420 | # 10000 chars as input seems more than enough |
| 10421 | test $lt_ac_count -gt 10 && break |
| 10422 | lt_ac_count=`expr $lt_ac_count + 1` |
| 10423 | if test $lt_ac_count -gt $lt_ac_max; then |
| 10424 | lt_ac_max=$lt_ac_count |
| 10425 | lt_cv_path_SED=$lt_ac_sed |
| 10426 | fi |
| 10427 | done |
| 10428 | done |
| 10429 | |
| 10430 | fi |
| 10431 | |
| 10432 | SED=$lt_cv_path_SED |
| 10433 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 10434 | echo "${ECHO_T}$SED" >&6 |
| 10435 | |
| 10436 | |
| 10437 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 10438 | if test "${with_gnu_ld+set}" = set; then |
| 10439 | withval="$with_gnu_ld" |
| 10440 | test "$withval" = no || with_gnu_ld=yes |
| 10441 | else |
| 10442 | with_gnu_ld=no |
| 10443 | fi; |
| 10444 | ac_prog=ld |
| 10445 | if test "$GCC" = yes; then |
| 10446 | # Check if gcc -print-prog-name=ld gives a path. |
| 10447 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 10448 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 10449 | case $host in |
| 10450 | *-*-mingw*) |
| 10451 | # gcc leaves a trailing carriage return which upsets mingw |
| 10452 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10453 | *) |
| 10454 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10455 | esac |
| 10456 | case $ac_prog in |
| 10457 | # Accept absolute paths. |
| 10458 | [\\/]* | ?:[\\/]*) |
| 10459 | re_direlt='/[^/][^/]*/\.\./' |
| 10460 | # Canonicalize the pathname of ld |
| 10461 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 10462 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10463 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 10464 | done |
| 10465 | test -z "$LD" && LD="$ac_prog" |
| 10466 | ;; |
| 10467 | "") |
| 10468 | # If it fails, then pretend we aren't using GCC. |
| 10469 | ac_prog=ld |
| 10470 | ;; |
| 10471 | *) |
| 10472 | # If it is relative, then search for the first ld in PATH. |
| 10473 | with_gnu_ld=unknown |
| 10474 | ;; |
| 10475 | esac |
| 10476 | elif test "$with_gnu_ld" = yes; then |
| 10477 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10478 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 10479 | else |
| 10480 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10481 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 10482 | fi |
| 10483 | if test "${lt_cv_path_LD+set}" = set; then |
| 10484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10485 | else |
| 10486 | if test -z "$LD"; then |
| 10487 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10488 | for ac_dir in $PATH; do |
| 10489 | IFS="$lt_save_ifs" |
| 10490 | test -z "$ac_dir" && ac_dir=. |
| 10491 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10492 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 10493 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 10494 | # but apparently some GNU ld's only accept -v. |
| 10495 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10496 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10497 | *GNU* | *'with BFD'*) |
| 10498 | test "$with_gnu_ld" != no && break |
| 10499 | ;; |
| 10500 | *) |
| 10501 | test "$with_gnu_ld" != yes && break |
| 10502 | ;; |
| 10503 | esac |
| 10504 | fi |
| 10505 | done |
| 10506 | IFS="$lt_save_ifs" |
| 10507 | else |
| 10508 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10509 | fi |
| 10510 | fi |
| 10511 | |
| 10512 | LD="$lt_cv_path_LD" |
| 10513 | if test -n "$LD"; then |
| 10514 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 10515 | echo "${ECHO_T}$LD" >&6 |
| 10516 | else |
| 10517 | echo "$as_me:$LINENO: result: no" >&5 |
| 10518 | echo "${ECHO_T}no" >&6 |
| 10519 | fi |
| 10520 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10521 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10522 | { (exit 1); exit 1; }; } |
| 10523 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10524 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 10525 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 10526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10527 | else |
| 10528 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 10529 | case `$LD -v 2>&1 </dev/null` in |
| 10530 | *GNU* | *'with BFD'*) |
| 10531 | lt_cv_prog_gnu_ld=yes |
| 10532 | ;; |
| 10533 | *) |
| 10534 | lt_cv_prog_gnu_ld=no |
| 10535 | ;; |
| 10536 | esac |
| 10537 | fi |
| 10538 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 10539 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 10540 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10541 | |
| 10542 | |
| 10543 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 10544 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 10545 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 10546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10547 | else |
| 10548 | lt_cv_ld_reload_flag='-r' |
| 10549 | fi |
| 10550 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 10551 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 10552 | reload_flag=$lt_cv_ld_reload_flag |
| 10553 | case $reload_flag in |
| 10554 | "" | " "*) ;; |
| 10555 | *) reload_flag=" $reload_flag" ;; |
| 10556 | esac |
| 10557 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10558 | case $host_os in |
| 10559 | darwin*) |
| 10560 | if test "$GCC" = yes; then |
Chris Lattner | b6f9341 | 2006-04-19 18:38:19 +0000 | [diff] [blame] | 10561 | reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10562 | else |
| 10563 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10564 | fi |
| 10565 | ;; |
| 10566 | esac |
| 10567 | |
| 10568 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 10569 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 10570 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 10571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10572 | else |
| 10573 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 10574 | lt_cv_file_magic_test_file= |
| 10575 | lt_cv_deplibs_check_method='unknown' |
| 10576 | # Need to set the preceding variable on all platforms that support |
| 10577 | # interlibrary dependencies. |
| 10578 | # 'none' -- dependencies not supported. |
| 10579 | # `unknown' -- same as none, but documents that we really don't know. |
| 10580 | # 'pass_all' -- all dependencies passed with no checks. |
| 10581 | # 'test_compile' -- check by making test program. |
| 10582 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 10583 | # which responds to the $file_magic_cmd with a given extended regex. |
| 10584 | # If you have `file' or equivalent on your system and you're not sure |
| 10585 | # whether `pass_all' will *always* work, you probably want this one. |
| 10586 | |
| 10587 | case $host_os in |
| 10588 | aix4* | aix5*) |
| 10589 | lt_cv_deplibs_check_method=pass_all |
| 10590 | ;; |
| 10591 | |
| 10592 | beos*) |
| 10593 | lt_cv_deplibs_check_method=pass_all |
| 10594 | ;; |
| 10595 | |
| 10596 | bsdi[45]*) |
| 10597 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 10598 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 10599 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 10600 | ;; |
| 10601 | |
| 10602 | cygwin*) |
| 10603 | # func_win32_libid is a shell function defined in ltmain.sh |
| 10604 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10605 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10606 | ;; |
| 10607 | |
| 10608 | mingw* | pw32*) |
| 10609 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 10610 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 10611 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 10612 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10613 | ;; |
| 10614 | |
| 10615 | darwin* | rhapsody*) |
| 10616 | lt_cv_deplibs_check_method=pass_all |
| 10617 | ;; |
| 10618 | |
| 10619 | freebsd* | kfreebsd*-gnu) |
| 10620 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10621 | case $host_cpu in |
| 10622 | i*86 ) |
| 10623 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 10624 | # Let's accept both of them until this is cleared up. |
| 10625 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 10626 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10627 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 10628 | ;; |
| 10629 | esac |
| 10630 | else |
| 10631 | lt_cv_deplibs_check_method=pass_all |
| 10632 | fi |
| 10633 | ;; |
| 10634 | |
| 10635 | gnu*) |
| 10636 | lt_cv_deplibs_check_method=pass_all |
| 10637 | ;; |
| 10638 | |
| 10639 | hpux10.20* | hpux11*) |
| 10640 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10641 | case "$host_cpu" in |
| 10642 | ia64*) |
| 10643 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 10644 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 10645 | ;; |
| 10646 | hppa*64*) |
| 10647 | 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]' |
| 10648 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 10649 | ;; |
| 10650 | *) |
| 10651 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 10652 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 10653 | ;; |
| 10654 | esac |
| 10655 | ;; |
| 10656 | |
| 10657 | irix5* | irix6* | nonstopux*) |
| 10658 | case $LD in |
| 10659 | *-32|*"-32 ") libmagic=32-bit;; |
| 10660 | *-n32|*"-n32 ") libmagic=N32;; |
| 10661 | *-64|*"-64 ") libmagic=64-bit;; |
| 10662 | *) libmagic=never-match;; |
| 10663 | esac |
| 10664 | lt_cv_deplibs_check_method=pass_all |
| 10665 | ;; |
| 10666 | |
| 10667 | # This must be Linux ELF. |
| 10668 | linux*) |
| 10669 | lt_cv_deplibs_check_method=pass_all |
| 10670 | ;; |
| 10671 | |
| 10672 | netbsd*) |
| 10673 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10674 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10675 | else |
| 10676 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 10677 | fi |
| 10678 | ;; |
| 10679 | |
| 10680 | newos6*) |
| 10681 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 10682 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10683 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 10684 | ;; |
| 10685 | |
| 10686 | nto-qnx*) |
| 10687 | lt_cv_deplibs_check_method=unknown |
| 10688 | ;; |
| 10689 | |
| 10690 | openbsd*) |
| 10691 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10692 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 10693 | else |
| 10694 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10695 | fi |
| 10696 | ;; |
| 10697 | |
| 10698 | osf3* | osf4* | osf5*) |
| 10699 | lt_cv_deplibs_check_method=pass_all |
| 10700 | ;; |
| 10701 | |
| 10702 | sco3.2v5*) |
| 10703 | lt_cv_deplibs_check_method=pass_all |
| 10704 | ;; |
| 10705 | |
| 10706 | solaris*) |
| 10707 | lt_cv_deplibs_check_method=pass_all |
| 10708 | ;; |
| 10709 | |
| 10710 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10711 | case $host_vendor in |
| 10712 | motorola) |
| 10713 | 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]' |
| 10714 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 10715 | ;; |
| 10716 | ncr) |
| 10717 | lt_cv_deplibs_check_method=pass_all |
| 10718 | ;; |
| 10719 | sequent) |
| 10720 | lt_cv_file_magic_cmd='/bin/file' |
| 10721 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 10722 | ;; |
| 10723 | sni) |
| 10724 | lt_cv_file_magic_cmd='/bin/file' |
| 10725 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 10726 | lt_cv_file_magic_test_file=/lib/libc.so |
| 10727 | ;; |
| 10728 | siemens) |
| 10729 | lt_cv_deplibs_check_method=pass_all |
| 10730 | ;; |
| 10731 | esac |
| 10732 | ;; |
| 10733 | |
| 10734 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 10735 | lt_cv_deplibs_check_method=pass_all |
| 10736 | ;; |
| 10737 | esac |
| 10738 | |
| 10739 | fi |
| 10740 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 10741 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 10742 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 10743 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 10744 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 10745 | |
| 10746 | |
| 10747 | |
| 10748 | # If no C compiler was specified, use CC. |
| 10749 | LTCC=${LTCC-"$CC"} |
| 10750 | |
| 10751 | # Allow CC to be a program name with arguments. |
| 10752 | compiler=$CC |
| 10753 | |
| 10754 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 10755 | if test "${enable_libtool_lock+set}" = set; then |
| 10756 | enableval="$enable_libtool_lock" |
| 10757 | |
| 10758 | fi; |
| 10759 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 10760 | |
| 10761 | # Some flags need to be propagated to the compiler or linker for good |
| 10762 | # libtool support. |
| 10763 | case $host in |
| 10764 | ia64-*-hpux*) |
| 10765 | # Find out which ABI we are using. |
| 10766 | echo 'int i;' > conftest.$ac_ext |
| 10767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10768 | (eval $ac_compile) 2>&5 |
| 10769 | ac_status=$? |
| 10770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10771 | (exit $ac_status); }; then |
| 10772 | case `/usr/bin/file conftest.$ac_objext` in |
| 10773 | *ELF-32*) |
| 10774 | HPUX_IA64_MODE="32" |
| 10775 | ;; |
| 10776 | *ELF-64*) |
| 10777 | HPUX_IA64_MODE="64" |
| 10778 | ;; |
| 10779 | esac |
| 10780 | fi |
| 10781 | rm -rf conftest* |
| 10782 | ;; |
| 10783 | *-*-irix6*) |
| 10784 | # Find out which ABI we are using. |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 10785 | echo '#line 10785 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10787 | (eval $ac_compile) 2>&5 |
| 10788 | ac_status=$? |
| 10789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10790 | (exit $ac_status); }; then |
| 10791 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10792 | case `/usr/bin/file conftest.$ac_objext` in |
| 10793 | *32-bit*) |
| 10794 | LD="${LD-ld} -melf32bsmip" |
| 10795 | ;; |
| 10796 | *N32*) |
| 10797 | LD="${LD-ld} -melf32bmipn32" |
| 10798 | ;; |
| 10799 | *64-bit*) |
| 10800 | LD="${LD-ld} -melf64bmip" |
| 10801 | ;; |
| 10802 | esac |
| 10803 | else |
| 10804 | case `/usr/bin/file conftest.$ac_objext` in |
| 10805 | *32-bit*) |
| 10806 | LD="${LD-ld} -32" |
| 10807 | ;; |
| 10808 | *N32*) |
| 10809 | LD="${LD-ld} -n32" |
| 10810 | ;; |
| 10811 | *64-bit*) |
| 10812 | LD="${LD-ld} -64" |
| 10813 | ;; |
| 10814 | esac |
| 10815 | fi |
| 10816 | fi |
| 10817 | rm -rf conftest* |
| 10818 | ;; |
| 10819 | |
| 10820 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 10821 | # Find out which ABI we are using. |
| 10822 | echo 'int i;' > conftest.$ac_ext |
| 10823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10824 | (eval $ac_compile) 2>&5 |
| 10825 | ac_status=$? |
| 10826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10827 | (exit $ac_status); }; then |
| 10828 | case "`/usr/bin/file conftest.o`" in |
| 10829 | *32-bit*) |
| 10830 | case $host in |
| 10831 | x86_64-*linux*) |
| 10832 | LD="${LD-ld} -m elf_i386" |
| 10833 | ;; |
| 10834 | ppc64-*linux*|powerpc64-*linux*) |
| 10835 | LD="${LD-ld} -m elf32ppclinux" |
| 10836 | ;; |
| 10837 | s390x-*linux*) |
| 10838 | LD="${LD-ld} -m elf_s390" |
| 10839 | ;; |
| 10840 | sparc64-*linux*) |
| 10841 | LD="${LD-ld} -m elf32_sparc" |
| 10842 | ;; |
| 10843 | esac |
| 10844 | ;; |
| 10845 | *64-bit*) |
| 10846 | case $host in |
| 10847 | x86_64-*linux*) |
| 10848 | LD="${LD-ld} -m elf_x86_64" |
| 10849 | ;; |
| 10850 | ppc*-*linux*|powerpc*-*linux*) |
| 10851 | LD="${LD-ld} -m elf64ppc" |
| 10852 | ;; |
| 10853 | s390*-*linux*) |
| 10854 | LD="${LD-ld} -m elf64_s390" |
| 10855 | ;; |
| 10856 | sparc*-*linux*) |
| 10857 | LD="${LD-ld} -m elf64_sparc" |
| 10858 | ;; |
| 10859 | esac |
| 10860 | ;; |
| 10861 | esac |
| 10862 | fi |
| 10863 | rm -rf conftest* |
| 10864 | ;; |
| 10865 | |
| 10866 | *-*-sco3.2v5*) |
| 10867 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 10868 | SAVE_CFLAGS="$CFLAGS" |
| 10869 | CFLAGS="$CFLAGS -belf" |
| 10870 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 10871 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 10872 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 10873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10874 | else |
| 10875 | ac_ext=c |
| 10876 | ac_cpp='$CPP $CPPFLAGS' |
| 10877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10880 | |
| 10881 | cat >conftest.$ac_ext <<_ACEOF |
| 10882 | /* confdefs.h. */ |
| 10883 | _ACEOF |
| 10884 | cat confdefs.h >>conftest.$ac_ext |
| 10885 | cat >>conftest.$ac_ext <<_ACEOF |
| 10886 | /* end confdefs.h. */ |
| 10887 | |
| 10888 | _ACEOF |
| 10889 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10891 | (eval $ac_link) 2>conftest.er1 |
| 10892 | ac_status=$? |
| 10893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10894 | rm -f conftest.er1 |
| 10895 | cat conftest.err >&5 |
| 10896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10897 | (exit $ac_status); } && |
| 10898 | { ac_try='test -z "$ac_c_werror_flag" |
| 10899 | || test ! -s conftest.err' |
| 10900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10901 | (eval $ac_try) 2>&5 |
| 10902 | ac_status=$? |
| 10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10904 | (exit $ac_status); }; } && |
| 10905 | { ac_try='test -s conftest$ac_exeext' |
| 10906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10907 | (eval $ac_try) 2>&5 |
| 10908 | ac_status=$? |
| 10909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10910 | (exit $ac_status); }; }; then |
| 10911 | lt_cv_cc_needs_belf=yes |
| 10912 | else |
| 10913 | echo "$as_me: failed program was:" >&5 |
| 10914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10915 | |
| 10916 | lt_cv_cc_needs_belf=no |
| 10917 | fi |
| 10918 | rm -f conftest.err conftest.$ac_objext \ |
| 10919 | conftest$ac_exeext conftest.$ac_ext |
| 10920 | ac_ext=c |
| 10921 | ac_cpp='$CPP $CPPFLAGS' |
| 10922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10925 | |
| 10926 | fi |
| 10927 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 10928 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 10929 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 10930 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 10931 | CFLAGS="$SAVE_CFLAGS" |
| 10932 | fi |
| 10933 | ;; |
| 10934 | |
| 10935 | esac |
| 10936 | |
| 10937 | need_locks="$enable_libtool_lock" |
| 10938 | |
| 10939 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10940 | |
| 10941 | |
| 10942 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10943 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10944 | (test "X$CXX" != "Xg++"))) ; then |
| 10945 | ac_ext=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10946 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10947 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10948 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10949 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10950 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 10951 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 10952 | if test -z "$CXXCPP"; then |
| 10953 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10955 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10956 | # Double quotes because CXXCPP needs to be expanded |
| 10957 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 10958 | do |
| 10959 | ac_preproc_ok=false |
| 10960 | for ac_cxx_preproc_warn_flag in '' yes |
| 10961 | do |
| 10962 | # Use a header file that comes with gcc, so configuring glibc |
| 10963 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10964 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10965 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10966 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10967 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10968 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10969 | /* confdefs.h. */ |
| 10970 | _ACEOF |
| 10971 | cat confdefs.h >>conftest.$ac_ext |
| 10972 | cat >>conftest.$ac_ext <<_ACEOF |
| 10973 | /* end confdefs.h. */ |
| 10974 | #ifdef __STDC__ |
| 10975 | # include <limits.h> |
| 10976 | #else |
| 10977 | # include <assert.h> |
| 10978 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10979 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10980 | _ACEOF |
| 10981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10983 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10984 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10985 | rm -f conftest.er1 |
| 10986 | cat conftest.err >&5 |
| 10987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10988 | (exit $ac_status); } >/dev/null; then |
| 10989 | if test -s conftest.err; then |
| 10990 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10991 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10992 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10993 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10994 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10995 | else |
| 10996 | ac_cpp_err=yes |
| 10997 | fi |
| 10998 | if test -z "$ac_cpp_err"; then |
| 10999 | : |
| 11000 | else |
| 11001 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11003 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11004 | # Broken: fails on valid input. |
| 11005 | continue |
| 11006 | fi |
| 11007 | rm -f conftest.err conftest.$ac_ext |
| 11008 | |
| 11009 | # OK, works on sane cases. Now check whether non-existent headers |
| 11010 | # can be detected and how. |
| 11011 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11012 | /* confdefs.h. */ |
| 11013 | _ACEOF |
| 11014 | cat confdefs.h >>conftest.$ac_ext |
| 11015 | cat >>conftest.$ac_ext <<_ACEOF |
| 11016 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11017 | #include <ac_nonexistent.h> |
| 11018 | _ACEOF |
| 11019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11021 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11022 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11023 | rm -f conftest.er1 |
| 11024 | cat conftest.err >&5 |
| 11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11026 | (exit $ac_status); } >/dev/null; then |
| 11027 | if test -s conftest.err; then |
| 11028 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11029 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11030 | else |
| 11031 | ac_cpp_err= |
| 11032 | fi |
| 11033 | else |
| 11034 | ac_cpp_err=yes |
| 11035 | fi |
| 11036 | if test -z "$ac_cpp_err"; then |
| 11037 | # Broken: success on invalid input. |
| 11038 | continue |
| 11039 | else |
| 11040 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11042 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11043 | # Passes both tests. |
| 11044 | ac_preproc_ok=: |
| 11045 | break |
| 11046 | fi |
| 11047 | rm -f conftest.err conftest.$ac_ext |
| 11048 | |
| 11049 | done |
| 11050 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 11051 | rm -f conftest.err conftest.$ac_ext |
| 11052 | if $ac_preproc_ok; then |
| 11053 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11054 | fi |
| 11055 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11056 | done |
| 11057 | ac_cv_prog_CXXCPP=$CXXCPP |
| 11058 | |
| 11059 | fi |
| 11060 | CXXCPP=$ac_cv_prog_CXXCPP |
| 11061 | else |
| 11062 | ac_cv_prog_CXXCPP=$CXXCPP |
| 11063 | fi |
| 11064 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 11065 | echo "${ECHO_T}$CXXCPP" >&6 |
| 11066 | ac_preproc_ok=false |
| 11067 | for ac_cxx_preproc_warn_flag in '' yes |
| 11068 | do |
| 11069 | # Use a header file that comes with gcc, so configuring glibc |
| 11070 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11071 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11072 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11073 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 11074 | # not just through cpp. "Syntax error" is here to catch this case. |
| 11075 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11076 | /* confdefs.h. */ |
| 11077 | _ACEOF |
| 11078 | cat confdefs.h >>conftest.$ac_ext |
| 11079 | cat >>conftest.$ac_ext <<_ACEOF |
| 11080 | /* end confdefs.h. */ |
| 11081 | #ifdef __STDC__ |
| 11082 | # include <limits.h> |
| 11083 | #else |
| 11084 | # include <assert.h> |
| 11085 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11086 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11087 | _ACEOF |
| 11088 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11089 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11090 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11091 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11092 | rm -f conftest.er1 |
| 11093 | cat conftest.err >&5 |
| 11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11095 | (exit $ac_status); } >/dev/null; then |
| 11096 | if test -s conftest.err; then |
| 11097 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11098 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11099 | else |
| 11100 | ac_cpp_err= |
| 11101 | fi |
| 11102 | else |
| 11103 | ac_cpp_err=yes |
| 11104 | fi |
| 11105 | if test -z "$ac_cpp_err"; then |
| 11106 | : |
| 11107 | else |
| 11108 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11110 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11111 | # Broken: fails on valid input. |
| 11112 | continue |
| 11113 | fi |
| 11114 | rm -f conftest.err conftest.$ac_ext |
| 11115 | |
| 11116 | # OK, works on sane cases. Now check whether non-existent headers |
| 11117 | # can be detected and how. |
| 11118 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11119 | /* confdefs.h. */ |
| 11120 | _ACEOF |
| 11121 | cat confdefs.h >>conftest.$ac_ext |
| 11122 | cat >>conftest.$ac_ext <<_ACEOF |
| 11123 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11124 | #include <ac_nonexistent.h> |
| 11125 | _ACEOF |
| 11126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11128 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11129 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11130 | rm -f conftest.er1 |
| 11131 | cat conftest.err >&5 |
| 11132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11133 | (exit $ac_status); } >/dev/null; then |
| 11134 | if test -s conftest.err; then |
| 11135 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11136 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11137 | else |
| 11138 | ac_cpp_err= |
| 11139 | fi |
| 11140 | else |
| 11141 | ac_cpp_err=yes |
| 11142 | fi |
| 11143 | if test -z "$ac_cpp_err"; then |
| 11144 | # Broken: success on invalid input. |
| 11145 | continue |
| 11146 | else |
| 11147 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11149 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11150 | # Passes both tests. |
| 11151 | ac_preproc_ok=: |
| 11152 | break |
| 11153 | fi |
| 11154 | rm -f conftest.err conftest.$ac_ext |
| 11155 | |
| 11156 | done |
| 11157 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 11158 | rm -f conftest.err conftest.$ac_ext |
| 11159 | if $ac_preproc_ok; then |
| 11160 | : |
| 11161 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11162 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 11163 | See \`config.log' for more details." >&5 |
| 11164 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 11165 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11166 | { (exit 1); exit 1; }; } |
| 11167 | fi |
| 11168 | |
| 11169 | ac_ext=cc |
| 11170 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11171 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11172 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11173 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11174 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11175 | fi |
| 11176 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11177 | |
| 11178 | ac_ext=f |
| 11179 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 11180 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11181 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 11182 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11183 | 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] | 11184 | do |
| 11185 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 11186 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 11187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11189 | if test "${ac_cv_prog_F77+set}" = set; then |
| 11190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11191 | else |
| 11192 | if test -n "$F77"; then |
| 11193 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 11194 | else |
| 11195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11196 | for as_dir in $PATH |
| 11197 | do |
| 11198 | IFS=$as_save_IFS |
| 11199 | test -z "$as_dir" && as_dir=. |
| 11200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11202 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 11203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11204 | break 2 |
| 11205 | fi |
| 11206 | done |
| 11207 | done |
| 11208 | |
| 11209 | fi |
| 11210 | fi |
| 11211 | F77=$ac_cv_prog_F77 |
| 11212 | if test -n "$F77"; then |
| 11213 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 11214 | echo "${ECHO_T}$F77" >&6 |
| 11215 | else |
| 11216 | echo "$as_me:$LINENO: result: no" >&5 |
| 11217 | echo "${ECHO_T}no" >&6 |
| 11218 | fi |
| 11219 | |
| 11220 | test -n "$F77" && break |
| 11221 | done |
| 11222 | fi |
| 11223 | if test -z "$F77"; then |
| 11224 | ac_ct_F77=$F77 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11225 | 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] | 11226 | do |
| 11227 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11228 | set dummy $ac_prog; ac_word=$2 |
| 11229 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11231 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 11232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11233 | else |
| 11234 | if test -n "$ac_ct_F77"; then |
| 11235 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 11236 | else |
| 11237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11238 | for as_dir in $PATH |
| 11239 | do |
| 11240 | IFS=$as_save_IFS |
| 11241 | test -z "$as_dir" && as_dir=. |
| 11242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11243 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11244 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 11245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11246 | break 2 |
| 11247 | fi |
| 11248 | done |
| 11249 | done |
| 11250 | |
| 11251 | fi |
| 11252 | fi |
| 11253 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 11254 | if test -n "$ac_ct_F77"; then |
| 11255 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 11256 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 11257 | else |
| 11258 | echo "$as_me:$LINENO: result: no" >&5 |
| 11259 | echo "${ECHO_T}no" >&6 |
| 11260 | fi |
| 11261 | |
| 11262 | test -n "$ac_ct_F77" && break |
| 11263 | done |
| 11264 | |
| 11265 | F77=$ac_ct_F77 |
| 11266 | fi |
| 11267 | |
| 11268 | |
| 11269 | # Provide some information about the compiler. |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 11270 | echo "$as_me:11270:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11271 | "checking for Fortran 77 compiler version" >&5 |
| 11272 | ac_compiler=`set X $ac_compile; echo $2` |
| 11273 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 11274 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 11275 | ac_status=$? |
| 11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11277 | (exit $ac_status); } |
| 11278 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 11279 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 11280 | ac_status=$? |
| 11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11282 | (exit $ac_status); } |
| 11283 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 11284 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 11285 | ac_status=$? |
| 11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11287 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11288 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11289 | |
| 11290 | # 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] | 11291 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11292 | ac_save_ext=$ac_ext |
| 11293 | ac_ext=F |
| 11294 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 11295 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 11296 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 11297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11298 | else |
| 11299 | cat >conftest.$ac_ext <<_ACEOF |
| 11300 | program main |
| 11301 | #ifndef __GNUC__ |
| 11302 | choke me |
| 11303 | #endif |
| 11304 | |
| 11305 | end |
| 11306 | _ACEOF |
| 11307 | rm -f conftest.$ac_objext |
| 11308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11309 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11310 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11312 | rm -f conftest.er1 |
| 11313 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11315 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11316 | { ac_try='test -z "$ac_f77_werror_flag" |
| 11317 | || test ! -s conftest.err' |
| 11318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11319 | (eval $ac_try) 2>&5 |
| 11320 | ac_status=$? |
| 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11322 | (exit $ac_status); }; } && |
| 11323 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11325 | (eval $ac_try) 2>&5 |
| 11326 | ac_status=$? |
| 11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11328 | (exit $ac_status); }; }; then |
| 11329 | ac_compiler_gnu=yes |
| 11330 | else |
| 11331 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11333 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11334 | ac_compiler_gnu=no |
| 11335 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11337 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 11338 | |
| 11339 | fi |
| 11340 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 11341 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 11342 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11343 | ac_test_FFLAGS=${FFLAGS+set} |
| 11344 | ac_save_FFLAGS=$FFLAGS |
| 11345 | FFLAGS= |
| 11346 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 11347 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 11348 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 11349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11350 | else |
| 11351 | FFLAGS=-g |
| 11352 | cat >conftest.$ac_ext <<_ACEOF |
| 11353 | program main |
| 11354 | |
| 11355 | end |
| 11356 | _ACEOF |
| 11357 | rm -f conftest.$ac_objext |
| 11358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11359 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11360 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11362 | rm -f conftest.er1 |
| 11363 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11365 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11366 | { ac_try='test -z "$ac_f77_werror_flag" |
| 11367 | || test ! -s conftest.err' |
| 11368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11369 | (eval $ac_try) 2>&5 |
| 11370 | ac_status=$? |
| 11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11372 | (exit $ac_status); }; } && |
| 11373 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11375 | (eval $ac_try) 2>&5 |
| 11376 | ac_status=$? |
| 11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11378 | (exit $ac_status); }; }; then |
| 11379 | ac_cv_prog_f77_g=yes |
| 11380 | else |
| 11381 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11383 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11384 | ac_cv_prog_f77_g=no |
| 11385 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11387 | |
| 11388 | fi |
| 11389 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 11390 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 11391 | if test "$ac_test_FFLAGS" = set; then |
| 11392 | FFLAGS=$ac_save_FFLAGS |
| 11393 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11394 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11395 | FFLAGS="-g -O2" |
| 11396 | else |
| 11397 | FFLAGS="-g" |
| 11398 | fi |
| 11399 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11400 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11401 | FFLAGS="-O2" |
| 11402 | else |
| 11403 | FFLAGS= |
| 11404 | fi |
| 11405 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11406 | |
| 11407 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11408 | ac_ext=c |
| 11409 | ac_cpp='$CPP $CPPFLAGS' |
| 11410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 11417 | |
| 11418 | # find the maximum length of command line arguments |
| 11419 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 11420 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 11421 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 11422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11423 | else |
| 11424 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11425 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11426 | |
| 11427 | case $build_os in |
| 11428 | msdosdjgpp*) |
| 11429 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 11430 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 11431 | # during glob expansion). Even if it were fixed, the result of this |
| 11432 | # check would be larger than it should be. |
| 11433 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 11434 | ;; |
| 11435 | |
| 11436 | gnu*) |
| 11437 | # Under GNU Hurd, this test is not required because there is |
| 11438 | # no limit to the length of command line arguments. |
| 11439 | # Libtool will interpret -1 as no limit whatsoever |
| 11440 | lt_cv_sys_max_cmd_len=-1; |
| 11441 | ;; |
| 11442 | |
| 11443 | cygwin* | mingw*) |
| 11444 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 11445 | # about 5 minutes as the teststring grows exponentially. |
| 11446 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 11447 | # you end up with a "frozen" computer, even though with patience |
| 11448 | # the test eventually succeeds (with a max line length of 256k). |
| 11449 | # Instead, let's just punt: use the minimum linelength reported by |
| 11450 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 11451 | lt_cv_sys_max_cmd_len=8192; |
| 11452 | ;; |
| 11453 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11454 | amigaos*) |
| 11455 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 11456 | # So we just punt and use a minimum line length of 8192. |
| 11457 | lt_cv_sys_max_cmd_len=8192; |
| 11458 | ;; |
| 11459 | |
| 11460 | netbsd* | freebsd* | openbsd* | darwin* ) |
| 11461 | # This has been around since 386BSD, at least. Likely further. |
| 11462 | if test -x /sbin/sysctl; then |
| 11463 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 11464 | elif test -x /usr/sbin/sysctl; then |
| 11465 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 11466 | else |
| 11467 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
| 11468 | fi |
| 11469 | # And add a safety zone |
| 11470 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 11471 | ;; |
| 11472 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11473 | *) |
| 11474 | # If test is not a shell built-in, we'll probably end up computing a |
| 11475 | # maximum length that is only half of the actual maximum length, but |
| 11476 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11477 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 11478 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 11479 | = "XX$teststring") >/dev/null 2>&1 && |
| 11480 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11481 | lt_cv_sys_max_cmd_len=$new_result && |
| 11482 | test $i != 17 # 1/2 MB should be enough |
| 11483 | do |
| 11484 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11485 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11486 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11487 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11488 | # Add a significant safety factor because C++ compilers can tack on massive |
| 11489 | # amounts of additional arguments before passing them to the linker. |
| 11490 | # It appears as though 1/2 is a usable value. |
| 11491 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 11492 | ;; |
| 11493 | esac |
| 11494 | |
| 11495 | fi |
| 11496 | |
| 11497 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 11498 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 11499 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 11500 | else |
| 11501 | echo "$as_me:$LINENO: result: none" >&5 |
| 11502 | echo "${ECHO_T}none" >&6 |
| 11503 | fi |
| 11504 | |
| 11505 | |
| 11506 | |
| 11507 | |
| 11508 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 11509 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 11510 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 11511 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 11512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11513 | else |
| 11514 | |
| 11515 | # These are sane defaults that work on at least a few old systems. |
| 11516 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 11517 | |
| 11518 | # Character class describing NM global symbol codes. |
| 11519 | symcode='[BCDEGRST]' |
| 11520 | |
| 11521 | # Regexp to match symbols that can be accessed directly from C. |
| 11522 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 11523 | |
| 11524 | # Transform the above into a raw symbol and a C symbol. |
| 11525 | symxfrm='\1 \2\3 \3' |
| 11526 | |
| 11527 | # Transform an extracted symbol line into a proper C declaration |
| 11528 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 11529 | |
| 11530 | # Transform an extracted symbol line into symbol name and symbol address |
| 11531 | 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'" |
| 11532 | |
| 11533 | # Define system-specific variables. |
| 11534 | case $host_os in |
| 11535 | aix*) |
| 11536 | symcode='[BCDT]' |
| 11537 | ;; |
| 11538 | cygwin* | mingw* | pw32*) |
| 11539 | symcode='[ABCDGISTW]' |
| 11540 | ;; |
| 11541 | hpux*) # Its linker distinguishes data from code symbols |
| 11542 | if test "$host_cpu" = ia64; then |
| 11543 | symcode='[ABCDEGRST]' |
| 11544 | fi |
| 11545 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 11546 | 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'" |
| 11547 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11548 | linux*) |
| 11549 | if test "$host_cpu" = ia64; then |
| 11550 | symcode='[ABCDGIRSTW]' |
| 11551 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 11552 | 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'" |
| 11553 | fi |
| 11554 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11555 | irix* | nonstopux*) |
| 11556 | symcode='[BCDEGRST]' |
| 11557 | ;; |
| 11558 | osf*) |
| 11559 | symcode='[BCDEGQRST]' |
| 11560 | ;; |
| 11561 | solaris* | sysv5*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11562 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11563 | ;; |
| 11564 | sysv4) |
| 11565 | symcode='[DFNSTU]' |
| 11566 | ;; |
| 11567 | esac |
| 11568 | |
| 11569 | # Handle CRLF in mingw tool chain |
| 11570 | opt_cr= |
| 11571 | case $build_os in |
| 11572 | mingw*) |
| 11573 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 11574 | ;; |
| 11575 | esac |
| 11576 | |
| 11577 | # If we're using GNU nm, then use its standard symbol codes. |
| 11578 | case `$NM -V 2>&1` in |
| 11579 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11580 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11581 | esac |
| 11582 | |
| 11583 | # Try without a prefix undercore, then with it. |
| 11584 | for ac_symprfx in "" "_"; do |
| 11585 | |
| 11586 | # Write the raw and C identifiers. |
| 11587 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 11588 | |
| 11589 | # Check to see that the pipe works correctly. |
| 11590 | pipe_works=no |
| 11591 | |
| 11592 | rm -f conftest* |
| 11593 | cat > conftest.$ac_ext <<EOF |
| 11594 | #ifdef __cplusplus |
| 11595 | extern "C" { |
| 11596 | #endif |
| 11597 | char nm_test_var; |
| 11598 | void nm_test_func(){} |
| 11599 | #ifdef __cplusplus |
| 11600 | } |
| 11601 | #endif |
| 11602 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 11603 | EOF |
| 11604 | |
| 11605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11606 | (eval $ac_compile) 2>&5 |
| 11607 | ac_status=$? |
| 11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11609 | (exit $ac_status); }; then |
| 11610 | # Now try to grab the symbols. |
| 11611 | nlist=conftest.nm |
| 11612 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 11613 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 11614 | ac_status=$? |
| 11615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11616 | (exit $ac_status); } && test -s "$nlist"; then |
| 11617 | # Try sorting and uniquifying the output. |
| 11618 | if sort "$nlist" | uniq > "$nlist"T; then |
| 11619 | mv -f "$nlist"T "$nlist" |
| 11620 | else |
| 11621 | rm -f "$nlist"T |
| 11622 | fi |
| 11623 | |
| 11624 | # Make sure that we snagged all the symbols we need. |
| 11625 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 11626 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 11627 | cat <<EOF > conftest.$ac_ext |
| 11628 | #ifdef __cplusplus |
| 11629 | extern "C" { |
| 11630 | #endif |
| 11631 | |
| 11632 | EOF |
| 11633 | # Now generate the symbol file. |
| 11634 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 11635 | |
| 11636 | cat <<EOF >> conftest.$ac_ext |
| 11637 | #if defined (__STDC__) && __STDC__ |
| 11638 | # define lt_ptr_t void * |
| 11639 | #else |
| 11640 | # define lt_ptr_t char * |
| 11641 | # define const |
| 11642 | #endif |
| 11643 | |
| 11644 | /* The mapping between symbol names and symbols. */ |
| 11645 | const struct { |
| 11646 | const char *name; |
| 11647 | lt_ptr_t address; |
| 11648 | } |
| 11649 | lt_preloaded_symbols[] = |
| 11650 | { |
| 11651 | EOF |
| 11652 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 11653 | cat <<\EOF >> conftest.$ac_ext |
| 11654 | {0, (lt_ptr_t) 0} |
| 11655 | }; |
| 11656 | |
| 11657 | #ifdef __cplusplus |
| 11658 | } |
| 11659 | #endif |
| 11660 | EOF |
| 11661 | # Now try linking the two files. |
| 11662 | mv conftest.$ac_objext conftstm.$ac_objext |
| 11663 | lt_save_LIBS="$LIBS" |
| 11664 | lt_save_CFLAGS="$CFLAGS" |
| 11665 | LIBS="conftstm.$ac_objext" |
| 11666 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 11667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11668 | (eval $ac_link) 2>&5 |
| 11669 | ac_status=$? |
| 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11671 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 11672 | pipe_works=yes |
| 11673 | fi |
| 11674 | LIBS="$lt_save_LIBS" |
| 11675 | CFLAGS="$lt_save_CFLAGS" |
| 11676 | else |
| 11677 | echo "cannot find nm_test_func in $nlist" >&5 |
| 11678 | fi |
| 11679 | else |
| 11680 | echo "cannot find nm_test_var in $nlist" >&5 |
| 11681 | fi |
| 11682 | else |
| 11683 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11684 | fi |
| 11685 | else |
| 11686 | echo "$progname: failed program was:" >&5 |
| 11687 | cat conftest.$ac_ext >&5 |
| 11688 | fi |
| 11689 | rm -f conftest* conftst* |
| 11690 | |
| 11691 | # Do not use the global_symbol_pipe unless it works. |
| 11692 | if test "$pipe_works" = yes; then |
| 11693 | break |
| 11694 | else |
| 11695 | lt_cv_sys_global_symbol_pipe= |
| 11696 | fi |
| 11697 | done |
| 11698 | |
| 11699 | fi |
| 11700 | |
| 11701 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 11702 | lt_cv_sys_global_symbol_to_cdecl= |
| 11703 | fi |
| 11704 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 11705 | echo "$as_me:$LINENO: result: failed" >&5 |
| 11706 | echo "${ECHO_T}failed" >&6 |
| 11707 | else |
| 11708 | echo "$as_me:$LINENO: result: ok" >&5 |
| 11709 | echo "${ECHO_T}ok" >&6 |
| 11710 | fi |
| 11711 | |
| 11712 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 11713 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 11714 | if test "${lt_cv_objdir+set}" = set; then |
| 11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11716 | else |
| 11717 | rm -f .libs 2>/dev/null |
| 11718 | mkdir .libs 2>/dev/null |
| 11719 | if test -d .libs; then |
| 11720 | lt_cv_objdir=.libs |
| 11721 | else |
| 11722 | # MS-DOS does not allow filenames that begin with a dot. |
| 11723 | lt_cv_objdir=_libs |
| 11724 | fi |
| 11725 | rmdir .libs 2>/dev/null |
| 11726 | fi |
| 11727 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 11728 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 11729 | objdir=$lt_cv_objdir |
| 11730 | |
| 11731 | |
| 11732 | |
| 11733 | |
| 11734 | |
| 11735 | case $host_os in |
| 11736 | aix3*) |
| 11737 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11738 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11739 | # vanish in a puff of smoke. |
| 11740 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11741 | COLLECT_NAMES= |
| 11742 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11743 | fi |
| 11744 | ;; |
| 11745 | esac |
| 11746 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11747 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 11748 | # metacharacters that are still active within double-quoted strings. |
| 11749 | Xsed='sed -e s/^X//' |
| 11750 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 11751 | |
| 11752 | # Same as above, but do not quote variable references. |
| 11753 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 11754 | |
| 11755 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 11756 | # double_quote_subst'ed string. |
| 11757 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 11758 | |
| 11759 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 11760 | no_glob_subst='s/\*/\\\*/g' |
| 11761 | |
| 11762 | # Constants: |
| 11763 | rm="rm -f" |
| 11764 | |
| 11765 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 11766 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11767 | can_build_shared=yes |
| 11768 | |
| 11769 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 11770 | # which needs '.lib'). |
| 11771 | libext=a |
| 11772 | ltmain="$ac_aux_dir/ltmain.sh" |
| 11773 | ofile="$default_ofile" |
| 11774 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 11775 | |
| 11776 | if test -n "$ac_tool_prefix"; then |
| 11777 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 11778 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 11779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11781 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11783 | else |
| 11784 | if test -n "$AR"; then |
| 11785 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11786 | else |
| 11787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11788 | for as_dir in $PATH |
| 11789 | do |
| 11790 | IFS=$as_save_IFS |
| 11791 | test -z "$as_dir" && as_dir=. |
| 11792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11794 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11796 | break 2 |
| 11797 | fi |
| 11798 | done |
| 11799 | done |
| 11800 | |
| 11801 | fi |
| 11802 | fi |
| 11803 | AR=$ac_cv_prog_AR |
| 11804 | if test -n "$AR"; then |
| 11805 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 11806 | echo "${ECHO_T}$AR" >&6 |
| 11807 | else |
| 11808 | echo "$as_me:$LINENO: result: no" >&5 |
| 11809 | echo "${ECHO_T}no" >&6 |
| 11810 | fi |
| 11811 | |
| 11812 | fi |
| 11813 | if test -z "$ac_cv_prog_AR"; then |
| 11814 | ac_ct_AR=$AR |
| 11815 | # Extract the first word of "ar", so it can be a program name with args. |
| 11816 | set dummy ar; ac_word=$2 |
| 11817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11819 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11821 | else |
| 11822 | if test -n "$ac_ct_AR"; then |
| 11823 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 11824 | else |
| 11825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11826 | for as_dir in $PATH |
| 11827 | do |
| 11828 | IFS=$as_save_IFS |
| 11829 | test -z "$as_dir" && as_dir=. |
| 11830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11832 | ac_cv_prog_ac_ct_AR="ar" |
| 11833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11834 | break 2 |
| 11835 | fi |
| 11836 | done |
| 11837 | done |
| 11838 | |
| 11839 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 11840 | fi |
| 11841 | fi |
| 11842 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11843 | if test -n "$ac_ct_AR"; then |
| 11844 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11845 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 11846 | else |
| 11847 | echo "$as_me:$LINENO: result: no" >&5 |
| 11848 | echo "${ECHO_T}no" >&6 |
| 11849 | fi |
| 11850 | |
| 11851 | AR=$ac_ct_AR |
| 11852 | else |
| 11853 | AR="$ac_cv_prog_AR" |
| 11854 | fi |
| 11855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11856 | if test -n "$ac_tool_prefix"; then |
| 11857 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11858 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11861 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11863 | else |
| 11864 | if test -n "$RANLIB"; then |
| 11865 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11866 | else |
| 11867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11868 | for as_dir in $PATH |
| 11869 | do |
| 11870 | IFS=$as_save_IFS |
| 11871 | test -z "$as_dir" && as_dir=. |
| 11872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11874 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11876 | break 2 |
| 11877 | fi |
| 11878 | done |
| 11879 | done |
| 11880 | |
| 11881 | fi |
| 11882 | fi |
| 11883 | RANLIB=$ac_cv_prog_RANLIB |
| 11884 | if test -n "$RANLIB"; then |
| 11885 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11886 | echo "${ECHO_T}$RANLIB" >&6 |
| 11887 | else |
| 11888 | echo "$as_me:$LINENO: result: no" >&5 |
| 11889 | echo "${ECHO_T}no" >&6 |
| 11890 | fi |
| 11891 | |
| 11892 | fi |
| 11893 | if test -z "$ac_cv_prog_RANLIB"; then |
| 11894 | ac_ct_RANLIB=$RANLIB |
| 11895 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11896 | set dummy ranlib; ac_word=$2 |
| 11897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11899 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11901 | else |
| 11902 | if test -n "$ac_ct_RANLIB"; then |
| 11903 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11904 | else |
| 11905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11906 | for as_dir in $PATH |
| 11907 | do |
| 11908 | IFS=$as_save_IFS |
| 11909 | test -z "$as_dir" && as_dir=. |
| 11910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11912 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11914 | break 2 |
| 11915 | fi |
| 11916 | done |
| 11917 | done |
| 11918 | |
| 11919 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 11920 | fi |
| 11921 | fi |
| 11922 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11923 | if test -n "$ac_ct_RANLIB"; then |
| 11924 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11925 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 11926 | else |
| 11927 | echo "$as_me:$LINENO: result: no" >&5 |
| 11928 | echo "${ECHO_T}no" >&6 |
| 11929 | fi |
| 11930 | |
| 11931 | RANLIB=$ac_ct_RANLIB |
| 11932 | else |
| 11933 | RANLIB="$ac_cv_prog_RANLIB" |
| 11934 | fi |
| 11935 | |
| 11936 | if test -n "$ac_tool_prefix"; then |
| 11937 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 11938 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 11939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11941 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11943 | else |
| 11944 | if test -n "$STRIP"; then |
| 11945 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11946 | else |
| 11947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11948 | for as_dir in $PATH |
| 11949 | do |
| 11950 | IFS=$as_save_IFS |
| 11951 | test -z "$as_dir" && as_dir=. |
| 11952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11953 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11954 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11955 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11956 | break 2 |
| 11957 | fi |
| 11958 | done |
| 11959 | done |
| 11960 | |
| 11961 | fi |
| 11962 | fi |
| 11963 | STRIP=$ac_cv_prog_STRIP |
| 11964 | if test -n "$STRIP"; then |
| 11965 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11966 | echo "${ECHO_T}$STRIP" >&6 |
| 11967 | else |
| 11968 | echo "$as_me:$LINENO: result: no" >&5 |
| 11969 | echo "${ECHO_T}no" >&6 |
| 11970 | fi |
| 11971 | |
| 11972 | fi |
| 11973 | if test -z "$ac_cv_prog_STRIP"; then |
| 11974 | ac_ct_STRIP=$STRIP |
| 11975 | # Extract the first word of "strip", so it can be a program name with args. |
| 11976 | set dummy strip; ac_word=$2 |
| 11977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11979 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11981 | else |
| 11982 | if test -n "$ac_ct_STRIP"; then |
| 11983 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11984 | else |
| 11985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11986 | for as_dir in $PATH |
| 11987 | do |
| 11988 | IFS=$as_save_IFS |
| 11989 | test -z "$as_dir" && as_dir=. |
| 11990 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11991 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11992 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11994 | break 2 |
| 11995 | fi |
| 11996 | done |
| 11997 | done |
| 11998 | |
| 11999 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 12000 | fi |
| 12001 | fi |
| 12002 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12003 | if test -n "$ac_ct_STRIP"; then |
| 12004 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 12005 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 12006 | else |
| 12007 | echo "$as_me:$LINENO: result: no" >&5 |
| 12008 | echo "${ECHO_T}no" >&6 |
| 12009 | fi |
| 12010 | |
| 12011 | STRIP=$ac_ct_STRIP |
| 12012 | else |
| 12013 | STRIP="$ac_cv_prog_STRIP" |
| 12014 | fi |
| 12015 | |
| 12016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12017 | old_CC="$CC" |
| 12018 | old_CFLAGS="$CFLAGS" |
| 12019 | |
| 12020 | # Set sane defaults for various variables |
| 12021 | test -z "$AR" && AR=ar |
| 12022 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 12023 | test -z "$AS" && AS=as |
| 12024 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12025 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12026 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 12027 | test -z "$LD" && LD=ld |
| 12028 | test -z "$LN_S" && LN_S="ln -s" |
| 12029 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 12030 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12031 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12032 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 12033 | test -z "$RANLIB" && RANLIB=: |
| 12034 | test -z "$STRIP" && STRIP=: |
| 12035 | test -z "$ac_objext" && ac_objext=o |
| 12036 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12037 | # Determine commands to create old-style static archives. |
| 12038 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 12039 | old_postinstall_cmds='chmod 644 $oldlib' |
| 12040 | old_postuninstall_cmds= |
| 12041 | |
| 12042 | if test -n "$RANLIB"; then |
| 12043 | case $host_os in |
| 12044 | openbsd*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12045 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12046 | ;; |
| 12047 | *) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12048 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12049 | ;; |
| 12050 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12051 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12052 | fi |
| 12053 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12054 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 12055 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12056 | # Only perform the check for file, if the check method requires it |
| 12057 | case $deplibs_check_method in |
| 12058 | file_magic*) |
| 12059 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 12060 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 12061 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 12062 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 12063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12064 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12065 | case $MAGIC_CMD in |
| 12066 | [\\/*] | ?:[\\/]*) |
| 12067 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 12068 | ;; |
| 12069 | *) |
| 12070 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 12071 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12072 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12073 | for ac_dir in $ac_dummy; do |
| 12074 | IFS="$lt_save_ifs" |
| 12075 | test -z "$ac_dir" && ac_dir=. |
| 12076 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 12077 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 12078 | if test -n "$file_magic_test_file"; then |
| 12079 | case $deplibs_check_method in |
| 12080 | "file_magic "*) |
| 12081 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 12082 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12083 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 12084 | $EGREP "$file_magic_regex" > /dev/null; then |
| 12085 | : |
| 12086 | else |
| 12087 | cat <<EOF 1>&2 |
| 12088 | |
| 12089 | *** Warning: the command libtool uses to detect shared libraries, |
| 12090 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 12091 | *** The result is that libtool may fail to recognize shared libraries |
| 12092 | *** as such. This will affect the creation of libtool libraries that |
| 12093 | *** depend on shared libraries, but programs linked with such libtool |
| 12094 | *** libraries will work regardless of this problem. Nevertheless, you |
| 12095 | *** may want to report the problem to your system manager and/or to |
| 12096 | *** bug-libtool@gnu.org |
| 12097 | |
| 12098 | EOF |
| 12099 | fi ;; |
| 12100 | esac |
| 12101 | fi |
| 12102 | break |
| 12103 | fi |
| 12104 | done |
| 12105 | IFS="$lt_save_ifs" |
| 12106 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 12107 | ;; |
| 12108 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12109 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12110 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12111 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12112 | if test -n "$MAGIC_CMD"; then |
| 12113 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 12114 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 12115 | else |
| 12116 | echo "$as_me:$LINENO: result: no" >&5 |
| 12117 | echo "${ECHO_T}no" >&6 |
| 12118 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12119 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12120 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 12121 | if test -n "$ac_tool_prefix"; then |
| 12122 | echo "$as_me:$LINENO: checking for file" >&5 |
| 12123 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 12124 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 12125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12126 | else |
| 12127 | case $MAGIC_CMD in |
| 12128 | [\\/*] | ?:[\\/]*) |
| 12129 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 12130 | ;; |
| 12131 | *) |
| 12132 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 12133 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12134 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12135 | for ac_dir in $ac_dummy; do |
| 12136 | IFS="$lt_save_ifs" |
| 12137 | test -z "$ac_dir" && ac_dir=. |
| 12138 | if test -f $ac_dir/file; then |
| 12139 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 12140 | if test -n "$file_magic_test_file"; then |
| 12141 | case $deplibs_check_method in |
| 12142 | "file_magic "*) |
| 12143 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 12144 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12145 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 12146 | $EGREP "$file_magic_regex" > /dev/null; then |
| 12147 | : |
| 12148 | else |
| 12149 | cat <<EOF 1>&2 |
| 12150 | |
| 12151 | *** Warning: the command libtool uses to detect shared libraries, |
| 12152 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 12153 | *** The result is that libtool may fail to recognize shared libraries |
| 12154 | *** as such. This will affect the creation of libtool libraries that |
| 12155 | *** depend on shared libraries, but programs linked with such libtool |
| 12156 | *** libraries will work regardless of this problem. Nevertheless, you |
| 12157 | *** may want to report the problem to your system manager and/or to |
| 12158 | *** bug-libtool@gnu.org |
| 12159 | |
| 12160 | EOF |
| 12161 | fi ;; |
| 12162 | esac |
| 12163 | fi |
| 12164 | break |
| 12165 | fi |
| 12166 | done |
| 12167 | IFS="$lt_save_ifs" |
| 12168 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 12169 | ;; |
| 12170 | esac |
| 12171 | fi |
| 12172 | |
| 12173 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12174 | if test -n "$MAGIC_CMD"; then |
| 12175 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 12176 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 12177 | else |
| 12178 | echo "$as_me:$LINENO: result: no" >&5 |
| 12179 | echo "${ECHO_T}no" >&6 |
| 12180 | fi |
| 12181 | |
| 12182 | else |
| 12183 | MAGIC_CMD=: |
| 12184 | fi |
| 12185 | fi |
| 12186 | |
| 12187 | fi |
| 12188 | ;; |
| 12189 | esac |
| 12190 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 12191 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12192 | enable_win32_dll=no |
| 12193 | |
| 12194 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 12195 | if test "${enable_libtool_lock+set}" = set; then |
| 12196 | enableval="$enable_libtool_lock" |
| 12197 | |
| 12198 | fi; |
| 12199 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12200 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12201 | |
| 12202 | # Check whether --with-pic or --without-pic was given. |
| 12203 | if test "${with_pic+set}" = set; then |
| 12204 | withval="$with_pic" |
| 12205 | pic_mode="$withval" |
| 12206 | else |
| 12207 | pic_mode=default |
| 12208 | fi; |
| 12209 | test -z "$pic_mode" && pic_mode=default |
| 12210 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12211 | # Use C for the default configuration in the libtool script |
| 12212 | tagname= |
| 12213 | lt_save_CC="$CC" |
| 12214 | ac_ext=c |
| 12215 | ac_cpp='$CPP $CPPFLAGS' |
| 12216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12219 | |
| 12220 | |
| 12221 | # Source file extension for C test sources. |
| 12222 | ac_ext=c |
| 12223 | |
| 12224 | # Object file extension for compiled C test sources. |
| 12225 | objext=o |
| 12226 | objext=$objext |
| 12227 | |
| 12228 | # Code to be used in simple compile tests |
| 12229 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 12230 | |
| 12231 | # Code to be used in simple link tests |
| 12232 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 12233 | |
| 12234 | |
| 12235 | # If no C compiler was specified, use CC. |
| 12236 | LTCC=${LTCC-"$CC"} |
| 12237 | |
| 12238 | # Allow CC to be a program name with arguments. |
| 12239 | compiler=$CC |
| 12240 | |
| 12241 | |
| 12242 | # |
| 12243 | # Check for any special shared library compilation flags. |
| 12244 | # |
| 12245 | lt_prog_cc_shlib= |
| 12246 | if test "$GCC" = no; then |
| 12247 | case $host_os in |
| 12248 | sco3.2v5*) |
| 12249 | lt_prog_cc_shlib='-belf' |
| 12250 | ;; |
| 12251 | esac |
| 12252 | fi |
| 12253 | if test -n "$lt_prog_cc_shlib"; then |
| 12254 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 12255 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 12256 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 12257 | else |
| 12258 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 12259 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 12260 | lt_cv_prog_cc_can_build_shared=no |
| 12261 | fi |
| 12262 | fi |
| 12263 | |
| 12264 | |
| 12265 | # |
| 12266 | # Check to make sure the static flag actually works. |
| 12267 | # |
| 12268 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 12269 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 12270 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12272 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12273 | lt_prog_compiler_static_works=no |
| 12274 | save_LDFLAGS="$LDFLAGS" |
| 12275 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 12276 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12277 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12278 | # The compiler can only warn and ignore the option if not recognized |
| 12279 | # So say no if there are warnings |
| 12280 | if test -s conftest.err; then |
| 12281 | # Append any errors to the config.log. |
| 12282 | cat conftest.err 1>&5 |
| 12283 | else |
| 12284 | lt_prog_compiler_static_works=yes |
| 12285 | fi |
| 12286 | fi |
| 12287 | $rm conftest* |
| 12288 | LDFLAGS="$save_LDFLAGS" |
| 12289 | |
| 12290 | fi |
| 12291 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 12292 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 12293 | |
| 12294 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 12295 | : |
| 12296 | else |
| 12297 | lt_prog_compiler_static= |
| 12298 | fi |
| 12299 | |
| 12300 | |
| 12301 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12302 | |
| 12303 | lt_prog_compiler_no_builtin_flag= |
| 12304 | |
| 12305 | if test "$GCC" = yes; then |
| 12306 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 12307 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12308 | |
| 12309 | 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] | 12310 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 12311 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 12312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12313 | else |
| 12314 | lt_cv_prog_compiler_rtti_exceptions=no |
| 12315 | ac_outfile=conftest.$ac_objext |
| 12316 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12317 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 12318 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12319 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12320 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12321 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12322 | # The option is referenced via a variable to avoid confusing sed. |
| 12323 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12324 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12325 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12326 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 12327 | (eval echo "\"\$as_me:12327: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12328 | (eval "$lt_compile" 2>conftest.err) |
| 12329 | ac_status=$? |
| 12330 | cat conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 12331 | echo "$as_me:12331: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12332 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12333 | # The compiler can only warn and ignore the option if not recognized |
| 12334 | # So say no if there are warnings |
| 12335 | if test ! -s conftest.err; then |
| 12336 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 12337 | fi |
| 12338 | fi |
| 12339 | $rm conftest* |
| 12340 | |
| 12341 | fi |
| 12342 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 12343 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 12344 | |
| 12345 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 12346 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 12347 | else |
| 12348 | : |
| 12349 | fi |
| 12350 | |
| 12351 | fi |
| 12352 | |
| 12353 | lt_prog_compiler_wl= |
| 12354 | lt_prog_compiler_pic= |
| 12355 | lt_prog_compiler_static= |
| 12356 | |
| 12357 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12358 | 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] | 12359 | |
| 12360 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12361 | lt_prog_compiler_wl='-Wl,' |
| 12362 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12363 | |
| 12364 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12365 | aix*) |
| 12366 | # All AIX code is PIC. |
| 12367 | if test "$host_cpu" = ia64; then |
| 12368 | # AIX 5 now supports IA64 processor |
| 12369 | lt_prog_compiler_static='-Bstatic' |
| 12370 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12371 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12372 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12373 | amigaos*) |
| 12374 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12375 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12376 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12377 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12378 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12379 | |
| 12380 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12381 | # PIC is the default for these OSes. |
| 12382 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12383 | |
| 12384 | mingw* | pw32* | os2*) |
| 12385 | # This hack is so that the source file can tell whether it is being |
| 12386 | # built for inclusion in a dll (and should export symbols for example). |
| 12387 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12388 | ;; |
| 12389 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12390 | darwin* | rhapsody*) |
| 12391 | # PIC is the default on this platform |
| 12392 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12393 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12394 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12395 | |
| 12396 | msdosdjgpp*) |
| 12397 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12398 | # on systems that don't support them. |
| 12399 | lt_prog_compiler_can_build_shared=no |
| 12400 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12401 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12402 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12403 | sysv4*MP*) |
| 12404 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12405 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12406 | fi |
| 12407 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12408 | |
| 12409 | hpux*) |
| 12410 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12411 | # not for PA HP-UX. |
| 12412 | case "$host_cpu" in |
| 12413 | hppa*64*|ia64*) |
| 12414 | # +Z the default |
| 12415 | ;; |
| 12416 | *) |
| 12417 | lt_prog_compiler_pic='-fPIC' |
| 12418 | ;; |
| 12419 | esac |
| 12420 | ;; |
| 12421 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12422 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12423 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12424 | ;; |
| 12425 | esac |
| 12426 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12427 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12428 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12429 | aix*) |
| 12430 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12431 | if test "$host_cpu" = ia64; then |
| 12432 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12433 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12434 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12435 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12436 | fi |
| 12437 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12438 | darwin*) |
| 12439 | # PIC is the default on this platform |
| 12440 | # Common symbols not allowed in MH_DYLIB files |
| 12441 | case "$cc_basename" in |
| 12442 | xlc*) |
| 12443 | lt_prog_compiler_pic='-qnocommon' |
| 12444 | lt_prog_compiler_wl='-Wl,' |
| 12445 | ;; |
| 12446 | esac |
| 12447 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12448 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12449 | mingw* | pw32* | os2*) |
| 12450 | # This hack is so that the source file can tell whether it is being |
| 12451 | # built for inclusion in a dll (and should export symbols for example). |
| 12452 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12453 | ;; |
| 12454 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12455 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12456 | lt_prog_compiler_wl='-Wl,' |
| 12457 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12458 | # not for PA HP-UX. |
| 12459 | case "$host_cpu" in |
| 12460 | hppa*64*|ia64*) |
| 12461 | # +Z the default |
| 12462 | ;; |
| 12463 | *) |
| 12464 | lt_prog_compiler_pic='+Z' |
| 12465 | ;; |
| 12466 | esac |
| 12467 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12468 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12469 | ;; |
| 12470 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12471 | irix5* | irix6* | nonstopux*) |
| 12472 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12473 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12474 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12475 | ;; |
| 12476 | |
| 12477 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12478 | lt_prog_compiler_pic='-KPIC' |
| 12479 | lt_prog_compiler_static='-Bstatic' |
| 12480 | ;; |
| 12481 | |
| 12482 | linux*) |
| 12483 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12484 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12485 | lt_prog_compiler_wl='-Wl,' |
| 12486 | lt_prog_compiler_pic='-KPIC' |
| 12487 | lt_prog_compiler_static='-static' |
| 12488 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12489 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12490 | lt_prog_compiler_wl='-Wl,' |
| 12491 | # All Alpha code is PIC. |
| 12492 | lt_prog_compiler_static='-non_shared' |
| 12493 | ;; |
| 12494 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12495 | ;; |
| 12496 | |
| 12497 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12498 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12499 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12500 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12501 | ;; |
| 12502 | |
| 12503 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12504 | lt_prog_compiler_pic='-Kpic' |
| 12505 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12506 | ;; |
| 12507 | |
| 12508 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12509 | lt_prog_compiler_wl='-Wl,' |
| 12510 | lt_prog_compiler_pic='-KPIC' |
| 12511 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12512 | ;; |
| 12513 | |
| 12514 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12515 | lt_prog_compiler_wl='-Qoption ld ' |
| 12516 | lt_prog_compiler_pic='-PIC' |
| 12517 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12518 | ;; |
| 12519 | |
| 12520 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12521 | lt_prog_compiler_wl='-Wl,' |
| 12522 | lt_prog_compiler_pic='-KPIC' |
| 12523 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12524 | ;; |
| 12525 | |
| 12526 | sysv4*MP*) |
| 12527 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12528 | lt_prog_compiler_pic='-Kconform_pic' |
| 12529 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12530 | fi |
| 12531 | ;; |
| 12532 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12533 | uts4*) |
| 12534 | lt_prog_compiler_pic='-pic' |
| 12535 | lt_prog_compiler_static='-Bstatic' |
| 12536 | ;; |
| 12537 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12538 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12539 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12540 | ;; |
| 12541 | esac |
| 12542 | fi |
| 12543 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12544 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 12545 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12547 | # |
| 12548 | # Check to make sure the PIC flag actually works. |
| 12549 | # |
| 12550 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12551 | |
| 12552 | 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] | 12553 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 12554 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12556 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12557 | lt_prog_compiler_pic_works=no |
| 12558 | ac_outfile=conftest.$ac_objext |
| 12559 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12560 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 12561 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12562 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12563 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12564 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12565 | # The option is referenced via a variable to avoid confusing sed. |
| 12566 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12567 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12568 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12569 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 12570 | (eval echo "\"\$as_me:12570: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12571 | (eval "$lt_compile" 2>conftest.err) |
| 12572 | ac_status=$? |
| 12573 | cat conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 12574 | echo "$as_me:12574: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12575 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12576 | # The compiler can only warn and ignore the option if not recognized |
| 12577 | # So say no if there are warnings |
| 12578 | if test ! -s conftest.err; then |
| 12579 | lt_prog_compiler_pic_works=yes |
| 12580 | fi |
| 12581 | fi |
| 12582 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12583 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12584 | fi |
| 12585 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 12586 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12587 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12588 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 12589 | case $lt_prog_compiler_pic in |
| 12590 | "" | " "*) ;; |
| 12591 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 12592 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12593 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12594 | lt_prog_compiler_pic= |
| 12595 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12596 | fi |
| 12597 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12598 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12599 | case "$host_os" in |
| 12600 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12601 | *djgpp*) |
| 12602 | lt_prog_compiler_pic= |
| 12603 | ;; |
| 12604 | *) |
| 12605 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 12606 | ;; |
| 12607 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12608 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12609 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12610 | 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] | 12611 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12613 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12614 | lt_cv_prog_compiler_c_o=no |
| 12615 | $rm -r conftest 2>/dev/null |
| 12616 | mkdir conftest |
| 12617 | cd conftest |
| 12618 | mkdir out |
| 12619 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12620 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12621 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12622 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12623 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12624 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12625 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12626 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12627 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12628 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12629 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 12630 | (eval echo "\"\$as_me:12630: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12631 | (eval "$lt_compile" 2>out/conftest.err) |
| 12632 | ac_status=$? |
| 12633 | cat out/conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 12634 | echo "$as_me:12634: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12635 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12636 | then |
| 12637 | # The compiler can only warn and ignore the option if not recognized |
| 12638 | # So say no if there are warnings |
| 12639 | if test ! -s out/conftest.err; then |
| 12640 | lt_cv_prog_compiler_c_o=yes |
| 12641 | fi |
| 12642 | fi |
| 12643 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12644 | $rm conftest* |
| 12645 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12646 | # template instantiation |
| 12647 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12648 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12649 | cd .. |
| 12650 | rmdir conftest |
| 12651 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12652 | |
| 12653 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12654 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12655 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12656 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12658 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12659 | 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] | 12660 | # do not overwrite the value of need_locks provided by the user |
| 12661 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12662 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12663 | hard_links=yes |
| 12664 | $rm conftest* |
| 12665 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12666 | touch conftest.a |
| 12667 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12668 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12669 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12670 | echo "${ECHO_T}$hard_links" >&6 |
| 12671 | if test "$hard_links" = no; then |
| 12672 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12673 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12674 | need_locks=warn |
| 12675 | fi |
| 12676 | else |
| 12677 | need_locks=no |
| 12678 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12679 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12680 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12681 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12682 | |
| 12683 | runpath_var= |
| 12684 | allow_undefined_flag= |
| 12685 | enable_shared_with_static_runtimes=no |
| 12686 | archive_cmds= |
| 12687 | archive_expsym_cmds= |
| 12688 | old_archive_From_new_cmds= |
| 12689 | old_archive_from_expsyms_cmds= |
| 12690 | export_dynamic_flag_spec= |
| 12691 | whole_archive_flag_spec= |
| 12692 | thread_safe_flag_spec= |
| 12693 | hardcode_libdir_flag_spec= |
| 12694 | hardcode_libdir_flag_spec_ld= |
| 12695 | hardcode_libdir_separator= |
| 12696 | hardcode_direct=no |
| 12697 | hardcode_minus_L=no |
| 12698 | hardcode_shlibpath_var=unsupported |
| 12699 | link_all_deplibs=unknown |
| 12700 | hardcode_automatic=no |
| 12701 | module_cmds= |
| 12702 | module_expsym_cmds= |
| 12703 | always_export_symbols=no |
| 12704 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12705 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12706 | # included in the symbol list |
| 12707 | include_expsyms= |
| 12708 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12709 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12710 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12711 | # as well as any symbol that contains `d'. |
| 12712 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 12713 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12714 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12715 | # the symbol is explicitly referenced. Since portable code cannot |
| 12716 | # rely on this symbol name, it's probably fine to never include it in |
| 12717 | # preloaded symbol tables. |
| 12718 | extract_expsyms_cmds= |
| 12719 | |
| 12720 | case $host_os in |
| 12721 | cygwin* | mingw* | pw32*) |
| 12722 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12723 | # When not using gcc, we currently assume that we are using |
| 12724 | # Microsoft Visual C++. |
| 12725 | if test "$GCC" != yes; then |
| 12726 | with_gnu_ld=no |
| 12727 | fi |
| 12728 | ;; |
| 12729 | openbsd*) |
| 12730 | with_gnu_ld=no |
| 12731 | ;; |
| 12732 | esac |
| 12733 | |
| 12734 | ld_shlibs=yes |
| 12735 | if test "$with_gnu_ld" = yes; then |
| 12736 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12737 | wlarc='${wl}' |
| 12738 | |
| 12739 | # See if GNU ld supports shared libraries. |
| 12740 | case $host_os in |
| 12741 | aix3* | aix4* | aix5*) |
| 12742 | # On AIX/PPC, the GNU linker is very broken |
| 12743 | if test "$host_cpu" != ia64; then |
| 12744 | ld_shlibs=no |
| 12745 | cat <<EOF 1>&2 |
| 12746 | |
| 12747 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12748 | *** to be unable to reliably create shared libraries on AIX. |
| 12749 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12750 | *** really care for shared libraries, you may want to modify your PATH |
| 12751 | *** so that a non-GNU linker is found, and then restart. |
| 12752 | |
| 12753 | EOF |
| 12754 | fi |
| 12755 | ;; |
| 12756 | |
| 12757 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12758 | 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] | 12759 | hardcode_libdir_flag_spec='-L$libdir' |
| 12760 | hardcode_minus_L=yes |
| 12761 | |
| 12762 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12763 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12764 | # to version 4, is to share data among multiple programs linked |
| 12765 | # with the same dynamic library. Since this doesn't match the |
| 12766 | # behavior of shared libraries on other platforms, we can't use |
| 12767 | # them. |
| 12768 | ld_shlibs=no |
| 12769 | ;; |
| 12770 | |
| 12771 | beos*) |
| 12772 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12773 | allow_undefined_flag=unsupported |
| 12774 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12775 | # support --undefined. This deserves some investigation. FIXME |
| 12776 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12777 | else |
| 12778 | ld_shlibs=no |
| 12779 | fi |
| 12780 | ;; |
| 12781 | |
| 12782 | cygwin* | mingw* | pw32*) |
| 12783 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12784 | # as there is no search path for DLLs. |
| 12785 | hardcode_libdir_flag_spec='-L$libdir' |
| 12786 | allow_undefined_flag=unsupported |
| 12787 | always_export_symbols=no |
| 12788 | enable_shared_with_static_runtimes=yes |
| 12789 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12790 | |
| 12791 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12792 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12793 | # If the export-symbols file already is a .def file (1st line |
| 12794 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12795 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12796 | cp $export_symbols $output_objdir/$soname.def; |
| 12797 | else |
| 12798 | echo EXPORTS > $output_objdir/$soname.def; |
| 12799 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12800 | fi~ |
| 12801 | $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] | 12802 | else |
| 12803 | ld_shlibs=no |
| 12804 | fi |
| 12805 | ;; |
| 12806 | |
| 12807 | netbsd*) |
| 12808 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12809 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12810 | wlarc= |
| 12811 | else |
| 12812 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12813 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12814 | fi |
| 12815 | ;; |
| 12816 | |
| 12817 | solaris* | sysv5*) |
| 12818 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12819 | ld_shlibs=no |
| 12820 | cat <<EOF 1>&2 |
| 12821 | |
| 12822 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12823 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12824 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12825 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12826 | *** your PATH or compiler configuration so that the native linker is |
| 12827 | *** used, and then restart. |
| 12828 | |
| 12829 | EOF |
| 12830 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12831 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12832 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12833 | else |
| 12834 | ld_shlibs=no |
| 12835 | fi |
| 12836 | ;; |
| 12837 | |
| 12838 | sunos4*) |
| 12839 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12840 | wlarc= |
| 12841 | hardcode_direct=yes |
| 12842 | hardcode_shlibpath_var=no |
| 12843 | ;; |
| 12844 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12845 | linux*) |
| 12846 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12847 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12848 | archive_cmds="$tmp_archive_cmds" |
| 12849 | supports_anon_versioning=no |
| 12850 | case `$LD -v 2>/dev/null` in |
| 12851 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12852 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12853 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12854 | *\ 2.11.*) ;; # other 2.11 versions |
| 12855 | *) supports_anon_versioning=yes ;; |
| 12856 | esac |
| 12857 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12858 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 12859 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12860 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12861 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12862 | else |
| 12863 | archive_expsym_cmds="$tmp_archive_cmds" |
| 12864 | fi |
| 12865 | else |
| 12866 | ld_shlibs=no |
| 12867 | fi |
| 12868 | ;; |
| 12869 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12870 | *) |
| 12871 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12872 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12873 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12874 | else |
| 12875 | ld_shlibs=no |
| 12876 | fi |
| 12877 | ;; |
| 12878 | esac |
| 12879 | |
| 12880 | if test "$ld_shlibs" = yes; then |
| 12881 | runpath_var=LD_RUN_PATH |
| 12882 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 12883 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 12884 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12885 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12886 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12887 | else |
| 12888 | whole_archive_flag_spec= |
| 12889 | fi |
| 12890 | fi |
| 12891 | else |
| 12892 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12893 | case $host_os in |
| 12894 | aix3*) |
| 12895 | allow_undefined_flag=unsupported |
| 12896 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12897 | 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] | 12898 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12899 | # are no directories specified by -L. |
| 12900 | hardcode_minus_L=yes |
| 12901 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12902 | # Neither direct hardcoding nor static linking is supported with a |
| 12903 | # broken collect2. |
| 12904 | hardcode_direct=unsupported |
| 12905 | fi |
| 12906 | ;; |
| 12907 | |
| 12908 | aix4* | aix5*) |
| 12909 | if test "$host_cpu" = ia64; then |
| 12910 | # On IA64, the linker does run time linking by default, so we don't |
| 12911 | # have to do anything special. |
| 12912 | aix_use_runtimelinking=no |
| 12913 | exp_sym_flag='-Bexport' |
| 12914 | no_entry_flag="" |
| 12915 | else |
| 12916 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12917 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12918 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12919 | 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' |
| 12920 | else |
| 12921 | 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' |
| 12922 | fi |
| 12923 | aix_use_runtimelinking=no |
| 12924 | |
| 12925 | # Test if we are trying to use run time linking or normal |
| 12926 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12927 | # need to do runtime linking. |
| 12928 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 12929 | for ld_flag in $LDFLAGS; do |
| 12930 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 12931 | aix_use_runtimelinking=yes |
| 12932 | break |
| 12933 | fi |
| 12934 | done |
| 12935 | esac |
| 12936 | |
| 12937 | exp_sym_flag='-bexport' |
| 12938 | no_entry_flag='-bnoentry' |
| 12939 | fi |
| 12940 | |
| 12941 | # When large executables or shared objects are built, AIX ld can |
| 12942 | # have problems creating the table of contents. If linking a library |
| 12943 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12944 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12945 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12946 | |
| 12947 | archive_cmds='' |
| 12948 | hardcode_direct=yes |
| 12949 | hardcode_libdir_separator=':' |
| 12950 | link_all_deplibs=yes |
| 12951 | |
| 12952 | if test "$GCC" = yes; then |
| 12953 | case $host_os in aix4.012|aix4.012.*) |
| 12954 | # We only want to do this on AIX 4.2 and lower, the check |
| 12955 | # below for broken collect2 doesn't work under 4.3+ |
| 12956 | collect2name=`${CC} -print-prog-name=collect2` |
| 12957 | if test -f "$collect2name" && \ |
| 12958 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 12959 | then |
| 12960 | # We have reworked collect2 |
| 12961 | hardcode_direct=yes |
| 12962 | else |
| 12963 | # We have old collect2 |
| 12964 | hardcode_direct=unsupported |
| 12965 | # It fails to find uninstalled libraries when the uninstalled |
| 12966 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12967 | # to unsupported forces relinking |
| 12968 | hardcode_minus_L=yes |
| 12969 | hardcode_libdir_flag_spec='-L$libdir' |
| 12970 | hardcode_libdir_separator= |
| 12971 | fi |
| 12972 | esac |
| 12973 | shared_flag='-shared' |
| 12974 | else |
| 12975 | # not using gcc |
| 12976 | if test "$host_cpu" = ia64; then |
| 12977 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12978 | # chokes on -Wl,-G. The following line is correct: |
| 12979 | shared_flag='-G' |
| 12980 | else |
| 12981 | if test "$aix_use_runtimelinking" = yes; then |
| 12982 | shared_flag='${wl}-G' |
| 12983 | else |
| 12984 | shared_flag='${wl}-bM:SRE' |
| 12985 | fi |
| 12986 | fi |
| 12987 | fi |
| 12988 | |
| 12989 | # It seems that -bexpall does not export symbols beginning with |
| 12990 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12991 | always_export_symbols=yes |
| 12992 | if test "$aix_use_runtimelinking" = yes; then |
| 12993 | # Warning - without using the other runtime loading flags (-brtl), |
| 12994 | # -berok will link without error, but may produce a broken library. |
| 12995 | allow_undefined_flag='-berok' |
| 12996 | # Determine the default libpath from the value encoded in an empty executable. |
| 12997 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12998 | /* confdefs.h. */ |
| 12999 | _ACEOF |
| 13000 | cat confdefs.h >>conftest.$ac_ext |
| 13001 | cat >>conftest.$ac_ext <<_ACEOF |
| 13002 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13003 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13004 | int |
| 13005 | main () |
| 13006 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13008 | ; |
| 13009 | return 0; |
| 13010 | } |
| 13011 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13014 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13015 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13017 | rm -f conftest.er1 |
| 13018 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13020 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13021 | { ac_try='test -z "$ac_c_werror_flag" |
| 13022 | || test ! -s conftest.err' |
| 13023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13024 | (eval $ac_try) 2>&5 |
| 13025 | ac_status=$? |
| 13026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13027 | (exit $ac_status); }; } && |
| 13028 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13030 | (eval $ac_try) 2>&5 |
| 13031 | ac_status=$? |
| 13032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13033 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13034 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13035 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13036 | }'` |
| 13037 | # Check for a 64-bit object if we didn't find anything. |
| 13038 | 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; } |
| 13039 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13040 | else |
| 13041 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13043 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13044 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13045 | rm -f conftest.err conftest.$ac_objext \ |
| 13046 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13047 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13048 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13049 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13050 | 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" |
| 13051 | else |
| 13052 | if test "$host_cpu" = ia64; then |
| 13053 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 13054 | allow_undefined_flag="-z nodefs" |
| 13055 | 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" |
| 13056 | else |
| 13057 | # Determine the default libpath from the value encoded in an empty executable. |
| 13058 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13059 | /* confdefs.h. */ |
| 13060 | _ACEOF |
| 13061 | cat confdefs.h >>conftest.$ac_ext |
| 13062 | cat >>conftest.$ac_ext <<_ACEOF |
| 13063 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13064 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13065 | int |
| 13066 | main () |
| 13067 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13068 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13069 | ; |
| 13070 | return 0; |
| 13071 | } |
| 13072 | _ACEOF |
| 13073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13075 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13076 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13078 | rm -f conftest.er1 |
| 13079 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13081 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13082 | { ac_try='test -z "$ac_c_werror_flag" |
| 13083 | || test ! -s conftest.err' |
| 13084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13085 | (eval $ac_try) 2>&5 |
| 13086 | ac_status=$? |
| 13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13088 | (exit $ac_status); }; } && |
| 13089 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13091 | (eval $ac_try) 2>&5 |
| 13092 | ac_status=$? |
| 13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13094 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13095 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13096 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13097 | }'` |
| 13098 | # Check for a 64-bit object if we didn't find anything. |
| 13099 | 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; } |
| 13100 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13101 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13102 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13104 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13105 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13106 | rm -f conftest.err conftest.$ac_objext \ |
| 13107 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13108 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13109 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13110 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13111 | # Warning - without using the other run time loading flags, |
| 13112 | # -berok will link without error, but may produce a broken library. |
| 13113 | no_undefined_flag=' ${wl}-bernotok' |
| 13114 | allow_undefined_flag=' ${wl}-berok' |
| 13115 | # -bexpall does not export symbols beginning with underscore (_) |
| 13116 | always_export_symbols=yes |
| 13117 | # Exported symbols can be pulled into shared objects from archives |
| 13118 | whole_archive_flag_spec=' ' |
| 13119 | archive_cmds_need_lc=yes |
| 13120 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13121 | 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] | 13122 | fi |
| 13123 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13124 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13125 | |
| 13126 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13127 | 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] | 13128 | hardcode_libdir_flag_spec='-L$libdir' |
| 13129 | hardcode_minus_L=yes |
| 13130 | # see comment about different semantics on the GNU ld section |
| 13131 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13132 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13133 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13134 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13135 | export_dynamic_flag_spec=-rdynamic |
| 13136 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13137 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13138 | cygwin* | mingw* | pw32*) |
| 13139 | # When not using gcc, we currently assume that we are using |
| 13140 | # Microsoft Visual C++. |
| 13141 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13142 | # no search path for DLLs. |
| 13143 | hardcode_libdir_flag_spec=' ' |
| 13144 | allow_undefined_flag=unsupported |
| 13145 | # Tell ltmain to make .lib files, not .a files. |
| 13146 | libext=lib |
| 13147 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13148 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13149 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13150 | 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] | 13151 | # The linker will automatically build a .lib file if we build a DLL. |
| 13152 | old_archive_From_new_cmds='true' |
| 13153 | # FIXME: Should let the user specify the lib program. |
| 13154 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13155 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13156 | enable_shared_with_static_runtimes=yes |
| 13157 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13158 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13159 | darwin* | rhapsody*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13160 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13161 | rhapsody* | darwin1.[012]) |
| 13162 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 13163 | ;; |
| 13164 | *) # Darwin 1.3 on |
| 13165 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 13166 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 13167 | else |
| 13168 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 13169 | 10.[012]) |
| 13170 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 13171 | ;; |
| 13172 | 10.*) |
| 13173 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 13174 | ;; |
| 13175 | esac |
| 13176 | fi |
| 13177 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13178 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13179 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13180 | hardcode_direct=no |
| 13181 | hardcode_automatic=yes |
| 13182 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13183 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13184 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13185 | if test "$GCC" = yes ; then |
| 13186 | output_verbose_link_cmd='echo' |
| 13187 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13188 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13189 | # 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] | 13190 | 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}' |
| 13191 | 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] | 13192 | else |
| 13193 | case "$cc_basename" in |
| 13194 | xlc*) |
| 13195 | output_verbose_link_cmd='echo' |
| 13196 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 13197 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13198 | # 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] | 13199 | 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}' |
| 13200 | 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] | 13201 | ;; |
| 13202 | *) |
| 13203 | ld_shlibs=no |
| 13204 | ;; |
| 13205 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13206 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13207 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13208 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13209 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13210 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13211 | hardcode_libdir_flag_spec='-L$libdir' |
| 13212 | hardcode_shlibpath_var=no |
| 13213 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13214 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13215 | freebsd1*) |
| 13216 | ld_shlibs=no |
| 13217 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13218 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13219 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13220 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13221 | # does not break anything, and helps significantly (at the cost of a little |
| 13222 | # extra space). |
| 13223 | freebsd2.2*) |
| 13224 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13225 | hardcode_libdir_flag_spec='-R$libdir' |
| 13226 | hardcode_direct=yes |
| 13227 | hardcode_shlibpath_var=no |
| 13228 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13229 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13230 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13231 | freebsd2*) |
| 13232 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13233 | hardcode_direct=yes |
| 13234 | hardcode_minus_L=yes |
| 13235 | hardcode_shlibpath_var=no |
| 13236 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13237 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13238 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13239 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13240 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13241 | hardcode_libdir_flag_spec='-R$libdir' |
| 13242 | hardcode_direct=yes |
| 13243 | hardcode_shlibpath_var=no |
| 13244 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13245 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13246 | hpux9*) |
| 13247 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13248 | 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] | 13249 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13250 | 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] | 13251 | fi |
| 13252 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 13253 | hardcode_libdir_separator=: |
| 13254 | hardcode_direct=yes |
| 13255 | |
| 13256 | # hardcode_minus_L: Not really in the search PATH, |
| 13257 | # but as the default location of the library. |
| 13258 | hardcode_minus_L=yes |
| 13259 | export_dynamic_flag_spec='${wl}-E' |
| 13260 | ;; |
| 13261 | |
| 13262 | hpux10* | hpux11*) |
| 13263 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13264 | case "$host_cpu" in |
| 13265 | hppa*64*|ia64*) |
| 13266 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13267 | ;; |
| 13268 | *) |
| 13269 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13270 | ;; |
| 13271 | esac |
| 13272 | else |
| 13273 | case "$host_cpu" in |
| 13274 | hppa*64*|ia64*) |
| 13275 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13276 | ;; |
| 13277 | *) |
| 13278 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13279 | ;; |
| 13280 | esac |
| 13281 | fi |
| 13282 | if test "$with_gnu_ld" = no; then |
| 13283 | case "$host_cpu" in |
| 13284 | hppa*64*) |
| 13285 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 13286 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 13287 | hardcode_libdir_separator=: |
| 13288 | hardcode_direct=no |
| 13289 | hardcode_shlibpath_var=no |
| 13290 | ;; |
| 13291 | ia64*) |
| 13292 | hardcode_libdir_flag_spec='-L$libdir' |
| 13293 | hardcode_direct=no |
| 13294 | hardcode_shlibpath_var=no |
| 13295 | |
| 13296 | # hardcode_minus_L: Not really in the search PATH, |
| 13297 | # but as the default location of the library. |
| 13298 | hardcode_minus_L=yes |
| 13299 | ;; |
| 13300 | *) |
| 13301 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 13302 | hardcode_libdir_separator=: |
| 13303 | hardcode_direct=yes |
| 13304 | export_dynamic_flag_spec='${wl}-E' |
| 13305 | |
| 13306 | # hardcode_minus_L: Not really in the search PATH, |
| 13307 | # but as the default location of the library. |
| 13308 | hardcode_minus_L=yes |
| 13309 | ;; |
| 13310 | esac |
| 13311 | fi |
| 13312 | ;; |
| 13313 | |
| 13314 | irix5* | irix6* | nonstopux*) |
| 13315 | if test "$GCC" = yes; then |
| 13316 | 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' |
| 13317 | else |
| 13318 | 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' |
| 13319 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 13320 | fi |
| 13321 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13322 | hardcode_libdir_separator=: |
| 13323 | link_all_deplibs=yes |
| 13324 | ;; |
| 13325 | |
| 13326 | netbsd*) |
| 13327 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13328 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13329 | else |
| 13330 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13331 | fi |
| 13332 | hardcode_libdir_flag_spec='-R$libdir' |
| 13333 | hardcode_direct=yes |
| 13334 | hardcode_shlibpath_var=no |
| 13335 | ;; |
| 13336 | |
| 13337 | newsos6) |
| 13338 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13339 | hardcode_direct=yes |
| 13340 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13341 | hardcode_libdir_separator=: |
| 13342 | hardcode_shlibpath_var=no |
| 13343 | ;; |
| 13344 | |
| 13345 | openbsd*) |
| 13346 | hardcode_direct=yes |
| 13347 | hardcode_shlibpath_var=no |
| 13348 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13349 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13350 | 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] | 13351 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 13352 | export_dynamic_flag_spec='${wl}-E' |
| 13353 | else |
| 13354 | case $host_os in |
| 13355 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13356 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13357 | hardcode_libdir_flag_spec='-R$libdir' |
| 13358 | ;; |
| 13359 | *) |
| 13360 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13361 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 13362 | ;; |
| 13363 | esac |
| 13364 | fi |
| 13365 | ;; |
| 13366 | |
| 13367 | os2*) |
| 13368 | hardcode_libdir_flag_spec='-L$libdir' |
| 13369 | hardcode_minus_L=yes |
| 13370 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13371 | 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] | 13372 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13373 | ;; |
| 13374 | |
| 13375 | osf3*) |
| 13376 | if test "$GCC" = yes; then |
| 13377 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 13378 | 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' |
| 13379 | else |
| 13380 | allow_undefined_flag=' -expect_unresolved \*' |
| 13381 | 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' |
| 13382 | fi |
| 13383 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13384 | hardcode_libdir_separator=: |
| 13385 | ;; |
| 13386 | |
| 13387 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13388 | if test "$GCC" = yes; then |
| 13389 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 13390 | 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' |
| 13391 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13392 | else |
| 13393 | allow_undefined_flag=' -expect_unresolved \*' |
| 13394 | 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] | 13395 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 13396 | $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' |
| 13397 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13398 | # Both c and cxx compiler support -rpath directly |
| 13399 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 13400 | fi |
| 13401 | hardcode_libdir_separator=: |
| 13402 | ;; |
| 13403 | |
| 13404 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13405 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13406 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13407 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13408 | runpath_var=LD_RUN_PATH |
| 13409 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13410 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13411 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13412 | solaris*) |
| 13413 | no_undefined_flag=' -z text' |
| 13414 | if test "$GCC" = yes; then |
| 13415 | 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] | 13416 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13417 | $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] | 13418 | else |
| 13419 | 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] | 13420 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13421 | $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] | 13422 | fi |
| 13423 | hardcode_libdir_flag_spec='-R$libdir' |
| 13424 | hardcode_shlibpath_var=no |
| 13425 | case $host_os in |
| 13426 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13427 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13428 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 13429 | esac |
| 13430 | link_all_deplibs=yes |
| 13431 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13432 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13433 | sunos4*) |
| 13434 | if test "x$host_vendor" = xsequent; then |
| 13435 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13436 | # files that make .init and .fini sections work. |
| 13437 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13438 | else |
| 13439 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13440 | fi |
| 13441 | hardcode_libdir_flag_spec='-L$libdir' |
| 13442 | hardcode_direct=yes |
| 13443 | hardcode_minus_L=yes |
| 13444 | hardcode_shlibpath_var=no |
| 13445 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13446 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13447 | sysv4) |
| 13448 | case $host_vendor in |
| 13449 | sni) |
| 13450 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13451 | hardcode_direct=yes # is this really true??? |
| 13452 | ;; |
| 13453 | siemens) |
| 13454 | ## LD is ld it makes a PLAMLIB |
| 13455 | ## CC just makes a GrossModule. |
| 13456 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13457 | reload_cmds='$CC -r -o $output$reload_objs' |
| 13458 | hardcode_direct=no |
| 13459 | ;; |
| 13460 | motorola) |
| 13461 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13462 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 13463 | ;; |
| 13464 | esac |
| 13465 | runpath_var='LD_RUN_PATH' |
| 13466 | hardcode_shlibpath_var=no |
| 13467 | ;; |
| 13468 | |
| 13469 | sysv4.3*) |
| 13470 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13471 | hardcode_shlibpath_var=no |
| 13472 | export_dynamic_flag_spec='-Bexport' |
| 13473 | ;; |
| 13474 | |
| 13475 | sysv4*MP*) |
| 13476 | if test -d /usr/nec; then |
| 13477 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13478 | hardcode_shlibpath_var=no |
| 13479 | runpath_var=LD_RUN_PATH |
| 13480 | hardcode_runpath_var=yes |
| 13481 | ld_shlibs=yes |
| 13482 | fi |
| 13483 | ;; |
| 13484 | |
| 13485 | sysv4.2uw2*) |
| 13486 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13487 | hardcode_direct=yes |
| 13488 | hardcode_minus_L=no |
| 13489 | hardcode_shlibpath_var=no |
| 13490 | hardcode_runpath_var=yes |
| 13491 | runpath_var=LD_RUN_PATH |
| 13492 | ;; |
| 13493 | |
| 13494 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 13495 | no_undefined_flag='${wl}-z ${wl}text' |
| 13496 | if test "$GCC" = yes; then |
| 13497 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13498 | else |
| 13499 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13500 | fi |
| 13501 | runpath_var='LD_RUN_PATH' |
| 13502 | hardcode_shlibpath_var=no |
| 13503 | ;; |
| 13504 | |
| 13505 | sysv5*) |
| 13506 | no_undefined_flag=' -z text' |
| 13507 | # $CC -shared without GNU ld will not create a library from C++ |
| 13508 | # object files and a static libstdc++, better avoid it by now |
| 13509 | 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] | 13510 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13511 | $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] | 13512 | hardcode_libdir_flag_spec= |
| 13513 | hardcode_shlibpath_var=no |
| 13514 | runpath_var='LD_RUN_PATH' |
| 13515 | ;; |
| 13516 | |
| 13517 | uts4*) |
| 13518 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13519 | hardcode_libdir_flag_spec='-L$libdir' |
| 13520 | hardcode_shlibpath_var=no |
| 13521 | ;; |
| 13522 | |
| 13523 | *) |
| 13524 | ld_shlibs=no |
| 13525 | ;; |
| 13526 | esac |
| 13527 | fi |
| 13528 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13529 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 13530 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 13531 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13532 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13533 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13534 | if test "$GCC" = yes; then |
| 13535 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13536 | fi |
| 13537 | |
| 13538 | # |
| 13539 | # Do we need to explicitly link libc? |
| 13540 | # |
| 13541 | case "x$archive_cmds_need_lc" in |
| 13542 | x|xyes) |
| 13543 | # Assume -lc should be added |
| 13544 | archive_cmds_need_lc=yes |
| 13545 | |
| 13546 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13547 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13548 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13549 | # FIXME: we may have to deal with multi-command sequences. |
| 13550 | ;; |
| 13551 | '$CC '*) |
| 13552 | # Test whether the compiler implicitly links with -lc since on some |
| 13553 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13554 | # to ld, don't add -lc before -lgcc. |
| 13555 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13556 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13557 | $rm conftest* |
| 13558 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13559 | |
| 13560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13561 | (eval $ac_compile) 2>&5 |
| 13562 | ac_status=$? |
| 13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13564 | (exit $ac_status); } 2>conftest.err; then |
| 13565 | soname=conftest |
| 13566 | lib=conftest |
| 13567 | libobjs=conftest.$ac_objext |
| 13568 | deplibs= |
| 13569 | wl=$lt_prog_compiler_wl |
| 13570 | compiler_flags=-v |
| 13571 | linker_flags=-v |
| 13572 | verstring= |
| 13573 | output_objdir=. |
| 13574 | libname=conftest |
| 13575 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13576 | allow_undefined_flag= |
| 13577 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13578 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13579 | ac_status=$? |
| 13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13581 | (exit $ac_status); } |
| 13582 | then |
| 13583 | archive_cmds_need_lc=no |
| 13584 | else |
| 13585 | archive_cmds_need_lc=yes |
| 13586 | fi |
| 13587 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13588 | else |
| 13589 | cat conftest.err 1>&5 |
| 13590 | fi |
| 13591 | $rm conftest* |
| 13592 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 13593 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 13594 | ;; |
| 13595 | esac |
| 13596 | fi |
| 13597 | ;; |
| 13598 | esac |
| 13599 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13600 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13601 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13602 | library_names_spec= |
| 13603 | libname_spec='lib$name' |
| 13604 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13605 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13606 | postinstall_cmds= |
| 13607 | postuninstall_cmds= |
| 13608 | finish_cmds= |
| 13609 | finish_eval= |
| 13610 | shlibpath_var= |
| 13611 | shlibpath_overrides_runpath=unknown |
| 13612 | version_type=none |
| 13613 | dynamic_linker="$host_os ld.so" |
| 13614 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13615 | if test "$GCC" = yes; then |
| 13616 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13617 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13618 | # if the path contains ";" then we assume it to be the separator |
| 13619 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13620 | # assumed that no part of a normal pathname contains ";" but that should |
| 13621 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13622 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13623 | else |
| 13624 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13625 | fi |
| 13626 | else |
| 13627 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13628 | fi |
| 13629 | need_lib_prefix=unknown |
| 13630 | hardcode_into_libs=no |
| 13631 | |
| 13632 | # when you set need_version to no, make sure it does not cause -set_version |
| 13633 | # flags to be left without arguments |
| 13634 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13635 | |
| 13636 | case $host_os in |
| 13637 | aix3*) |
| 13638 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13639 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13640 | shlibpath_var=LIBPATH |
| 13641 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13642 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13643 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13644 | ;; |
| 13645 | |
| 13646 | aix4* | aix5*) |
| 13647 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13648 | need_lib_prefix=no |
| 13649 | need_version=no |
| 13650 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13651 | if test "$host_cpu" = ia64; then |
| 13652 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13653 | 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] | 13654 | shlibpath_var=LD_LIBRARY_PATH |
| 13655 | else |
| 13656 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13657 | # for dependence libraries. The import file would start with |
| 13658 | # the line `#! .'. This would cause the generated library to |
| 13659 | # depend on `.', always an invalid library. This was fixed in |
| 13660 | # development snapshots of GCC prior to 3.0. |
| 13661 | case $host_os in |
| 13662 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13663 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13664 | echo ' yes ' |
| 13665 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13666 | : |
| 13667 | else |
| 13668 | can_build_shared=no |
| 13669 | fi |
| 13670 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13671 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13672 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13673 | # soname into executable. Probably we can add versioning support to |
| 13674 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13675 | if test "$aix_use_runtimelinking" = yes; then |
| 13676 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13677 | # instead of lib<name>.a to let people know that these are not |
| 13678 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13679 | 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] | 13680 | else |
| 13681 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13682 | # and later when we are not doing run time linking. |
| 13683 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13684 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13685 | fi |
| 13686 | shlibpath_var=LIBPATH |
| 13687 | fi |
| 13688 | ;; |
| 13689 | |
| 13690 | amigaos*) |
| 13691 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13692 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13693 | 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] | 13694 | ;; |
| 13695 | |
| 13696 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13697 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13698 | dynamic_linker="$host_os ld.so" |
| 13699 | shlibpath_var=LIBRARY_PATH |
| 13700 | ;; |
| 13701 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13702 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13703 | version_type=linux |
| 13704 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13706 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13707 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13708 | shlibpath_var=LD_LIBRARY_PATH |
| 13709 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13710 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13711 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13712 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13713 | # libtool to hard-code these into programs |
| 13714 | ;; |
| 13715 | |
| 13716 | cygwin* | mingw* | pw32*) |
| 13717 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13718 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13719 | need_version=no |
| 13720 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13721 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13722 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13723 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13724 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13725 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13726 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13727 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13728 | dldir=$destdir/`dirname \$dlpath`~ |
| 13729 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13730 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13731 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13732 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13733 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13734 | shlibpath_overrides_runpath=yes |
| 13735 | |
| 13736 | case $host_os in |
| 13737 | cygwin*) |
| 13738 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13739 | 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] | 13740 | 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] | 13741 | ;; |
| 13742 | mingw*) |
| 13743 | # MinGW DLLs use traditional 'lib' prefix |
| 13744 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13745 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13746 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13747 | # It is most probably a Windows format PATH printed by |
| 13748 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13749 | # path with ; separators, and with drive letters. We can handle the |
| 13750 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13751 | # especially as we might pass files found there to a mingw objdump, |
| 13752 | # which wouldn't understand a cygwinified path. Ahh. |
| 13753 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13754 | else |
| 13755 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13756 | fi |
| 13757 | ;; |
| 13758 | pw32*) |
| 13759 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13760 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13761 | ;; |
| 13762 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13763 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13764 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13765 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13766 | 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] | 13767 | ;; |
| 13768 | esac |
| 13769 | dynamic_linker='Win32 ld.exe' |
| 13770 | # FIXME: first we should search . and the directory the executable is in |
| 13771 | shlibpath_var=PATH |
| 13772 | ;; |
| 13773 | |
| 13774 | darwin* | rhapsody*) |
| 13775 | dynamic_linker="$host_os dyld" |
| 13776 | version_type=darwin |
| 13777 | need_lib_prefix=no |
| 13778 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13779 | 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] | 13780 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13781 | shlibpath_overrides_runpath=yes |
| 13782 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13783 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13784 | # 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] | 13785 | if test "$GCC" = yes; then |
| 13786 | 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"` |
| 13787 | else |
| 13788 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13789 | fi |
| 13790 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13791 | ;; |
| 13792 | |
| 13793 | dgux*) |
| 13794 | version_type=linux |
| 13795 | need_lib_prefix=no |
| 13796 | need_version=no |
| 13797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13798 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13799 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13800 | ;; |
| 13801 | |
| 13802 | freebsd1*) |
| 13803 | dynamic_linker=no |
| 13804 | ;; |
| 13805 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13806 | kfreebsd*-gnu) |
| 13807 | version_type=linux |
| 13808 | need_lib_prefix=no |
| 13809 | need_version=no |
| 13810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13812 | shlibpath_var=LD_LIBRARY_PATH |
| 13813 | shlibpath_overrides_runpath=no |
| 13814 | hardcode_into_libs=yes |
| 13815 | dynamic_linker='GNU ld.so' |
| 13816 | ;; |
| 13817 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13818 | freebsd*) |
| 13819 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13820 | version_type=freebsd-$objformat |
| 13821 | case $version_type in |
| 13822 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13823 | 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] | 13824 | need_version=no |
| 13825 | need_lib_prefix=no |
| 13826 | ;; |
| 13827 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13828 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13829 | need_version=yes |
| 13830 | ;; |
| 13831 | esac |
| 13832 | shlibpath_var=LD_LIBRARY_PATH |
| 13833 | case $host_os in |
| 13834 | freebsd2*) |
| 13835 | shlibpath_overrides_runpath=yes |
| 13836 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13837 | freebsd3.01* | freebsdelf3.01*) |
| 13838 | shlibpath_overrides_runpath=yes |
| 13839 | hardcode_into_libs=yes |
| 13840 | ;; |
| 13841 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13842 | shlibpath_overrides_runpath=no |
| 13843 | hardcode_into_libs=yes |
| 13844 | ;; |
| 13845 | esac |
| 13846 | ;; |
| 13847 | |
| 13848 | gnu*) |
| 13849 | version_type=linux |
| 13850 | need_lib_prefix=no |
| 13851 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13853 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13854 | shlibpath_var=LD_LIBRARY_PATH |
| 13855 | hardcode_into_libs=yes |
| 13856 | ;; |
| 13857 | |
| 13858 | hpux9* | hpux10* | hpux11*) |
| 13859 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13860 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13861 | version_type=sunos |
| 13862 | need_lib_prefix=no |
| 13863 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13864 | case "$host_cpu" in |
| 13865 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13866 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13867 | hardcode_into_libs=yes |
| 13868 | dynamic_linker="$host_os dld.so" |
| 13869 | shlibpath_var=LD_LIBRARY_PATH |
| 13870 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13872 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13873 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13874 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13875 | else |
| 13876 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13877 | fi |
| 13878 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13879 | ;; |
| 13880 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13881 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13882 | hardcode_into_libs=yes |
| 13883 | dynamic_linker="$host_os dld.sl" |
| 13884 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13885 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13888 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13889 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13890 | ;; |
| 13891 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13892 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13893 | dynamic_linker="$host_os dld.sl" |
| 13894 | shlibpath_var=SHLIB_PATH |
| 13895 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13897 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13898 | ;; |
| 13899 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13900 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13901 | postinstall_cmds='chmod 555 $lib' |
| 13902 | ;; |
| 13903 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13904 | irix5* | irix6* | nonstopux*) |
| 13905 | case $host_os in |
| 13906 | nonstopux*) version_type=nonstopux ;; |
| 13907 | *) |
| 13908 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13909 | version_type=linux |
| 13910 | else |
| 13911 | version_type=irix |
| 13912 | fi ;; |
| 13913 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13914 | need_lib_prefix=no |
| 13915 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13916 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13917 | 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] | 13918 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13919 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13920 | libsuff= shlibsuff= |
| 13921 | ;; |
| 13922 | *) |
| 13923 | 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] | 13924 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13925 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13926 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13927 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13928 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13929 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13930 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13931 | esac |
| 13932 | ;; |
| 13933 | esac |
| 13934 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13935 | shlibpath_overrides_runpath=no |
| 13936 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13937 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13938 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13939 | ;; |
| 13940 | |
| 13941 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13942 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13943 | dynamic_linker=no |
| 13944 | ;; |
| 13945 | |
| 13946 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13947 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13948 | version_type=linux |
| 13949 | need_lib_prefix=no |
| 13950 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13952 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13953 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13954 | shlibpath_var=LD_LIBRARY_PATH |
| 13955 | shlibpath_overrides_runpath=no |
| 13956 | # This implies no fast_install, which is unacceptable. |
| 13957 | # Some rework will be needed to allow for fast_install |
| 13958 | # before this can be enabled. |
| 13959 | hardcode_into_libs=yes |
| 13960 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13961 | # Append ld.so.conf contents to the search path |
| 13962 | if test -f /etc/ld.so.conf; then |
| 13963 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 13964 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13965 | fi |
| 13966 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13967 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13968 | # powerpc, because MkLinux only supported shared libraries with the |
| 13969 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13970 | # most powerpc-linux boxes support dynamic linking these days and |
| 13971 | # people can always --disable-shared, the test was removed, and we |
| 13972 | # assume the GNU/Linux dynamic linker is in use. |
| 13973 | dynamic_linker='GNU/Linux ld.so' |
| 13974 | ;; |
| 13975 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13976 | knetbsd*-gnu) |
| 13977 | version_type=linux |
| 13978 | need_lib_prefix=no |
| 13979 | need_version=no |
| 13980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13981 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13982 | shlibpath_var=LD_LIBRARY_PATH |
| 13983 | shlibpath_overrides_runpath=no |
| 13984 | hardcode_into_libs=yes |
| 13985 | dynamic_linker='GNU ld.so' |
| 13986 | ;; |
| 13987 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13988 | netbsd*) |
| 13989 | version_type=sunos |
| 13990 | need_lib_prefix=no |
| 13991 | need_version=no |
| 13992 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13994 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13995 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13996 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13997 | 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] | 13998 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13999 | dynamic_linker='NetBSD ld.elf_so' |
| 14000 | fi |
| 14001 | shlibpath_var=LD_LIBRARY_PATH |
| 14002 | shlibpath_overrides_runpath=yes |
| 14003 | hardcode_into_libs=yes |
| 14004 | ;; |
| 14005 | |
| 14006 | newsos6) |
| 14007 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14009 | shlibpath_var=LD_LIBRARY_PATH |
| 14010 | shlibpath_overrides_runpath=yes |
| 14011 | ;; |
| 14012 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14013 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14014 | version_type=linux |
| 14015 | need_lib_prefix=no |
| 14016 | need_version=no |
| 14017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14018 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14019 | shlibpath_var=LD_LIBRARY_PATH |
| 14020 | shlibpath_overrides_runpath=yes |
| 14021 | ;; |
| 14022 | |
| 14023 | openbsd*) |
| 14024 | version_type=sunos |
| 14025 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 14026 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14028 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14029 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14030 | 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] | 14031 | case $host_os in |
| 14032 | openbsd2.[89] | openbsd2.[89].*) |
| 14033 | shlibpath_overrides_runpath=no |
| 14034 | ;; |
| 14035 | *) |
| 14036 | shlibpath_overrides_runpath=yes |
| 14037 | ;; |
| 14038 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14039 | else |
| 14040 | shlibpath_overrides_runpath=yes |
| 14041 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14042 | ;; |
| 14043 | |
| 14044 | os2*) |
| 14045 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14046 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14047 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14048 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14049 | dynamic_linker='OS/2 ld.exe' |
| 14050 | shlibpath_var=LIBPATH |
| 14051 | ;; |
| 14052 | |
| 14053 | osf3* | osf4* | osf5*) |
| 14054 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14055 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14056 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14057 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14058 | 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] | 14059 | shlibpath_var=LD_LIBRARY_PATH |
| 14060 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14061 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14062 | ;; |
| 14063 | |
| 14064 | sco3.2v5*) |
| 14065 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14066 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14067 | 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] | 14068 | shlibpath_var=LD_LIBRARY_PATH |
| 14069 | ;; |
| 14070 | |
| 14071 | solaris*) |
| 14072 | version_type=linux |
| 14073 | need_lib_prefix=no |
| 14074 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14076 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14077 | shlibpath_var=LD_LIBRARY_PATH |
| 14078 | shlibpath_overrides_runpath=yes |
| 14079 | hardcode_into_libs=yes |
| 14080 | # ldd complains unless libraries are executable |
| 14081 | postinstall_cmds='chmod +x $lib' |
| 14082 | ;; |
| 14083 | |
| 14084 | sunos4*) |
| 14085 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14087 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14088 | shlibpath_var=LD_LIBRARY_PATH |
| 14089 | shlibpath_overrides_runpath=yes |
| 14090 | if test "$with_gnu_ld" = yes; then |
| 14091 | need_lib_prefix=no |
| 14092 | fi |
| 14093 | need_version=yes |
| 14094 | ;; |
| 14095 | |
| 14096 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14097 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14099 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14100 | shlibpath_var=LD_LIBRARY_PATH |
| 14101 | case $host_vendor in |
| 14102 | sni) |
| 14103 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14104 | need_lib_prefix=no |
| 14105 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14106 | runpath_var=LD_RUN_PATH |
| 14107 | ;; |
| 14108 | siemens) |
| 14109 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14110 | ;; |
| 14111 | motorola) |
| 14112 | need_lib_prefix=no |
| 14113 | need_version=no |
| 14114 | shlibpath_overrides_runpath=no |
| 14115 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14116 | ;; |
| 14117 | esac |
| 14118 | ;; |
| 14119 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14120 | sysv4*MP*) |
| 14121 | if test -d /usr/nec ;then |
| 14122 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14123 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14124 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14125 | shlibpath_var=LD_LIBRARY_PATH |
| 14126 | fi |
| 14127 | ;; |
| 14128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14129 | uts4*) |
| 14130 | version_type=linux |
| 14131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14132 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14133 | shlibpath_var=LD_LIBRARY_PATH |
| 14134 | ;; |
| 14135 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14136 | *) |
| 14137 | dynamic_linker=no |
| 14138 | ;; |
| 14139 | esac |
| 14140 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14141 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14142 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14143 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14144 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14145 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14146 | hardcode_action= |
| 14147 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 14148 | test -n "$runpath_var" || \ |
| 14149 | test "X$hardcode_automatic" = "Xyes" ; then |
| 14150 | |
| 14151 | # We can hardcode non-existant directories. |
| 14152 | if test "$hardcode_direct" != no && |
| 14153 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14154 | # have to relink, otherwise we might link with an installed library |
| 14155 | # when we should be linking with a yet-to-be-installed one |
| 14156 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 14157 | test "$hardcode_minus_L" != no; then |
| 14158 | # Linking always hardcodes the temporary library directory. |
| 14159 | hardcode_action=relink |
| 14160 | else |
| 14161 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14162 | hardcode_action=immediate |
| 14163 | fi |
| 14164 | else |
| 14165 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14166 | # directories. |
| 14167 | hardcode_action=unsupported |
| 14168 | fi |
| 14169 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 14170 | echo "${ECHO_T}$hardcode_action" >&6 |
| 14171 | |
| 14172 | if test "$hardcode_action" = relink; then |
| 14173 | # Fast installation is not supported |
| 14174 | enable_fast_install=no |
| 14175 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14176 | test "$enable_shared" = no; then |
| 14177 | # Fast installation is not necessary |
| 14178 | enable_fast_install=needless |
| 14179 | fi |
| 14180 | |
| 14181 | striplib= |
| 14182 | old_striplib= |
| 14183 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 14184 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 14185 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 14186 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14187 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14188 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14189 | echo "${ECHO_T}yes" >&6 |
| 14190 | else |
| 14191 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14192 | case $host_os in |
| 14193 | darwin*) |
| 14194 | if test -n "$STRIP" ; then |
| 14195 | striplib="$STRIP -x" |
| 14196 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14197 | echo "${ECHO_T}yes" >&6 |
| 14198 | else |
| 14199 | echo "$as_me:$LINENO: result: no" >&5 |
| 14200 | echo "${ECHO_T}no" >&6 |
| 14201 | fi |
| 14202 | ;; |
| 14203 | *) |
| 14204 | echo "$as_me:$LINENO: result: no" >&5 |
| 14205 | echo "${ECHO_T}no" >&6 |
| 14206 | ;; |
| 14207 | esac |
| 14208 | fi |
| 14209 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14210 | if test "x$enable_dlopen" != xyes; then |
| 14211 | enable_dlopen=unknown |
| 14212 | enable_dlopen_self=unknown |
| 14213 | enable_dlopen_self_static=unknown |
| 14214 | else |
| 14215 | lt_cv_dlopen=no |
| 14216 | lt_cv_dlopen_libs= |
| 14217 | |
| 14218 | case $host_os in |
| 14219 | beos*) |
| 14220 | lt_cv_dlopen="load_add_on" |
| 14221 | lt_cv_dlopen_libs= |
| 14222 | lt_cv_dlopen_self=yes |
| 14223 | ;; |
| 14224 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14225 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14226 | lt_cv_dlopen="LoadLibrary" |
| 14227 | lt_cv_dlopen_libs= |
| 14228 | ;; |
| 14229 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14230 | cygwin*) |
| 14231 | lt_cv_dlopen="dlopen" |
| 14232 | lt_cv_dlopen_libs= |
| 14233 | ;; |
| 14234 | |
| 14235 | darwin*) |
| 14236 | # if libdl is installed we need to link against it |
| 14237 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14238 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 14239 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14241 | else |
| 14242 | ac_check_lib_save_LIBS=$LIBS |
| 14243 | LIBS="-ldl $LIBS" |
| 14244 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14245 | /* confdefs.h. */ |
| 14246 | _ACEOF |
| 14247 | cat confdefs.h >>conftest.$ac_ext |
| 14248 | cat >>conftest.$ac_ext <<_ACEOF |
| 14249 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14250 | |
| 14251 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14252 | #ifdef __cplusplus |
| 14253 | extern "C" |
| 14254 | #endif |
| 14255 | /* We use char because int might match the return type of a gcc2 |
| 14256 | builtin and then its argument prototype would still apply. */ |
| 14257 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14258 | int |
| 14259 | main () |
| 14260 | { |
| 14261 | dlopen (); |
| 14262 | ; |
| 14263 | return 0; |
| 14264 | } |
| 14265 | _ACEOF |
| 14266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14268 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14269 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14271 | rm -f conftest.er1 |
| 14272 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14274 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14275 | { ac_try='test -z "$ac_c_werror_flag" |
| 14276 | || test ! -s conftest.err' |
| 14277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14278 | (eval $ac_try) 2>&5 |
| 14279 | ac_status=$? |
| 14280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14281 | (exit $ac_status); }; } && |
| 14282 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14284 | (eval $ac_try) 2>&5 |
| 14285 | ac_status=$? |
| 14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14287 | (exit $ac_status); }; }; then |
| 14288 | ac_cv_lib_dl_dlopen=yes |
| 14289 | else |
| 14290 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14292 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14293 | ac_cv_lib_dl_dlopen=no |
| 14294 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14295 | rm -f conftest.err conftest.$ac_objext \ |
| 14296 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14297 | LIBS=$ac_check_lib_save_LIBS |
| 14298 | fi |
| 14299 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14300 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 14301 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 14302 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14303 | else |
| 14304 | |
| 14305 | lt_cv_dlopen="dyld" |
| 14306 | lt_cv_dlopen_libs= |
| 14307 | lt_cv_dlopen_self=yes |
| 14308 | |
| 14309 | fi |
| 14310 | |
| 14311 | ;; |
| 14312 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14313 | *) |
| 14314 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 14315 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 14316 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 14317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14318 | else |
| 14319 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14320 | /* confdefs.h. */ |
| 14321 | _ACEOF |
| 14322 | cat confdefs.h >>conftest.$ac_ext |
| 14323 | cat >>conftest.$ac_ext <<_ACEOF |
| 14324 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14325 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 14326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14327 | #define shl_load innocuous_shl_load |
| 14328 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14329 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14330 | which can conflict with char shl_load (); below. |
| 14331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14332 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14333 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14334 | #ifdef __STDC__ |
| 14335 | # include <limits.h> |
| 14336 | #else |
| 14337 | # include <assert.h> |
| 14338 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14339 | |
| 14340 | #undef shl_load |
| 14341 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14342 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14343 | #ifdef __cplusplus |
| 14344 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14345 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14346 | #endif |
| 14347 | /* We use char because int might match the return type of a gcc2 |
| 14348 | builtin and then its argument prototype would still apply. */ |
| 14349 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14350 | /* The GNU C library defines this for functions which it implements |
| 14351 | to always fail with ENOSYS. Some functions are actually named |
| 14352 | something starting with __ and the normal name is an alias. */ |
| 14353 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 14354 | choke me |
| 14355 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14356 | char (*f) () = shl_load; |
| 14357 | #endif |
| 14358 | #ifdef __cplusplus |
| 14359 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14360 | #endif |
| 14361 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14362 | int |
| 14363 | main () |
| 14364 | { |
| 14365 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14366 | ; |
| 14367 | return 0; |
| 14368 | } |
| 14369 | _ACEOF |
| 14370 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14372 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14373 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14375 | rm -f conftest.er1 |
| 14376 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14378 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14379 | { ac_try='test -z "$ac_c_werror_flag" |
| 14380 | || test ! -s conftest.err' |
| 14381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14382 | (eval $ac_try) 2>&5 |
| 14383 | ac_status=$? |
| 14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14385 | (exit $ac_status); }; } && |
| 14386 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14388 | (eval $ac_try) 2>&5 |
| 14389 | ac_status=$? |
| 14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14391 | (exit $ac_status); }; }; then |
| 14392 | ac_cv_func_shl_load=yes |
| 14393 | else |
| 14394 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14396 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14397 | ac_cv_func_shl_load=no |
| 14398 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14399 | rm -f conftest.err conftest.$ac_objext \ |
| 14400 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14401 | fi |
| 14402 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 14403 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 14404 | if test $ac_cv_func_shl_load = yes; then |
| 14405 | lt_cv_dlopen="shl_load" |
| 14406 | else |
| 14407 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 14408 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 14409 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 14410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14411 | else |
| 14412 | ac_check_lib_save_LIBS=$LIBS |
| 14413 | LIBS="-ldld $LIBS" |
| 14414 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14415 | /* confdefs.h. */ |
| 14416 | _ACEOF |
| 14417 | cat confdefs.h >>conftest.$ac_ext |
| 14418 | cat >>conftest.$ac_ext <<_ACEOF |
| 14419 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14420 | |
| 14421 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14422 | #ifdef __cplusplus |
| 14423 | extern "C" |
| 14424 | #endif |
| 14425 | /* We use char because int might match the return type of a gcc2 |
| 14426 | builtin and then its argument prototype would still apply. */ |
| 14427 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14428 | int |
| 14429 | main () |
| 14430 | { |
| 14431 | shl_load (); |
| 14432 | ; |
| 14433 | return 0; |
| 14434 | } |
| 14435 | _ACEOF |
| 14436 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14438 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14439 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14441 | rm -f conftest.er1 |
| 14442 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14444 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14445 | { ac_try='test -z "$ac_c_werror_flag" |
| 14446 | || test ! -s conftest.err' |
| 14447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14448 | (eval $ac_try) 2>&5 |
| 14449 | ac_status=$? |
| 14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14451 | (exit $ac_status); }; } && |
| 14452 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14454 | (eval $ac_try) 2>&5 |
| 14455 | ac_status=$? |
| 14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14457 | (exit $ac_status); }; }; then |
| 14458 | ac_cv_lib_dld_shl_load=yes |
| 14459 | else |
| 14460 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14462 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14463 | ac_cv_lib_dld_shl_load=no |
| 14464 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14465 | rm -f conftest.err conftest.$ac_objext \ |
| 14466 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14467 | LIBS=$ac_check_lib_save_LIBS |
| 14468 | fi |
| 14469 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 14470 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 14471 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 14472 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 14473 | else |
| 14474 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 14475 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 14476 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 14477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14478 | else |
| 14479 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14480 | /* confdefs.h. */ |
| 14481 | _ACEOF |
| 14482 | cat confdefs.h >>conftest.$ac_ext |
| 14483 | cat >>conftest.$ac_ext <<_ACEOF |
| 14484 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14485 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 14486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14487 | #define dlopen innocuous_dlopen |
| 14488 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14489 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14490 | which can conflict with char dlopen (); below. |
| 14491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14492 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14493 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14494 | #ifdef __STDC__ |
| 14495 | # include <limits.h> |
| 14496 | #else |
| 14497 | # include <assert.h> |
| 14498 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14499 | |
| 14500 | #undef dlopen |
| 14501 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14502 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14503 | #ifdef __cplusplus |
| 14504 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14505 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14506 | #endif |
| 14507 | /* We use char because int might match the return type of a gcc2 |
| 14508 | builtin and then its argument prototype would still apply. */ |
| 14509 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14510 | /* The GNU C library defines this for functions which it implements |
| 14511 | to always fail with ENOSYS. Some functions are actually named |
| 14512 | something starting with __ and the normal name is an alias. */ |
| 14513 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 14514 | choke me |
| 14515 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14516 | char (*f) () = dlopen; |
| 14517 | #endif |
| 14518 | #ifdef __cplusplus |
| 14519 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14520 | #endif |
| 14521 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14522 | int |
| 14523 | main () |
| 14524 | { |
| 14525 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14526 | ; |
| 14527 | return 0; |
| 14528 | } |
| 14529 | _ACEOF |
| 14530 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14532 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14533 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14535 | rm -f conftest.er1 |
| 14536 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14538 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14539 | { ac_try='test -z "$ac_c_werror_flag" |
| 14540 | || test ! -s conftest.err' |
| 14541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14542 | (eval $ac_try) 2>&5 |
| 14543 | ac_status=$? |
| 14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14545 | (exit $ac_status); }; } && |
| 14546 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14548 | (eval $ac_try) 2>&5 |
| 14549 | ac_status=$? |
| 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14551 | (exit $ac_status); }; }; then |
| 14552 | ac_cv_func_dlopen=yes |
| 14553 | else |
| 14554 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14556 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14557 | ac_cv_func_dlopen=no |
| 14558 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14559 | rm -f conftest.err conftest.$ac_objext \ |
| 14560 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14561 | fi |
| 14562 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 14563 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 14564 | if test $ac_cv_func_dlopen = yes; then |
| 14565 | lt_cv_dlopen="dlopen" |
| 14566 | else |
| 14567 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14568 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 14569 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14571 | else |
| 14572 | ac_check_lib_save_LIBS=$LIBS |
| 14573 | LIBS="-ldl $LIBS" |
| 14574 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14575 | /* confdefs.h. */ |
| 14576 | _ACEOF |
| 14577 | cat confdefs.h >>conftest.$ac_ext |
| 14578 | cat >>conftest.$ac_ext <<_ACEOF |
| 14579 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14580 | |
| 14581 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14582 | #ifdef __cplusplus |
| 14583 | extern "C" |
| 14584 | #endif |
| 14585 | /* We use char because int might match the return type of a gcc2 |
| 14586 | builtin and then its argument prototype would still apply. */ |
| 14587 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14588 | int |
| 14589 | main () |
| 14590 | { |
| 14591 | dlopen (); |
| 14592 | ; |
| 14593 | return 0; |
| 14594 | } |
| 14595 | _ACEOF |
| 14596 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14598 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14599 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14601 | rm -f conftest.er1 |
| 14602 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14604 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14605 | { ac_try='test -z "$ac_c_werror_flag" |
| 14606 | || test ! -s conftest.err' |
| 14607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14608 | (eval $ac_try) 2>&5 |
| 14609 | ac_status=$? |
| 14610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14611 | (exit $ac_status); }; } && |
| 14612 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14614 | (eval $ac_try) 2>&5 |
| 14615 | ac_status=$? |
| 14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14617 | (exit $ac_status); }; }; then |
| 14618 | ac_cv_lib_dl_dlopen=yes |
| 14619 | else |
| 14620 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14622 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14623 | ac_cv_lib_dl_dlopen=no |
| 14624 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14625 | rm -f conftest.err conftest.$ac_objext \ |
| 14626 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14627 | LIBS=$ac_check_lib_save_LIBS |
| 14628 | fi |
| 14629 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14630 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 14631 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 14632 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14633 | else |
| 14634 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 14635 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 14636 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 14637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14638 | else |
| 14639 | ac_check_lib_save_LIBS=$LIBS |
| 14640 | LIBS="-lsvld $LIBS" |
| 14641 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14642 | /* confdefs.h. */ |
| 14643 | _ACEOF |
| 14644 | cat confdefs.h >>conftest.$ac_ext |
| 14645 | cat >>conftest.$ac_ext <<_ACEOF |
| 14646 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14647 | |
| 14648 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14649 | #ifdef __cplusplus |
| 14650 | extern "C" |
| 14651 | #endif |
| 14652 | /* We use char because int might match the return type of a gcc2 |
| 14653 | builtin and then its argument prototype would still apply. */ |
| 14654 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14655 | int |
| 14656 | main () |
| 14657 | { |
| 14658 | dlopen (); |
| 14659 | ; |
| 14660 | return 0; |
| 14661 | } |
| 14662 | _ACEOF |
| 14663 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14665 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14666 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14668 | rm -f conftest.er1 |
| 14669 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14671 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14672 | { ac_try='test -z "$ac_c_werror_flag" |
| 14673 | || test ! -s conftest.err' |
| 14674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14675 | (eval $ac_try) 2>&5 |
| 14676 | ac_status=$? |
| 14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14678 | (exit $ac_status); }; } && |
| 14679 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14681 | (eval $ac_try) 2>&5 |
| 14682 | ac_status=$? |
| 14683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14684 | (exit $ac_status); }; }; then |
| 14685 | ac_cv_lib_svld_dlopen=yes |
| 14686 | else |
| 14687 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14689 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14690 | ac_cv_lib_svld_dlopen=no |
| 14691 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14692 | rm -f conftest.err conftest.$ac_objext \ |
| 14693 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14694 | LIBS=$ac_check_lib_save_LIBS |
| 14695 | fi |
| 14696 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 14697 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 14698 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 14699 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 14700 | else |
| 14701 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 14702 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 14703 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 14704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14705 | else |
| 14706 | ac_check_lib_save_LIBS=$LIBS |
| 14707 | LIBS="-ldld $LIBS" |
| 14708 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14709 | /* confdefs.h. */ |
| 14710 | _ACEOF |
| 14711 | cat confdefs.h >>conftest.$ac_ext |
| 14712 | cat >>conftest.$ac_ext <<_ACEOF |
| 14713 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14714 | |
| 14715 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14716 | #ifdef __cplusplus |
| 14717 | extern "C" |
| 14718 | #endif |
| 14719 | /* We use char because int might match the return type of a gcc2 |
| 14720 | builtin and then its argument prototype would still apply. */ |
| 14721 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14722 | int |
| 14723 | main () |
| 14724 | { |
| 14725 | dld_link (); |
| 14726 | ; |
| 14727 | return 0; |
| 14728 | } |
| 14729 | _ACEOF |
| 14730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14732 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14733 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14735 | rm -f conftest.er1 |
| 14736 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14738 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14739 | { ac_try='test -z "$ac_c_werror_flag" |
| 14740 | || test ! -s conftest.err' |
| 14741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14742 | (eval $ac_try) 2>&5 |
| 14743 | ac_status=$? |
| 14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14745 | (exit $ac_status); }; } && |
| 14746 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14748 | (eval $ac_try) 2>&5 |
| 14749 | ac_status=$? |
| 14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14751 | (exit $ac_status); }; }; then |
| 14752 | ac_cv_lib_dld_dld_link=yes |
| 14753 | else |
| 14754 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14756 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14757 | ac_cv_lib_dld_dld_link=no |
| 14758 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14759 | rm -f conftest.err conftest.$ac_objext \ |
| 14760 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14761 | LIBS=$ac_check_lib_save_LIBS |
| 14762 | fi |
| 14763 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 14764 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 14765 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 14766 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 14767 | fi |
| 14768 | |
| 14769 | |
| 14770 | fi |
| 14771 | |
| 14772 | |
| 14773 | fi |
| 14774 | |
| 14775 | |
| 14776 | fi |
| 14777 | |
| 14778 | |
| 14779 | fi |
| 14780 | |
| 14781 | |
| 14782 | fi |
| 14783 | |
| 14784 | ;; |
| 14785 | esac |
| 14786 | |
| 14787 | if test "x$lt_cv_dlopen" != xno; then |
| 14788 | enable_dlopen=yes |
| 14789 | else |
| 14790 | enable_dlopen=no |
| 14791 | fi |
| 14792 | |
| 14793 | case $lt_cv_dlopen in |
| 14794 | dlopen) |
| 14795 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14796 | 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] | 14797 | |
| 14798 | save_LDFLAGS="$LDFLAGS" |
| 14799 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14800 | |
| 14801 | save_LIBS="$LIBS" |
| 14802 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14803 | |
| 14804 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 14805 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 14806 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 14807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14808 | else |
| 14809 | if test "$cross_compiling" = yes; then : |
| 14810 | lt_cv_dlopen_self=cross |
| 14811 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14812 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14813 | lt_status=$lt_dlunknown |
| 14814 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 14815 | #line 14815 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14816 | #include "confdefs.h" |
| 14817 | |
| 14818 | #if HAVE_DLFCN_H |
| 14819 | #include <dlfcn.h> |
| 14820 | #endif |
| 14821 | |
| 14822 | #include <stdio.h> |
| 14823 | |
| 14824 | #ifdef RTLD_GLOBAL |
| 14825 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14826 | #else |
| 14827 | # ifdef DL_GLOBAL |
| 14828 | # define LT_DLGLOBAL DL_GLOBAL |
| 14829 | # else |
| 14830 | # define LT_DLGLOBAL 0 |
| 14831 | # endif |
| 14832 | #endif |
| 14833 | |
| 14834 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14835 | find out it does not work in some platform. */ |
| 14836 | #ifndef LT_DLLAZY_OR_NOW |
| 14837 | # ifdef RTLD_LAZY |
| 14838 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14839 | # else |
| 14840 | # ifdef DL_LAZY |
| 14841 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14842 | # else |
| 14843 | # ifdef RTLD_NOW |
| 14844 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14845 | # else |
| 14846 | # ifdef DL_NOW |
| 14847 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14848 | # else |
| 14849 | # define LT_DLLAZY_OR_NOW 0 |
| 14850 | # endif |
| 14851 | # endif |
| 14852 | # endif |
| 14853 | # endif |
| 14854 | #endif |
| 14855 | |
| 14856 | #ifdef __cplusplus |
| 14857 | extern "C" void exit (int); |
| 14858 | #endif |
| 14859 | |
| 14860 | void fnord() { int i=42;} |
| 14861 | int main () |
| 14862 | { |
| 14863 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14864 | int status = $lt_dlunknown; |
| 14865 | |
| 14866 | if (self) |
| 14867 | { |
| 14868 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14869 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14870 | /* dlclose (self); */ |
| 14871 | } |
| 14872 | |
| 14873 | exit (status); |
| 14874 | } |
| 14875 | EOF |
| 14876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14877 | (eval $ac_link) 2>&5 |
| 14878 | ac_status=$? |
| 14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14880 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14881 | (./conftest; exit; ) 2>/dev/null |
| 14882 | lt_status=$? |
| 14883 | case x$lt_status in |
| 14884 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14885 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14886 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 14887 | esac |
| 14888 | else : |
| 14889 | # compilation failed |
| 14890 | lt_cv_dlopen_self=no |
| 14891 | fi |
| 14892 | fi |
| 14893 | rm -fr conftest* |
| 14894 | |
| 14895 | |
| 14896 | fi |
| 14897 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 14898 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 14899 | |
| 14900 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 14901 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 14902 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 14903 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 14904 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 14905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14906 | else |
| 14907 | if test "$cross_compiling" = yes; then : |
| 14908 | lt_cv_dlopen_self_static=cross |
| 14909 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14910 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14911 | lt_status=$lt_dlunknown |
| 14912 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 14913 | #line 14913 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14914 | #include "confdefs.h" |
| 14915 | |
| 14916 | #if HAVE_DLFCN_H |
| 14917 | #include <dlfcn.h> |
| 14918 | #endif |
| 14919 | |
| 14920 | #include <stdio.h> |
| 14921 | |
| 14922 | #ifdef RTLD_GLOBAL |
| 14923 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14924 | #else |
| 14925 | # ifdef DL_GLOBAL |
| 14926 | # define LT_DLGLOBAL DL_GLOBAL |
| 14927 | # else |
| 14928 | # define LT_DLGLOBAL 0 |
| 14929 | # endif |
| 14930 | #endif |
| 14931 | |
| 14932 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14933 | find out it does not work in some platform. */ |
| 14934 | #ifndef LT_DLLAZY_OR_NOW |
| 14935 | # ifdef RTLD_LAZY |
| 14936 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14937 | # else |
| 14938 | # ifdef DL_LAZY |
| 14939 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14940 | # else |
| 14941 | # ifdef RTLD_NOW |
| 14942 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14943 | # else |
| 14944 | # ifdef DL_NOW |
| 14945 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14946 | # else |
| 14947 | # define LT_DLLAZY_OR_NOW 0 |
| 14948 | # endif |
| 14949 | # endif |
| 14950 | # endif |
| 14951 | # endif |
| 14952 | #endif |
| 14953 | |
| 14954 | #ifdef __cplusplus |
| 14955 | extern "C" void exit (int); |
| 14956 | #endif |
| 14957 | |
| 14958 | void fnord() { int i=42;} |
| 14959 | int main () |
| 14960 | { |
| 14961 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14962 | int status = $lt_dlunknown; |
| 14963 | |
| 14964 | if (self) |
| 14965 | { |
| 14966 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14967 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14968 | /* dlclose (self); */ |
| 14969 | } |
| 14970 | |
| 14971 | exit (status); |
| 14972 | } |
| 14973 | EOF |
| 14974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14975 | (eval $ac_link) 2>&5 |
| 14976 | ac_status=$? |
| 14977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14978 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14979 | (./conftest; exit; ) 2>/dev/null |
| 14980 | lt_status=$? |
| 14981 | case x$lt_status in |
| 14982 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14983 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14984 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14985 | esac |
| 14986 | else : |
| 14987 | # compilation failed |
| 14988 | lt_cv_dlopen_self_static=no |
| 14989 | fi |
| 14990 | fi |
| 14991 | rm -fr conftest* |
| 14992 | |
| 14993 | |
| 14994 | fi |
| 14995 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 14996 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 14997 | fi |
| 14998 | |
| 14999 | CPPFLAGS="$save_CPPFLAGS" |
| 15000 | LDFLAGS="$save_LDFLAGS" |
| 15001 | LIBS="$save_LIBS" |
| 15002 | ;; |
| 15003 | esac |
| 15004 | |
| 15005 | case $lt_cv_dlopen_self in |
| 15006 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 15007 | *) enable_dlopen_self=unknown ;; |
| 15008 | esac |
| 15009 | |
| 15010 | case $lt_cv_dlopen_self_static in |
| 15011 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 15012 | *) enable_dlopen_self_static=unknown ;; |
| 15013 | esac |
| 15014 | fi |
| 15015 | |
| 15016 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15017 | # Report which librarie types wil actually be built |
| 15018 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 15019 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 15020 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 15021 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15022 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15023 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 15024 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 15025 | test "$can_build_shared" = "no" && enable_shared=no |
| 15026 | |
| 15027 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 15028 | # are all built from PIC. |
| 15029 | case "$host_os" in |
| 15030 | aix3*) |
| 15031 | test "$enable_shared" = yes && enable_static=no |
| 15032 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15033 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15034 | postinstall_cmds='$RANLIB $lib' |
| 15035 | fi |
| 15036 | ;; |
| 15037 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15038 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15039 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 15040 | test "$enable_shared" = yes && enable_static=no |
| 15041 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15042 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15043 | esac |
| 15044 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 15045 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15046 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15047 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 15048 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 15049 | # Make sure either enable_shared or enable_static is yes. |
| 15050 | test "$enable_shared" = yes || enable_static=yes |
| 15051 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 15052 | echo "${ECHO_T}$enable_static" >&6 |
| 15053 | |
| 15054 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15055 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 15056 | # with your package, and you will get complaints that there are |
| 15057 | # no rules to generate ltmain.sh. |
| 15058 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15059 | # See if we are running on zsh, and set the options which allow our commands through |
| 15060 | # without removal of \ escapes. |
| 15061 | if test -n "${ZSH_VERSION+set}" ; then |
| 15062 | setopt NO_GLOB_SUBST |
| 15063 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15064 | # Now quote all the things that may contain metacharacters while being |
| 15065 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 15066 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15067 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 15068 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15069 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 15070 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 15071 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 15072 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 15073 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15074 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15075 | old_postinstall_cmds old_postuninstall_cmds \ |
| 15076 | compiler \ |
| 15077 | CC \ |
| 15078 | LD \ |
| 15079 | lt_prog_compiler_wl \ |
| 15080 | lt_prog_compiler_pic \ |
| 15081 | lt_prog_compiler_static \ |
| 15082 | lt_prog_compiler_no_builtin_flag \ |
| 15083 | export_dynamic_flag_spec \ |
| 15084 | thread_safe_flag_spec \ |
| 15085 | whole_archive_flag_spec \ |
| 15086 | enable_shared_with_static_runtimes \ |
| 15087 | old_archive_cmds \ |
| 15088 | old_archive_from_new_cmds \ |
| 15089 | predep_objects \ |
| 15090 | postdep_objects \ |
| 15091 | predeps \ |
| 15092 | postdeps \ |
| 15093 | compiler_lib_search_path \ |
| 15094 | archive_cmds \ |
| 15095 | archive_expsym_cmds \ |
| 15096 | postinstall_cmds \ |
| 15097 | postuninstall_cmds \ |
| 15098 | old_archive_from_expsyms_cmds \ |
| 15099 | allow_undefined_flag \ |
| 15100 | no_undefined_flag \ |
| 15101 | export_symbols_cmds \ |
| 15102 | hardcode_libdir_flag_spec \ |
| 15103 | hardcode_libdir_flag_spec_ld \ |
| 15104 | hardcode_libdir_separator \ |
| 15105 | hardcode_automatic \ |
| 15106 | module_cmds \ |
| 15107 | module_expsym_cmds \ |
| 15108 | lt_cv_prog_compiler_c_o \ |
| 15109 | exclude_expsyms \ |
| 15110 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15111 | |
| 15112 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15113 | old_archive_cmds | \ |
| 15114 | old_archive_from_new_cmds | \ |
| 15115 | archive_cmds | \ |
| 15116 | archive_expsym_cmds | \ |
| 15117 | module_cmds | \ |
| 15118 | module_expsym_cmds | \ |
| 15119 | old_archive_from_expsyms_cmds | \ |
| 15120 | export_symbols_cmds | \ |
| 15121 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15122 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15123 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 15124 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15125 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15126 | 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] | 15127 | ;; |
| 15128 | *) |
| 15129 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 15130 | ;; |
| 15131 | esac |
| 15132 | done |
| 15133 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15134 | case $lt_echo in |
| 15135 | *'\$0 --fallback-echo"') |
| 15136 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 15137 | ;; |
| 15138 | esac |
| 15139 | |
| 15140 | cfgfile="${ofile}T" |
| 15141 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 15142 | $rm -f "$cfgfile" |
| 15143 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 15144 | echo "$as_me: creating $ofile" >&6;} |
| 15145 | |
| 15146 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15147 | #! $SHELL |
| 15148 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15149 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15150 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 15151 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 15152 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15153 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 15154 | # Free Software Foundation, Inc. |
| 15155 | # |
| 15156 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15157 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 15158 | # |
| 15159 | # This program is free software; you can redistribute it and/or modify |
| 15160 | # it under the terms of the GNU General Public License as published by |
| 15161 | # the Free Software Foundation; either version 2 of the License, or |
| 15162 | # (at your option) any later version. |
| 15163 | # |
| 15164 | # This program is distributed in the hope that it will be useful, but |
| 15165 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15166 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15167 | # General Public License for more details. |
| 15168 | # |
| 15169 | # You should have received a copy of the GNU General Public License |
| 15170 | # along with this program; if not, write to the Free Software |
| 15171 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 15172 | # |
| 15173 | # As a special exception to the GNU General Public License, if you |
| 15174 | # distribute this file as part of a program that contains a |
| 15175 | # configuration script generated by Autoconf, you may include it under |
| 15176 | # the same distribution terms that you use for the rest of that program. |
| 15177 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15178 | # A sed program that does not truncate output. |
| 15179 | SED=$lt_SED |
| 15180 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15181 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15182 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15183 | |
| 15184 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15185 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15186 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15187 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15188 | # The names of the tagged configurations supported by this script. |
| 15189 | available_tags= |
| 15190 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15191 | # ### BEGIN LIBTOOL CONFIG |
| 15192 | |
| 15193 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15194 | |
| 15195 | # Shell to use when invoking shell scripts. |
| 15196 | SHELL=$lt_SHELL |
| 15197 | |
| 15198 | # Whether or not to build shared libraries. |
| 15199 | build_libtool_libs=$enable_shared |
| 15200 | |
| 15201 | # Whether or not to build static libraries. |
| 15202 | build_old_libs=$enable_static |
| 15203 | |
| 15204 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15205 | build_libtool_need_lc=$archive_cmds_need_lc |
| 15206 | |
| 15207 | # Whether or not to disallow shared libs when runtime libs are static |
| 15208 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15209 | |
| 15210 | # Whether or not to optimize for fast installation. |
| 15211 | fast_install=$enable_fast_install |
| 15212 | |
| 15213 | # The host system. |
| 15214 | host_alias=$host_alias |
| 15215 | host=$host |
| 15216 | |
| 15217 | # An echo program that does not interpret backslashes. |
| 15218 | echo=$lt_echo |
| 15219 | |
| 15220 | # The archiver. |
| 15221 | AR=$lt_AR |
| 15222 | AR_FLAGS=$lt_AR_FLAGS |
| 15223 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15224 | # A C compiler. |
| 15225 | LTCC=$lt_LTCC |
| 15226 | |
| 15227 | # A language-specific compiler. |
| 15228 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15229 | |
| 15230 | # Is the compiler the GNU C compiler? |
| 15231 | with_gcc=$GCC |
| 15232 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15233 | # An ERE matcher. |
| 15234 | EGREP=$lt_EGREP |
| 15235 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15236 | # The linker used to build libraries. |
| 15237 | LD=$lt_LD |
| 15238 | |
| 15239 | # Whether we need hard or soft links. |
| 15240 | LN_S=$lt_LN_S |
| 15241 | |
| 15242 | # A BSD-compatible nm program. |
| 15243 | NM=$lt_NM |
| 15244 | |
| 15245 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15246 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15247 | |
| 15248 | # Used to examine libraries when file_magic_cmd begins "file" |
| 15249 | MAGIC_CMD=$MAGIC_CMD |
| 15250 | |
| 15251 | # Used on cygwin: DLL creation program. |
| 15252 | DLLTOOL="$DLLTOOL" |
| 15253 | |
| 15254 | # Used on cygwin: object dumper. |
| 15255 | OBJDUMP="$OBJDUMP" |
| 15256 | |
| 15257 | # Used on cygwin: assembler. |
| 15258 | AS="$AS" |
| 15259 | |
| 15260 | # The name of the directory that contains temporary libtool files. |
| 15261 | objdir=$objdir |
| 15262 | |
| 15263 | # How to create reloadable object files. |
| 15264 | reload_flag=$lt_reload_flag |
| 15265 | reload_cmds=$lt_reload_cmds |
| 15266 | |
| 15267 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15268 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15269 | |
| 15270 | # Object file suffix (normally "o"). |
| 15271 | objext="$ac_objext" |
| 15272 | |
| 15273 | # Old archive suffix (normally "a"). |
| 15274 | libext="$libext" |
| 15275 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15276 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15277 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15278 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15279 | # Executable file suffix (normally ""). |
| 15280 | exeext="$exeext" |
| 15281 | |
| 15282 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15283 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15284 | pic_mode=$pic_mode |
| 15285 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15286 | # What is the maximum length of a command? |
| 15287 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15288 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15289 | # Does compiler simultaneously support -c and -o options? |
| 15290 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15291 | |
| 15292 | # Must we lock files when doing compilation ? |
| 15293 | need_locks=$lt_need_locks |
| 15294 | |
| 15295 | # Do we need the lib prefix for modules? |
| 15296 | need_lib_prefix=$need_lib_prefix |
| 15297 | |
| 15298 | # Do we need a version for libraries? |
| 15299 | need_version=$need_version |
| 15300 | |
| 15301 | # Whether dlopen is supported. |
| 15302 | dlopen_support=$enable_dlopen |
| 15303 | |
| 15304 | # Whether dlopen of programs is supported. |
| 15305 | dlopen_self=$enable_dlopen_self |
| 15306 | |
| 15307 | # Whether dlopen of statically linked programs is supported. |
| 15308 | dlopen_self_static=$enable_dlopen_self_static |
| 15309 | |
| 15310 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15311 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15312 | |
| 15313 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15314 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15315 | |
| 15316 | # Compiler flag to allow reflexive dlopens. |
| 15317 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 15318 | |
| 15319 | # Compiler flag to generate shared objects directly from archives. |
| 15320 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 15321 | |
| 15322 | # Compiler flag to generate thread-safe objects. |
| 15323 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 15324 | |
| 15325 | # Library versioning type. |
| 15326 | version_type=$version_type |
| 15327 | |
| 15328 | # Format of library name prefix. |
| 15329 | libname_spec=$lt_libname_spec |
| 15330 | |
| 15331 | # List of archive names. First name is the real one, the rest are links. |
| 15332 | # The last name is the one that the linker finds with -lNAME. |
| 15333 | library_names_spec=$lt_library_names_spec |
| 15334 | |
| 15335 | # The coded name of the library, if different from the real name. |
| 15336 | soname_spec=$lt_soname_spec |
| 15337 | |
| 15338 | # Commands used to build and install an old-style archive. |
| 15339 | RANLIB=$lt_RANLIB |
| 15340 | old_archive_cmds=$lt_old_archive_cmds |
| 15341 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15342 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15343 | |
| 15344 | # Create an old-style archive from a shared archive. |
| 15345 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 15346 | |
| 15347 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15348 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 15349 | |
| 15350 | # Commands used to build and install a shared archive. |
| 15351 | archive_cmds=$lt_archive_cmds |
| 15352 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 15353 | postinstall_cmds=$lt_postinstall_cmds |
| 15354 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15355 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15356 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15357 | module_cmds=$lt_module_cmds |
| 15358 | module_expsym_cmds=$lt_module_expsym_cmds |
| 15359 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15360 | # Commands to strip libraries. |
| 15361 | old_striplib=$lt_old_striplib |
| 15362 | striplib=$lt_striplib |
| 15363 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15364 | # Dependencies to place before the objects being linked to create a |
| 15365 | # shared library. |
| 15366 | predep_objects=$lt_predep_objects |
| 15367 | |
| 15368 | # Dependencies to place after the objects being linked to create a |
| 15369 | # shared library. |
| 15370 | postdep_objects=$lt_postdep_objects |
| 15371 | |
| 15372 | # Dependencies to place before the objects being linked to create a |
| 15373 | # shared library. |
| 15374 | predeps=$lt_predeps |
| 15375 | |
| 15376 | # Dependencies to place after the objects being linked to create a |
| 15377 | # shared library. |
| 15378 | postdeps=$lt_postdeps |
| 15379 | |
| 15380 | # The library search path used internally by the compiler when linking |
| 15381 | # a shared library. |
| 15382 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 15383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15384 | # Method to check whether dependent libraries are shared objects. |
| 15385 | deplibs_check_method=$lt_deplibs_check_method |
| 15386 | |
| 15387 | # Command to use when deplibs_check_method == file_magic. |
| 15388 | file_magic_cmd=$lt_file_magic_cmd |
| 15389 | |
| 15390 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15391 | allow_undefined_flag=$lt_allow_undefined_flag |
| 15392 | |
| 15393 | # Flag that forces no undefined symbols. |
| 15394 | no_undefined_flag=$lt_no_undefined_flag |
| 15395 | |
| 15396 | # Commands used to finish a libtool library installation in a directory. |
| 15397 | finish_cmds=$lt_finish_cmds |
| 15398 | |
| 15399 | # Same as above, but a single script fragment to be evaled but not shown. |
| 15400 | finish_eval=$lt_finish_eval |
| 15401 | |
| 15402 | # 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] | 15403 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15404 | |
| 15405 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15406 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15407 | |
| 15408 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15409 | 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] | 15410 | |
| 15411 | # This is the shared library runtime path variable. |
| 15412 | runpath_var=$runpath_var |
| 15413 | |
| 15414 | # This is the shared library path variable. |
| 15415 | shlibpath_var=$shlibpath_var |
| 15416 | |
| 15417 | # Is shlibpath searched before the hard-coded library search path? |
| 15418 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15419 | |
| 15420 | # How to hardcode a shared library path into an executable. |
| 15421 | hardcode_action=$hardcode_action |
| 15422 | |
| 15423 | # Whether we should hardcode library paths into libraries. |
| 15424 | hardcode_into_libs=$hardcode_into_libs |
| 15425 | |
| 15426 | # Flag to hardcode \$libdir into a binary during linking. |
| 15427 | # This must work even if \$libdir does not exist. |
| 15428 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 15429 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15430 | # If ld is used when linking, flag to hardcode \$libdir into |
| 15431 | # a binary during linking. This must work even if \$libdir does |
| 15432 | # not exist. |
| 15433 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 15434 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15435 | # Whether we need a single -rpath flag with a separated argument. |
| 15436 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 15437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15438 | # 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] | 15439 | # resulting binary. |
| 15440 | hardcode_direct=$hardcode_direct |
| 15441 | |
| 15442 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 15443 | # resulting binary. |
| 15444 | hardcode_minus_L=$hardcode_minus_L |
| 15445 | |
| 15446 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 15447 | # the resulting binary. |
| 15448 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 15449 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15450 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 15451 | # and all subsequent libraries and executables linked against it. |
| 15452 | hardcode_automatic=$hardcode_automatic |
| 15453 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15454 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15455 | # restored at relink time. |
| 15456 | variables_saved_for_relink="$variables_saved_for_relink" |
| 15457 | |
| 15458 | # Whether libtool must link a program against all its dependency libraries. |
| 15459 | link_all_deplibs=$link_all_deplibs |
| 15460 | |
| 15461 | # Compile-time system search path for libraries |
| 15462 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15463 | |
| 15464 | # Run-time system search path for libraries |
| 15465 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15466 | |
| 15467 | # Fix the shell variable \$srcfile for the compiler. |
| 15468 | fix_srcfile_path="$fix_srcfile_path" |
| 15469 | |
| 15470 | # Set to yes if exported symbols are required. |
| 15471 | always_export_symbols=$always_export_symbols |
| 15472 | |
| 15473 | # The commands to list exported symbols. |
| 15474 | export_symbols_cmds=$lt_export_symbols_cmds |
| 15475 | |
| 15476 | # The commands to extract the exported symbol list from a shared archive. |
| 15477 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15478 | |
| 15479 | # Symbols that should not be listed in the preloaded symbols. |
| 15480 | exclude_expsyms=$lt_exclude_expsyms |
| 15481 | |
| 15482 | # Symbols that must always be exported. |
| 15483 | include_expsyms=$lt_include_expsyms |
| 15484 | |
| 15485 | # ### END LIBTOOL CONFIG |
| 15486 | |
| 15487 | __EOF__ |
| 15488 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15489 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15490 | case $host_os in |
| 15491 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15492 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15493 | |
| 15494 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 15495 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 15496 | # vanish in a puff of smoke. |
| 15497 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 15498 | COLLECT_NAMES= |
| 15499 | export COLLECT_NAMES |
| 15500 | fi |
| 15501 | EOF |
| 15502 | ;; |
| 15503 | esac |
| 15504 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15505 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 15506 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 15507 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 15508 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15509 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15510 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15511 | mv -f "$cfgfile" "$ofile" || \ |
| 15512 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15513 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15514 | |
| 15515 | else |
| 15516 | # If there is no Makefile yet, we rely on a make rule to execute |
| 15517 | # `config.status --recheck' to rerun these tests and create the |
| 15518 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15519 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 15520 | if test -f "$ltmain_in"; then |
| 15521 | test -f Makefile && make "$ltmain" |
| 15522 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15523 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15524 | |
| 15525 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15526 | ac_ext=c |
| 15527 | ac_cpp='$CPP $CPPFLAGS' |
| 15528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15531 | |
| 15532 | CC="$lt_save_CC" |
| 15533 | |
| 15534 | |
| 15535 | # Check whether --with-tags or --without-tags was given. |
| 15536 | if test "${with_tags+set}" = set; then |
| 15537 | withval="$with_tags" |
| 15538 | tagnames="$withval" |
| 15539 | fi; |
| 15540 | |
| 15541 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 15542 | if test ! -f "${ofile}"; then |
| 15543 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 15544 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 15545 | fi |
| 15546 | |
| 15547 | if test -z "$LTCC"; then |
| 15548 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 15549 | if test -z "$LTCC"; then |
| 15550 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 15551 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 15552 | else |
| 15553 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 15554 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 15555 | fi |
| 15556 | fi |
| 15557 | |
| 15558 | # Extract list of available tagged configurations in $ofile. |
| 15559 | # Note that this assumes the entire list is on one line. |
| 15560 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 15561 | |
| 15562 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 15563 | for tagname in $tagnames; do |
| 15564 | IFS="$lt_save_ifs" |
| 15565 | # Check whether tagname contains only valid characters |
| 15566 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 15567 | "") ;; |
| 15568 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 15569 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 15570 | { (exit 1); exit 1; }; } |
| 15571 | ;; |
| 15572 | esac |
| 15573 | |
| 15574 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 15575 | then |
| 15576 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 15577 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 15578 | { (exit 1); exit 1; }; } |
| 15579 | fi |
| 15580 | |
| 15581 | # Update the list of available tags. |
| 15582 | if test -n "$tagname"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15583 | echo appending configuration tag "$tagname" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15584 | |
| 15585 | case $tagname in |
| 15586 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15587 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 15588 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 15589 | (test "X$CXX" != "Xg++"))) ; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15590 | ac_ext=cc |
| 15591 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15592 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15593 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15594 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15595 | |
| 15596 | |
| 15597 | |
| 15598 | |
| 15599 | archive_cmds_need_lc_CXX=no |
| 15600 | allow_undefined_flag_CXX= |
| 15601 | always_export_symbols_CXX=no |
| 15602 | archive_expsym_cmds_CXX= |
| 15603 | export_dynamic_flag_spec_CXX= |
| 15604 | hardcode_direct_CXX=no |
| 15605 | hardcode_libdir_flag_spec_CXX= |
| 15606 | hardcode_libdir_flag_spec_ld_CXX= |
| 15607 | hardcode_libdir_separator_CXX= |
| 15608 | hardcode_minus_L_CXX=no |
| 15609 | hardcode_automatic_CXX=no |
| 15610 | module_cmds_CXX= |
| 15611 | module_expsym_cmds_CXX= |
| 15612 | link_all_deplibs_CXX=unknown |
| 15613 | old_archive_cmds_CXX=$old_archive_cmds |
| 15614 | no_undefined_flag_CXX= |
| 15615 | whole_archive_flag_spec_CXX= |
| 15616 | enable_shared_with_static_runtimes_CXX=no |
| 15617 | |
| 15618 | # Dependencies to place before and after the object being linked: |
| 15619 | predep_objects_CXX= |
| 15620 | postdep_objects_CXX= |
| 15621 | predeps_CXX= |
| 15622 | postdeps_CXX= |
| 15623 | compiler_lib_search_path_CXX= |
| 15624 | |
| 15625 | # Source file extension for C++ test sources. |
| 15626 | ac_ext=cc |
| 15627 | |
| 15628 | # Object file extension for compiled C++ test sources. |
| 15629 | objext=o |
| 15630 | objext_CXX=$objext |
| 15631 | |
| 15632 | # Code to be used in simple compile tests |
| 15633 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 15634 | |
| 15635 | # Code to be used in simple link tests |
| 15636 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 15637 | |
| 15638 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15639 | |
| 15640 | # If no C compiler was specified, use CC. |
| 15641 | LTCC=${LTCC-"$CC"} |
| 15642 | |
| 15643 | # Allow CC to be a program name with arguments. |
| 15644 | compiler=$CC |
| 15645 | |
| 15646 | |
| 15647 | # Allow CC to be a program name with arguments. |
| 15648 | lt_save_CC=$CC |
| 15649 | lt_save_LD=$LD |
| 15650 | lt_save_GCC=$GCC |
| 15651 | GCC=$GXX |
| 15652 | lt_save_with_gnu_ld=$with_gnu_ld |
| 15653 | lt_save_path_LD=$lt_cv_path_LD |
| 15654 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 15655 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 15656 | else |
| 15657 | unset lt_cv_prog_gnu_ld |
| 15658 | fi |
| 15659 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 15660 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 15661 | else |
| 15662 | unset lt_cv_path_LD |
| 15663 | fi |
| 15664 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 15665 | CC=${CXX-"c++"} |
| 15666 | compiler=$CC |
| 15667 | compiler_CXX=$CC |
| 15668 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 15669 | |
| 15670 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 15671 | # no_builtin_flag separately |
| 15672 | if test "$GXX" = yes; then |
| 15673 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 15674 | else |
| 15675 | lt_prog_compiler_no_builtin_flag_CXX= |
| 15676 | fi |
| 15677 | |
| 15678 | if test "$GXX" = yes; then |
| 15679 | # Set up default GNU C++ configuration |
| 15680 | |
| 15681 | |
| 15682 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 15683 | if test "${with_gnu_ld+set}" = set; then |
| 15684 | withval="$with_gnu_ld" |
| 15685 | test "$withval" = no || with_gnu_ld=yes |
| 15686 | else |
| 15687 | with_gnu_ld=no |
| 15688 | fi; |
| 15689 | ac_prog=ld |
| 15690 | if test "$GCC" = yes; then |
| 15691 | # Check if gcc -print-prog-name=ld gives a path. |
| 15692 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 15693 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 15694 | case $host in |
| 15695 | *-*-mingw*) |
| 15696 | # gcc leaves a trailing carriage return which upsets mingw |
| 15697 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 15698 | *) |
| 15699 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 15700 | esac |
| 15701 | case $ac_prog in |
| 15702 | # Accept absolute paths. |
| 15703 | [\\/]* | ?:[\\/]*) |
| 15704 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15705 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15706 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 15707 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 15708 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 15709 | done |
| 15710 | test -z "$LD" && LD="$ac_prog" |
| 15711 | ;; |
| 15712 | "") |
| 15713 | # If it fails, then pretend we aren't using GCC. |
| 15714 | ac_prog=ld |
| 15715 | ;; |
| 15716 | *) |
| 15717 | # If it is relative, then search for the first ld in PATH. |
| 15718 | with_gnu_ld=unknown |
| 15719 | ;; |
| 15720 | esac |
| 15721 | elif test "$with_gnu_ld" = yes; then |
| 15722 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 15723 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 15724 | else |
| 15725 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 15726 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 15727 | fi |
| 15728 | if test "${lt_cv_path_LD+set}" = set; then |
| 15729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15730 | else |
| 15731 | if test -z "$LD"; then |
| 15732 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 15733 | for ac_dir in $PATH; do |
| 15734 | IFS="$lt_save_ifs" |
| 15735 | test -z "$ac_dir" && ac_dir=. |
| 15736 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 15737 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 15738 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 15739 | # but apparently some GNU ld's only accept -v. |
| 15740 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 15741 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 15742 | *GNU* | *'with BFD'*) |
| 15743 | test "$with_gnu_ld" != no && break |
| 15744 | ;; |
| 15745 | *) |
| 15746 | test "$with_gnu_ld" != yes && break |
| 15747 | ;; |
| 15748 | esac |
| 15749 | fi |
| 15750 | done |
| 15751 | IFS="$lt_save_ifs" |
| 15752 | else |
| 15753 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 15754 | fi |
| 15755 | fi |
| 15756 | |
| 15757 | LD="$lt_cv_path_LD" |
| 15758 | if test -n "$LD"; then |
| 15759 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 15760 | echo "${ECHO_T}$LD" >&6 |
| 15761 | else |
| 15762 | echo "$as_me:$LINENO: result: no" >&5 |
| 15763 | echo "${ECHO_T}no" >&6 |
| 15764 | fi |
| 15765 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 15766 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 15767 | { (exit 1); exit 1; }; } |
| 15768 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 15769 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 15770 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 15771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15772 | else |
| 15773 | # 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] | 15774 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15775 | *GNU* | *'with BFD'*) |
| 15776 | lt_cv_prog_gnu_ld=yes |
| 15777 | ;; |
| 15778 | *) |
| 15779 | lt_cv_prog_gnu_ld=no |
| 15780 | ;; |
| 15781 | esac |
| 15782 | fi |
| 15783 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 15784 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 15785 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 15786 | |
| 15787 | |
| 15788 | |
| 15789 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 15790 | # archiving commands below assume that GNU ld is being used. |
| 15791 | if test "$with_gnu_ld" = yes; then |
| 15792 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15793 | 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' |
| 15794 | |
| 15795 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 15796 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15797 | |
| 15798 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15799 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 15800 | # investigate it a little bit more. (MM) |
| 15801 | wlarc='${wl}' |
| 15802 | |
| 15803 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15804 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 15805 | grep 'no-whole-archive' > /dev/null; then |
| 15806 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15807 | else |
| 15808 | whole_archive_flag_spec_CXX= |
| 15809 | fi |
| 15810 | else |
| 15811 | with_gnu_ld=no |
| 15812 | wlarc= |
| 15813 | |
| 15814 | # A generic and very simple default shared library creation |
| 15815 | # command for GNU C++ for the case where it uses the native |
| 15816 | # linker, instead of GNU ld. If possible, this setting should |
| 15817 | # overridden to take advantage of the native linker features on |
| 15818 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15819 | 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] | 15820 | fi |
| 15821 | |
| 15822 | # Commands to make compiler produce verbose output that lists |
| 15823 | # what "hidden" libraries, object files and flags are used when |
| 15824 | # linking a shared library. |
| 15825 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15826 | |
| 15827 | else |
| 15828 | GXX=no |
| 15829 | with_gnu_ld=no |
| 15830 | wlarc= |
| 15831 | fi |
| 15832 | |
| 15833 | # PORTME: fill in a description of your system's C++ link characteristics |
| 15834 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15835 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15836 | ld_shlibs_CXX=yes |
| 15837 | case $host_os in |
| 15838 | aix3*) |
| 15839 | # FIXME: insert proper C++ library support |
| 15840 | ld_shlibs_CXX=no |
| 15841 | ;; |
| 15842 | aix4* | aix5*) |
| 15843 | if test "$host_cpu" = ia64; then |
| 15844 | # On IA64, the linker does run time linking by default, so we don't |
| 15845 | # have to do anything special. |
| 15846 | aix_use_runtimelinking=no |
| 15847 | exp_sym_flag='-Bexport' |
| 15848 | no_entry_flag="" |
| 15849 | else |
| 15850 | aix_use_runtimelinking=no |
| 15851 | |
| 15852 | # Test if we are trying to use run time linking or normal |
| 15853 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15854 | # need to do runtime linking. |
| 15855 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15856 | for ld_flag in $LDFLAGS; do |
| 15857 | case $ld_flag in |
| 15858 | *-brtl*) |
| 15859 | aix_use_runtimelinking=yes |
| 15860 | break |
| 15861 | ;; |
| 15862 | esac |
| 15863 | done |
| 15864 | esac |
| 15865 | |
| 15866 | exp_sym_flag='-bexport' |
| 15867 | no_entry_flag='-bnoentry' |
| 15868 | fi |
| 15869 | |
| 15870 | # When large executables or shared objects are built, AIX ld can |
| 15871 | # have problems creating the table of contents. If linking a library |
| 15872 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15873 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15874 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15875 | |
| 15876 | archive_cmds_CXX='' |
| 15877 | hardcode_direct_CXX=yes |
| 15878 | hardcode_libdir_separator_CXX=':' |
| 15879 | link_all_deplibs_CXX=yes |
| 15880 | |
| 15881 | if test "$GXX" = yes; then |
| 15882 | case $host_os in aix4.012|aix4.012.*) |
| 15883 | # We only want to do this on AIX 4.2 and lower, the check |
| 15884 | # below for broken collect2 doesn't work under 4.3+ |
| 15885 | collect2name=`${CC} -print-prog-name=collect2` |
| 15886 | if test -f "$collect2name" && \ |
| 15887 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15888 | then |
| 15889 | # We have reworked collect2 |
| 15890 | hardcode_direct_CXX=yes |
| 15891 | else |
| 15892 | # We have old collect2 |
| 15893 | hardcode_direct_CXX=unsupported |
| 15894 | # It fails to find uninstalled libraries when the uninstalled |
| 15895 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15896 | # to unsupported forces relinking |
| 15897 | hardcode_minus_L_CXX=yes |
| 15898 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15899 | hardcode_libdir_separator_CXX= |
| 15900 | fi |
| 15901 | esac |
| 15902 | shared_flag='-shared' |
| 15903 | else |
| 15904 | # not using gcc |
| 15905 | if test "$host_cpu" = ia64; then |
| 15906 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15907 | # chokes on -Wl,-G. The following line is correct: |
| 15908 | shared_flag='-G' |
| 15909 | else |
| 15910 | if test "$aix_use_runtimelinking" = yes; then |
| 15911 | shared_flag='${wl}-G' |
| 15912 | else |
| 15913 | shared_flag='${wl}-bM:SRE' |
| 15914 | fi |
| 15915 | fi |
| 15916 | fi |
| 15917 | |
| 15918 | # It seems that -bexpall does not export symbols beginning with |
| 15919 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15920 | always_export_symbols_CXX=yes |
| 15921 | if test "$aix_use_runtimelinking" = yes; then |
| 15922 | # Warning - without using the other runtime loading flags (-brtl), |
| 15923 | # -berok will link without error, but may produce a broken library. |
| 15924 | allow_undefined_flag_CXX='-berok' |
| 15925 | # Determine the default libpath from the value encoded in an empty executable. |
| 15926 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15927 | /* confdefs.h. */ |
| 15928 | _ACEOF |
| 15929 | cat confdefs.h >>conftest.$ac_ext |
| 15930 | cat >>conftest.$ac_ext <<_ACEOF |
| 15931 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15932 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15933 | int |
| 15934 | main () |
| 15935 | { |
| 15936 | |
| 15937 | ; |
| 15938 | return 0; |
| 15939 | } |
| 15940 | _ACEOF |
| 15941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15943 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15944 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15946 | rm -f conftest.er1 |
| 15947 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15949 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15950 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 15951 | || test ! -s conftest.err' |
| 15952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15953 | (eval $ac_try) 2>&5 |
| 15954 | ac_status=$? |
| 15955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15956 | (exit $ac_status); }; } && |
| 15957 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15959 | (eval $ac_try) 2>&5 |
| 15960 | ac_status=$? |
| 15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15962 | (exit $ac_status); }; }; then |
| 15963 | |
| 15964 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15965 | }'` |
| 15966 | # Check for a 64-bit object if we didn't find anything. |
| 15967 | 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; } |
| 15968 | }'`; fi |
| 15969 | else |
| 15970 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15972 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15973 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15974 | rm -f conftest.err conftest.$ac_objext \ |
| 15975 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15976 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15977 | |
| 15978 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15979 | |
| 15980 | 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" |
| 15981 | else |
| 15982 | if test "$host_cpu" = ia64; then |
| 15983 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 15984 | allow_undefined_flag_CXX="-z nodefs" |
| 15985 | 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" |
| 15986 | else |
| 15987 | # Determine the default libpath from the value encoded in an empty executable. |
| 15988 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15989 | /* confdefs.h. */ |
| 15990 | _ACEOF |
| 15991 | cat confdefs.h >>conftest.$ac_ext |
| 15992 | cat >>conftest.$ac_ext <<_ACEOF |
| 15993 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15994 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15995 | int |
| 15996 | main () |
| 15997 | { |
| 15998 | |
| 15999 | ; |
| 16000 | return 0; |
| 16001 | } |
| 16002 | _ACEOF |
| 16003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16005 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16006 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16008 | rm -f conftest.er1 |
| 16009 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16011 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16012 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 16013 | || test ! -s conftest.err' |
| 16014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16015 | (eval $ac_try) 2>&5 |
| 16016 | ac_status=$? |
| 16017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16018 | (exit $ac_status); }; } && |
| 16019 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16021 | (eval $ac_try) 2>&5 |
| 16022 | ac_status=$? |
| 16023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16024 | (exit $ac_status); }; }; then |
| 16025 | |
| 16026 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16027 | }'` |
| 16028 | # Check for a 64-bit object if we didn't find anything. |
| 16029 | 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; } |
| 16030 | }'`; fi |
| 16031 | else |
| 16032 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16034 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16035 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16036 | rm -f conftest.err conftest.$ac_objext \ |
| 16037 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16038 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16039 | |
| 16040 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16041 | # Warning - without using the other run time loading flags, |
| 16042 | # -berok will link without error, but may produce a broken library. |
| 16043 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 16044 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 16045 | # -bexpall does not export symbols beginning with underscore (_) |
| 16046 | always_export_symbols_CXX=yes |
| 16047 | # Exported symbols can be pulled into shared objects from archives |
| 16048 | whole_archive_flag_spec_CXX=' ' |
| 16049 | archive_cmds_need_lc_CXX=yes |
| 16050 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16051 | 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] | 16052 | fi |
| 16053 | fi |
| 16054 | ;; |
| 16055 | chorus*) |
| 16056 | case $cc_basename in |
| 16057 | *) |
| 16058 | # FIXME: insert proper C++ library support |
| 16059 | ld_shlibs_CXX=no |
| 16060 | ;; |
| 16061 | esac |
| 16062 | ;; |
| 16063 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16064 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16065 | cygwin* | mingw* | pw32*) |
| 16066 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 16067 | # as there is no search path for DLLs. |
| 16068 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 16069 | allow_undefined_flag_CXX=unsupported |
| 16070 | always_export_symbols_CXX=no |
| 16071 | enable_shared_with_static_runtimes_CXX=yes |
| 16072 | |
| 16073 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 16074 | 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' |
| 16075 | # If the export-symbols file already is a .def file (1st line |
| 16076 | # is EXPORTS), use it as is; otherwise, prepend... |
| 16077 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 16078 | cp $export_symbols $output_objdir/$soname.def; |
| 16079 | else |
| 16080 | echo EXPORTS > $output_objdir/$soname.def; |
| 16081 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16082 | fi~ |
| 16083 | $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] | 16084 | else |
| 16085 | ld_shlibs_CXX=no |
| 16086 | fi |
| 16087 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16088 | darwin* | rhapsody*) |
| 16089 | case "$host_os" in |
| 16090 | rhapsody* | darwin1.[012]) |
| 16091 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 16092 | ;; |
| 16093 | *) # Darwin 1.3 on |
| 16094 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 16095 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16096 | else |
| 16097 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 16098 | 10.[012]) |
| 16099 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16100 | ;; |
| 16101 | 10.*) |
| 16102 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 16103 | ;; |
| 16104 | esac |
| 16105 | fi |
| 16106 | ;; |
| 16107 | esac |
| 16108 | archive_cmds_need_lc_CXX=no |
| 16109 | hardcode_direct_CXX=no |
| 16110 | hardcode_automatic_CXX=yes |
| 16111 | hardcode_shlibpath_var_CXX=unsupported |
| 16112 | whole_archive_flag_spec_CXX='' |
| 16113 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16114 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16115 | if test "$GXX" = yes ; then |
| 16116 | lt_int_apple_cc_single_mod=no |
| 16117 | output_verbose_link_cmd='echo' |
| 16118 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 16119 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 16120 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 16121 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16122 | 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] | 16123 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16124 | 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] | 16125 | fi |
| 16126 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16127 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 16128 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16129 | 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] | 16130 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16131 | 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] | 16132 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16133 | 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] | 16134 | else |
| 16135 | case "$cc_basename" in |
| 16136 | xlc*) |
| 16137 | output_verbose_link_cmd='echo' |
| 16138 | 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' |
| 16139 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16140 | # 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] | 16141 | 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}' |
| 16142 | 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] | 16143 | ;; |
| 16144 | *) |
| 16145 | ld_shlibs_CXX=no |
| 16146 | ;; |
| 16147 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 16148 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16149 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16150 | |
| 16151 | dgux*) |
| 16152 | case $cc_basename in |
| 16153 | ec++) |
| 16154 | # FIXME: insert proper C++ library support |
| 16155 | ld_shlibs_CXX=no |
| 16156 | ;; |
| 16157 | ghcx) |
| 16158 | # Green Hills C++ Compiler |
| 16159 | # FIXME: insert proper C++ library support |
| 16160 | ld_shlibs_CXX=no |
| 16161 | ;; |
| 16162 | *) |
| 16163 | # FIXME: insert proper C++ library support |
| 16164 | ld_shlibs_CXX=no |
| 16165 | ;; |
| 16166 | esac |
| 16167 | ;; |
| 16168 | freebsd12*) |
| 16169 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 16170 | ld_shlibs_CXX=no |
| 16171 | ;; |
| 16172 | freebsd-elf*) |
| 16173 | archive_cmds_need_lc_CXX=no |
| 16174 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16175 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16176 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 16177 | # conventions |
| 16178 | ld_shlibs_CXX=yes |
| 16179 | ;; |
| 16180 | gnu*) |
| 16181 | ;; |
| 16182 | hpux9*) |
| 16183 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 16184 | hardcode_libdir_separator_CXX=: |
| 16185 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16186 | hardcode_direct_CXX=yes |
| 16187 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 16188 | # but as the default |
| 16189 | # location of the library. |
| 16190 | |
| 16191 | case $cc_basename in |
| 16192 | CC) |
| 16193 | # FIXME: insert proper C++ library support |
| 16194 | ld_shlibs_CXX=no |
| 16195 | ;; |
| 16196 | aCC) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16197 | 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] | 16198 | # Commands to make compiler produce verbose output that lists |
| 16199 | # what "hidden" libraries, object files and flags are used when |
| 16200 | # linking a shared library. |
| 16201 | # |
| 16202 | # There doesn't appear to be a way to prevent this compiler from |
| 16203 | # explicitly linking system object files so we need to strip them |
| 16204 | # from the output so that they don't get included in the library |
| 16205 | # dependencies. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16206 | 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] | 16207 | ;; |
| 16208 | *) |
| 16209 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16210 | 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] | 16211 | else |
| 16212 | # FIXME: insert proper C++ library support |
| 16213 | ld_shlibs_CXX=no |
| 16214 | fi |
| 16215 | ;; |
| 16216 | esac |
| 16217 | ;; |
| 16218 | hpux10*|hpux11*) |
| 16219 | if test $with_gnu_ld = no; then |
| 16220 | case "$host_cpu" in |
| 16221 | hppa*64*) |
| 16222 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 16223 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 16224 | hardcode_libdir_separator_CXX=: |
| 16225 | ;; |
| 16226 | ia64*) |
| 16227 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 16228 | ;; |
| 16229 | *) |
| 16230 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 16231 | hardcode_libdir_separator_CXX=: |
| 16232 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16233 | ;; |
| 16234 | esac |
| 16235 | fi |
| 16236 | case "$host_cpu" in |
| 16237 | hppa*64*) |
| 16238 | hardcode_direct_CXX=no |
| 16239 | hardcode_shlibpath_var_CXX=no |
| 16240 | ;; |
| 16241 | ia64*) |
| 16242 | hardcode_direct_CXX=no |
| 16243 | hardcode_shlibpath_var_CXX=no |
| 16244 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 16245 | # but as the default |
| 16246 | # location of the library. |
| 16247 | ;; |
| 16248 | *) |
| 16249 | hardcode_direct_CXX=yes |
| 16250 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 16251 | # but as the default |
| 16252 | # location of the library. |
| 16253 | ;; |
| 16254 | esac |
| 16255 | |
| 16256 | case $cc_basename in |
| 16257 | CC) |
| 16258 | # FIXME: insert proper C++ library support |
| 16259 | ld_shlibs_CXX=no |
| 16260 | ;; |
| 16261 | aCC) |
| 16262 | case "$host_cpu" in |
| 16263 | hppa*64*|ia64*) |
| 16264 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 16265 | ;; |
| 16266 | *) |
| 16267 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16268 | ;; |
| 16269 | esac |
| 16270 | # Commands to make compiler produce verbose output that lists |
| 16271 | # what "hidden" libraries, object files and flags are used when |
| 16272 | # linking a shared library. |
| 16273 | # |
| 16274 | # There doesn't appear to be a way to prevent this compiler from |
| 16275 | # explicitly linking system object files so we need to strip them |
| 16276 | # from the output so that they don't get included in the library |
| 16277 | # dependencies. |
| 16278 | 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' |
| 16279 | ;; |
| 16280 | *) |
| 16281 | if test "$GXX" = yes; then |
| 16282 | if test $with_gnu_ld = no; then |
| 16283 | case "$host_cpu" in |
| 16284 | ia64*|hppa*64*) |
| 16285 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 16286 | ;; |
| 16287 | *) |
| 16288 | 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' |
| 16289 | ;; |
| 16290 | esac |
| 16291 | fi |
| 16292 | else |
| 16293 | # FIXME: insert proper C++ library support |
| 16294 | ld_shlibs_CXX=no |
| 16295 | fi |
| 16296 | ;; |
| 16297 | esac |
| 16298 | ;; |
| 16299 | irix5* | irix6*) |
| 16300 | case $cc_basename in |
| 16301 | CC) |
| 16302 | # SGI C++ |
| 16303 | 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' |
| 16304 | |
| 16305 | # Archives containing C++ object files must be created using |
| 16306 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 16307 | # necessary to make sure instantiated templates are included |
| 16308 | # in the archive. |
| 16309 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 16310 | ;; |
| 16311 | *) |
| 16312 | if test "$GXX" = yes; then |
| 16313 | if test "$with_gnu_ld" = no; then |
| 16314 | 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' |
| 16315 | else |
| 16316 | 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' |
| 16317 | fi |
| 16318 | fi |
| 16319 | link_all_deplibs_CXX=yes |
| 16320 | ;; |
| 16321 | esac |
| 16322 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16323 | hardcode_libdir_separator_CXX=: |
| 16324 | ;; |
| 16325 | linux*) |
| 16326 | case $cc_basename in |
| 16327 | KCC) |
| 16328 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16329 | |
| 16330 | # KCC will only create a shared library if the output file |
| 16331 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16332 | # to its proper name (with version) after linking. |
| 16333 | 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' |
| 16334 | 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' |
| 16335 | # Commands to make compiler produce verbose output that lists |
| 16336 | # what "hidden" libraries, object files and flags are used when |
| 16337 | # linking a shared library. |
| 16338 | # |
| 16339 | # There doesn't appear to be a way to prevent this compiler from |
| 16340 | # explicitly linking system object files so we need to strip them |
| 16341 | # from the output so that they don't get included in the library |
| 16342 | # dependencies. |
| 16343 | 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' |
| 16344 | |
| 16345 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 16346 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16347 | |
| 16348 | # Archives containing C++ object files must be created using |
| 16349 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 16350 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 16351 | ;; |
| 16352 | icpc) |
| 16353 | # Intel C++ |
| 16354 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16355 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 16356 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 16357 | # earlier do not add the objects themselves. |
| 16358 | case `$CC -V 2>&1` in |
| 16359 | *"Version 7."*) |
| 16360 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16361 | 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' |
| 16362 | ;; |
| 16363 | *) # Version 8.0 or newer |
| 16364 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16365 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16366 | ;; |
| 16367 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16368 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16369 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16370 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16371 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 16372 | ;; |
| 16373 | cxx) |
| 16374 | # Compaq C++ |
| 16375 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16376 | 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' |
| 16377 | |
| 16378 | runpath_var=LD_RUN_PATH |
| 16379 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 16380 | hardcode_libdir_separator_CXX=: |
| 16381 | |
| 16382 | # Commands to make compiler produce verbose output that lists |
| 16383 | # what "hidden" libraries, object files and flags are used when |
| 16384 | # linking a shared library. |
| 16385 | # |
| 16386 | # There doesn't appear to be a way to prevent this compiler from |
| 16387 | # explicitly linking system object files so we need to strip them |
| 16388 | # from the output so that they don't get included in the library |
| 16389 | # dependencies. |
| 16390 | 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' |
| 16391 | ;; |
| 16392 | esac |
| 16393 | ;; |
| 16394 | lynxos*) |
| 16395 | # FIXME: insert proper C++ library support |
| 16396 | ld_shlibs_CXX=no |
| 16397 | ;; |
| 16398 | m88k*) |
| 16399 | # FIXME: insert proper C++ library support |
| 16400 | ld_shlibs_CXX=no |
| 16401 | ;; |
| 16402 | mvs*) |
| 16403 | case $cc_basename in |
| 16404 | cxx) |
| 16405 | # FIXME: insert proper C++ library support |
| 16406 | ld_shlibs_CXX=no |
| 16407 | ;; |
| 16408 | *) |
| 16409 | # FIXME: insert proper C++ library support |
| 16410 | ld_shlibs_CXX=no |
| 16411 | ;; |
| 16412 | esac |
| 16413 | ;; |
| 16414 | netbsd*) |
| 16415 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16416 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 16417 | wlarc= |
| 16418 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16419 | hardcode_direct_CXX=yes |
| 16420 | hardcode_shlibpath_var_CXX=no |
| 16421 | fi |
| 16422 | # Workaround some broken pre-1.5 toolchains |
| 16423 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 16424 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16425 | openbsd2*) |
| 16426 | # C++ shared libraries are fairly broken |
| 16427 | ld_shlibs_CXX=no |
| 16428 | ;; |
| 16429 | openbsd*) |
| 16430 | hardcode_direct_CXX=yes |
| 16431 | hardcode_shlibpath_var_CXX=no |
| 16432 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 16433 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16434 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16435 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 16436 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16437 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16438 | fi |
| 16439 | output_verbose_link_cmd='echo' |
| 16440 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16441 | osf3*) |
| 16442 | case $cc_basename in |
| 16443 | KCC) |
| 16444 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16445 | |
| 16446 | # KCC will only create a shared library if the output file |
| 16447 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16448 | # to its proper name (with version) after linking. |
| 16449 | 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' |
| 16450 | |
| 16451 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16452 | hardcode_libdir_separator_CXX=: |
| 16453 | |
| 16454 | # Archives containing C++ object files must be created using |
| 16455 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 16456 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 16457 | |
| 16458 | ;; |
| 16459 | RCC) |
| 16460 | # Rational C++ 2.4.1 |
| 16461 | # FIXME: insert proper C++ library support |
| 16462 | ld_shlibs_CXX=no |
| 16463 | ;; |
| 16464 | cxx) |
| 16465 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16466 | 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' |
| 16467 | |
| 16468 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16469 | hardcode_libdir_separator_CXX=: |
| 16470 | |
| 16471 | # Commands to make compiler produce verbose output that lists |
| 16472 | # what "hidden" libraries, object files and flags are used when |
| 16473 | # linking a shared library. |
| 16474 | # |
| 16475 | # There doesn't appear to be a way to prevent this compiler from |
| 16476 | # explicitly linking system object files so we need to strip them |
| 16477 | # from the output so that they don't get included in the library |
| 16478 | # dependencies. |
| 16479 | 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' |
| 16480 | ;; |
| 16481 | *) |
| 16482 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16483 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16484 | 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' |
| 16485 | |
| 16486 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16487 | hardcode_libdir_separator_CXX=: |
| 16488 | |
| 16489 | # Commands to make compiler produce verbose output that lists |
| 16490 | # what "hidden" libraries, object files and flags are used when |
| 16491 | # linking a shared library. |
| 16492 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 16493 | |
| 16494 | else |
| 16495 | # FIXME: insert proper C++ library support |
| 16496 | ld_shlibs_CXX=no |
| 16497 | fi |
| 16498 | ;; |
| 16499 | esac |
| 16500 | ;; |
| 16501 | osf4* | osf5*) |
| 16502 | case $cc_basename in |
| 16503 | KCC) |
| 16504 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16505 | |
| 16506 | # KCC will only create a shared library if the output file |
| 16507 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16508 | # to its proper name (with version) after linking. |
| 16509 | 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' |
| 16510 | |
| 16511 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16512 | hardcode_libdir_separator_CXX=: |
| 16513 | |
| 16514 | # Archives containing C++ object files must be created using |
| 16515 | # the KAI C++ compiler. |
| 16516 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 16517 | ;; |
| 16518 | RCC) |
| 16519 | # Rational C++ 2.4.1 |
| 16520 | # FIXME: insert proper C++ library support |
| 16521 | ld_shlibs_CXX=no |
| 16522 | ;; |
| 16523 | cxx) |
| 16524 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 16525 | 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] | 16526 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 16527 | echo "-hidden">> $lib.exp~ |
| 16528 | $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~ |
| 16529 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16530 | |
| 16531 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 16532 | hardcode_libdir_separator_CXX=: |
| 16533 | |
| 16534 | # Commands to make compiler produce verbose output that lists |
| 16535 | # what "hidden" libraries, object files and flags are used when |
| 16536 | # linking a shared library. |
| 16537 | # |
| 16538 | # There doesn't appear to be a way to prevent this compiler from |
| 16539 | # explicitly linking system object files so we need to strip them |
| 16540 | # from the output so that they don't get included in the library |
| 16541 | # dependencies. |
| 16542 | 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' |
| 16543 | ;; |
| 16544 | *) |
| 16545 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16546 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16547 | 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' |
| 16548 | |
| 16549 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16550 | hardcode_libdir_separator_CXX=: |
| 16551 | |
| 16552 | # Commands to make compiler produce verbose output that lists |
| 16553 | # what "hidden" libraries, object files and flags are used when |
| 16554 | # linking a shared library. |
| 16555 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 16556 | |
| 16557 | else |
| 16558 | # FIXME: insert proper C++ library support |
| 16559 | ld_shlibs_CXX=no |
| 16560 | fi |
| 16561 | ;; |
| 16562 | esac |
| 16563 | ;; |
| 16564 | psos*) |
| 16565 | # FIXME: insert proper C++ library support |
| 16566 | ld_shlibs_CXX=no |
| 16567 | ;; |
| 16568 | sco*) |
| 16569 | archive_cmds_need_lc_CXX=no |
| 16570 | case $cc_basename in |
| 16571 | CC) |
| 16572 | # FIXME: insert proper C++ library support |
| 16573 | ld_shlibs_CXX=no |
| 16574 | ;; |
| 16575 | *) |
| 16576 | # FIXME: insert proper C++ library support |
| 16577 | ld_shlibs_CXX=no |
| 16578 | ;; |
| 16579 | esac |
| 16580 | ;; |
| 16581 | sunos4*) |
| 16582 | case $cc_basename in |
| 16583 | CC) |
| 16584 | # Sun C++ 4.x |
| 16585 | # FIXME: insert proper C++ library support |
| 16586 | ld_shlibs_CXX=no |
| 16587 | ;; |
| 16588 | lcc) |
| 16589 | # Lucid |
| 16590 | # FIXME: insert proper C++ library support |
| 16591 | ld_shlibs_CXX=no |
| 16592 | ;; |
| 16593 | *) |
| 16594 | # FIXME: insert proper C++ library support |
| 16595 | ld_shlibs_CXX=no |
| 16596 | ;; |
| 16597 | esac |
| 16598 | ;; |
| 16599 | solaris*) |
| 16600 | case $cc_basename in |
| 16601 | CC) |
| 16602 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16603 | no_undefined_flag_CXX=' -zdefs' |
| 16604 | 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] | 16605 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16606 | $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] | 16607 | |
| 16608 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16609 | hardcode_shlibpath_var_CXX=no |
| 16610 | case $host_os in |
| 16611 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 16612 | *) |
| 16613 | # The C++ compiler is used as linker so we must use $wl |
| 16614 | # flag to pass the commands to the underlying system |
| 16615 | # linker. |
| 16616 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16617 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 16618 | ;; |
| 16619 | esac |
| 16620 | link_all_deplibs_CXX=yes |
| 16621 | |
| 16622 | # Commands to make compiler produce verbose output that lists |
| 16623 | # what "hidden" libraries, object files and flags are used when |
| 16624 | # linking a shared library. |
| 16625 | # |
| 16626 | # There doesn't appear to be a way to prevent this compiler from |
| 16627 | # explicitly linking system object files so we need to strip them |
| 16628 | # from the output so that they don't get included in the library |
| 16629 | # dependencies. |
| 16630 | 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' |
| 16631 | |
| 16632 | # Archives containing C++ object files must be created using |
| 16633 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 16634 | # necessary to make sure instantiated templates are included |
| 16635 | # in the archive. |
| 16636 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 16637 | ;; |
| 16638 | gcx) |
| 16639 | # Green Hills C++ Compiler |
| 16640 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 16641 | |
| 16642 | # The C++ compiler must be used to create the archive. |
| 16643 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 16644 | ;; |
| 16645 | *) |
| 16646 | # GNU C++ compiler with Solaris linker |
| 16647 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16648 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 16649 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16650 | 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] | 16651 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16652 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 16653 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16654 | # Commands to make compiler produce verbose output that lists |
| 16655 | # what "hidden" libraries, object files and flags are used when |
| 16656 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16657 | 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] | 16658 | else |
| 16659 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 16660 | # platform. |
| 16661 | 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] | 16662 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16663 | $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] | 16664 | |
| 16665 | # Commands to make compiler produce verbose output that lists |
| 16666 | # what "hidden" libraries, object files and flags are used when |
| 16667 | # linking a shared library. |
| 16668 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 16669 | fi |
| 16670 | |
| 16671 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 16672 | fi |
| 16673 | ;; |
| 16674 | esac |
| 16675 | ;; |
| 16676 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16677 | archive_cmds_need_lc_CXX=no |
| 16678 | ;; |
| 16679 | tandem*) |
| 16680 | case $cc_basename in |
| 16681 | NCC) |
| 16682 | # NonStop-UX NCC 3.20 |
| 16683 | # FIXME: insert proper C++ library support |
| 16684 | ld_shlibs_CXX=no |
| 16685 | ;; |
| 16686 | *) |
| 16687 | # FIXME: insert proper C++ library support |
| 16688 | ld_shlibs_CXX=no |
| 16689 | ;; |
| 16690 | esac |
| 16691 | ;; |
| 16692 | vxworks*) |
| 16693 | # FIXME: insert proper C++ library support |
| 16694 | ld_shlibs_CXX=no |
| 16695 | ;; |
| 16696 | *) |
| 16697 | # FIXME: insert proper C++ library support |
| 16698 | ld_shlibs_CXX=no |
| 16699 | ;; |
| 16700 | esac |
| 16701 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 16702 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 16703 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16704 | |
| 16705 | GCC_CXX="$GXX" |
| 16706 | LD_CXX="$LD" |
| 16707 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16708 | |
| 16709 | cat > conftest.$ac_ext <<EOF |
| 16710 | class Foo |
| 16711 | { |
| 16712 | public: |
| 16713 | Foo (void) { a = 0; } |
| 16714 | private: |
| 16715 | int a; |
| 16716 | }; |
| 16717 | EOF |
| 16718 | |
| 16719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16720 | (eval $ac_compile) 2>&5 |
| 16721 | ac_status=$? |
| 16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16723 | (exit $ac_status); }; then |
| 16724 | # Parse the compiler output and extract the necessary |
| 16725 | # objects, libraries and library flags. |
| 16726 | |
| 16727 | # Sentinel used to keep track of whether or not we are before |
| 16728 | # the conftest object file. |
| 16729 | pre_test_object_deps_done=no |
| 16730 | |
| 16731 | # The `*' in the case matches for architectures that use `case' in |
| 16732 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 16733 | # eval without this substitution. |
| 16734 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 16735 | |
| 16736 | for p in `eval $output_verbose_link_cmd`; do |
| 16737 | case $p in |
| 16738 | |
| 16739 | -L* | -R* | -l*) |
| 16740 | # Some compilers place space between "-{L,R}" and the path. |
| 16741 | # Remove the space. |
| 16742 | if test $p = "-L" \ |
| 16743 | || test $p = "-R"; then |
| 16744 | prev=$p |
| 16745 | continue |
| 16746 | else |
| 16747 | prev= |
| 16748 | fi |
| 16749 | |
| 16750 | if test "$pre_test_object_deps_done" = no; then |
| 16751 | case $p in |
| 16752 | -L* | -R*) |
| 16753 | # Internal compiler library paths should come after those |
| 16754 | # provided the user. The postdeps already come after the |
| 16755 | # user supplied libs so there is no need to process them. |
| 16756 | if test -z "$compiler_lib_search_path_CXX"; then |
| 16757 | compiler_lib_search_path_CXX="${prev}${p}" |
| 16758 | else |
| 16759 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 16760 | fi |
| 16761 | ;; |
| 16762 | # The "-l" case would never come before the object being |
| 16763 | # linked, so don't bother handling this case. |
| 16764 | esac |
| 16765 | else |
| 16766 | if test -z "$postdeps_CXX"; then |
| 16767 | postdeps_CXX="${prev}${p}" |
| 16768 | else |
| 16769 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 16770 | fi |
| 16771 | fi |
| 16772 | ;; |
| 16773 | |
| 16774 | *.$objext) |
| 16775 | # This assumes that the test object file only shows up |
| 16776 | # once in the compiler output. |
| 16777 | if test "$p" = "conftest.$objext"; then |
| 16778 | pre_test_object_deps_done=yes |
| 16779 | continue |
| 16780 | fi |
| 16781 | |
| 16782 | if test "$pre_test_object_deps_done" = no; then |
| 16783 | if test -z "$predep_objects_CXX"; then |
| 16784 | predep_objects_CXX="$p" |
| 16785 | else |
| 16786 | predep_objects_CXX="$predep_objects_CXX $p" |
| 16787 | fi |
| 16788 | else |
| 16789 | if test -z "$postdep_objects_CXX"; then |
| 16790 | postdep_objects_CXX="$p" |
| 16791 | else |
| 16792 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 16793 | fi |
| 16794 | fi |
| 16795 | ;; |
| 16796 | |
| 16797 | *) ;; # Ignore the rest. |
| 16798 | |
| 16799 | esac |
| 16800 | done |
| 16801 | |
| 16802 | # Clean up. |
| 16803 | rm -f a.out a.exe |
| 16804 | else |
| 16805 | echo "libtool.m4: error: problem compiling CXX test program" |
| 16806 | fi |
| 16807 | |
| 16808 | $rm -f confest.$objext |
| 16809 | |
| 16810 | case " $postdeps_CXX " in |
| 16811 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 16812 | esac |
| 16813 | |
| 16814 | lt_prog_compiler_wl_CXX= |
| 16815 | lt_prog_compiler_pic_CXX= |
| 16816 | lt_prog_compiler_static_CXX= |
| 16817 | |
| 16818 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16819 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 16820 | |
| 16821 | # C++ specific cases for pic, static, wl, etc. |
| 16822 | if test "$GXX" = yes; then |
| 16823 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16824 | lt_prog_compiler_static_CXX='-static' |
| 16825 | |
| 16826 | case $host_os in |
| 16827 | aix*) |
| 16828 | # All AIX code is PIC. |
| 16829 | if test "$host_cpu" = ia64; then |
| 16830 | # AIX 5 now supports IA64 processor |
| 16831 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16832 | fi |
| 16833 | ;; |
| 16834 | amigaos*) |
| 16835 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16836 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16837 | # like `-m68040'. |
| 16838 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 16839 | ;; |
| 16840 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16841 | # PIC is the default for these OSes. |
| 16842 | ;; |
| 16843 | mingw* | os2* | pw32*) |
| 16844 | # This hack is so that the source file can tell whether it is being |
| 16845 | # built for inclusion in a dll (and should export symbols for example). |
| 16846 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16847 | ;; |
| 16848 | darwin* | rhapsody*) |
| 16849 | # PIC is the default on this platform |
| 16850 | # Common symbols not allowed in MH_DYLIB files |
| 16851 | lt_prog_compiler_pic_CXX='-fno-common' |
| 16852 | ;; |
| 16853 | *djgpp*) |
| 16854 | # DJGPP does not support shared libraries at all |
| 16855 | lt_prog_compiler_pic_CXX= |
| 16856 | ;; |
| 16857 | sysv4*MP*) |
| 16858 | if test -d /usr/nec; then |
| 16859 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 16860 | fi |
| 16861 | ;; |
| 16862 | hpux*) |
| 16863 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16864 | # not for PA HP-UX. |
| 16865 | case "$host_cpu" in |
| 16866 | hppa*64*|ia64*) |
| 16867 | ;; |
| 16868 | *) |
| 16869 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16870 | ;; |
| 16871 | esac |
| 16872 | ;; |
| 16873 | *) |
| 16874 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16875 | ;; |
| 16876 | esac |
| 16877 | else |
| 16878 | case $host_os in |
| 16879 | aix4* | aix5*) |
| 16880 | # All AIX code is PIC. |
| 16881 | if test "$host_cpu" = ia64; then |
| 16882 | # AIX 5 now supports IA64 processor |
| 16883 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16884 | else |
| 16885 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 16886 | fi |
| 16887 | ;; |
| 16888 | chorus*) |
| 16889 | case $cc_basename in |
| 16890 | cxch68) |
| 16891 | # Green Hills C++ Compiler |
| 16892 | # _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" |
| 16893 | ;; |
| 16894 | esac |
| 16895 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16896 | darwin*) |
| 16897 | # PIC is the default on this platform |
| 16898 | # Common symbols not allowed in MH_DYLIB files |
| 16899 | case "$cc_basename" in |
| 16900 | xlc*) |
| 16901 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 16902 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16903 | ;; |
| 16904 | esac |
| 16905 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16906 | dgux*) |
| 16907 | case $cc_basename in |
| 16908 | ec++) |
| 16909 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16910 | ;; |
| 16911 | ghcx) |
| 16912 | # Green Hills C++ Compiler |
| 16913 | lt_prog_compiler_pic_CXX='-pic' |
| 16914 | ;; |
| 16915 | *) |
| 16916 | ;; |
| 16917 | esac |
| 16918 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16919 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16920 | # FreeBSD uses GNU C++ |
| 16921 | ;; |
| 16922 | hpux9* | hpux10* | hpux11*) |
| 16923 | case $cc_basename in |
| 16924 | CC) |
| 16925 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16926 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16927 | if test "$host_cpu" != ia64; then |
| 16928 | lt_prog_compiler_pic_CXX='+Z' |
| 16929 | fi |
| 16930 | ;; |
| 16931 | aCC) |
| 16932 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16933 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16934 | case "$host_cpu" in |
| 16935 | hppa*64*|ia64*) |
| 16936 | # +Z the default |
| 16937 | ;; |
| 16938 | *) |
| 16939 | lt_prog_compiler_pic_CXX='+Z' |
| 16940 | ;; |
| 16941 | esac |
| 16942 | ;; |
| 16943 | *) |
| 16944 | ;; |
| 16945 | esac |
| 16946 | ;; |
| 16947 | irix5* | irix6* | nonstopux*) |
| 16948 | case $cc_basename in |
| 16949 | CC) |
| 16950 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16951 | lt_prog_compiler_static_CXX='-non_shared' |
| 16952 | # CC pic flag -KPIC is the default. |
| 16953 | ;; |
| 16954 | *) |
| 16955 | ;; |
| 16956 | esac |
| 16957 | ;; |
| 16958 | linux*) |
| 16959 | case $cc_basename in |
| 16960 | KCC) |
| 16961 | # KAI C++ Compiler |
| 16962 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16963 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16964 | ;; |
| 16965 | icpc) |
| 16966 | # Intel C++ |
| 16967 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16968 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16969 | lt_prog_compiler_static_CXX='-static' |
| 16970 | ;; |
| 16971 | cxx) |
| 16972 | # Compaq C++ |
| 16973 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16974 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16975 | lt_prog_compiler_pic_CXX= |
| 16976 | lt_prog_compiler_static_CXX='-non_shared' |
| 16977 | ;; |
| 16978 | *) |
| 16979 | ;; |
| 16980 | esac |
| 16981 | ;; |
| 16982 | lynxos*) |
| 16983 | ;; |
| 16984 | m88k*) |
| 16985 | ;; |
| 16986 | mvs*) |
| 16987 | case $cc_basename in |
| 16988 | cxx) |
| 16989 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16990 | ;; |
| 16991 | *) |
| 16992 | ;; |
| 16993 | esac |
| 16994 | ;; |
| 16995 | netbsd*) |
| 16996 | ;; |
| 16997 | osf3* | osf4* | osf5*) |
| 16998 | case $cc_basename in |
| 16999 | KCC) |
| 17000 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 17001 | ;; |
| 17002 | RCC) |
| 17003 | # Rational C++ 2.4.1 |
| 17004 | lt_prog_compiler_pic_CXX='-pic' |
| 17005 | ;; |
| 17006 | cxx) |
| 17007 | # Digital/Compaq C++ |
| 17008 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17009 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 17010 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 17011 | lt_prog_compiler_pic_CXX= |
| 17012 | lt_prog_compiler_static_CXX='-non_shared' |
| 17013 | ;; |
| 17014 | *) |
| 17015 | ;; |
| 17016 | esac |
| 17017 | ;; |
| 17018 | psos*) |
| 17019 | ;; |
| 17020 | sco*) |
| 17021 | case $cc_basename in |
| 17022 | CC) |
| 17023 | lt_prog_compiler_pic_CXX='-fPIC' |
| 17024 | ;; |
| 17025 | *) |
| 17026 | ;; |
| 17027 | esac |
| 17028 | ;; |
| 17029 | solaris*) |
| 17030 | case $cc_basename in |
| 17031 | CC) |
| 17032 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 17033 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17034 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17035 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 17036 | ;; |
| 17037 | gcx) |
| 17038 | # Green Hills C++ Compiler |
| 17039 | lt_prog_compiler_pic_CXX='-PIC' |
| 17040 | ;; |
| 17041 | *) |
| 17042 | ;; |
| 17043 | esac |
| 17044 | ;; |
| 17045 | sunos4*) |
| 17046 | case $cc_basename in |
| 17047 | CC) |
| 17048 | # Sun C++ 4.x |
| 17049 | lt_prog_compiler_pic_CXX='-pic' |
| 17050 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17051 | ;; |
| 17052 | lcc) |
| 17053 | # Lucid |
| 17054 | lt_prog_compiler_pic_CXX='-pic' |
| 17055 | ;; |
| 17056 | *) |
| 17057 | ;; |
| 17058 | esac |
| 17059 | ;; |
| 17060 | tandem*) |
| 17061 | case $cc_basename in |
| 17062 | NCC) |
| 17063 | # NonStop-UX NCC 3.20 |
| 17064 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17065 | ;; |
| 17066 | *) |
| 17067 | ;; |
| 17068 | esac |
| 17069 | ;; |
| 17070 | unixware*) |
| 17071 | ;; |
| 17072 | vxworks*) |
| 17073 | ;; |
| 17074 | *) |
| 17075 | lt_prog_compiler_can_build_shared_CXX=no |
| 17076 | ;; |
| 17077 | esac |
| 17078 | fi |
| 17079 | |
| 17080 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 17081 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 17082 | |
| 17083 | # |
| 17084 | # Check to make sure the PIC flag actually works. |
| 17085 | # |
| 17086 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17087 | |
| 17088 | 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] | 17089 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 17090 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 17091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17092 | else |
| 17093 | lt_prog_compiler_pic_works_CXX=no |
| 17094 | ac_outfile=conftest.$ac_objext |
| 17095 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17096 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 17097 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17098 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17099 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17100 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17101 | # The option is referenced via a variable to avoid confusing sed. |
| 17102 | lt_compile=`echo "$ac_compile" | $SED \ |
| 17103 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 17104 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17105 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 17106 | (eval echo "\"\$as_me:17106: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17107 | (eval "$lt_compile" 2>conftest.err) |
| 17108 | ac_status=$? |
| 17109 | cat conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 17110 | echo "$as_me:17110: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17111 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 17112 | # The compiler can only warn and ignore the option if not recognized |
| 17113 | # So say no if there are warnings |
| 17114 | if test ! -s conftest.err; then |
| 17115 | lt_prog_compiler_pic_works_CXX=yes |
| 17116 | fi |
| 17117 | fi |
| 17118 | $rm conftest* |
| 17119 | |
| 17120 | fi |
| 17121 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 17122 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 17123 | |
| 17124 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 17125 | case $lt_prog_compiler_pic_CXX in |
| 17126 | "" | " "*) ;; |
| 17127 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 17128 | esac |
| 17129 | else |
| 17130 | lt_prog_compiler_pic_CXX= |
| 17131 | lt_prog_compiler_can_build_shared_CXX=no |
| 17132 | fi |
| 17133 | |
| 17134 | fi |
| 17135 | case "$host_os" in |
| 17136 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 17137 | *djgpp*) |
| 17138 | lt_prog_compiler_pic_CXX= |
| 17139 | ;; |
| 17140 | *) |
| 17141 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 17142 | ;; |
| 17143 | esac |
| 17144 | |
| 17145 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17146 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 17147 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 17148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17149 | else |
| 17150 | lt_cv_prog_compiler_c_o_CXX=no |
| 17151 | $rm -r conftest 2>/dev/null |
| 17152 | mkdir conftest |
| 17153 | cd conftest |
| 17154 | mkdir out |
| 17155 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17156 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17157 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17158 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17159 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17160 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17161 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17162 | lt_compile=`echo "$ac_compile" | $SED \ |
| 17163 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 17164 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17165 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 17166 | (eval echo "\"\$as_me:17166: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17167 | (eval "$lt_compile" 2>out/conftest.err) |
| 17168 | ac_status=$? |
| 17169 | cat out/conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 17170 | echo "$as_me:17170: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17171 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17172 | then |
| 17173 | # The compiler can only warn and ignore the option if not recognized |
| 17174 | # So say no if there are warnings |
| 17175 | if test ! -s out/conftest.err; then |
| 17176 | lt_cv_prog_compiler_c_o_CXX=yes |
| 17177 | fi |
| 17178 | fi |
| 17179 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17180 | $rm conftest* |
| 17181 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17182 | # template instantiation |
| 17183 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 17184 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17185 | cd .. |
| 17186 | rmdir conftest |
| 17187 | $rm conftest* |
| 17188 | |
| 17189 | fi |
| 17190 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 17191 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 17192 | |
| 17193 | |
| 17194 | hard_links="nottested" |
| 17195 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 17196 | # do not overwrite the value of need_locks provided by the user |
| 17197 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17198 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 17199 | hard_links=yes |
| 17200 | $rm conftest* |
| 17201 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17202 | touch conftest.a |
| 17203 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17204 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17205 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17206 | echo "${ECHO_T}$hard_links" >&6 |
| 17207 | if test "$hard_links" = no; then |
| 17208 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17209 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17210 | need_locks=warn |
| 17211 | fi |
| 17212 | else |
| 17213 | need_locks=no |
| 17214 | fi |
| 17215 | |
| 17216 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17217 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 17218 | |
| 17219 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17220 | case $host_os in |
| 17221 | aix4* | aix5*) |
| 17222 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17223 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17224 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 17225 | 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' |
| 17226 | else |
| 17227 | 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' |
| 17228 | fi |
| 17229 | ;; |
| 17230 | pw32*) |
| 17231 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 17232 | ;; |
| 17233 | cygwin* | mingw*) |
| 17234 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 17235 | ;; |
| 17236 | *) |
| 17237 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17238 | ;; |
| 17239 | esac |
| 17240 | |
| 17241 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 17242 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 17243 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 17244 | |
| 17245 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17246 | if test "$GCC" = yes; then |
| 17247 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17248 | fi |
| 17249 | |
| 17250 | # |
| 17251 | # Do we need to explicitly link libc? |
| 17252 | # |
| 17253 | case "x$archive_cmds_need_lc_CXX" in |
| 17254 | x|xyes) |
| 17255 | # Assume -lc should be added |
| 17256 | archive_cmds_need_lc_CXX=yes |
| 17257 | |
| 17258 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 17259 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17260 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17261 | # FIXME: we may have to deal with multi-command sequences. |
| 17262 | ;; |
| 17263 | '$CC '*) |
| 17264 | # Test whether the compiler implicitly links with -lc since on some |
| 17265 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 17266 | # to ld, don't add -lc before -lgcc. |
| 17267 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 17268 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 17269 | $rm conftest* |
| 17270 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17271 | |
| 17272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17273 | (eval $ac_compile) 2>&5 |
| 17274 | ac_status=$? |
| 17275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17276 | (exit $ac_status); } 2>conftest.err; then |
| 17277 | soname=conftest |
| 17278 | lib=conftest |
| 17279 | libobjs=conftest.$ac_objext |
| 17280 | deplibs= |
| 17281 | wl=$lt_prog_compiler_wl_CXX |
| 17282 | compiler_flags=-v |
| 17283 | linker_flags=-v |
| 17284 | verstring= |
| 17285 | output_objdir=. |
| 17286 | libname=conftest |
| 17287 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 17288 | allow_undefined_flag_CXX= |
| 17289 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 17290 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 17291 | ac_status=$? |
| 17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17293 | (exit $ac_status); } |
| 17294 | then |
| 17295 | archive_cmds_need_lc_CXX=no |
| 17296 | else |
| 17297 | archive_cmds_need_lc_CXX=yes |
| 17298 | fi |
| 17299 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 17300 | else |
| 17301 | cat conftest.err 1>&5 |
| 17302 | fi |
| 17303 | $rm conftest* |
| 17304 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 17305 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 17306 | ;; |
| 17307 | esac |
| 17308 | fi |
| 17309 | ;; |
| 17310 | esac |
| 17311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17312 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 17313 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 17314 | library_names_spec= |
| 17315 | libname_spec='lib$name' |
| 17316 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17317 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17318 | postinstall_cmds= |
| 17319 | postuninstall_cmds= |
| 17320 | finish_cmds= |
| 17321 | finish_eval= |
| 17322 | shlibpath_var= |
| 17323 | shlibpath_overrides_runpath=unknown |
| 17324 | version_type=none |
| 17325 | dynamic_linker="$host_os ld.so" |
| 17326 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 17327 | if test "$GCC" = yes; then |
| 17328 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17329 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 17330 | # if the path contains ";" then we assume it to be the separator |
| 17331 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 17332 | # assumed that no part of a normal pathname contains ";" but that should |
| 17333 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 17334 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17335 | else |
| 17336 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17337 | fi |
| 17338 | else |
| 17339 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17340 | fi |
| 17341 | need_lib_prefix=unknown |
| 17342 | hardcode_into_libs=no |
| 17343 | |
| 17344 | # when you set need_version to no, make sure it does not cause -set_version |
| 17345 | # flags to be left without arguments |
| 17346 | need_version=unknown |
| 17347 | |
| 17348 | case $host_os in |
| 17349 | aix3*) |
| 17350 | version_type=linux |
| 17351 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 17352 | shlibpath_var=LIBPATH |
| 17353 | |
| 17354 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 17355 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17356 | ;; |
| 17357 | |
| 17358 | aix4* | aix5*) |
| 17359 | version_type=linux |
| 17360 | need_lib_prefix=no |
| 17361 | need_version=no |
| 17362 | hardcode_into_libs=yes |
| 17363 | if test "$host_cpu" = ia64; then |
| 17364 | # AIX 5 supports IA64 |
| 17365 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 17366 | shlibpath_var=LD_LIBRARY_PATH |
| 17367 | else |
| 17368 | # With GCC up to 2.95.x, collect2 would create an import file |
| 17369 | # for dependence libraries. The import file would start with |
| 17370 | # the line `#! .'. This would cause the generated library to |
| 17371 | # depend on `.', always an invalid library. This was fixed in |
| 17372 | # development snapshots of GCC prior to 3.0. |
| 17373 | case $host_os in |
| 17374 | aix4 | aix4.[01] | aix4.[01].*) |
| 17375 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 17376 | echo ' yes ' |
| 17377 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 17378 | : |
| 17379 | else |
| 17380 | can_build_shared=no |
| 17381 | fi |
| 17382 | ;; |
| 17383 | esac |
| 17384 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 17385 | # soname into executable. Probably we can add versioning support to |
| 17386 | # collect2, so additional links can be useful in future. |
| 17387 | if test "$aix_use_runtimelinking" = yes; then |
| 17388 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 17389 | # instead of lib<name>.a to let people know that these are not |
| 17390 | # typical AIX shared libraries. |
| 17391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17392 | else |
| 17393 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 17394 | # and later when we are not doing run time linking. |
| 17395 | library_names_spec='${libname}${release}.a $libname.a' |
| 17396 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17397 | fi |
| 17398 | shlibpath_var=LIBPATH |
| 17399 | fi |
| 17400 | ;; |
| 17401 | |
| 17402 | amigaos*) |
| 17403 | library_names_spec='$libname.ixlibrary $libname.a' |
| 17404 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17405 | 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] | 17406 | ;; |
| 17407 | |
| 17408 | beos*) |
| 17409 | library_names_spec='${libname}${shared_ext}' |
| 17410 | dynamic_linker="$host_os ld.so" |
| 17411 | shlibpath_var=LIBRARY_PATH |
| 17412 | ;; |
| 17413 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17414 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17415 | version_type=linux |
| 17416 | need_version=no |
| 17417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17418 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17419 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 17420 | shlibpath_var=LD_LIBRARY_PATH |
| 17421 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 17422 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 17423 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 17424 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 17425 | # libtool to hard-code these into programs |
| 17426 | ;; |
| 17427 | |
| 17428 | cygwin* | mingw* | pw32*) |
| 17429 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17430 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17431 | need_version=no |
| 17432 | need_lib_prefix=no |
| 17433 | |
| 17434 | case $GCC,$host_os in |
| 17435 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 17436 | library_names_spec='$libname.dll.a' |
| 17437 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17438 | postinstall_cmds='base_file=`basename \${file}`~ |
| 17439 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 17440 | dldir=$destdir/`dirname \$dlpath`~ |
| 17441 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17442 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17443 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 17444 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17445 | $rm \$dlpath' |
| 17446 | shlibpath_overrides_runpath=yes |
| 17447 | |
| 17448 | case $host_os in |
| 17449 | cygwin*) |
| 17450 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 17451 | 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] | 17452 | 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] | 17453 | ;; |
| 17454 | mingw*) |
| 17455 | # MinGW DLLs use traditional 'lib' prefix |
| 17456 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 17457 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17458 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 17459 | # It is most probably a Windows format PATH printed by |
| 17460 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 17461 | # path with ; separators, and with drive letters. We can handle the |
| 17462 | # drive letters (cygwin fileutils understands them), so leave them, |
| 17463 | # especially as we might pass files found there to a mingw objdump, |
| 17464 | # which wouldn't understand a cygwinified path. Ahh. |
| 17465 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17466 | else |
| 17467 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17468 | fi |
| 17469 | ;; |
| 17470 | pw32*) |
| 17471 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 17472 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 17473 | ;; |
| 17474 | esac |
| 17475 | ;; |
| 17476 | |
| 17477 | *) |
| 17478 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 17479 | ;; |
| 17480 | esac |
| 17481 | dynamic_linker='Win32 ld.exe' |
| 17482 | # FIXME: first we should search . and the directory the executable is in |
| 17483 | shlibpath_var=PATH |
| 17484 | ;; |
| 17485 | |
| 17486 | darwin* | rhapsody*) |
| 17487 | dynamic_linker="$host_os dyld" |
| 17488 | version_type=darwin |
| 17489 | need_lib_prefix=no |
| 17490 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17491 | 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] | 17492 | soname_spec='${libname}${release}${major}$shared_ext' |
| 17493 | shlibpath_overrides_runpath=yes |
| 17494 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17495 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17496 | # 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] | 17497 | if test "$GCC" = yes; then |
| 17498 | 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"` |
| 17499 | else |
| 17500 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17501 | fi |
| 17502 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17503 | ;; |
| 17504 | |
| 17505 | dgux*) |
| 17506 | version_type=linux |
| 17507 | need_lib_prefix=no |
| 17508 | need_version=no |
| 17509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 17510 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17511 | shlibpath_var=LD_LIBRARY_PATH |
| 17512 | ;; |
| 17513 | |
| 17514 | freebsd1*) |
| 17515 | dynamic_linker=no |
| 17516 | ;; |
| 17517 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17518 | kfreebsd*-gnu) |
| 17519 | version_type=linux |
| 17520 | need_lib_prefix=no |
| 17521 | need_version=no |
| 17522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17523 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17524 | shlibpath_var=LD_LIBRARY_PATH |
| 17525 | shlibpath_overrides_runpath=no |
| 17526 | hardcode_into_libs=yes |
| 17527 | dynamic_linker='GNU ld.so' |
| 17528 | ;; |
| 17529 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17530 | freebsd*) |
| 17531 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 17532 | version_type=freebsd-$objformat |
| 17533 | case $version_type in |
| 17534 | freebsd-elf*) |
| 17535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17536 | need_version=no |
| 17537 | need_lib_prefix=no |
| 17538 | ;; |
| 17539 | freebsd-*) |
| 17540 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 17541 | need_version=yes |
| 17542 | ;; |
| 17543 | esac |
| 17544 | shlibpath_var=LD_LIBRARY_PATH |
| 17545 | case $host_os in |
| 17546 | freebsd2*) |
| 17547 | shlibpath_overrides_runpath=yes |
| 17548 | ;; |
| 17549 | freebsd3.01* | freebsdelf3.01*) |
| 17550 | shlibpath_overrides_runpath=yes |
| 17551 | hardcode_into_libs=yes |
| 17552 | ;; |
| 17553 | *) # from 3.2 on |
| 17554 | shlibpath_overrides_runpath=no |
| 17555 | hardcode_into_libs=yes |
| 17556 | ;; |
| 17557 | esac |
| 17558 | ;; |
| 17559 | |
| 17560 | gnu*) |
| 17561 | version_type=linux |
| 17562 | need_lib_prefix=no |
| 17563 | need_version=no |
| 17564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17565 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17566 | shlibpath_var=LD_LIBRARY_PATH |
| 17567 | hardcode_into_libs=yes |
| 17568 | ;; |
| 17569 | |
| 17570 | hpux9* | hpux10* | hpux11*) |
| 17571 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17572 | # link against other versions. |
| 17573 | version_type=sunos |
| 17574 | need_lib_prefix=no |
| 17575 | need_version=no |
| 17576 | case "$host_cpu" in |
| 17577 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17578 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17579 | hardcode_into_libs=yes |
| 17580 | dynamic_linker="$host_os dld.so" |
| 17581 | shlibpath_var=LD_LIBRARY_PATH |
| 17582 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17584 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17585 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17586 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17587 | else |
| 17588 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17589 | fi |
| 17590 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17591 | ;; |
| 17592 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17593 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17594 | hardcode_into_libs=yes |
| 17595 | dynamic_linker="$host_os dld.sl" |
| 17596 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17597 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17599 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17600 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17601 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17602 | ;; |
| 17603 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17604 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17605 | dynamic_linker="$host_os dld.sl" |
| 17606 | shlibpath_var=SHLIB_PATH |
| 17607 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17609 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17610 | ;; |
| 17611 | esac |
| 17612 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17613 | postinstall_cmds='chmod 555 $lib' |
| 17614 | ;; |
| 17615 | |
| 17616 | irix5* | irix6* | nonstopux*) |
| 17617 | case $host_os in |
| 17618 | nonstopux*) version_type=nonstopux ;; |
| 17619 | *) |
| 17620 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17621 | version_type=linux |
| 17622 | else |
| 17623 | version_type=irix |
| 17624 | fi ;; |
| 17625 | esac |
| 17626 | need_lib_prefix=no |
| 17627 | need_version=no |
| 17628 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17630 | case $host_os in |
| 17631 | irix5* | nonstopux*) |
| 17632 | libsuff= shlibsuff= |
| 17633 | ;; |
| 17634 | *) |
| 17635 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17636 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17637 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17638 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17639 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17640 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17641 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17642 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17643 | esac |
| 17644 | ;; |
| 17645 | esac |
| 17646 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17647 | shlibpath_overrides_runpath=no |
| 17648 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17649 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17650 | hardcode_into_libs=yes |
| 17651 | ;; |
| 17652 | |
| 17653 | # No shared lib support for Linux oldld, aout, or coff. |
| 17654 | linux*oldld* | linux*aout* | linux*coff*) |
| 17655 | dynamic_linker=no |
| 17656 | ;; |
| 17657 | |
| 17658 | # This must be Linux ELF. |
| 17659 | linux*) |
| 17660 | version_type=linux |
| 17661 | need_lib_prefix=no |
| 17662 | need_version=no |
| 17663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17664 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17665 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17666 | shlibpath_var=LD_LIBRARY_PATH |
| 17667 | shlibpath_overrides_runpath=no |
| 17668 | # This implies no fast_install, which is unacceptable. |
| 17669 | # Some rework will be needed to allow for fast_install |
| 17670 | # before this can be enabled. |
| 17671 | hardcode_into_libs=yes |
| 17672 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17673 | # Append ld.so.conf contents to the search path |
| 17674 | if test -f /etc/ld.so.conf; then |
| 17675 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 17676 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17677 | fi |
| 17678 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17679 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17680 | # powerpc, because MkLinux only supported shared libraries with the |
| 17681 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17682 | # most powerpc-linux boxes support dynamic linking these days and |
| 17683 | # people can always --disable-shared, the test was removed, and we |
| 17684 | # assume the GNU/Linux dynamic linker is in use. |
| 17685 | dynamic_linker='GNU/Linux ld.so' |
| 17686 | ;; |
| 17687 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17688 | knetbsd*-gnu) |
| 17689 | version_type=linux |
| 17690 | need_lib_prefix=no |
| 17691 | need_version=no |
| 17692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17693 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17694 | shlibpath_var=LD_LIBRARY_PATH |
| 17695 | shlibpath_overrides_runpath=no |
| 17696 | hardcode_into_libs=yes |
| 17697 | dynamic_linker='GNU ld.so' |
| 17698 | ;; |
| 17699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17700 | netbsd*) |
| 17701 | version_type=sunos |
| 17702 | need_lib_prefix=no |
| 17703 | need_version=no |
| 17704 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17706 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17707 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17708 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17709 | 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] | 17710 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17711 | dynamic_linker='NetBSD ld.elf_so' |
| 17712 | fi |
| 17713 | shlibpath_var=LD_LIBRARY_PATH |
| 17714 | shlibpath_overrides_runpath=yes |
| 17715 | hardcode_into_libs=yes |
| 17716 | ;; |
| 17717 | |
| 17718 | newsos6) |
| 17719 | version_type=linux |
| 17720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17721 | shlibpath_var=LD_LIBRARY_PATH |
| 17722 | shlibpath_overrides_runpath=yes |
| 17723 | ;; |
| 17724 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17725 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17726 | version_type=linux |
| 17727 | need_lib_prefix=no |
| 17728 | need_version=no |
| 17729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17730 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17731 | shlibpath_var=LD_LIBRARY_PATH |
| 17732 | shlibpath_overrides_runpath=yes |
| 17733 | ;; |
| 17734 | |
| 17735 | openbsd*) |
| 17736 | version_type=sunos |
| 17737 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17738 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17740 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17741 | shlibpath_var=LD_LIBRARY_PATH |
| 17742 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17743 | case $host_os in |
| 17744 | openbsd2.[89] | openbsd2.[89].*) |
| 17745 | shlibpath_overrides_runpath=no |
| 17746 | ;; |
| 17747 | *) |
| 17748 | shlibpath_overrides_runpath=yes |
| 17749 | ;; |
| 17750 | esac |
| 17751 | else |
| 17752 | shlibpath_overrides_runpath=yes |
| 17753 | fi |
| 17754 | ;; |
| 17755 | |
| 17756 | os2*) |
| 17757 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17758 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17759 | need_lib_prefix=no |
| 17760 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17761 | dynamic_linker='OS/2 ld.exe' |
| 17762 | shlibpath_var=LIBPATH |
| 17763 | ;; |
| 17764 | |
| 17765 | osf3* | osf4* | osf5*) |
| 17766 | version_type=osf |
| 17767 | need_lib_prefix=no |
| 17768 | need_version=no |
| 17769 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17771 | shlibpath_var=LD_LIBRARY_PATH |
| 17772 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17773 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17774 | ;; |
| 17775 | |
| 17776 | sco3.2v5*) |
| 17777 | version_type=osf |
| 17778 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17780 | shlibpath_var=LD_LIBRARY_PATH |
| 17781 | ;; |
| 17782 | |
| 17783 | solaris*) |
| 17784 | version_type=linux |
| 17785 | need_lib_prefix=no |
| 17786 | need_version=no |
| 17787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17788 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17789 | shlibpath_var=LD_LIBRARY_PATH |
| 17790 | shlibpath_overrides_runpath=yes |
| 17791 | hardcode_into_libs=yes |
| 17792 | # ldd complains unless libraries are executable |
| 17793 | postinstall_cmds='chmod +x $lib' |
| 17794 | ;; |
| 17795 | |
| 17796 | sunos4*) |
| 17797 | version_type=sunos |
| 17798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17799 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17800 | shlibpath_var=LD_LIBRARY_PATH |
| 17801 | shlibpath_overrides_runpath=yes |
| 17802 | if test "$with_gnu_ld" = yes; then |
| 17803 | need_lib_prefix=no |
| 17804 | fi |
| 17805 | need_version=yes |
| 17806 | ;; |
| 17807 | |
| 17808 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17809 | version_type=linux |
| 17810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17812 | shlibpath_var=LD_LIBRARY_PATH |
| 17813 | case $host_vendor in |
| 17814 | sni) |
| 17815 | shlibpath_overrides_runpath=no |
| 17816 | need_lib_prefix=no |
| 17817 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17818 | runpath_var=LD_RUN_PATH |
| 17819 | ;; |
| 17820 | siemens) |
| 17821 | need_lib_prefix=no |
| 17822 | ;; |
| 17823 | motorola) |
| 17824 | need_lib_prefix=no |
| 17825 | need_version=no |
| 17826 | shlibpath_overrides_runpath=no |
| 17827 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17828 | ;; |
| 17829 | esac |
| 17830 | ;; |
| 17831 | |
| 17832 | sysv4*MP*) |
| 17833 | if test -d /usr/nec ;then |
| 17834 | version_type=linux |
| 17835 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17836 | soname_spec='$libname${shared_ext}.$major' |
| 17837 | shlibpath_var=LD_LIBRARY_PATH |
| 17838 | fi |
| 17839 | ;; |
| 17840 | |
| 17841 | uts4*) |
| 17842 | version_type=linux |
| 17843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17844 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17845 | shlibpath_var=LD_LIBRARY_PATH |
| 17846 | ;; |
| 17847 | |
| 17848 | *) |
| 17849 | dynamic_linker=no |
| 17850 | ;; |
| 17851 | esac |
| 17852 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17853 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17854 | test "$dynamic_linker" = no && can_build_shared=no |
| 17855 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17856 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17857 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17858 | hardcode_action_CXX= |
| 17859 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 17860 | test -n "$runpath_var_CXX" || \ |
| 17861 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 17862 | |
| 17863 | # We can hardcode non-existant directories. |
| 17864 | if test "$hardcode_direct_CXX" != no && |
| 17865 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17866 | # have to relink, otherwise we might link with an installed library |
| 17867 | # when we should be linking with a yet-to-be-installed one |
| 17868 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 17869 | test "$hardcode_minus_L_CXX" != no; then |
| 17870 | # Linking always hardcodes the temporary library directory. |
| 17871 | hardcode_action_CXX=relink |
| 17872 | else |
| 17873 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17874 | hardcode_action_CXX=immediate |
| 17875 | fi |
| 17876 | else |
| 17877 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17878 | # directories. |
| 17879 | hardcode_action_CXX=unsupported |
| 17880 | fi |
| 17881 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 17882 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 17883 | |
| 17884 | if test "$hardcode_action_CXX" = relink; then |
| 17885 | # Fast installation is not supported |
| 17886 | enable_fast_install=no |
| 17887 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17888 | test "$enable_shared" = no; then |
| 17889 | # Fast installation is not necessary |
| 17890 | enable_fast_install=needless |
| 17891 | fi |
| 17892 | |
| 17893 | striplib= |
| 17894 | old_striplib= |
| 17895 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17896 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 17897 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17898 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17899 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17900 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17901 | echo "${ECHO_T}yes" >&6 |
| 17902 | else |
| 17903 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17904 | case $host_os in |
| 17905 | darwin*) |
| 17906 | if test -n "$STRIP" ; then |
| 17907 | striplib="$STRIP -x" |
| 17908 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17909 | echo "${ECHO_T}yes" >&6 |
| 17910 | else |
| 17911 | echo "$as_me:$LINENO: result: no" >&5 |
| 17912 | echo "${ECHO_T}no" >&6 |
| 17913 | fi |
| 17914 | ;; |
| 17915 | *) |
| 17916 | echo "$as_me:$LINENO: result: no" >&5 |
| 17917 | echo "${ECHO_T}no" >&6 |
| 17918 | ;; |
| 17919 | esac |
| 17920 | fi |
| 17921 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17922 | if test "x$enable_dlopen" != xyes; then |
| 17923 | enable_dlopen=unknown |
| 17924 | enable_dlopen_self=unknown |
| 17925 | enable_dlopen_self_static=unknown |
| 17926 | else |
| 17927 | lt_cv_dlopen=no |
| 17928 | lt_cv_dlopen_libs= |
| 17929 | |
| 17930 | case $host_os in |
| 17931 | beos*) |
| 17932 | lt_cv_dlopen="load_add_on" |
| 17933 | lt_cv_dlopen_libs= |
| 17934 | lt_cv_dlopen_self=yes |
| 17935 | ;; |
| 17936 | |
| 17937 | mingw* | pw32*) |
| 17938 | lt_cv_dlopen="LoadLibrary" |
| 17939 | lt_cv_dlopen_libs= |
| 17940 | ;; |
| 17941 | |
| 17942 | cygwin*) |
| 17943 | lt_cv_dlopen="dlopen" |
| 17944 | lt_cv_dlopen_libs= |
| 17945 | ;; |
| 17946 | |
| 17947 | darwin*) |
| 17948 | # if libdl is installed we need to link against it |
| 17949 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17950 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17951 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17953 | else |
| 17954 | ac_check_lib_save_LIBS=$LIBS |
| 17955 | LIBS="-ldl $LIBS" |
| 17956 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17957 | /* confdefs.h. */ |
| 17958 | _ACEOF |
| 17959 | cat confdefs.h >>conftest.$ac_ext |
| 17960 | cat >>conftest.$ac_ext <<_ACEOF |
| 17961 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17962 | |
| 17963 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17964 | #ifdef __cplusplus |
| 17965 | extern "C" |
| 17966 | #endif |
| 17967 | /* We use char because int might match the return type of a gcc2 |
| 17968 | builtin and then its argument prototype would still apply. */ |
| 17969 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17970 | int |
| 17971 | main () |
| 17972 | { |
| 17973 | dlopen (); |
| 17974 | ; |
| 17975 | return 0; |
| 17976 | } |
| 17977 | _ACEOF |
| 17978 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17980 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17981 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17983 | rm -f conftest.er1 |
| 17984 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17986 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17987 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17988 | || test ! -s conftest.err' |
| 17989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17990 | (eval $ac_try) 2>&5 |
| 17991 | ac_status=$? |
| 17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17993 | (exit $ac_status); }; } && |
| 17994 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17996 | (eval $ac_try) 2>&5 |
| 17997 | ac_status=$? |
| 17998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17999 | (exit $ac_status); }; }; then |
| 18000 | ac_cv_lib_dl_dlopen=yes |
| 18001 | else |
| 18002 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18004 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18005 | ac_cv_lib_dl_dlopen=no |
| 18006 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18007 | rm -f conftest.err conftest.$ac_objext \ |
| 18008 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18009 | LIBS=$ac_check_lib_save_LIBS |
| 18010 | fi |
| 18011 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18012 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 18013 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 18014 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 18015 | else |
| 18016 | |
| 18017 | lt_cv_dlopen="dyld" |
| 18018 | lt_cv_dlopen_libs= |
| 18019 | lt_cv_dlopen_self=yes |
| 18020 | |
| 18021 | fi |
| 18022 | |
| 18023 | ;; |
| 18024 | |
| 18025 | *) |
| 18026 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 18027 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 18028 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 18029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18030 | else |
| 18031 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18032 | /* confdefs.h. */ |
| 18033 | _ACEOF |
| 18034 | cat confdefs.h >>conftest.$ac_ext |
| 18035 | cat >>conftest.$ac_ext <<_ACEOF |
| 18036 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18037 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 18038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18039 | #define shl_load innocuous_shl_load |
| 18040 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18041 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18042 | which can conflict with char shl_load (); below. |
| 18043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18044 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18045 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18046 | #ifdef __STDC__ |
| 18047 | # include <limits.h> |
| 18048 | #else |
| 18049 | # include <assert.h> |
| 18050 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18051 | |
| 18052 | #undef shl_load |
| 18053 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18054 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18055 | #ifdef __cplusplus |
| 18056 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18057 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18058 | #endif |
| 18059 | /* We use char because int might match the return type of a gcc2 |
| 18060 | builtin and then its argument prototype would still apply. */ |
| 18061 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18062 | /* The GNU C library defines this for functions which it implements |
| 18063 | to always fail with ENOSYS. Some functions are actually named |
| 18064 | something starting with __ and the normal name is an alias. */ |
| 18065 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 18066 | choke me |
| 18067 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18068 | char (*f) () = shl_load; |
| 18069 | #endif |
| 18070 | #ifdef __cplusplus |
| 18071 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18072 | #endif |
| 18073 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18074 | int |
| 18075 | main () |
| 18076 | { |
| 18077 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18078 | ; |
| 18079 | return 0; |
| 18080 | } |
| 18081 | _ACEOF |
| 18082 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18084 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18085 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18087 | rm -f conftest.er1 |
| 18088 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18090 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18091 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18092 | || test ! -s conftest.err' |
| 18093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18094 | (eval $ac_try) 2>&5 |
| 18095 | ac_status=$? |
| 18096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18097 | (exit $ac_status); }; } && |
| 18098 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18100 | (eval $ac_try) 2>&5 |
| 18101 | ac_status=$? |
| 18102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18103 | (exit $ac_status); }; }; then |
| 18104 | ac_cv_func_shl_load=yes |
| 18105 | else |
| 18106 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18108 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18109 | ac_cv_func_shl_load=no |
| 18110 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18111 | rm -f conftest.err conftest.$ac_objext \ |
| 18112 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18113 | fi |
| 18114 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 18115 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 18116 | if test $ac_cv_func_shl_load = yes; then |
| 18117 | lt_cv_dlopen="shl_load" |
| 18118 | else |
| 18119 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 18120 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 18121 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 18122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18123 | else |
| 18124 | ac_check_lib_save_LIBS=$LIBS |
| 18125 | LIBS="-ldld $LIBS" |
| 18126 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18127 | /* confdefs.h. */ |
| 18128 | _ACEOF |
| 18129 | cat confdefs.h >>conftest.$ac_ext |
| 18130 | cat >>conftest.$ac_ext <<_ACEOF |
| 18131 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18132 | |
| 18133 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18134 | #ifdef __cplusplus |
| 18135 | extern "C" |
| 18136 | #endif |
| 18137 | /* We use char because int might match the return type of a gcc2 |
| 18138 | builtin and then its argument prototype would still apply. */ |
| 18139 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18140 | int |
| 18141 | main () |
| 18142 | { |
| 18143 | shl_load (); |
| 18144 | ; |
| 18145 | return 0; |
| 18146 | } |
| 18147 | _ACEOF |
| 18148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18150 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18151 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18153 | rm -f conftest.er1 |
| 18154 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18156 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18157 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18158 | || test ! -s conftest.err' |
| 18159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18160 | (eval $ac_try) 2>&5 |
| 18161 | ac_status=$? |
| 18162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18163 | (exit $ac_status); }; } && |
| 18164 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18166 | (eval $ac_try) 2>&5 |
| 18167 | ac_status=$? |
| 18168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18169 | (exit $ac_status); }; }; then |
| 18170 | ac_cv_lib_dld_shl_load=yes |
| 18171 | else |
| 18172 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18174 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18175 | ac_cv_lib_dld_shl_load=no |
| 18176 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18177 | rm -f conftest.err conftest.$ac_objext \ |
| 18178 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18179 | LIBS=$ac_check_lib_save_LIBS |
| 18180 | fi |
| 18181 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 18182 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 18183 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 18184 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 18185 | else |
| 18186 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 18187 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 18188 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 18189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18190 | else |
| 18191 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18192 | /* confdefs.h. */ |
| 18193 | _ACEOF |
| 18194 | cat confdefs.h >>conftest.$ac_ext |
| 18195 | cat >>conftest.$ac_ext <<_ACEOF |
| 18196 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18197 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 18198 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18199 | #define dlopen innocuous_dlopen |
| 18200 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18201 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18202 | which can conflict with char dlopen (); below. |
| 18203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18204 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18205 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18206 | #ifdef __STDC__ |
| 18207 | # include <limits.h> |
| 18208 | #else |
| 18209 | # include <assert.h> |
| 18210 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18211 | |
| 18212 | #undef dlopen |
| 18213 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18214 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18215 | #ifdef __cplusplus |
| 18216 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18217 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18218 | #endif |
| 18219 | /* We use char because int might match the return type of a gcc2 |
| 18220 | builtin and then its argument prototype would still apply. */ |
| 18221 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18222 | /* The GNU C library defines this for functions which it implements |
| 18223 | to always fail with ENOSYS. Some functions are actually named |
| 18224 | something starting with __ and the normal name is an alias. */ |
| 18225 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 18226 | choke me |
| 18227 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18228 | char (*f) () = dlopen; |
| 18229 | #endif |
| 18230 | #ifdef __cplusplus |
| 18231 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18232 | #endif |
| 18233 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18234 | int |
| 18235 | main () |
| 18236 | { |
| 18237 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18238 | ; |
| 18239 | return 0; |
| 18240 | } |
| 18241 | _ACEOF |
| 18242 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18244 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18245 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18247 | rm -f conftest.er1 |
| 18248 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18250 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18251 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18252 | || test ! -s conftest.err' |
| 18253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18254 | (eval $ac_try) 2>&5 |
| 18255 | ac_status=$? |
| 18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18257 | (exit $ac_status); }; } && |
| 18258 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18260 | (eval $ac_try) 2>&5 |
| 18261 | ac_status=$? |
| 18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18263 | (exit $ac_status); }; }; then |
| 18264 | ac_cv_func_dlopen=yes |
| 18265 | else |
| 18266 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18268 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | ac_cv_func_dlopen=no |
| 18270 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18271 | rm -f conftest.err conftest.$ac_objext \ |
| 18272 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18273 | fi |
| 18274 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 18275 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 18276 | if test $ac_cv_func_dlopen = yes; then |
| 18277 | lt_cv_dlopen="dlopen" |
| 18278 | else |
| 18279 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 18280 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 18281 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 18282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18283 | else |
| 18284 | ac_check_lib_save_LIBS=$LIBS |
| 18285 | LIBS="-ldl $LIBS" |
| 18286 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18287 | /* confdefs.h. */ |
| 18288 | _ACEOF |
| 18289 | cat confdefs.h >>conftest.$ac_ext |
| 18290 | cat >>conftest.$ac_ext <<_ACEOF |
| 18291 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18292 | |
| 18293 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18294 | #ifdef __cplusplus |
| 18295 | extern "C" |
| 18296 | #endif |
| 18297 | /* We use char because int might match the return type of a gcc2 |
| 18298 | builtin and then its argument prototype would still apply. */ |
| 18299 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18300 | int |
| 18301 | main () |
| 18302 | { |
| 18303 | dlopen (); |
| 18304 | ; |
| 18305 | return 0; |
| 18306 | } |
| 18307 | _ACEOF |
| 18308 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18310 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18311 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18313 | rm -f conftest.er1 |
| 18314 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18316 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18317 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18318 | || test ! -s conftest.err' |
| 18319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18320 | (eval $ac_try) 2>&5 |
| 18321 | ac_status=$? |
| 18322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18323 | (exit $ac_status); }; } && |
| 18324 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18326 | (eval $ac_try) 2>&5 |
| 18327 | ac_status=$? |
| 18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18329 | (exit $ac_status); }; }; then |
| 18330 | ac_cv_lib_dl_dlopen=yes |
| 18331 | else |
| 18332 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18334 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18335 | ac_cv_lib_dl_dlopen=no |
| 18336 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18337 | rm -f conftest.err conftest.$ac_objext \ |
| 18338 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18339 | LIBS=$ac_check_lib_save_LIBS |
| 18340 | fi |
| 18341 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18342 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 18343 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 18344 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 18345 | else |
| 18346 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 18347 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 18348 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 18349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18350 | else |
| 18351 | ac_check_lib_save_LIBS=$LIBS |
| 18352 | LIBS="-lsvld $LIBS" |
| 18353 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18354 | /* confdefs.h. */ |
| 18355 | _ACEOF |
| 18356 | cat confdefs.h >>conftest.$ac_ext |
| 18357 | cat >>conftest.$ac_ext <<_ACEOF |
| 18358 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18359 | |
| 18360 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18361 | #ifdef __cplusplus |
| 18362 | extern "C" |
| 18363 | #endif |
| 18364 | /* We use char because int might match the return type of a gcc2 |
| 18365 | builtin and then its argument prototype would still apply. */ |
| 18366 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18367 | int |
| 18368 | main () |
| 18369 | { |
| 18370 | dlopen (); |
| 18371 | ; |
| 18372 | return 0; |
| 18373 | } |
| 18374 | _ACEOF |
| 18375 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18377 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18378 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18380 | rm -f conftest.er1 |
| 18381 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18383 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18384 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18385 | || test ! -s conftest.err' |
| 18386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18387 | (eval $ac_try) 2>&5 |
| 18388 | ac_status=$? |
| 18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18390 | (exit $ac_status); }; } && |
| 18391 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18393 | (eval $ac_try) 2>&5 |
| 18394 | ac_status=$? |
| 18395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18396 | (exit $ac_status); }; }; then |
| 18397 | ac_cv_lib_svld_dlopen=yes |
| 18398 | else |
| 18399 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18401 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18402 | ac_cv_lib_svld_dlopen=no |
| 18403 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18404 | rm -f conftest.err conftest.$ac_objext \ |
| 18405 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18406 | LIBS=$ac_check_lib_save_LIBS |
| 18407 | fi |
| 18408 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 18409 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 18410 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 18411 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 18412 | else |
| 18413 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 18414 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 18415 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 18416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18417 | else |
| 18418 | ac_check_lib_save_LIBS=$LIBS |
| 18419 | LIBS="-ldld $LIBS" |
| 18420 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18421 | /* confdefs.h. */ |
| 18422 | _ACEOF |
| 18423 | cat confdefs.h >>conftest.$ac_ext |
| 18424 | cat >>conftest.$ac_ext <<_ACEOF |
| 18425 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18426 | |
| 18427 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18428 | #ifdef __cplusplus |
| 18429 | extern "C" |
| 18430 | #endif |
| 18431 | /* We use char because int might match the return type of a gcc2 |
| 18432 | builtin and then its argument prototype would still apply. */ |
| 18433 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18434 | int |
| 18435 | main () |
| 18436 | { |
| 18437 | dld_link (); |
| 18438 | ; |
| 18439 | return 0; |
| 18440 | } |
| 18441 | _ACEOF |
| 18442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18444 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18445 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18447 | rm -f conftest.er1 |
| 18448 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18450 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18451 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18452 | || test ! -s conftest.err' |
| 18453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18454 | (eval $ac_try) 2>&5 |
| 18455 | ac_status=$? |
| 18456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18457 | (exit $ac_status); }; } && |
| 18458 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18460 | (eval $ac_try) 2>&5 |
| 18461 | ac_status=$? |
| 18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18463 | (exit $ac_status); }; }; then |
| 18464 | ac_cv_lib_dld_dld_link=yes |
| 18465 | else |
| 18466 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18468 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18469 | ac_cv_lib_dld_dld_link=no |
| 18470 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18471 | rm -f conftest.err conftest.$ac_objext \ |
| 18472 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18473 | LIBS=$ac_check_lib_save_LIBS |
| 18474 | fi |
| 18475 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 18476 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 18477 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 18478 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 18479 | fi |
| 18480 | |
| 18481 | |
| 18482 | fi |
| 18483 | |
| 18484 | |
| 18485 | fi |
| 18486 | |
| 18487 | |
| 18488 | fi |
| 18489 | |
| 18490 | |
| 18491 | fi |
| 18492 | |
| 18493 | |
| 18494 | fi |
| 18495 | |
| 18496 | ;; |
| 18497 | esac |
| 18498 | |
| 18499 | if test "x$lt_cv_dlopen" != xno; then |
| 18500 | enable_dlopen=yes |
| 18501 | else |
| 18502 | enable_dlopen=no |
| 18503 | fi |
| 18504 | |
| 18505 | case $lt_cv_dlopen in |
| 18506 | dlopen) |
| 18507 | save_CPPFLAGS="$CPPFLAGS" |
| 18508 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 18509 | |
| 18510 | save_LDFLAGS="$LDFLAGS" |
| 18511 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 18512 | |
| 18513 | save_LIBS="$LIBS" |
| 18514 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 18515 | |
| 18516 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 18517 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 18518 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 18519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18520 | else |
| 18521 | if test "$cross_compiling" = yes; then : |
| 18522 | lt_cv_dlopen_self=cross |
| 18523 | else |
| 18524 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18525 | lt_status=$lt_dlunknown |
| 18526 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 18527 | #line 18527 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18528 | #include "confdefs.h" |
| 18529 | |
| 18530 | #if HAVE_DLFCN_H |
| 18531 | #include <dlfcn.h> |
| 18532 | #endif |
| 18533 | |
| 18534 | #include <stdio.h> |
| 18535 | |
| 18536 | #ifdef RTLD_GLOBAL |
| 18537 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18538 | #else |
| 18539 | # ifdef DL_GLOBAL |
| 18540 | # define LT_DLGLOBAL DL_GLOBAL |
| 18541 | # else |
| 18542 | # define LT_DLGLOBAL 0 |
| 18543 | # endif |
| 18544 | #endif |
| 18545 | |
| 18546 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18547 | find out it does not work in some platform. */ |
| 18548 | #ifndef LT_DLLAZY_OR_NOW |
| 18549 | # ifdef RTLD_LAZY |
| 18550 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18551 | # else |
| 18552 | # ifdef DL_LAZY |
| 18553 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18554 | # else |
| 18555 | # ifdef RTLD_NOW |
| 18556 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18557 | # else |
| 18558 | # ifdef DL_NOW |
| 18559 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18560 | # else |
| 18561 | # define LT_DLLAZY_OR_NOW 0 |
| 18562 | # endif |
| 18563 | # endif |
| 18564 | # endif |
| 18565 | # endif |
| 18566 | #endif |
| 18567 | |
| 18568 | #ifdef __cplusplus |
| 18569 | extern "C" void exit (int); |
| 18570 | #endif |
| 18571 | |
| 18572 | void fnord() { int i=42;} |
| 18573 | int main () |
| 18574 | { |
| 18575 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18576 | int status = $lt_dlunknown; |
| 18577 | |
| 18578 | if (self) |
| 18579 | { |
| 18580 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18581 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18582 | /* dlclose (self); */ |
| 18583 | } |
| 18584 | |
| 18585 | exit (status); |
| 18586 | } |
| 18587 | EOF |
| 18588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18589 | (eval $ac_link) 2>&5 |
| 18590 | ac_status=$? |
| 18591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18592 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18593 | (./conftest; exit; ) 2>/dev/null |
| 18594 | lt_status=$? |
| 18595 | case x$lt_status in |
| 18596 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18597 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18598 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 18599 | esac |
| 18600 | else : |
| 18601 | # compilation failed |
| 18602 | lt_cv_dlopen_self=no |
| 18603 | fi |
| 18604 | fi |
| 18605 | rm -fr conftest* |
| 18606 | |
| 18607 | |
| 18608 | fi |
| 18609 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 18610 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 18611 | |
| 18612 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 18613 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 18614 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 18615 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 18616 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 18617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18618 | else |
| 18619 | if test "$cross_compiling" = yes; then : |
| 18620 | lt_cv_dlopen_self_static=cross |
| 18621 | else |
| 18622 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18623 | lt_status=$lt_dlunknown |
| 18624 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 18625 | #line 18625 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18626 | #include "confdefs.h" |
| 18627 | |
| 18628 | #if HAVE_DLFCN_H |
| 18629 | #include <dlfcn.h> |
| 18630 | #endif |
| 18631 | |
| 18632 | #include <stdio.h> |
| 18633 | |
| 18634 | #ifdef RTLD_GLOBAL |
| 18635 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18636 | #else |
| 18637 | # ifdef DL_GLOBAL |
| 18638 | # define LT_DLGLOBAL DL_GLOBAL |
| 18639 | # else |
| 18640 | # define LT_DLGLOBAL 0 |
| 18641 | # endif |
| 18642 | #endif |
| 18643 | |
| 18644 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18645 | find out it does not work in some platform. */ |
| 18646 | #ifndef LT_DLLAZY_OR_NOW |
| 18647 | # ifdef RTLD_LAZY |
| 18648 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18649 | # else |
| 18650 | # ifdef DL_LAZY |
| 18651 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18652 | # else |
| 18653 | # ifdef RTLD_NOW |
| 18654 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18655 | # else |
| 18656 | # ifdef DL_NOW |
| 18657 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18658 | # else |
| 18659 | # define LT_DLLAZY_OR_NOW 0 |
| 18660 | # endif |
| 18661 | # endif |
| 18662 | # endif |
| 18663 | # endif |
| 18664 | #endif |
| 18665 | |
| 18666 | #ifdef __cplusplus |
| 18667 | extern "C" void exit (int); |
| 18668 | #endif |
| 18669 | |
| 18670 | void fnord() { int i=42;} |
| 18671 | int main () |
| 18672 | { |
| 18673 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18674 | int status = $lt_dlunknown; |
| 18675 | |
| 18676 | if (self) |
| 18677 | { |
| 18678 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18679 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18680 | /* dlclose (self); */ |
| 18681 | } |
| 18682 | |
| 18683 | exit (status); |
| 18684 | } |
| 18685 | EOF |
| 18686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18687 | (eval $ac_link) 2>&5 |
| 18688 | ac_status=$? |
| 18689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18690 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18691 | (./conftest; exit; ) 2>/dev/null |
| 18692 | lt_status=$? |
| 18693 | case x$lt_status in |
| 18694 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18695 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18696 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18697 | esac |
| 18698 | else : |
| 18699 | # compilation failed |
| 18700 | lt_cv_dlopen_self_static=no |
| 18701 | fi |
| 18702 | fi |
| 18703 | rm -fr conftest* |
| 18704 | |
| 18705 | |
| 18706 | fi |
| 18707 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 18708 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 18709 | fi |
| 18710 | |
| 18711 | CPPFLAGS="$save_CPPFLAGS" |
| 18712 | LDFLAGS="$save_LDFLAGS" |
| 18713 | LIBS="$save_LIBS" |
| 18714 | ;; |
| 18715 | esac |
| 18716 | |
| 18717 | case $lt_cv_dlopen_self in |
| 18718 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18719 | *) enable_dlopen_self=unknown ;; |
| 18720 | esac |
| 18721 | |
| 18722 | case $lt_cv_dlopen_self_static in |
| 18723 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18724 | *) enable_dlopen_self_static=unknown ;; |
| 18725 | esac |
| 18726 | fi |
| 18727 | |
| 18728 | |
| 18729 | # The else clause should only fire when bootstrapping the |
| 18730 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18731 | # with your package, and you will get complaints that there are |
| 18732 | # no rules to generate ltmain.sh. |
| 18733 | if test -f "$ltmain"; then |
| 18734 | # See if we are running on zsh, and set the options which allow our commands through |
| 18735 | # without removal of \ escapes. |
| 18736 | if test -n "${ZSH_VERSION+set}" ; then |
| 18737 | setopt NO_GLOB_SUBST |
| 18738 | fi |
| 18739 | # Now quote all the things that may contain metacharacters while being |
| 18740 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18741 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18742 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18743 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18744 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18745 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18746 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18747 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18748 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18749 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18750 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18751 | compiler_CXX \ |
| 18752 | CC_CXX \ |
| 18753 | LD_CXX \ |
| 18754 | lt_prog_compiler_wl_CXX \ |
| 18755 | lt_prog_compiler_pic_CXX \ |
| 18756 | lt_prog_compiler_static_CXX \ |
| 18757 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 18758 | export_dynamic_flag_spec_CXX \ |
| 18759 | thread_safe_flag_spec_CXX \ |
| 18760 | whole_archive_flag_spec_CXX \ |
| 18761 | enable_shared_with_static_runtimes_CXX \ |
| 18762 | old_archive_cmds_CXX \ |
| 18763 | old_archive_from_new_cmds_CXX \ |
| 18764 | predep_objects_CXX \ |
| 18765 | postdep_objects_CXX \ |
| 18766 | predeps_CXX \ |
| 18767 | postdeps_CXX \ |
| 18768 | compiler_lib_search_path_CXX \ |
| 18769 | archive_cmds_CXX \ |
| 18770 | archive_expsym_cmds_CXX \ |
| 18771 | postinstall_cmds_CXX \ |
| 18772 | postuninstall_cmds_CXX \ |
| 18773 | old_archive_from_expsyms_cmds_CXX \ |
| 18774 | allow_undefined_flag_CXX \ |
| 18775 | no_undefined_flag_CXX \ |
| 18776 | export_symbols_cmds_CXX \ |
| 18777 | hardcode_libdir_flag_spec_CXX \ |
| 18778 | hardcode_libdir_flag_spec_ld_CXX \ |
| 18779 | hardcode_libdir_separator_CXX \ |
| 18780 | hardcode_automatic_CXX \ |
| 18781 | module_cmds_CXX \ |
| 18782 | module_expsym_cmds_CXX \ |
| 18783 | lt_cv_prog_compiler_c_o_CXX \ |
| 18784 | exclude_expsyms_CXX \ |
| 18785 | include_expsyms_CXX; do |
| 18786 | |
| 18787 | case $var in |
| 18788 | old_archive_cmds_CXX | \ |
| 18789 | old_archive_from_new_cmds_CXX | \ |
| 18790 | archive_cmds_CXX | \ |
| 18791 | archive_expsym_cmds_CXX | \ |
| 18792 | module_cmds_CXX | \ |
| 18793 | module_expsym_cmds_CXX | \ |
| 18794 | old_archive_from_expsyms_cmds_CXX | \ |
| 18795 | export_symbols_cmds_CXX | \ |
| 18796 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18797 | postinstall_cmds | postuninstall_cmds | \ |
| 18798 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18799 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18800 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18801 | 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] | 18802 | ;; |
| 18803 | *) |
| 18804 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18805 | ;; |
| 18806 | esac |
| 18807 | done |
| 18808 | |
| 18809 | case $lt_echo in |
| 18810 | *'\$0 --fallback-echo"') |
| 18811 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18812 | ;; |
| 18813 | esac |
| 18814 | |
| 18815 | cfgfile="$ofile" |
| 18816 | |
| 18817 | cat <<__EOF__ >> "$cfgfile" |
| 18818 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18819 | |
| 18820 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18821 | |
| 18822 | # Shell to use when invoking shell scripts. |
| 18823 | SHELL=$lt_SHELL |
| 18824 | |
| 18825 | # Whether or not to build shared libraries. |
| 18826 | build_libtool_libs=$enable_shared |
| 18827 | |
| 18828 | # Whether or not to build static libraries. |
| 18829 | build_old_libs=$enable_static |
| 18830 | |
| 18831 | # Whether or not to add -lc for building shared libraries. |
| 18832 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 18833 | |
| 18834 | # Whether or not to disallow shared libs when runtime libs are static |
| 18835 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 18836 | |
| 18837 | # Whether or not to optimize for fast installation. |
| 18838 | fast_install=$enable_fast_install |
| 18839 | |
| 18840 | # The host system. |
| 18841 | host_alias=$host_alias |
| 18842 | host=$host |
| 18843 | |
| 18844 | # An echo program that does not interpret backslashes. |
| 18845 | echo=$lt_echo |
| 18846 | |
| 18847 | # The archiver. |
| 18848 | AR=$lt_AR |
| 18849 | AR_FLAGS=$lt_AR_FLAGS |
| 18850 | |
| 18851 | # A C compiler. |
| 18852 | LTCC=$lt_LTCC |
| 18853 | |
| 18854 | # A language-specific compiler. |
| 18855 | CC=$lt_compiler_CXX |
| 18856 | |
| 18857 | # Is the compiler the GNU C compiler? |
| 18858 | with_gcc=$GCC_CXX |
| 18859 | |
| 18860 | # An ERE matcher. |
| 18861 | EGREP=$lt_EGREP |
| 18862 | |
| 18863 | # The linker used to build libraries. |
| 18864 | LD=$lt_LD_CXX |
| 18865 | |
| 18866 | # Whether we need hard or soft links. |
| 18867 | LN_S=$lt_LN_S |
| 18868 | |
| 18869 | # A BSD-compatible nm program. |
| 18870 | NM=$lt_NM |
| 18871 | |
| 18872 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18873 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18874 | |
| 18875 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18876 | MAGIC_CMD=$MAGIC_CMD |
| 18877 | |
| 18878 | # Used on cygwin: DLL creation program. |
| 18879 | DLLTOOL="$DLLTOOL" |
| 18880 | |
| 18881 | # Used on cygwin: object dumper. |
| 18882 | OBJDUMP="$OBJDUMP" |
| 18883 | |
| 18884 | # Used on cygwin: assembler. |
| 18885 | AS="$AS" |
| 18886 | |
| 18887 | # The name of the directory that contains temporary libtool files. |
| 18888 | objdir=$objdir |
| 18889 | |
| 18890 | # How to create reloadable object files. |
| 18891 | reload_flag=$lt_reload_flag |
| 18892 | reload_cmds=$lt_reload_cmds |
| 18893 | |
| 18894 | # How to pass a linker flag through the compiler. |
| 18895 | wl=$lt_lt_prog_compiler_wl_CXX |
| 18896 | |
| 18897 | # Object file suffix (normally "o"). |
| 18898 | objext="$ac_objext" |
| 18899 | |
| 18900 | # Old archive suffix (normally "a"). |
| 18901 | libext="$libext" |
| 18902 | |
| 18903 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18904 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18905 | |
| 18906 | # Executable file suffix (normally ""). |
| 18907 | exeext="$exeext" |
| 18908 | |
| 18909 | # Additional compiler flags for building library objects. |
| 18910 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 18911 | pic_mode=$pic_mode |
| 18912 | |
| 18913 | # What is the maximum length of a command? |
| 18914 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18915 | |
| 18916 | # Does compiler simultaneously support -c and -o options? |
| 18917 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 18918 | |
| 18919 | # Must we lock files when doing compilation ? |
| 18920 | need_locks=$lt_need_locks |
| 18921 | |
| 18922 | # Do we need the lib prefix for modules? |
| 18923 | need_lib_prefix=$need_lib_prefix |
| 18924 | |
| 18925 | # Do we need a version for libraries? |
| 18926 | need_version=$need_version |
| 18927 | |
| 18928 | # Whether dlopen is supported. |
| 18929 | dlopen_support=$enable_dlopen |
| 18930 | |
| 18931 | # Whether dlopen of programs is supported. |
| 18932 | dlopen_self=$enable_dlopen_self |
| 18933 | |
| 18934 | # Whether dlopen of statically linked programs is supported. |
| 18935 | dlopen_self_static=$enable_dlopen_self_static |
| 18936 | |
| 18937 | # Compiler flag to prevent dynamic linking. |
| 18938 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 18939 | |
| 18940 | # Compiler flag to turn off builtin functions. |
| 18941 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 18942 | |
| 18943 | # Compiler flag to allow reflexive dlopens. |
| 18944 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 18945 | |
| 18946 | # Compiler flag to generate shared objects directly from archives. |
| 18947 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 18948 | |
| 18949 | # Compiler flag to generate thread-safe objects. |
| 18950 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 18951 | |
| 18952 | # Library versioning type. |
| 18953 | version_type=$version_type |
| 18954 | |
| 18955 | # Format of library name prefix. |
| 18956 | libname_spec=$lt_libname_spec |
| 18957 | |
| 18958 | # List of archive names. First name is the real one, the rest are links. |
| 18959 | # The last name is the one that the linker finds with -lNAME. |
| 18960 | library_names_spec=$lt_library_names_spec |
| 18961 | |
| 18962 | # The coded name of the library, if different from the real name. |
| 18963 | soname_spec=$lt_soname_spec |
| 18964 | |
| 18965 | # Commands used to build and install an old-style archive. |
| 18966 | RANLIB=$lt_RANLIB |
| 18967 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 18968 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18969 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18970 | |
| 18971 | # Create an old-style archive from a shared archive. |
| 18972 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 18973 | |
| 18974 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18975 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 18976 | |
| 18977 | # Commands used to build and install a shared archive. |
| 18978 | archive_cmds=$lt_archive_cmds_CXX |
| 18979 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 18980 | postinstall_cmds=$lt_postinstall_cmds |
| 18981 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18982 | |
| 18983 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18984 | module_cmds=$lt_module_cmds_CXX |
| 18985 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 18986 | |
| 18987 | # Commands to strip libraries. |
| 18988 | old_striplib=$lt_old_striplib |
| 18989 | striplib=$lt_striplib |
| 18990 | |
| 18991 | # Dependencies to place before the objects being linked to create a |
| 18992 | # shared library. |
| 18993 | predep_objects=$lt_predep_objects_CXX |
| 18994 | |
| 18995 | # Dependencies to place after the objects being linked to create a |
| 18996 | # shared library. |
| 18997 | postdep_objects=$lt_postdep_objects_CXX |
| 18998 | |
| 18999 | # Dependencies to place before the objects being linked to create a |
| 19000 | # shared library. |
| 19001 | predeps=$lt_predeps_CXX |
| 19002 | |
| 19003 | # Dependencies to place after the objects being linked to create a |
| 19004 | # shared library. |
| 19005 | postdeps=$lt_postdeps_CXX |
| 19006 | |
| 19007 | # The library search path used internally by the compiler when linking |
| 19008 | # a shared library. |
| 19009 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 19010 | |
| 19011 | # Method to check whether dependent libraries are shared objects. |
| 19012 | deplibs_check_method=$lt_deplibs_check_method |
| 19013 | |
| 19014 | # Command to use when deplibs_check_method == file_magic. |
| 19015 | file_magic_cmd=$lt_file_magic_cmd |
| 19016 | |
| 19017 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19018 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 19019 | |
| 19020 | # Flag that forces no undefined symbols. |
| 19021 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 19022 | |
| 19023 | # Commands used to finish a libtool library installation in a directory. |
| 19024 | finish_cmds=$lt_finish_cmds |
| 19025 | |
| 19026 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19027 | finish_eval=$lt_finish_eval |
| 19028 | |
| 19029 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19030 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19031 | |
| 19032 | # Transform the output of nm in a proper C declaration |
| 19033 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19034 | |
| 19035 | # Transform the output of nm in a C name address pair |
| 19036 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19037 | |
| 19038 | # This is the shared library runtime path variable. |
| 19039 | runpath_var=$runpath_var |
| 19040 | |
| 19041 | # This is the shared library path variable. |
| 19042 | shlibpath_var=$shlibpath_var |
| 19043 | |
| 19044 | # Is shlibpath searched before the hard-coded library search path? |
| 19045 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19046 | |
| 19047 | # How to hardcode a shared library path into an executable. |
| 19048 | hardcode_action=$hardcode_action_CXX |
| 19049 | |
| 19050 | # Whether we should hardcode library paths into libraries. |
| 19051 | hardcode_into_libs=$hardcode_into_libs |
| 19052 | |
| 19053 | # Flag to hardcode \$libdir into a binary during linking. |
| 19054 | # This must work even if \$libdir does not exist. |
| 19055 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 19056 | |
| 19057 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19058 | # a binary during linking. This must work even if \$libdir does |
| 19059 | # not exist. |
| 19060 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 19061 | |
| 19062 | # Whether we need a single -rpath flag with a separated argument. |
| 19063 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 19064 | |
| 19065 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19066 | # resulting binary. |
| 19067 | hardcode_direct=$hardcode_direct_CXX |
| 19068 | |
| 19069 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19070 | # resulting binary. |
| 19071 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 19072 | |
| 19073 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19074 | # the resulting binary. |
| 19075 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 19076 | |
| 19077 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19078 | # and all subsequent libraries and executables linked against it. |
| 19079 | hardcode_automatic=$hardcode_automatic_CXX |
| 19080 | |
| 19081 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19082 | # restored at relink time. |
| 19083 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19084 | |
| 19085 | # Whether libtool must link a program against all its dependency libraries. |
| 19086 | link_all_deplibs=$link_all_deplibs_CXX |
| 19087 | |
| 19088 | # Compile-time system search path for libraries |
| 19089 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19090 | |
| 19091 | # Run-time system search path for libraries |
| 19092 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19093 | |
| 19094 | # Fix the shell variable \$srcfile for the compiler. |
| 19095 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 19096 | |
| 19097 | # Set to yes if exported symbols are required. |
| 19098 | always_export_symbols=$always_export_symbols_CXX |
| 19099 | |
| 19100 | # The commands to list exported symbols. |
| 19101 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 19102 | |
| 19103 | # The commands to extract the exported symbol list from a shared archive. |
| 19104 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19105 | |
| 19106 | # Symbols that should not be listed in the preloaded symbols. |
| 19107 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 19108 | |
| 19109 | # Symbols that must always be exported. |
| 19110 | include_expsyms=$lt_include_expsyms_CXX |
| 19111 | |
| 19112 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19113 | |
| 19114 | __EOF__ |
| 19115 | |
| 19116 | |
| 19117 | else |
| 19118 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19119 | # `config.status --recheck' to rerun these tests and create the |
| 19120 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19121 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19122 | if test -f "$ltmain_in"; then |
| 19123 | test -f Makefile && make "$ltmain" |
| 19124 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19125 | fi |
| 19126 | |
| 19127 | |
| 19128 | ac_ext=c |
| 19129 | ac_cpp='$CPP $CPPFLAGS' |
| 19130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19133 | |
| 19134 | CC=$lt_save_CC |
| 19135 | LDCXX=$LD |
| 19136 | LD=$lt_save_LD |
| 19137 | GCC=$lt_save_GCC |
| 19138 | with_gnu_ldcxx=$with_gnu_ld |
| 19139 | with_gnu_ld=$lt_save_with_gnu_ld |
| 19140 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 19141 | lt_cv_path_LD=$lt_save_path_LD |
| 19142 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 19143 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 19144 | |
| 19145 | else |
| 19146 | tagname="" |
| 19147 | fi |
| 19148 | ;; |
| 19149 | |
| 19150 | F77) |
| 19151 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 19152 | |
| 19153 | ac_ext=f |
| 19154 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 19155 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19156 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 19157 | |
| 19158 | |
| 19159 | archive_cmds_need_lc_F77=no |
| 19160 | allow_undefined_flag_F77= |
| 19161 | always_export_symbols_F77=no |
| 19162 | archive_expsym_cmds_F77= |
| 19163 | export_dynamic_flag_spec_F77= |
| 19164 | hardcode_direct_F77=no |
| 19165 | hardcode_libdir_flag_spec_F77= |
| 19166 | hardcode_libdir_flag_spec_ld_F77= |
| 19167 | hardcode_libdir_separator_F77= |
| 19168 | hardcode_minus_L_F77=no |
| 19169 | hardcode_automatic_F77=no |
| 19170 | module_cmds_F77= |
| 19171 | module_expsym_cmds_F77= |
| 19172 | link_all_deplibs_F77=unknown |
| 19173 | old_archive_cmds_F77=$old_archive_cmds |
| 19174 | no_undefined_flag_F77= |
| 19175 | whole_archive_flag_spec_F77= |
| 19176 | enable_shared_with_static_runtimes_F77=no |
| 19177 | |
| 19178 | # Source file extension for f77 test sources. |
| 19179 | ac_ext=f |
| 19180 | |
| 19181 | # Object file extension for compiled f77 test sources. |
| 19182 | objext=o |
| 19183 | objext_F77=$objext |
| 19184 | |
| 19185 | # Code to be used in simple compile tests |
| 19186 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 19187 | |
| 19188 | # Code to be used in simple link tests |
| 19189 | lt_simple_link_test_code=" program t\n end\n" |
| 19190 | |
| 19191 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19192 | |
| 19193 | # If no C compiler was specified, use CC. |
| 19194 | LTCC=${LTCC-"$CC"} |
| 19195 | |
| 19196 | # Allow CC to be a program name with arguments. |
| 19197 | compiler=$CC |
| 19198 | |
| 19199 | |
| 19200 | # Allow CC to be a program name with arguments. |
| 19201 | lt_save_CC="$CC" |
| 19202 | CC=${F77-"f77"} |
| 19203 | compiler=$CC |
| 19204 | compiler_F77=$CC |
| 19205 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 19206 | |
| 19207 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 19208 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 19209 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 19210 | echo "${ECHO_T}$can_build_shared" >&6 |
| 19211 | |
| 19212 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 19213 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 19214 | test "$can_build_shared" = "no" && enable_shared=no |
| 19215 | |
| 19216 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 19217 | # are all built from PIC. |
| 19218 | case "$host_os" in |
| 19219 | aix3*) |
| 19220 | test "$enable_shared" = yes && enable_static=no |
| 19221 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19222 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19223 | postinstall_cmds='$RANLIB $lib' |
| 19224 | fi |
| 19225 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19226 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19227 | test "$enable_shared" = yes && enable_static=no |
| 19228 | ;; |
| 19229 | esac |
| 19230 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 19231 | echo "${ECHO_T}$enable_shared" >&6 |
| 19232 | |
| 19233 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 19234 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 19235 | # Make sure either enable_shared or enable_static is yes. |
| 19236 | test "$enable_shared" = yes || enable_static=yes |
| 19237 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 19238 | echo "${ECHO_T}$enable_static" >&6 |
| 19239 | |
| 19240 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 19241 | |
| 19242 | GCC_F77="$G77" |
| 19243 | LD_F77="$LD" |
| 19244 | |
| 19245 | lt_prog_compiler_wl_F77= |
| 19246 | lt_prog_compiler_pic_F77= |
| 19247 | lt_prog_compiler_static_F77= |
| 19248 | |
| 19249 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19250 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 19251 | |
| 19252 | if test "$GCC" = yes; then |
| 19253 | lt_prog_compiler_wl_F77='-Wl,' |
| 19254 | lt_prog_compiler_static_F77='-static' |
| 19255 | |
| 19256 | case $host_os in |
| 19257 | aix*) |
| 19258 | # All AIX code is PIC. |
| 19259 | if test "$host_cpu" = ia64; then |
| 19260 | # AIX 5 now supports IA64 processor |
| 19261 | lt_prog_compiler_static_F77='-Bstatic' |
| 19262 | fi |
| 19263 | ;; |
| 19264 | |
| 19265 | amigaos*) |
| 19266 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19267 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19268 | # like `-m68040'. |
| 19269 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 19270 | ;; |
| 19271 | |
| 19272 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19273 | # PIC is the default for these OSes. |
| 19274 | ;; |
| 19275 | |
| 19276 | mingw* | pw32* | os2*) |
| 19277 | # This hack is so that the source file can tell whether it is being |
| 19278 | # built for inclusion in a dll (and should export symbols for example). |
| 19279 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 19280 | ;; |
| 19281 | |
| 19282 | darwin* | rhapsody*) |
| 19283 | # PIC is the default on this platform |
| 19284 | # Common symbols not allowed in MH_DYLIB files |
| 19285 | lt_prog_compiler_pic_F77='-fno-common' |
| 19286 | ;; |
| 19287 | |
| 19288 | msdosdjgpp*) |
| 19289 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 19290 | # on systems that don't support them. |
| 19291 | lt_prog_compiler_can_build_shared_F77=no |
| 19292 | enable_shared=no |
| 19293 | ;; |
| 19294 | |
| 19295 | sysv4*MP*) |
| 19296 | if test -d /usr/nec; then |
| 19297 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 19298 | fi |
| 19299 | ;; |
| 19300 | |
| 19301 | hpux*) |
| 19302 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19303 | # not for PA HP-UX. |
| 19304 | case "$host_cpu" in |
| 19305 | hppa*64*|ia64*) |
| 19306 | # +Z the default |
| 19307 | ;; |
| 19308 | *) |
| 19309 | lt_prog_compiler_pic_F77='-fPIC' |
| 19310 | ;; |
| 19311 | esac |
| 19312 | ;; |
| 19313 | |
| 19314 | *) |
| 19315 | lt_prog_compiler_pic_F77='-fPIC' |
| 19316 | ;; |
| 19317 | esac |
| 19318 | else |
| 19319 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 19320 | case $host_os in |
| 19321 | aix*) |
| 19322 | lt_prog_compiler_wl_F77='-Wl,' |
| 19323 | if test "$host_cpu" = ia64; then |
| 19324 | # AIX 5 now supports IA64 processor |
| 19325 | lt_prog_compiler_static_F77='-Bstatic' |
| 19326 | else |
| 19327 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 19328 | fi |
| 19329 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19330 | darwin*) |
| 19331 | # PIC is the default on this platform |
| 19332 | # Common symbols not allowed in MH_DYLIB files |
| 19333 | case "$cc_basename" in |
| 19334 | xlc*) |
| 19335 | lt_prog_compiler_pic_F77='-qnocommon' |
| 19336 | lt_prog_compiler_wl_F77='-Wl,' |
| 19337 | ;; |
| 19338 | esac |
| 19339 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19340 | |
| 19341 | mingw* | pw32* | os2*) |
| 19342 | # This hack is so that the source file can tell whether it is being |
| 19343 | # built for inclusion in a dll (and should export symbols for example). |
| 19344 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 19345 | ;; |
| 19346 | |
| 19347 | hpux9* | hpux10* | hpux11*) |
| 19348 | lt_prog_compiler_wl_F77='-Wl,' |
| 19349 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19350 | # not for PA HP-UX. |
| 19351 | case "$host_cpu" in |
| 19352 | hppa*64*|ia64*) |
| 19353 | # +Z the default |
| 19354 | ;; |
| 19355 | *) |
| 19356 | lt_prog_compiler_pic_F77='+Z' |
| 19357 | ;; |
| 19358 | esac |
| 19359 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 19360 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 19361 | ;; |
| 19362 | |
| 19363 | irix5* | irix6* | nonstopux*) |
| 19364 | lt_prog_compiler_wl_F77='-Wl,' |
| 19365 | # PIC (with -KPIC) is the default. |
| 19366 | lt_prog_compiler_static_F77='-non_shared' |
| 19367 | ;; |
| 19368 | |
| 19369 | newsos6) |
| 19370 | lt_prog_compiler_pic_F77='-KPIC' |
| 19371 | lt_prog_compiler_static_F77='-Bstatic' |
| 19372 | ;; |
| 19373 | |
| 19374 | linux*) |
| 19375 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19376 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19377 | lt_prog_compiler_wl_F77='-Wl,' |
| 19378 | lt_prog_compiler_pic_F77='-KPIC' |
| 19379 | lt_prog_compiler_static_F77='-static' |
| 19380 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19381 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19382 | lt_prog_compiler_wl_F77='-Wl,' |
| 19383 | # All Alpha code is PIC. |
| 19384 | lt_prog_compiler_static_F77='-non_shared' |
| 19385 | ;; |
| 19386 | esac |
| 19387 | ;; |
| 19388 | |
| 19389 | osf3* | osf4* | osf5*) |
| 19390 | lt_prog_compiler_wl_F77='-Wl,' |
| 19391 | # All OSF/1 code is PIC. |
| 19392 | lt_prog_compiler_static_F77='-non_shared' |
| 19393 | ;; |
| 19394 | |
| 19395 | sco3.2v5*) |
| 19396 | lt_prog_compiler_pic_F77='-Kpic' |
| 19397 | lt_prog_compiler_static_F77='-dn' |
| 19398 | ;; |
| 19399 | |
| 19400 | solaris*) |
| 19401 | lt_prog_compiler_wl_F77='-Wl,' |
| 19402 | lt_prog_compiler_pic_F77='-KPIC' |
| 19403 | lt_prog_compiler_static_F77='-Bstatic' |
| 19404 | ;; |
| 19405 | |
| 19406 | sunos4*) |
| 19407 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 19408 | lt_prog_compiler_pic_F77='-PIC' |
| 19409 | lt_prog_compiler_static_F77='-Bstatic' |
| 19410 | ;; |
| 19411 | |
| 19412 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 19413 | lt_prog_compiler_wl_F77='-Wl,' |
| 19414 | lt_prog_compiler_pic_F77='-KPIC' |
| 19415 | lt_prog_compiler_static_F77='-Bstatic' |
| 19416 | ;; |
| 19417 | |
| 19418 | sysv4*MP*) |
| 19419 | if test -d /usr/nec ;then |
| 19420 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 19421 | lt_prog_compiler_static_F77='-Bstatic' |
| 19422 | fi |
| 19423 | ;; |
| 19424 | |
| 19425 | uts4*) |
| 19426 | lt_prog_compiler_pic_F77='-pic' |
| 19427 | lt_prog_compiler_static_F77='-Bstatic' |
| 19428 | ;; |
| 19429 | |
| 19430 | *) |
| 19431 | lt_prog_compiler_can_build_shared_F77=no |
| 19432 | ;; |
| 19433 | esac |
| 19434 | fi |
| 19435 | |
| 19436 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 19437 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 19438 | |
| 19439 | # |
| 19440 | # Check to make sure the PIC flag actually works. |
| 19441 | # |
| 19442 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19443 | |
| 19444 | 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] | 19445 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 19446 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 19447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19448 | else |
| 19449 | lt_prog_compiler_pic_works_F77=no |
| 19450 | ac_outfile=conftest.$ac_objext |
| 19451 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19452 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 19453 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19454 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19455 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19456 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19457 | # The option is referenced via a variable to avoid confusing sed. |
| 19458 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19459 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 19460 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19461 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 19462 | (eval echo "\"\$as_me:19462: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19463 | (eval "$lt_compile" 2>conftest.err) |
| 19464 | ac_status=$? |
| 19465 | cat conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 19466 | echo "$as_me:19466: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19467 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19468 | # The compiler can only warn and ignore the option if not recognized |
| 19469 | # So say no if there are warnings |
| 19470 | if test ! -s conftest.err; then |
| 19471 | lt_prog_compiler_pic_works_F77=yes |
| 19472 | fi |
| 19473 | fi |
| 19474 | $rm conftest* |
| 19475 | |
| 19476 | fi |
| 19477 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 19478 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 19479 | |
| 19480 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 19481 | case $lt_prog_compiler_pic_F77 in |
| 19482 | "" | " "*) ;; |
| 19483 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 19484 | esac |
| 19485 | else |
| 19486 | lt_prog_compiler_pic_F77= |
| 19487 | lt_prog_compiler_can_build_shared_F77=no |
| 19488 | fi |
| 19489 | |
| 19490 | fi |
| 19491 | case "$host_os" in |
| 19492 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19493 | *djgpp*) |
| 19494 | lt_prog_compiler_pic_F77= |
| 19495 | ;; |
| 19496 | *) |
| 19497 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 19498 | ;; |
| 19499 | esac |
| 19500 | |
| 19501 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19502 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 19503 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 19504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19505 | else |
| 19506 | lt_cv_prog_compiler_c_o_F77=no |
| 19507 | $rm -r conftest 2>/dev/null |
| 19508 | mkdir conftest |
| 19509 | cd conftest |
| 19510 | mkdir out |
| 19511 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19512 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19513 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19514 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19515 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19516 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19517 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19518 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19519 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 19520 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19521 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 19522 | (eval echo "\"\$as_me:19522: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19523 | (eval "$lt_compile" 2>out/conftest.err) |
| 19524 | ac_status=$? |
| 19525 | cat out/conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 19526 | echo "$as_me:19526: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19527 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19528 | then |
| 19529 | # The compiler can only warn and ignore the option if not recognized |
| 19530 | # So say no if there are warnings |
| 19531 | if test ! -s out/conftest.err; then |
| 19532 | lt_cv_prog_compiler_c_o_F77=yes |
| 19533 | fi |
| 19534 | fi |
| 19535 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19536 | $rm conftest* |
| 19537 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19538 | # template instantiation |
| 19539 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19540 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19541 | cd .. |
| 19542 | rmdir conftest |
| 19543 | $rm conftest* |
| 19544 | |
| 19545 | fi |
| 19546 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 19547 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 19548 | |
| 19549 | |
| 19550 | hard_links="nottested" |
| 19551 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 19552 | # do not overwrite the value of need_locks provided by the user |
| 19553 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19554 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 19555 | hard_links=yes |
| 19556 | $rm conftest* |
| 19557 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19558 | touch conftest.a |
| 19559 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19560 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19561 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19562 | echo "${ECHO_T}$hard_links" >&6 |
| 19563 | if test "$hard_links" = no; then |
| 19564 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19565 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19566 | need_locks=warn |
| 19567 | fi |
| 19568 | else |
| 19569 | need_locks=no |
| 19570 | fi |
| 19571 | |
| 19572 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19573 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 19574 | |
| 19575 | runpath_var= |
| 19576 | allow_undefined_flag_F77= |
| 19577 | enable_shared_with_static_runtimes_F77=no |
| 19578 | archive_cmds_F77= |
| 19579 | archive_expsym_cmds_F77= |
| 19580 | old_archive_From_new_cmds_F77= |
| 19581 | old_archive_from_expsyms_cmds_F77= |
| 19582 | export_dynamic_flag_spec_F77= |
| 19583 | whole_archive_flag_spec_F77= |
| 19584 | thread_safe_flag_spec_F77= |
| 19585 | hardcode_libdir_flag_spec_F77= |
| 19586 | hardcode_libdir_flag_spec_ld_F77= |
| 19587 | hardcode_libdir_separator_F77= |
| 19588 | hardcode_direct_F77=no |
| 19589 | hardcode_minus_L_F77=no |
| 19590 | hardcode_shlibpath_var_F77=unsupported |
| 19591 | link_all_deplibs_F77=unknown |
| 19592 | hardcode_automatic_F77=no |
| 19593 | module_cmds_F77= |
| 19594 | module_expsym_cmds_F77= |
| 19595 | always_export_symbols_F77=no |
| 19596 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19597 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 19598 | # included in the symbol list |
| 19599 | include_expsyms_F77= |
| 19600 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 19601 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 19602 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 19603 | # as well as any symbol that contains `d'. |
| 19604 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 19605 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 19606 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 19607 | # the symbol is explicitly referenced. Since portable code cannot |
| 19608 | # rely on this symbol name, it's probably fine to never include it in |
| 19609 | # preloaded symbol tables. |
| 19610 | extract_expsyms_cmds= |
| 19611 | |
| 19612 | case $host_os in |
| 19613 | cygwin* | mingw* | pw32*) |
| 19614 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 19615 | # When not using gcc, we currently assume that we are using |
| 19616 | # Microsoft Visual C++. |
| 19617 | if test "$GCC" != yes; then |
| 19618 | with_gnu_ld=no |
| 19619 | fi |
| 19620 | ;; |
| 19621 | openbsd*) |
| 19622 | with_gnu_ld=no |
| 19623 | ;; |
| 19624 | esac |
| 19625 | |
| 19626 | ld_shlibs_F77=yes |
| 19627 | if test "$with_gnu_ld" = yes; then |
| 19628 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 19629 | wlarc='${wl}' |
| 19630 | |
| 19631 | # See if GNU ld supports shared libraries. |
| 19632 | case $host_os in |
| 19633 | aix3* | aix4* | aix5*) |
| 19634 | # On AIX/PPC, the GNU linker is very broken |
| 19635 | if test "$host_cpu" != ia64; then |
| 19636 | ld_shlibs_F77=no |
| 19637 | cat <<EOF 1>&2 |
| 19638 | |
| 19639 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 19640 | *** to be unable to reliably create shared libraries on AIX. |
| 19641 | *** Therefore, libtool is disabling shared libraries support. If you |
| 19642 | *** really care for shared libraries, you may want to modify your PATH |
| 19643 | *** so that a non-GNU linker is found, and then restart. |
| 19644 | |
| 19645 | EOF |
| 19646 | fi |
| 19647 | ;; |
| 19648 | |
| 19649 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19650 | 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] | 19651 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19652 | hardcode_minus_L_F77=yes |
| 19653 | |
| 19654 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 19655 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 19656 | # to version 4, is to share data among multiple programs linked |
| 19657 | # with the same dynamic library. Since this doesn't match the |
| 19658 | # behavior of shared libraries on other platforms, we can't use |
| 19659 | # them. |
| 19660 | ld_shlibs_F77=no |
| 19661 | ;; |
| 19662 | |
| 19663 | beos*) |
| 19664 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19665 | allow_undefined_flag_F77=unsupported |
| 19666 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 19667 | # support --undefined. This deserves some investigation. FIXME |
| 19668 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19669 | else |
| 19670 | ld_shlibs_F77=no |
| 19671 | fi |
| 19672 | ;; |
| 19673 | |
| 19674 | cygwin* | mingw* | pw32*) |
| 19675 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 19676 | # as there is no search path for DLLs. |
| 19677 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19678 | allow_undefined_flag_F77=unsupported |
| 19679 | always_export_symbols_F77=no |
| 19680 | enable_shared_with_static_runtimes_F77=yes |
| 19681 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 19682 | |
| 19683 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 19684 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 19685 | # If the export-symbols file already is a .def file (1st line |
| 19686 | # is EXPORTS), use it as is; otherwise, prepend... |
| 19687 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 19688 | cp $export_symbols $output_objdir/$soname.def; |
| 19689 | else |
| 19690 | echo EXPORTS > $output_objdir/$soname.def; |
| 19691 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19692 | fi~ |
| 19693 | $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] | 19694 | else |
| 19695 | ld_shlibs=no |
| 19696 | fi |
| 19697 | ;; |
| 19698 | |
| 19699 | netbsd*) |
| 19700 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19701 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 19702 | wlarc= |
| 19703 | else |
| 19704 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19705 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19706 | fi |
| 19707 | ;; |
| 19708 | |
| 19709 | solaris* | sysv5*) |
| 19710 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 19711 | ld_shlibs_F77=no |
| 19712 | cat <<EOF 1>&2 |
| 19713 | |
| 19714 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 19715 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 19716 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 19717 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 19718 | *** your PATH or compiler configuration so that the native linker is |
| 19719 | *** used, and then restart. |
| 19720 | |
| 19721 | EOF |
| 19722 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19723 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19724 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19725 | else |
| 19726 | ld_shlibs_F77=no |
| 19727 | fi |
| 19728 | ;; |
| 19729 | |
| 19730 | sunos4*) |
| 19731 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19732 | wlarc= |
| 19733 | hardcode_direct_F77=yes |
| 19734 | hardcode_shlibpath_var_F77=no |
| 19735 | ;; |
| 19736 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19737 | linux*) |
| 19738 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19739 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19740 | archive_cmds_F77="$tmp_archive_cmds" |
| 19741 | supports_anon_versioning=no |
| 19742 | case `$LD -v 2>/dev/null` in |
| 19743 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 19744 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 19745 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 19746 | *\ 2.11.*) ;; # other 2.11 versions |
| 19747 | *) supports_anon_versioning=yes ;; |
| 19748 | esac |
| 19749 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19750 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 19751 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 19752 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19753 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 19754 | else |
| 19755 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 19756 | fi |
| 19757 | else |
| 19758 | ld_shlibs_F77=no |
| 19759 | fi |
| 19760 | ;; |
| 19761 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19762 | *) |
| 19763 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19764 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19765 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19766 | else |
| 19767 | ld_shlibs_F77=no |
| 19768 | fi |
| 19769 | ;; |
| 19770 | esac |
| 19771 | |
| 19772 | if test "$ld_shlibs_F77" = yes; then |
| 19773 | runpath_var=LD_RUN_PATH |
| 19774 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 19775 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 19776 | # ancient GNU ld didn't support --whole-archive et. al. |
| 19777 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 19778 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19779 | else |
| 19780 | whole_archive_flag_spec_F77= |
| 19781 | fi |
| 19782 | fi |
| 19783 | else |
| 19784 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 19785 | case $host_os in |
| 19786 | aix3*) |
| 19787 | allow_undefined_flag_F77=unsupported |
| 19788 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19789 | 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] | 19790 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 19791 | # are no directories specified by -L. |
| 19792 | hardcode_minus_L_F77=yes |
| 19793 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 19794 | # Neither direct hardcoding nor static linking is supported with a |
| 19795 | # broken collect2. |
| 19796 | hardcode_direct_F77=unsupported |
| 19797 | fi |
| 19798 | ;; |
| 19799 | |
| 19800 | aix4* | aix5*) |
| 19801 | if test "$host_cpu" = ia64; then |
| 19802 | # On IA64, the linker does run time linking by default, so we don't |
| 19803 | # have to do anything special. |
| 19804 | aix_use_runtimelinking=no |
| 19805 | exp_sym_flag='-Bexport' |
| 19806 | no_entry_flag="" |
| 19807 | else |
| 19808 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19809 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19810 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19811 | 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' |
| 19812 | else |
| 19813 | 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' |
| 19814 | fi |
| 19815 | aix_use_runtimelinking=no |
| 19816 | |
| 19817 | # Test if we are trying to use run time linking or normal |
| 19818 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 19819 | # need to do runtime linking. |
| 19820 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 19821 | for ld_flag in $LDFLAGS; do |
| 19822 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 19823 | aix_use_runtimelinking=yes |
| 19824 | break |
| 19825 | fi |
| 19826 | done |
| 19827 | esac |
| 19828 | |
| 19829 | exp_sym_flag='-bexport' |
| 19830 | no_entry_flag='-bnoentry' |
| 19831 | fi |
| 19832 | |
| 19833 | # When large executables or shared objects are built, AIX ld can |
| 19834 | # have problems creating the table of contents. If linking a library |
| 19835 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 19836 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 19837 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 19838 | |
| 19839 | archive_cmds_F77='' |
| 19840 | hardcode_direct_F77=yes |
| 19841 | hardcode_libdir_separator_F77=':' |
| 19842 | link_all_deplibs_F77=yes |
| 19843 | |
| 19844 | if test "$GCC" = yes; then |
| 19845 | case $host_os in aix4.012|aix4.012.*) |
| 19846 | # We only want to do this on AIX 4.2 and lower, the check |
| 19847 | # below for broken collect2 doesn't work under 4.3+ |
| 19848 | collect2name=`${CC} -print-prog-name=collect2` |
| 19849 | if test -f "$collect2name" && \ |
| 19850 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 19851 | then |
| 19852 | # We have reworked collect2 |
| 19853 | hardcode_direct_F77=yes |
| 19854 | else |
| 19855 | # We have old collect2 |
| 19856 | hardcode_direct_F77=unsupported |
| 19857 | # It fails to find uninstalled libraries when the uninstalled |
| 19858 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 19859 | # to unsupported forces relinking |
| 19860 | hardcode_minus_L_F77=yes |
| 19861 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19862 | hardcode_libdir_separator_F77= |
| 19863 | fi |
| 19864 | esac |
| 19865 | shared_flag='-shared' |
| 19866 | else |
| 19867 | # not using gcc |
| 19868 | if test "$host_cpu" = ia64; then |
| 19869 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 19870 | # chokes on -Wl,-G. The following line is correct: |
| 19871 | shared_flag='-G' |
| 19872 | else |
| 19873 | if test "$aix_use_runtimelinking" = yes; then |
| 19874 | shared_flag='${wl}-G' |
| 19875 | else |
| 19876 | shared_flag='${wl}-bM:SRE' |
| 19877 | fi |
| 19878 | fi |
| 19879 | fi |
| 19880 | |
| 19881 | # It seems that -bexpall does not export symbols beginning with |
| 19882 | # underscore (_), so it is better to generate a list of symbols to export. |
| 19883 | always_export_symbols_F77=yes |
| 19884 | if test "$aix_use_runtimelinking" = yes; then |
| 19885 | # Warning - without using the other runtime loading flags (-brtl), |
| 19886 | # -berok will link without error, but may produce a broken library. |
| 19887 | allow_undefined_flag_F77='-berok' |
| 19888 | # Determine the default libpath from the value encoded in an empty executable. |
| 19889 | cat >conftest.$ac_ext <<_ACEOF |
| 19890 | program main |
| 19891 | |
| 19892 | end |
| 19893 | _ACEOF |
| 19894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19896 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19897 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19899 | rm -f conftest.er1 |
| 19900 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19902 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19903 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19904 | || test ! -s conftest.err' |
| 19905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19906 | (eval $ac_try) 2>&5 |
| 19907 | ac_status=$? |
| 19908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19909 | (exit $ac_status); }; } && |
| 19910 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19912 | (eval $ac_try) 2>&5 |
| 19913 | ac_status=$? |
| 19914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19915 | (exit $ac_status); }; }; then |
| 19916 | |
| 19917 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19918 | }'` |
| 19919 | # Check for a 64-bit object if we didn't find anything. |
| 19920 | 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; } |
| 19921 | }'`; fi |
| 19922 | else |
| 19923 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19925 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19926 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19927 | rm -f conftest.err conftest.$ac_objext \ |
| 19928 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19929 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19930 | |
| 19931 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19932 | 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" |
| 19933 | else |
| 19934 | if test "$host_cpu" = ia64; then |
| 19935 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 19936 | allow_undefined_flag_F77="-z nodefs" |
| 19937 | 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" |
| 19938 | else |
| 19939 | # Determine the default libpath from the value encoded in an empty executable. |
| 19940 | cat >conftest.$ac_ext <<_ACEOF |
| 19941 | program main |
| 19942 | |
| 19943 | end |
| 19944 | _ACEOF |
| 19945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19947 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19948 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19950 | rm -f conftest.er1 |
| 19951 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19953 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19954 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19955 | || test ! -s conftest.err' |
| 19956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19957 | (eval $ac_try) 2>&5 |
| 19958 | ac_status=$? |
| 19959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19960 | (exit $ac_status); }; } && |
| 19961 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19963 | (eval $ac_try) 2>&5 |
| 19964 | ac_status=$? |
| 19965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19966 | (exit $ac_status); }; }; then |
| 19967 | |
| 19968 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19969 | }'` |
| 19970 | # Check for a 64-bit object if we didn't find anything. |
| 19971 | 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; } |
| 19972 | }'`; fi |
| 19973 | else |
| 19974 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19976 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19977 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19978 | rm -f conftest.err conftest.$ac_objext \ |
| 19979 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19980 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19981 | |
| 19982 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19983 | # Warning - without using the other run time loading flags, |
| 19984 | # -berok will link without error, but may produce a broken library. |
| 19985 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 19986 | allow_undefined_flag_F77=' ${wl}-berok' |
| 19987 | # -bexpall does not export symbols beginning with underscore (_) |
| 19988 | always_export_symbols_F77=yes |
| 19989 | # Exported symbols can be pulled into shared objects from archives |
| 19990 | whole_archive_flag_spec_F77=' ' |
| 19991 | archive_cmds_need_lc_F77=yes |
| 19992 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19993 | 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] | 19994 | fi |
| 19995 | fi |
| 19996 | ;; |
| 19997 | |
| 19998 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19999 | 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] | 20000 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20001 | hardcode_minus_L_F77=yes |
| 20002 | # see comment about different semantics on the GNU ld section |
| 20003 | ld_shlibs_F77=no |
| 20004 | ;; |
| 20005 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20006 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20007 | export_dynamic_flag_spec_F77=-rdynamic |
| 20008 | ;; |
| 20009 | |
| 20010 | cygwin* | mingw* | pw32*) |
| 20011 | # When not using gcc, we currently assume that we are using |
| 20012 | # Microsoft Visual C++. |
| 20013 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 20014 | # no search path for DLLs. |
| 20015 | hardcode_libdir_flag_spec_F77=' ' |
| 20016 | allow_undefined_flag_F77=unsupported |
| 20017 | # Tell ltmain to make .lib files, not .a files. |
| 20018 | libext=lib |
| 20019 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20020 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20021 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20022 | 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] | 20023 | # The linker will automatically build a .lib file if we build a DLL. |
| 20024 | old_archive_From_new_cmds_F77='true' |
| 20025 | # FIXME: Should let the user specify the lib program. |
| 20026 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 20027 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 20028 | enable_shared_with_static_runtimes_F77=yes |
| 20029 | ;; |
| 20030 | |
| 20031 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20032 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20033 | rhapsody* | darwin1.[012]) |
| 20034 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 20035 | ;; |
| 20036 | *) # Darwin 1.3 on |
| 20037 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 20038 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 20039 | else |
| 20040 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 20041 | 10.[012]) |
| 20042 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 20043 | ;; |
| 20044 | 10.*) |
| 20045 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 20046 | ;; |
| 20047 | esac |
| 20048 | fi |
| 20049 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20050 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20051 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20052 | hardcode_direct_F77=no |
| 20053 | hardcode_automatic_F77=yes |
| 20054 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20055 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20056 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20057 | if test "$GCC" = yes ; then |
| 20058 | output_verbose_link_cmd='echo' |
| 20059 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 20060 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 20061 | # 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] | 20062 | 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}' |
| 20063 | 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] | 20064 | else |
| 20065 | case "$cc_basename" in |
| 20066 | xlc*) |
| 20067 | output_verbose_link_cmd='echo' |
| 20068 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 20069 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 20070 | # 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] | 20071 | 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}' |
| 20072 | 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] | 20073 | ;; |
| 20074 | *) |
| 20075 | ld_shlibs_F77=no |
| 20076 | ;; |
| 20077 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20078 | fi |
| 20079 | ;; |
| 20080 | |
| 20081 | dgux*) |
| 20082 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20083 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20084 | hardcode_shlibpath_var_F77=no |
| 20085 | ;; |
| 20086 | |
| 20087 | freebsd1*) |
| 20088 | ld_shlibs_F77=no |
| 20089 | ;; |
| 20090 | |
| 20091 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 20092 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 20093 | # does not break anything, and helps significantly (at the cost of a little |
| 20094 | # extra space). |
| 20095 | freebsd2.2*) |
| 20096 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 20097 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 20098 | hardcode_direct_F77=yes |
| 20099 | hardcode_shlibpath_var_F77=no |
| 20100 | ;; |
| 20101 | |
| 20102 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 20103 | freebsd2*) |
| 20104 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 20105 | hardcode_direct_F77=yes |
| 20106 | hardcode_minus_L_F77=yes |
| 20107 | hardcode_shlibpath_var_F77=no |
| 20108 | ;; |
| 20109 | |
| 20110 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20111 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20112 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 20113 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 20114 | hardcode_direct_F77=yes |
| 20115 | hardcode_shlibpath_var_F77=no |
| 20116 | ;; |
| 20117 | |
| 20118 | hpux9*) |
| 20119 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20120 | 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] | 20121 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20122 | 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] | 20123 | fi |
| 20124 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 20125 | hardcode_libdir_separator_F77=: |
| 20126 | hardcode_direct_F77=yes |
| 20127 | |
| 20128 | # hardcode_minus_L: Not really in the search PATH, |
| 20129 | # but as the default location of the library. |
| 20130 | hardcode_minus_L_F77=yes |
| 20131 | export_dynamic_flag_spec_F77='${wl}-E' |
| 20132 | ;; |
| 20133 | |
| 20134 | hpux10* | hpux11*) |
| 20135 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 20136 | case "$host_cpu" in |
| 20137 | hppa*64*|ia64*) |
| 20138 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 20139 | ;; |
| 20140 | *) |
| 20141 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 20142 | ;; |
| 20143 | esac |
| 20144 | else |
| 20145 | case "$host_cpu" in |
| 20146 | hppa*64*|ia64*) |
| 20147 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20148 | ;; |
| 20149 | *) |
| 20150 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 20151 | ;; |
| 20152 | esac |
| 20153 | fi |
| 20154 | if test "$with_gnu_ld" = no; then |
| 20155 | case "$host_cpu" in |
| 20156 | hppa*64*) |
| 20157 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 20158 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 20159 | hardcode_libdir_separator_F77=: |
| 20160 | hardcode_direct_F77=no |
| 20161 | hardcode_shlibpath_var_F77=no |
| 20162 | ;; |
| 20163 | ia64*) |
| 20164 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20165 | hardcode_direct_F77=no |
| 20166 | hardcode_shlibpath_var_F77=no |
| 20167 | |
| 20168 | # hardcode_minus_L: Not really in the search PATH, |
| 20169 | # but as the default location of the library. |
| 20170 | hardcode_minus_L_F77=yes |
| 20171 | ;; |
| 20172 | *) |
| 20173 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 20174 | hardcode_libdir_separator_F77=: |
| 20175 | hardcode_direct_F77=yes |
| 20176 | export_dynamic_flag_spec_F77='${wl}-E' |
| 20177 | |
| 20178 | # hardcode_minus_L: Not really in the search PATH, |
| 20179 | # but as the default location of the library. |
| 20180 | hardcode_minus_L_F77=yes |
| 20181 | ;; |
| 20182 | esac |
| 20183 | fi |
| 20184 | ;; |
| 20185 | |
| 20186 | irix5* | irix6* | nonstopux*) |
| 20187 | if test "$GCC" = yes; then |
| 20188 | 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' |
| 20189 | else |
| 20190 | 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' |
| 20191 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 20192 | fi |
| 20193 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 20194 | hardcode_libdir_separator_F77=: |
| 20195 | link_all_deplibs_F77=yes |
| 20196 | ;; |
| 20197 | |
| 20198 | netbsd*) |
| 20199 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20200 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 20201 | else |
| 20202 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 20203 | fi |
| 20204 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 20205 | hardcode_direct_F77=yes |
| 20206 | hardcode_shlibpath_var_F77=no |
| 20207 | ;; |
| 20208 | |
| 20209 | newsos6) |
| 20210 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20211 | hardcode_direct_F77=yes |
| 20212 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 20213 | hardcode_libdir_separator_F77=: |
| 20214 | hardcode_shlibpath_var_F77=no |
| 20215 | ;; |
| 20216 | |
| 20217 | openbsd*) |
| 20218 | hardcode_direct_F77=yes |
| 20219 | hardcode_shlibpath_var_F77=no |
| 20220 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20221 | 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] | 20222 | 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] | 20223 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 20224 | export_dynamic_flag_spec_F77='${wl}-E' |
| 20225 | else |
| 20226 | case $host_os in |
| 20227 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 20228 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 20229 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 20230 | ;; |
| 20231 | *) |
| 20232 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 20233 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 20234 | ;; |
| 20235 | esac |
| 20236 | fi |
| 20237 | ;; |
| 20238 | |
| 20239 | os2*) |
| 20240 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20241 | hardcode_minus_L_F77=yes |
| 20242 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20243 | 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] | 20244 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 20245 | ;; |
| 20246 | |
| 20247 | osf3*) |
| 20248 | if test "$GCC" = yes; then |
| 20249 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 20250 | 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' |
| 20251 | else |
| 20252 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 20253 | 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' |
| 20254 | fi |
| 20255 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 20256 | hardcode_libdir_separator_F77=: |
| 20257 | ;; |
| 20258 | |
| 20259 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 20260 | if test "$GCC" = yes; then |
| 20261 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 20262 | 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' |
| 20263 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 20264 | else |
| 20265 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 20266 | 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] | 20267 | 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~ |
| 20268 | $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' |
| 20269 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20270 | # Both c and cxx compiler support -rpath directly |
| 20271 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 20272 | fi |
| 20273 | hardcode_libdir_separator_F77=: |
| 20274 | ;; |
| 20275 | |
| 20276 | sco3.2v5*) |
| 20277 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20278 | hardcode_shlibpath_var_F77=no |
| 20279 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 20280 | runpath_var=LD_RUN_PATH |
| 20281 | hardcode_runpath_var=yes |
| 20282 | ;; |
| 20283 | |
| 20284 | solaris*) |
| 20285 | no_undefined_flag_F77=' -z text' |
| 20286 | if test "$GCC" = yes; then |
| 20287 | 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] | 20288 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 20289 | $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] | 20290 | else |
| 20291 | 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] | 20292 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 20293 | $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] | 20294 | fi |
| 20295 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 20296 | hardcode_shlibpath_var_F77=no |
| 20297 | case $host_os in |
| 20298 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 20299 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 20300 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 20301 | esac |
| 20302 | link_all_deplibs_F77=yes |
| 20303 | ;; |
| 20304 | |
| 20305 | sunos4*) |
| 20306 | if test "x$host_vendor" = xsequent; then |
| 20307 | # Use $CC to link under sequent, because it throws in some extra .o |
| 20308 | # files that make .init and .fini sections work. |
| 20309 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 20310 | else |
| 20311 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 20312 | fi |
| 20313 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20314 | hardcode_direct_F77=yes |
| 20315 | hardcode_minus_L_F77=yes |
| 20316 | hardcode_shlibpath_var_F77=no |
| 20317 | ;; |
| 20318 | |
| 20319 | sysv4) |
| 20320 | case $host_vendor in |
| 20321 | sni) |
| 20322 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20323 | hardcode_direct_F77=yes # is this really true??? |
| 20324 | ;; |
| 20325 | siemens) |
| 20326 | ## LD is ld it makes a PLAMLIB |
| 20327 | ## CC just makes a GrossModule. |
| 20328 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 20329 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 20330 | hardcode_direct_F77=no |
| 20331 | ;; |
| 20332 | motorola) |
| 20333 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20334 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 20335 | ;; |
| 20336 | esac |
| 20337 | runpath_var='LD_RUN_PATH' |
| 20338 | hardcode_shlibpath_var_F77=no |
| 20339 | ;; |
| 20340 | |
| 20341 | sysv4.3*) |
| 20342 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20343 | hardcode_shlibpath_var_F77=no |
| 20344 | export_dynamic_flag_spec_F77='-Bexport' |
| 20345 | ;; |
| 20346 | |
| 20347 | sysv4*MP*) |
| 20348 | if test -d /usr/nec; then |
| 20349 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20350 | hardcode_shlibpath_var_F77=no |
| 20351 | runpath_var=LD_RUN_PATH |
| 20352 | hardcode_runpath_var=yes |
| 20353 | ld_shlibs_F77=yes |
| 20354 | fi |
| 20355 | ;; |
| 20356 | |
| 20357 | sysv4.2uw2*) |
| 20358 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 20359 | hardcode_direct_F77=yes |
| 20360 | hardcode_minus_L_F77=no |
| 20361 | hardcode_shlibpath_var_F77=no |
| 20362 | hardcode_runpath_var=yes |
| 20363 | runpath_var=LD_RUN_PATH |
| 20364 | ;; |
| 20365 | |
| 20366 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 20367 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 20368 | if test "$GCC" = yes; then |
| 20369 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 20370 | else |
| 20371 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 20372 | fi |
| 20373 | runpath_var='LD_RUN_PATH' |
| 20374 | hardcode_shlibpath_var_F77=no |
| 20375 | ;; |
| 20376 | |
| 20377 | sysv5*) |
| 20378 | no_undefined_flag_F77=' -z text' |
| 20379 | # $CC -shared without GNU ld will not create a library from C++ |
| 20380 | # object files and a static libstdc++, better avoid it by now |
| 20381 | 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] | 20382 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 20383 | $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] | 20384 | hardcode_libdir_flag_spec_F77= |
| 20385 | hardcode_shlibpath_var_F77=no |
| 20386 | runpath_var='LD_RUN_PATH' |
| 20387 | ;; |
| 20388 | |
| 20389 | uts4*) |
| 20390 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20391 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20392 | hardcode_shlibpath_var_F77=no |
| 20393 | ;; |
| 20394 | |
| 20395 | *) |
| 20396 | ld_shlibs_F77=no |
| 20397 | ;; |
| 20398 | esac |
| 20399 | fi |
| 20400 | |
| 20401 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 20402 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 20403 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 20404 | |
| 20405 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20406 | if test "$GCC" = yes; then |
| 20407 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20408 | fi |
| 20409 | |
| 20410 | # |
| 20411 | # Do we need to explicitly link libc? |
| 20412 | # |
| 20413 | case "x$archive_cmds_need_lc_F77" in |
| 20414 | x|xyes) |
| 20415 | # Assume -lc should be added |
| 20416 | archive_cmds_need_lc_F77=yes |
| 20417 | |
| 20418 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20419 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20420 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20421 | # FIXME: we may have to deal with multi-command sequences. |
| 20422 | ;; |
| 20423 | '$CC '*) |
| 20424 | # Test whether the compiler implicitly links with -lc since on some |
| 20425 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20426 | # to ld, don't add -lc before -lgcc. |
| 20427 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20428 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 20429 | $rm conftest* |
| 20430 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20431 | |
| 20432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20433 | (eval $ac_compile) 2>&5 |
| 20434 | ac_status=$? |
| 20435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20436 | (exit $ac_status); } 2>conftest.err; then |
| 20437 | soname=conftest |
| 20438 | lib=conftest |
| 20439 | libobjs=conftest.$ac_objext |
| 20440 | deplibs= |
| 20441 | wl=$lt_prog_compiler_wl_F77 |
| 20442 | compiler_flags=-v |
| 20443 | linker_flags=-v |
| 20444 | verstring= |
| 20445 | output_objdir=. |
| 20446 | libname=conftest |
| 20447 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 20448 | allow_undefined_flag_F77= |
| 20449 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20450 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20451 | ac_status=$? |
| 20452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20453 | (exit $ac_status); } |
| 20454 | then |
| 20455 | archive_cmds_need_lc_F77=no |
| 20456 | else |
| 20457 | archive_cmds_need_lc_F77=yes |
| 20458 | fi |
| 20459 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 20460 | else |
| 20461 | cat conftest.err 1>&5 |
| 20462 | fi |
| 20463 | $rm conftest* |
| 20464 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 20465 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 20466 | ;; |
| 20467 | esac |
| 20468 | fi |
| 20469 | ;; |
| 20470 | esac |
| 20471 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20472 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20473 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 20474 | library_names_spec= |
| 20475 | libname_spec='lib$name' |
| 20476 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20477 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20478 | postinstall_cmds= |
| 20479 | postuninstall_cmds= |
| 20480 | finish_cmds= |
| 20481 | finish_eval= |
| 20482 | shlibpath_var= |
| 20483 | shlibpath_overrides_runpath=unknown |
| 20484 | version_type=none |
| 20485 | dynamic_linker="$host_os ld.so" |
| 20486 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20487 | if test "$GCC" = yes; then |
| 20488 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20489 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20490 | # if the path contains ";" then we assume it to be the separator |
| 20491 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20492 | # assumed that no part of a normal pathname contains ";" but that should |
| 20493 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20494 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20495 | else |
| 20496 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20497 | fi |
| 20498 | else |
| 20499 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20500 | fi |
| 20501 | need_lib_prefix=unknown |
| 20502 | hardcode_into_libs=no |
| 20503 | |
| 20504 | # when you set need_version to no, make sure it does not cause -set_version |
| 20505 | # flags to be left without arguments |
| 20506 | need_version=unknown |
| 20507 | |
| 20508 | case $host_os in |
| 20509 | aix3*) |
| 20510 | version_type=linux |
| 20511 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20512 | shlibpath_var=LIBPATH |
| 20513 | |
| 20514 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20515 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20516 | ;; |
| 20517 | |
| 20518 | aix4* | aix5*) |
| 20519 | version_type=linux |
| 20520 | need_lib_prefix=no |
| 20521 | need_version=no |
| 20522 | hardcode_into_libs=yes |
| 20523 | if test "$host_cpu" = ia64; then |
| 20524 | # AIX 5 supports IA64 |
| 20525 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20526 | shlibpath_var=LD_LIBRARY_PATH |
| 20527 | else |
| 20528 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20529 | # for dependence libraries. The import file would start with |
| 20530 | # the line `#! .'. This would cause the generated library to |
| 20531 | # depend on `.', always an invalid library. This was fixed in |
| 20532 | # development snapshots of GCC prior to 3.0. |
| 20533 | case $host_os in |
| 20534 | aix4 | aix4.[01] | aix4.[01].*) |
| 20535 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20536 | echo ' yes ' |
| 20537 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20538 | : |
| 20539 | else |
| 20540 | can_build_shared=no |
| 20541 | fi |
| 20542 | ;; |
| 20543 | esac |
| 20544 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20545 | # soname into executable. Probably we can add versioning support to |
| 20546 | # collect2, so additional links can be useful in future. |
| 20547 | if test "$aix_use_runtimelinking" = yes; then |
| 20548 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20549 | # instead of lib<name>.a to let people know that these are not |
| 20550 | # typical AIX shared libraries. |
| 20551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20552 | else |
| 20553 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20554 | # and later when we are not doing run time linking. |
| 20555 | library_names_spec='${libname}${release}.a $libname.a' |
| 20556 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20557 | fi |
| 20558 | shlibpath_var=LIBPATH |
| 20559 | fi |
| 20560 | ;; |
| 20561 | |
| 20562 | amigaos*) |
| 20563 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20564 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20565 | 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] | 20566 | ;; |
| 20567 | |
| 20568 | beos*) |
| 20569 | library_names_spec='${libname}${shared_ext}' |
| 20570 | dynamic_linker="$host_os ld.so" |
| 20571 | shlibpath_var=LIBRARY_PATH |
| 20572 | ;; |
| 20573 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20574 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20575 | version_type=linux |
| 20576 | need_version=no |
| 20577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20578 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20579 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20580 | shlibpath_var=LD_LIBRARY_PATH |
| 20581 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20582 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20583 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20584 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20585 | # libtool to hard-code these into programs |
| 20586 | ;; |
| 20587 | |
| 20588 | cygwin* | mingw* | pw32*) |
| 20589 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20590 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20591 | need_version=no |
| 20592 | need_lib_prefix=no |
| 20593 | |
| 20594 | case $GCC,$host_os in |
| 20595 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20596 | library_names_spec='$libname.dll.a' |
| 20597 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20598 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20599 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20600 | dldir=$destdir/`dirname \$dlpath`~ |
| 20601 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20602 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20603 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20604 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20605 | $rm \$dlpath' |
| 20606 | shlibpath_overrides_runpath=yes |
| 20607 | |
| 20608 | case $host_os in |
| 20609 | cygwin*) |
| 20610 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20611 | 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] | 20612 | 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] | 20613 | ;; |
| 20614 | mingw*) |
| 20615 | # MinGW DLLs use traditional 'lib' prefix |
| 20616 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20617 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20618 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20619 | # It is most probably a Windows format PATH printed by |
| 20620 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20621 | # path with ; separators, and with drive letters. We can handle the |
| 20622 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20623 | # especially as we might pass files found there to a mingw objdump, |
| 20624 | # which wouldn't understand a cygwinified path. Ahh. |
| 20625 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20626 | else |
| 20627 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20628 | fi |
| 20629 | ;; |
| 20630 | pw32*) |
| 20631 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 20632 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 20633 | ;; |
| 20634 | esac |
| 20635 | ;; |
| 20636 | |
| 20637 | *) |
| 20638 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20639 | ;; |
| 20640 | esac |
| 20641 | dynamic_linker='Win32 ld.exe' |
| 20642 | # FIXME: first we should search . and the directory the executable is in |
| 20643 | shlibpath_var=PATH |
| 20644 | ;; |
| 20645 | |
| 20646 | darwin* | rhapsody*) |
| 20647 | dynamic_linker="$host_os dyld" |
| 20648 | version_type=darwin |
| 20649 | need_lib_prefix=no |
| 20650 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20651 | 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] | 20652 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20653 | shlibpath_overrides_runpath=yes |
| 20654 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20655 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20656 | # 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] | 20657 | if test "$GCC" = yes; then |
| 20658 | 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"` |
| 20659 | else |
| 20660 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20661 | fi |
| 20662 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20663 | ;; |
| 20664 | |
| 20665 | dgux*) |
| 20666 | version_type=linux |
| 20667 | need_lib_prefix=no |
| 20668 | need_version=no |
| 20669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20670 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20671 | shlibpath_var=LD_LIBRARY_PATH |
| 20672 | ;; |
| 20673 | |
| 20674 | freebsd1*) |
| 20675 | dynamic_linker=no |
| 20676 | ;; |
| 20677 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20678 | kfreebsd*-gnu) |
| 20679 | version_type=linux |
| 20680 | need_lib_prefix=no |
| 20681 | need_version=no |
| 20682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20684 | shlibpath_var=LD_LIBRARY_PATH |
| 20685 | shlibpath_overrides_runpath=no |
| 20686 | hardcode_into_libs=yes |
| 20687 | dynamic_linker='GNU ld.so' |
| 20688 | ;; |
| 20689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20690 | freebsd*) |
| 20691 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 20692 | version_type=freebsd-$objformat |
| 20693 | case $version_type in |
| 20694 | freebsd-elf*) |
| 20695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20696 | need_version=no |
| 20697 | need_lib_prefix=no |
| 20698 | ;; |
| 20699 | freebsd-*) |
| 20700 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20701 | need_version=yes |
| 20702 | ;; |
| 20703 | esac |
| 20704 | shlibpath_var=LD_LIBRARY_PATH |
| 20705 | case $host_os in |
| 20706 | freebsd2*) |
| 20707 | shlibpath_overrides_runpath=yes |
| 20708 | ;; |
| 20709 | freebsd3.01* | freebsdelf3.01*) |
| 20710 | shlibpath_overrides_runpath=yes |
| 20711 | hardcode_into_libs=yes |
| 20712 | ;; |
| 20713 | *) # from 3.2 on |
| 20714 | shlibpath_overrides_runpath=no |
| 20715 | hardcode_into_libs=yes |
| 20716 | ;; |
| 20717 | esac |
| 20718 | ;; |
| 20719 | |
| 20720 | gnu*) |
| 20721 | version_type=linux |
| 20722 | need_lib_prefix=no |
| 20723 | need_version=no |
| 20724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20726 | shlibpath_var=LD_LIBRARY_PATH |
| 20727 | hardcode_into_libs=yes |
| 20728 | ;; |
| 20729 | |
| 20730 | hpux9* | hpux10* | hpux11*) |
| 20731 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20732 | # link against other versions. |
| 20733 | version_type=sunos |
| 20734 | need_lib_prefix=no |
| 20735 | need_version=no |
| 20736 | case "$host_cpu" in |
| 20737 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20738 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20739 | hardcode_into_libs=yes |
| 20740 | dynamic_linker="$host_os dld.so" |
| 20741 | shlibpath_var=LD_LIBRARY_PATH |
| 20742 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20744 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20745 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20746 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20747 | else |
| 20748 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20749 | fi |
| 20750 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20751 | ;; |
| 20752 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20753 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20754 | hardcode_into_libs=yes |
| 20755 | dynamic_linker="$host_os dld.sl" |
| 20756 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20757 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20759 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20760 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20761 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20762 | ;; |
| 20763 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20764 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20765 | dynamic_linker="$host_os dld.sl" |
| 20766 | shlibpath_var=SHLIB_PATH |
| 20767 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20769 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20770 | ;; |
| 20771 | esac |
| 20772 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20773 | postinstall_cmds='chmod 555 $lib' |
| 20774 | ;; |
| 20775 | |
| 20776 | irix5* | irix6* | nonstopux*) |
| 20777 | case $host_os in |
| 20778 | nonstopux*) version_type=nonstopux ;; |
| 20779 | *) |
| 20780 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20781 | version_type=linux |
| 20782 | else |
| 20783 | version_type=irix |
| 20784 | fi ;; |
| 20785 | esac |
| 20786 | need_lib_prefix=no |
| 20787 | need_version=no |
| 20788 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20790 | case $host_os in |
| 20791 | irix5* | nonstopux*) |
| 20792 | libsuff= shlibsuff= |
| 20793 | ;; |
| 20794 | *) |
| 20795 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20796 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20797 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20798 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20799 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20800 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20801 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20802 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20803 | esac |
| 20804 | ;; |
| 20805 | esac |
| 20806 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20807 | shlibpath_overrides_runpath=no |
| 20808 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20809 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20810 | hardcode_into_libs=yes |
| 20811 | ;; |
| 20812 | |
| 20813 | # No shared lib support for Linux oldld, aout, or coff. |
| 20814 | linux*oldld* | linux*aout* | linux*coff*) |
| 20815 | dynamic_linker=no |
| 20816 | ;; |
| 20817 | |
| 20818 | # This must be Linux ELF. |
| 20819 | linux*) |
| 20820 | version_type=linux |
| 20821 | need_lib_prefix=no |
| 20822 | need_version=no |
| 20823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20824 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20825 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20826 | shlibpath_var=LD_LIBRARY_PATH |
| 20827 | shlibpath_overrides_runpath=no |
| 20828 | # This implies no fast_install, which is unacceptable. |
| 20829 | # Some rework will be needed to allow for fast_install |
| 20830 | # before this can be enabled. |
| 20831 | hardcode_into_libs=yes |
| 20832 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20833 | # Append ld.so.conf contents to the search path |
| 20834 | if test -f /etc/ld.so.conf; then |
| 20835 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 20836 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20837 | fi |
| 20838 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20839 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20840 | # powerpc, because MkLinux only supported shared libraries with the |
| 20841 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20842 | # most powerpc-linux boxes support dynamic linking these days and |
| 20843 | # people can always --disable-shared, the test was removed, and we |
| 20844 | # assume the GNU/Linux dynamic linker is in use. |
| 20845 | dynamic_linker='GNU/Linux ld.so' |
| 20846 | ;; |
| 20847 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20848 | knetbsd*-gnu) |
| 20849 | version_type=linux |
| 20850 | need_lib_prefix=no |
| 20851 | need_version=no |
| 20852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20853 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20854 | shlibpath_var=LD_LIBRARY_PATH |
| 20855 | shlibpath_overrides_runpath=no |
| 20856 | hardcode_into_libs=yes |
| 20857 | dynamic_linker='GNU ld.so' |
| 20858 | ;; |
| 20859 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20860 | netbsd*) |
| 20861 | version_type=sunos |
| 20862 | need_lib_prefix=no |
| 20863 | need_version=no |
| 20864 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20866 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20867 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20868 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20869 | 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] | 20870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20871 | dynamic_linker='NetBSD ld.elf_so' |
| 20872 | fi |
| 20873 | shlibpath_var=LD_LIBRARY_PATH |
| 20874 | shlibpath_overrides_runpath=yes |
| 20875 | hardcode_into_libs=yes |
| 20876 | ;; |
| 20877 | |
| 20878 | newsos6) |
| 20879 | version_type=linux |
| 20880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20881 | shlibpath_var=LD_LIBRARY_PATH |
| 20882 | shlibpath_overrides_runpath=yes |
| 20883 | ;; |
| 20884 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20885 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20886 | version_type=linux |
| 20887 | need_lib_prefix=no |
| 20888 | need_version=no |
| 20889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20890 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20891 | shlibpath_var=LD_LIBRARY_PATH |
| 20892 | shlibpath_overrides_runpath=yes |
| 20893 | ;; |
| 20894 | |
| 20895 | openbsd*) |
| 20896 | version_type=sunos |
| 20897 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20898 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20900 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20901 | shlibpath_var=LD_LIBRARY_PATH |
| 20902 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20903 | case $host_os in |
| 20904 | openbsd2.[89] | openbsd2.[89].*) |
| 20905 | shlibpath_overrides_runpath=no |
| 20906 | ;; |
| 20907 | *) |
| 20908 | shlibpath_overrides_runpath=yes |
| 20909 | ;; |
| 20910 | esac |
| 20911 | else |
| 20912 | shlibpath_overrides_runpath=yes |
| 20913 | fi |
| 20914 | ;; |
| 20915 | |
| 20916 | os2*) |
| 20917 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20918 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20919 | need_lib_prefix=no |
| 20920 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20921 | dynamic_linker='OS/2 ld.exe' |
| 20922 | shlibpath_var=LIBPATH |
| 20923 | ;; |
| 20924 | |
| 20925 | osf3* | osf4* | osf5*) |
| 20926 | version_type=osf |
| 20927 | need_lib_prefix=no |
| 20928 | need_version=no |
| 20929 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20931 | shlibpath_var=LD_LIBRARY_PATH |
| 20932 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20933 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20934 | ;; |
| 20935 | |
| 20936 | sco3.2v5*) |
| 20937 | version_type=osf |
| 20938 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20940 | shlibpath_var=LD_LIBRARY_PATH |
| 20941 | ;; |
| 20942 | |
| 20943 | solaris*) |
| 20944 | version_type=linux |
| 20945 | need_lib_prefix=no |
| 20946 | need_version=no |
| 20947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20948 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20949 | shlibpath_var=LD_LIBRARY_PATH |
| 20950 | shlibpath_overrides_runpath=yes |
| 20951 | hardcode_into_libs=yes |
| 20952 | # ldd complains unless libraries are executable |
| 20953 | postinstall_cmds='chmod +x $lib' |
| 20954 | ;; |
| 20955 | |
| 20956 | sunos4*) |
| 20957 | version_type=sunos |
| 20958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20959 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20960 | shlibpath_var=LD_LIBRARY_PATH |
| 20961 | shlibpath_overrides_runpath=yes |
| 20962 | if test "$with_gnu_ld" = yes; then |
| 20963 | need_lib_prefix=no |
| 20964 | fi |
| 20965 | need_version=yes |
| 20966 | ;; |
| 20967 | |
| 20968 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 20969 | version_type=linux |
| 20970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20971 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20972 | shlibpath_var=LD_LIBRARY_PATH |
| 20973 | case $host_vendor in |
| 20974 | sni) |
| 20975 | shlibpath_overrides_runpath=no |
| 20976 | need_lib_prefix=no |
| 20977 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20978 | runpath_var=LD_RUN_PATH |
| 20979 | ;; |
| 20980 | siemens) |
| 20981 | need_lib_prefix=no |
| 20982 | ;; |
| 20983 | motorola) |
| 20984 | need_lib_prefix=no |
| 20985 | need_version=no |
| 20986 | shlibpath_overrides_runpath=no |
| 20987 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20988 | ;; |
| 20989 | esac |
| 20990 | ;; |
| 20991 | |
| 20992 | sysv4*MP*) |
| 20993 | if test -d /usr/nec ;then |
| 20994 | version_type=linux |
| 20995 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20996 | soname_spec='$libname${shared_ext}.$major' |
| 20997 | shlibpath_var=LD_LIBRARY_PATH |
| 20998 | fi |
| 20999 | ;; |
| 21000 | |
| 21001 | uts4*) |
| 21002 | version_type=linux |
| 21003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21004 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21005 | shlibpath_var=LD_LIBRARY_PATH |
| 21006 | ;; |
| 21007 | |
| 21008 | *) |
| 21009 | dynamic_linker=no |
| 21010 | ;; |
| 21011 | esac |
| 21012 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 21013 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 21014 | test "$dynamic_linker" = no && can_build_shared=no |
| 21015 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21016 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 21017 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 21018 | hardcode_action_F77= |
| 21019 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 21020 | test -n "$runpath_var_F77" || \ |
| 21021 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 21022 | |
| 21023 | # We can hardcode non-existant directories. |
| 21024 | if test "$hardcode_direct_F77" != no && |
| 21025 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 21026 | # have to relink, otherwise we might link with an installed library |
| 21027 | # when we should be linking with a yet-to-be-installed one |
| 21028 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 21029 | test "$hardcode_minus_L_F77" != no; then |
| 21030 | # Linking always hardcodes the temporary library directory. |
| 21031 | hardcode_action_F77=relink |
| 21032 | else |
| 21033 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 21034 | hardcode_action_F77=immediate |
| 21035 | fi |
| 21036 | else |
| 21037 | # We cannot hardcode anything, or else we can only hardcode existing |
| 21038 | # directories. |
| 21039 | hardcode_action_F77=unsupported |
| 21040 | fi |
| 21041 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 21042 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 21043 | |
| 21044 | if test "$hardcode_action_F77" = relink; then |
| 21045 | # Fast installation is not supported |
| 21046 | enable_fast_install=no |
| 21047 | elif test "$shlibpath_overrides_runpath" = yes || |
| 21048 | test "$enable_shared" = no; then |
| 21049 | # Fast installation is not necessary |
| 21050 | enable_fast_install=needless |
| 21051 | fi |
| 21052 | |
| 21053 | striplib= |
| 21054 | old_striplib= |
| 21055 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 21056 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 21057 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 21058 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 21059 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 21060 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21061 | echo "${ECHO_T}yes" >&6 |
| 21062 | else |
| 21063 | # FIXME - insert some real tests, host_os isn't really good enough |
| 21064 | case $host_os in |
| 21065 | darwin*) |
| 21066 | if test -n "$STRIP" ; then |
| 21067 | striplib="$STRIP -x" |
| 21068 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21069 | echo "${ECHO_T}yes" >&6 |
| 21070 | else |
| 21071 | echo "$as_me:$LINENO: result: no" >&5 |
| 21072 | echo "${ECHO_T}no" >&6 |
| 21073 | fi |
| 21074 | ;; |
| 21075 | *) |
| 21076 | echo "$as_me:$LINENO: result: no" >&5 |
| 21077 | echo "${ECHO_T}no" >&6 |
| 21078 | ;; |
| 21079 | esac |
| 21080 | fi |
| 21081 | |
| 21082 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21083 | |
| 21084 | # The else clause should only fire when bootstrapping the |
| 21085 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 21086 | # with your package, and you will get complaints that there are |
| 21087 | # no rules to generate ltmain.sh. |
| 21088 | if test -f "$ltmain"; then |
| 21089 | # See if we are running on zsh, and set the options which allow our commands through |
| 21090 | # without removal of \ escapes. |
| 21091 | if test -n "${ZSH_VERSION+set}" ; then |
| 21092 | setopt NO_GLOB_SUBST |
| 21093 | fi |
| 21094 | # Now quote all the things that may contain metacharacters while being |
| 21095 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 21096 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21097 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 21098 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21099 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 21100 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 21101 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 21102 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 21103 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 21104 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 21105 | old_postinstall_cmds old_postuninstall_cmds \ |
| 21106 | compiler_F77 \ |
| 21107 | CC_F77 \ |
| 21108 | LD_F77 \ |
| 21109 | lt_prog_compiler_wl_F77 \ |
| 21110 | lt_prog_compiler_pic_F77 \ |
| 21111 | lt_prog_compiler_static_F77 \ |
| 21112 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 21113 | export_dynamic_flag_spec_F77 \ |
| 21114 | thread_safe_flag_spec_F77 \ |
| 21115 | whole_archive_flag_spec_F77 \ |
| 21116 | enable_shared_with_static_runtimes_F77 \ |
| 21117 | old_archive_cmds_F77 \ |
| 21118 | old_archive_from_new_cmds_F77 \ |
| 21119 | predep_objects_F77 \ |
| 21120 | postdep_objects_F77 \ |
| 21121 | predeps_F77 \ |
| 21122 | postdeps_F77 \ |
| 21123 | compiler_lib_search_path_F77 \ |
| 21124 | archive_cmds_F77 \ |
| 21125 | archive_expsym_cmds_F77 \ |
| 21126 | postinstall_cmds_F77 \ |
| 21127 | postuninstall_cmds_F77 \ |
| 21128 | old_archive_from_expsyms_cmds_F77 \ |
| 21129 | allow_undefined_flag_F77 \ |
| 21130 | no_undefined_flag_F77 \ |
| 21131 | export_symbols_cmds_F77 \ |
| 21132 | hardcode_libdir_flag_spec_F77 \ |
| 21133 | hardcode_libdir_flag_spec_ld_F77 \ |
| 21134 | hardcode_libdir_separator_F77 \ |
| 21135 | hardcode_automatic_F77 \ |
| 21136 | module_cmds_F77 \ |
| 21137 | module_expsym_cmds_F77 \ |
| 21138 | lt_cv_prog_compiler_c_o_F77 \ |
| 21139 | exclude_expsyms_F77 \ |
| 21140 | include_expsyms_F77; do |
| 21141 | |
| 21142 | case $var in |
| 21143 | old_archive_cmds_F77 | \ |
| 21144 | old_archive_from_new_cmds_F77 | \ |
| 21145 | archive_cmds_F77 | \ |
| 21146 | archive_expsym_cmds_F77 | \ |
| 21147 | module_cmds_F77 | \ |
| 21148 | module_expsym_cmds_F77 | \ |
| 21149 | old_archive_from_expsyms_cmds_F77 | \ |
| 21150 | export_symbols_cmds_F77 | \ |
| 21151 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 21152 | postinstall_cmds | postuninstall_cmds | \ |
| 21153 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 21154 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 21155 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21156 | 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] | 21157 | ;; |
| 21158 | *) |
| 21159 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 21160 | ;; |
| 21161 | esac |
| 21162 | done |
| 21163 | |
| 21164 | case $lt_echo in |
| 21165 | *'\$0 --fallback-echo"') |
| 21166 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 21167 | ;; |
| 21168 | esac |
| 21169 | |
| 21170 | cfgfile="$ofile" |
| 21171 | |
| 21172 | cat <<__EOF__ >> "$cfgfile" |
| 21173 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 21174 | |
| 21175 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 21176 | |
| 21177 | # Shell to use when invoking shell scripts. |
| 21178 | SHELL=$lt_SHELL |
| 21179 | |
| 21180 | # Whether or not to build shared libraries. |
| 21181 | build_libtool_libs=$enable_shared |
| 21182 | |
| 21183 | # Whether or not to build static libraries. |
| 21184 | build_old_libs=$enable_static |
| 21185 | |
| 21186 | # Whether or not to add -lc for building shared libraries. |
| 21187 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 21188 | |
| 21189 | # Whether or not to disallow shared libs when runtime libs are static |
| 21190 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 21191 | |
| 21192 | # Whether or not to optimize for fast installation. |
| 21193 | fast_install=$enable_fast_install |
| 21194 | |
| 21195 | # The host system. |
| 21196 | host_alias=$host_alias |
| 21197 | host=$host |
| 21198 | |
| 21199 | # An echo program that does not interpret backslashes. |
| 21200 | echo=$lt_echo |
| 21201 | |
| 21202 | # The archiver. |
| 21203 | AR=$lt_AR |
| 21204 | AR_FLAGS=$lt_AR_FLAGS |
| 21205 | |
| 21206 | # A C compiler. |
| 21207 | LTCC=$lt_LTCC |
| 21208 | |
| 21209 | # A language-specific compiler. |
| 21210 | CC=$lt_compiler_F77 |
| 21211 | |
| 21212 | # Is the compiler the GNU C compiler? |
| 21213 | with_gcc=$GCC_F77 |
| 21214 | |
| 21215 | # An ERE matcher. |
| 21216 | EGREP=$lt_EGREP |
| 21217 | |
| 21218 | # The linker used to build libraries. |
| 21219 | LD=$lt_LD_F77 |
| 21220 | |
| 21221 | # Whether we need hard or soft links. |
| 21222 | LN_S=$lt_LN_S |
| 21223 | |
| 21224 | # A BSD-compatible nm program. |
| 21225 | NM=$lt_NM |
| 21226 | |
| 21227 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21228 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21229 | |
| 21230 | # Used to examine libraries when file_magic_cmd begins "file" |
| 21231 | MAGIC_CMD=$MAGIC_CMD |
| 21232 | |
| 21233 | # Used on cygwin: DLL creation program. |
| 21234 | DLLTOOL="$DLLTOOL" |
| 21235 | |
| 21236 | # Used on cygwin: object dumper. |
| 21237 | OBJDUMP="$OBJDUMP" |
| 21238 | |
| 21239 | # Used on cygwin: assembler. |
| 21240 | AS="$AS" |
| 21241 | |
| 21242 | # The name of the directory that contains temporary libtool files. |
| 21243 | objdir=$objdir |
| 21244 | |
| 21245 | # How to create reloadable object files. |
| 21246 | reload_flag=$lt_reload_flag |
| 21247 | reload_cmds=$lt_reload_cmds |
| 21248 | |
| 21249 | # How to pass a linker flag through the compiler. |
| 21250 | wl=$lt_lt_prog_compiler_wl_F77 |
| 21251 | |
| 21252 | # Object file suffix (normally "o"). |
| 21253 | objext="$ac_objext" |
| 21254 | |
| 21255 | # Old archive suffix (normally "a"). |
| 21256 | libext="$libext" |
| 21257 | |
| 21258 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21259 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21260 | |
| 21261 | # Executable file suffix (normally ""). |
| 21262 | exeext="$exeext" |
| 21263 | |
| 21264 | # Additional compiler flags for building library objects. |
| 21265 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 21266 | pic_mode=$pic_mode |
| 21267 | |
| 21268 | # What is the maximum length of a command? |
| 21269 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21270 | |
| 21271 | # Does compiler simultaneously support -c and -o options? |
| 21272 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 21273 | |
| 21274 | # Must we lock files when doing compilation ? |
| 21275 | need_locks=$lt_need_locks |
| 21276 | |
| 21277 | # Do we need the lib prefix for modules? |
| 21278 | need_lib_prefix=$need_lib_prefix |
| 21279 | |
| 21280 | # Do we need a version for libraries? |
| 21281 | need_version=$need_version |
| 21282 | |
| 21283 | # Whether dlopen is supported. |
| 21284 | dlopen_support=$enable_dlopen |
| 21285 | |
| 21286 | # Whether dlopen of programs is supported. |
| 21287 | dlopen_self=$enable_dlopen_self |
| 21288 | |
| 21289 | # Whether dlopen of statically linked programs is supported. |
| 21290 | dlopen_self_static=$enable_dlopen_self_static |
| 21291 | |
| 21292 | # Compiler flag to prevent dynamic linking. |
| 21293 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 21294 | |
| 21295 | # Compiler flag to turn off builtin functions. |
| 21296 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 21297 | |
| 21298 | # Compiler flag to allow reflexive dlopens. |
| 21299 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 21300 | |
| 21301 | # Compiler flag to generate shared objects directly from archives. |
| 21302 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 21303 | |
| 21304 | # Compiler flag to generate thread-safe objects. |
| 21305 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 21306 | |
| 21307 | # Library versioning type. |
| 21308 | version_type=$version_type |
| 21309 | |
| 21310 | # Format of library name prefix. |
| 21311 | libname_spec=$lt_libname_spec |
| 21312 | |
| 21313 | # List of archive names. First name is the real one, the rest are links. |
| 21314 | # The last name is the one that the linker finds with -lNAME. |
| 21315 | library_names_spec=$lt_library_names_spec |
| 21316 | |
| 21317 | # The coded name of the library, if different from the real name. |
| 21318 | soname_spec=$lt_soname_spec |
| 21319 | |
| 21320 | # Commands used to build and install an old-style archive. |
| 21321 | RANLIB=$lt_RANLIB |
| 21322 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 21323 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21324 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21325 | |
| 21326 | # Create an old-style archive from a shared archive. |
| 21327 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 21328 | |
| 21329 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21330 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 21331 | |
| 21332 | # Commands used to build and install a shared archive. |
| 21333 | archive_cmds=$lt_archive_cmds_F77 |
| 21334 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 21335 | postinstall_cmds=$lt_postinstall_cmds |
| 21336 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21337 | |
| 21338 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21339 | module_cmds=$lt_module_cmds_F77 |
| 21340 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 21341 | |
| 21342 | # Commands to strip libraries. |
| 21343 | old_striplib=$lt_old_striplib |
| 21344 | striplib=$lt_striplib |
| 21345 | |
| 21346 | # Dependencies to place before the objects being linked to create a |
| 21347 | # shared library. |
| 21348 | predep_objects=$lt_predep_objects_F77 |
| 21349 | |
| 21350 | # Dependencies to place after the objects being linked to create a |
| 21351 | # shared library. |
| 21352 | postdep_objects=$lt_postdep_objects_F77 |
| 21353 | |
| 21354 | # Dependencies to place before the objects being linked to create a |
| 21355 | # shared library. |
| 21356 | predeps=$lt_predeps_F77 |
| 21357 | |
| 21358 | # Dependencies to place after the objects being linked to create a |
| 21359 | # shared library. |
| 21360 | postdeps=$lt_postdeps_F77 |
| 21361 | |
| 21362 | # The library search path used internally by the compiler when linking |
| 21363 | # a shared library. |
| 21364 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 21365 | |
| 21366 | # Method to check whether dependent libraries are shared objects. |
| 21367 | deplibs_check_method=$lt_deplibs_check_method |
| 21368 | |
| 21369 | # Command to use when deplibs_check_method == file_magic. |
| 21370 | file_magic_cmd=$lt_file_magic_cmd |
| 21371 | |
| 21372 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21373 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 21374 | |
| 21375 | # Flag that forces no undefined symbols. |
| 21376 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 21377 | |
| 21378 | # Commands used to finish a libtool library installation in a directory. |
| 21379 | finish_cmds=$lt_finish_cmds |
| 21380 | |
| 21381 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21382 | finish_eval=$lt_finish_eval |
| 21383 | |
| 21384 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21385 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21386 | |
| 21387 | # Transform the output of nm in a proper C declaration |
| 21388 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21389 | |
| 21390 | # Transform the output of nm in a C name address pair |
| 21391 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21392 | |
| 21393 | # This is the shared library runtime path variable. |
| 21394 | runpath_var=$runpath_var |
| 21395 | |
| 21396 | # This is the shared library path variable. |
| 21397 | shlibpath_var=$shlibpath_var |
| 21398 | |
| 21399 | # Is shlibpath searched before the hard-coded library search path? |
| 21400 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21401 | |
| 21402 | # How to hardcode a shared library path into an executable. |
| 21403 | hardcode_action=$hardcode_action_F77 |
| 21404 | |
| 21405 | # Whether we should hardcode library paths into libraries. |
| 21406 | hardcode_into_libs=$hardcode_into_libs |
| 21407 | |
| 21408 | # Flag to hardcode \$libdir into a binary during linking. |
| 21409 | # This must work even if \$libdir does not exist. |
| 21410 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 21411 | |
| 21412 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21413 | # a binary during linking. This must work even if \$libdir does |
| 21414 | # not exist. |
| 21415 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 21416 | |
| 21417 | # Whether we need a single -rpath flag with a separated argument. |
| 21418 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 21419 | |
| 21420 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21421 | # resulting binary. |
| 21422 | hardcode_direct=$hardcode_direct_F77 |
| 21423 | |
| 21424 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21425 | # resulting binary. |
| 21426 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 21427 | |
| 21428 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21429 | # the resulting binary. |
| 21430 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 21431 | |
| 21432 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21433 | # and all subsequent libraries and executables linked against it. |
| 21434 | hardcode_automatic=$hardcode_automatic_F77 |
| 21435 | |
| 21436 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21437 | # restored at relink time. |
| 21438 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21439 | |
| 21440 | # Whether libtool must link a program against all its dependency libraries. |
| 21441 | link_all_deplibs=$link_all_deplibs_F77 |
| 21442 | |
| 21443 | # Compile-time system search path for libraries |
| 21444 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21445 | |
| 21446 | # Run-time system search path for libraries |
| 21447 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21448 | |
| 21449 | # Fix the shell variable \$srcfile for the compiler. |
| 21450 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 21451 | |
| 21452 | # Set to yes if exported symbols are required. |
| 21453 | always_export_symbols=$always_export_symbols_F77 |
| 21454 | |
| 21455 | # The commands to list exported symbols. |
| 21456 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 21457 | |
| 21458 | # The commands to extract the exported symbol list from a shared archive. |
| 21459 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21460 | |
| 21461 | # Symbols that should not be listed in the preloaded symbols. |
| 21462 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 21463 | |
| 21464 | # Symbols that must always be exported. |
| 21465 | include_expsyms=$lt_include_expsyms_F77 |
| 21466 | |
| 21467 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21468 | |
| 21469 | __EOF__ |
| 21470 | |
| 21471 | |
| 21472 | else |
| 21473 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21474 | # `config.status --recheck' to rerun these tests and create the |
| 21475 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21476 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21477 | if test -f "$ltmain_in"; then |
| 21478 | test -f Makefile && make "$ltmain" |
| 21479 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21480 | fi |
| 21481 | |
| 21482 | |
| 21483 | ac_ext=c |
| 21484 | ac_cpp='$CPP $CPPFLAGS' |
| 21485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21488 | |
| 21489 | CC="$lt_save_CC" |
| 21490 | |
| 21491 | else |
| 21492 | tagname="" |
| 21493 | fi |
| 21494 | ;; |
| 21495 | |
| 21496 | GCJ) |
| 21497 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21498 | ac_ext=c |
| 21499 | ac_cpp='$CPP $CPPFLAGS' |
| 21500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21503 | |
| 21504 | |
| 21505 | # Source file extension for Java test sources. |
| 21506 | ac_ext=java |
| 21507 | |
| 21508 | # Object file extension for compiled Java test sources. |
| 21509 | objext=o |
| 21510 | objext_GCJ=$objext |
| 21511 | |
| 21512 | # Code to be used in simple compile tests |
| 21513 | lt_simple_compile_test_code="class foo {}\n" |
| 21514 | |
| 21515 | # Code to be used in simple link tests |
| 21516 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 21517 | |
| 21518 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21519 | |
| 21520 | # If no C compiler was specified, use CC. |
| 21521 | LTCC=${LTCC-"$CC"} |
| 21522 | |
| 21523 | # Allow CC to be a program name with arguments. |
| 21524 | compiler=$CC |
| 21525 | |
| 21526 | |
| 21527 | # Allow CC to be a program name with arguments. |
| 21528 | lt_save_CC="$CC" |
| 21529 | CC=${GCJ-"gcj"} |
| 21530 | compiler=$CC |
| 21531 | compiler_GCJ=$CC |
| 21532 | |
| 21533 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 21534 | archive_cmds_need_lc_GCJ=no |
| 21535 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21536 | |
| 21537 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 21538 | |
| 21539 | if test "$GCC" = yes; then |
| 21540 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 21541 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21542 | |
| 21543 | 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] | 21544 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 21545 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 21546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21547 | else |
| 21548 | lt_cv_prog_compiler_rtti_exceptions=no |
| 21549 | ac_outfile=conftest.$ac_objext |
| 21550 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21551 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 21552 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21553 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21554 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21555 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21556 | # The option is referenced via a variable to avoid confusing sed. |
| 21557 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21558 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21559 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21560 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 21561 | (eval echo "\"\$as_me:21561: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21562 | (eval "$lt_compile" 2>conftest.err) |
| 21563 | ac_status=$? |
| 21564 | cat conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 21565 | echo "$as_me:21565: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21566 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21567 | # The compiler can only warn and ignore the option if not recognized |
| 21568 | # So say no if there are warnings |
| 21569 | if test ! -s conftest.err; then |
| 21570 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 21571 | fi |
| 21572 | fi |
| 21573 | $rm conftest* |
| 21574 | |
| 21575 | fi |
| 21576 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 21577 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 21578 | |
| 21579 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 21580 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 21581 | else |
| 21582 | : |
| 21583 | fi |
| 21584 | |
| 21585 | fi |
| 21586 | |
| 21587 | lt_prog_compiler_wl_GCJ= |
| 21588 | lt_prog_compiler_pic_GCJ= |
| 21589 | lt_prog_compiler_static_GCJ= |
| 21590 | |
| 21591 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21592 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 21593 | |
| 21594 | if test "$GCC" = yes; then |
| 21595 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21596 | lt_prog_compiler_static_GCJ='-static' |
| 21597 | |
| 21598 | case $host_os in |
| 21599 | aix*) |
| 21600 | # All AIX code is PIC. |
| 21601 | if test "$host_cpu" = ia64; then |
| 21602 | # AIX 5 now supports IA64 processor |
| 21603 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21604 | fi |
| 21605 | ;; |
| 21606 | |
| 21607 | amigaos*) |
| 21608 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21609 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21610 | # like `-m68040'. |
| 21611 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 21612 | ;; |
| 21613 | |
| 21614 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21615 | # PIC is the default for these OSes. |
| 21616 | ;; |
| 21617 | |
| 21618 | mingw* | pw32* | os2*) |
| 21619 | # This hack is so that the source file can tell whether it is being |
| 21620 | # built for inclusion in a dll (and should export symbols for example). |
| 21621 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21622 | ;; |
| 21623 | |
| 21624 | darwin* | rhapsody*) |
| 21625 | # PIC is the default on this platform |
| 21626 | # Common symbols not allowed in MH_DYLIB files |
| 21627 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 21628 | ;; |
| 21629 | |
| 21630 | msdosdjgpp*) |
| 21631 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21632 | # on systems that don't support them. |
| 21633 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21634 | enable_shared=no |
| 21635 | ;; |
| 21636 | |
| 21637 | sysv4*MP*) |
| 21638 | if test -d /usr/nec; then |
| 21639 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 21640 | fi |
| 21641 | ;; |
| 21642 | |
| 21643 | hpux*) |
| 21644 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21645 | # not for PA HP-UX. |
| 21646 | case "$host_cpu" in |
| 21647 | hppa*64*|ia64*) |
| 21648 | # +Z the default |
| 21649 | ;; |
| 21650 | *) |
| 21651 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21652 | ;; |
| 21653 | esac |
| 21654 | ;; |
| 21655 | |
| 21656 | *) |
| 21657 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21658 | ;; |
| 21659 | esac |
| 21660 | else |
| 21661 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21662 | case $host_os in |
| 21663 | aix*) |
| 21664 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21665 | if test "$host_cpu" = ia64; then |
| 21666 | # AIX 5 now supports IA64 processor |
| 21667 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21668 | else |
| 21669 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 21670 | fi |
| 21671 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21672 | darwin*) |
| 21673 | # PIC is the default on this platform |
| 21674 | # Common symbols not allowed in MH_DYLIB files |
| 21675 | case "$cc_basename" in |
| 21676 | xlc*) |
| 21677 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 21678 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21679 | ;; |
| 21680 | esac |
| 21681 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21682 | |
| 21683 | mingw* | pw32* | os2*) |
| 21684 | # This hack is so that the source file can tell whether it is being |
| 21685 | # built for inclusion in a dll (and should export symbols for example). |
| 21686 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21687 | ;; |
| 21688 | |
| 21689 | hpux9* | hpux10* | hpux11*) |
| 21690 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21691 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21692 | # not for PA HP-UX. |
| 21693 | case "$host_cpu" in |
| 21694 | hppa*64*|ia64*) |
| 21695 | # +Z the default |
| 21696 | ;; |
| 21697 | *) |
| 21698 | lt_prog_compiler_pic_GCJ='+Z' |
| 21699 | ;; |
| 21700 | esac |
| 21701 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21702 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 21703 | ;; |
| 21704 | |
| 21705 | irix5* | irix6* | nonstopux*) |
| 21706 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21707 | # PIC (with -KPIC) is the default. |
| 21708 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21709 | ;; |
| 21710 | |
| 21711 | newsos6) |
| 21712 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21713 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21714 | ;; |
| 21715 | |
| 21716 | linux*) |
| 21717 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21718 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21719 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21720 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21721 | lt_prog_compiler_static_GCJ='-static' |
| 21722 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21723 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21724 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21725 | # All Alpha code is PIC. |
| 21726 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21727 | ;; |
| 21728 | esac |
| 21729 | ;; |
| 21730 | |
| 21731 | osf3* | osf4* | osf5*) |
| 21732 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21733 | # All OSF/1 code is PIC. |
| 21734 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21735 | ;; |
| 21736 | |
| 21737 | sco3.2v5*) |
| 21738 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 21739 | lt_prog_compiler_static_GCJ='-dn' |
| 21740 | ;; |
| 21741 | |
| 21742 | solaris*) |
| 21743 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21744 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21745 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21746 | ;; |
| 21747 | |
| 21748 | sunos4*) |
| 21749 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 21750 | lt_prog_compiler_pic_GCJ='-PIC' |
| 21751 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21752 | ;; |
| 21753 | |
| 21754 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 21755 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21756 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21757 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21758 | ;; |
| 21759 | |
| 21760 | sysv4*MP*) |
| 21761 | if test -d /usr/nec ;then |
| 21762 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 21763 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21764 | fi |
| 21765 | ;; |
| 21766 | |
| 21767 | uts4*) |
| 21768 | lt_prog_compiler_pic_GCJ='-pic' |
| 21769 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21770 | ;; |
| 21771 | |
| 21772 | *) |
| 21773 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21774 | ;; |
| 21775 | esac |
| 21776 | fi |
| 21777 | |
| 21778 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 21779 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 21780 | |
| 21781 | # |
| 21782 | # Check to make sure the PIC flag actually works. |
| 21783 | # |
| 21784 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21785 | |
| 21786 | 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] | 21787 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 21788 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 21789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21790 | else |
| 21791 | lt_prog_compiler_pic_works_GCJ=no |
| 21792 | ac_outfile=conftest.$ac_objext |
| 21793 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21794 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 21795 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21796 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21797 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21798 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21799 | # The option is referenced via a variable to avoid confusing sed. |
| 21800 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21801 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21802 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21803 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 21804 | (eval echo "\"\$as_me:21804: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21805 | (eval "$lt_compile" 2>conftest.err) |
| 21806 | ac_status=$? |
| 21807 | cat conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 21808 | echo "$as_me:21808: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21809 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21810 | # The compiler can only warn and ignore the option if not recognized |
| 21811 | # So say no if there are warnings |
| 21812 | if test ! -s conftest.err; then |
| 21813 | lt_prog_compiler_pic_works_GCJ=yes |
| 21814 | fi |
| 21815 | fi |
| 21816 | $rm conftest* |
| 21817 | |
| 21818 | fi |
| 21819 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 21820 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 21821 | |
| 21822 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 21823 | case $lt_prog_compiler_pic_GCJ in |
| 21824 | "" | " "*) ;; |
| 21825 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 21826 | esac |
| 21827 | else |
| 21828 | lt_prog_compiler_pic_GCJ= |
| 21829 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21830 | fi |
| 21831 | |
| 21832 | fi |
| 21833 | case "$host_os" in |
| 21834 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21835 | *djgpp*) |
| 21836 | lt_prog_compiler_pic_GCJ= |
| 21837 | ;; |
| 21838 | *) |
| 21839 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 21840 | ;; |
| 21841 | esac |
| 21842 | |
| 21843 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21844 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 21845 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 21846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21847 | else |
| 21848 | lt_cv_prog_compiler_c_o_GCJ=no |
| 21849 | $rm -r conftest 2>/dev/null |
| 21850 | mkdir conftest |
| 21851 | cd conftest |
| 21852 | mkdir out |
| 21853 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21854 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21855 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21856 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21857 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21858 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21859 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21860 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21861 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21862 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21863 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 21864 | (eval echo "\"\$as_me:21864: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21865 | (eval "$lt_compile" 2>out/conftest.err) |
| 21866 | ac_status=$? |
| 21867 | cat out/conftest.err >&5 |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 21868 | echo "$as_me:21868: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21869 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21870 | then |
| 21871 | # The compiler can only warn and ignore the option if not recognized |
| 21872 | # So say no if there are warnings |
| 21873 | if test ! -s out/conftest.err; then |
| 21874 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 21875 | fi |
| 21876 | fi |
| 21877 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21878 | $rm conftest* |
| 21879 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21880 | # template instantiation |
| 21881 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21882 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21883 | cd .. |
| 21884 | rmdir conftest |
| 21885 | $rm conftest* |
| 21886 | |
| 21887 | fi |
| 21888 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 21889 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 21890 | |
| 21891 | |
| 21892 | hard_links="nottested" |
| 21893 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 21894 | # do not overwrite the value of need_locks provided by the user |
| 21895 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21896 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 21897 | hard_links=yes |
| 21898 | $rm conftest* |
| 21899 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21900 | touch conftest.a |
| 21901 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21902 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21903 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21904 | echo "${ECHO_T}$hard_links" >&6 |
| 21905 | if test "$hard_links" = no; then |
| 21906 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21907 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21908 | need_locks=warn |
| 21909 | fi |
| 21910 | else |
| 21911 | need_locks=no |
| 21912 | fi |
| 21913 | |
| 21914 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21915 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 21916 | |
| 21917 | runpath_var= |
| 21918 | allow_undefined_flag_GCJ= |
| 21919 | enable_shared_with_static_runtimes_GCJ=no |
| 21920 | archive_cmds_GCJ= |
| 21921 | archive_expsym_cmds_GCJ= |
| 21922 | old_archive_From_new_cmds_GCJ= |
| 21923 | old_archive_from_expsyms_cmds_GCJ= |
| 21924 | export_dynamic_flag_spec_GCJ= |
| 21925 | whole_archive_flag_spec_GCJ= |
| 21926 | thread_safe_flag_spec_GCJ= |
| 21927 | hardcode_libdir_flag_spec_GCJ= |
| 21928 | hardcode_libdir_flag_spec_ld_GCJ= |
| 21929 | hardcode_libdir_separator_GCJ= |
| 21930 | hardcode_direct_GCJ=no |
| 21931 | hardcode_minus_L_GCJ=no |
| 21932 | hardcode_shlibpath_var_GCJ=unsupported |
| 21933 | link_all_deplibs_GCJ=unknown |
| 21934 | hardcode_automatic_GCJ=no |
| 21935 | module_cmds_GCJ= |
| 21936 | module_expsym_cmds_GCJ= |
| 21937 | always_export_symbols_GCJ=no |
| 21938 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21939 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21940 | # included in the symbol list |
| 21941 | include_expsyms_GCJ= |
| 21942 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21943 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21944 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21945 | # as well as any symbol that contains `d'. |
| 21946 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 21947 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21948 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21949 | # the symbol is explicitly referenced. Since portable code cannot |
| 21950 | # rely on this symbol name, it's probably fine to never include it in |
| 21951 | # preloaded symbol tables. |
| 21952 | extract_expsyms_cmds= |
| 21953 | |
| 21954 | case $host_os in |
| 21955 | cygwin* | mingw* | pw32*) |
| 21956 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21957 | # When not using gcc, we currently assume that we are using |
| 21958 | # Microsoft Visual C++. |
| 21959 | if test "$GCC" != yes; then |
| 21960 | with_gnu_ld=no |
| 21961 | fi |
| 21962 | ;; |
| 21963 | openbsd*) |
| 21964 | with_gnu_ld=no |
| 21965 | ;; |
| 21966 | esac |
| 21967 | |
| 21968 | ld_shlibs_GCJ=yes |
| 21969 | if test "$with_gnu_ld" = yes; then |
| 21970 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21971 | wlarc='${wl}' |
| 21972 | |
| 21973 | # See if GNU ld supports shared libraries. |
| 21974 | case $host_os in |
| 21975 | aix3* | aix4* | aix5*) |
| 21976 | # On AIX/PPC, the GNU linker is very broken |
| 21977 | if test "$host_cpu" != ia64; then |
| 21978 | ld_shlibs_GCJ=no |
| 21979 | cat <<EOF 1>&2 |
| 21980 | |
| 21981 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21982 | *** to be unable to reliably create shared libraries on AIX. |
| 21983 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21984 | *** really care for shared libraries, you may want to modify your PATH |
| 21985 | *** so that a non-GNU linker is found, and then restart. |
| 21986 | |
| 21987 | EOF |
| 21988 | fi |
| 21989 | ;; |
| 21990 | |
| 21991 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21992 | 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] | 21993 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21994 | hardcode_minus_L_GCJ=yes |
| 21995 | |
| 21996 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21997 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21998 | # to version 4, is to share data among multiple programs linked |
| 21999 | # with the same dynamic library. Since this doesn't match the |
| 22000 | # behavior of shared libraries on other platforms, we can't use |
| 22001 | # them. |
| 22002 | ld_shlibs_GCJ=no |
| 22003 | ;; |
| 22004 | |
| 22005 | beos*) |
| 22006 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22007 | allow_undefined_flag_GCJ=unsupported |
| 22008 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 22009 | # support --undefined. This deserves some investigation. FIXME |
| 22010 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22011 | else |
| 22012 | ld_shlibs_GCJ=no |
| 22013 | fi |
| 22014 | ;; |
| 22015 | |
| 22016 | cygwin* | mingw* | pw32*) |
| 22017 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 22018 | # as there is no search path for DLLs. |
| 22019 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22020 | allow_undefined_flag_GCJ=unsupported |
| 22021 | always_export_symbols_GCJ=no |
| 22022 | enable_shared_with_static_runtimes_GCJ=yes |
| 22023 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 22024 | |
| 22025 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 22026 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 22027 | # If the export-symbols file already is a .def file (1st line |
| 22028 | # is EXPORTS), use it as is; otherwise, prepend... |
| 22029 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 22030 | cp $export_symbols $output_objdir/$soname.def; |
| 22031 | else |
| 22032 | echo EXPORTS > $output_objdir/$soname.def; |
| 22033 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22034 | fi~ |
| 22035 | $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] | 22036 | else |
| 22037 | ld_shlibs=no |
| 22038 | fi |
| 22039 | ;; |
| 22040 | |
| 22041 | netbsd*) |
| 22042 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22043 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 22044 | wlarc= |
| 22045 | else |
| 22046 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22047 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22048 | fi |
| 22049 | ;; |
| 22050 | |
| 22051 | solaris* | sysv5*) |
| 22052 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 22053 | ld_shlibs_GCJ=no |
| 22054 | cat <<EOF 1>&2 |
| 22055 | |
| 22056 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 22057 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 22058 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22059 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 22060 | *** your PATH or compiler configuration so that the native linker is |
| 22061 | *** used, and then restart. |
| 22062 | |
| 22063 | EOF |
| 22064 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22065 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22066 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22067 | else |
| 22068 | ld_shlibs_GCJ=no |
| 22069 | fi |
| 22070 | ;; |
| 22071 | |
| 22072 | sunos4*) |
| 22073 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22074 | wlarc= |
| 22075 | hardcode_direct_GCJ=yes |
| 22076 | hardcode_shlibpath_var_GCJ=no |
| 22077 | ;; |
| 22078 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22079 | linux*) |
| 22080 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22081 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22082 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 22083 | supports_anon_versioning=no |
| 22084 | case `$LD -v 2>/dev/null` in |
| 22085 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 22086 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 22087 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 22088 | *\ 2.11.*) ;; # other 2.11 versions |
| 22089 | *) supports_anon_versioning=yes ;; |
| 22090 | esac |
| 22091 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22092 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 22093 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 22094 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22095 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 22096 | else |
| 22097 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 22098 | fi |
| 22099 | else |
| 22100 | ld_shlibs_GCJ=no |
| 22101 | fi |
| 22102 | ;; |
| 22103 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22104 | *) |
| 22105 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22106 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22107 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22108 | else |
| 22109 | ld_shlibs_GCJ=no |
| 22110 | fi |
| 22111 | ;; |
| 22112 | esac |
| 22113 | |
| 22114 | if test "$ld_shlibs_GCJ" = yes; then |
| 22115 | runpath_var=LD_RUN_PATH |
| 22116 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 22117 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 22118 | # ancient GNU ld didn't support --whole-archive et. al. |
| 22119 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 22120 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 22121 | else |
| 22122 | whole_archive_flag_spec_GCJ= |
| 22123 | fi |
| 22124 | fi |
| 22125 | else |
| 22126 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 22127 | case $host_os in |
| 22128 | aix3*) |
| 22129 | allow_undefined_flag_GCJ=unsupported |
| 22130 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22131 | 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] | 22132 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 22133 | # are no directories specified by -L. |
| 22134 | hardcode_minus_L_GCJ=yes |
| 22135 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 22136 | # Neither direct hardcoding nor static linking is supported with a |
| 22137 | # broken collect2. |
| 22138 | hardcode_direct_GCJ=unsupported |
| 22139 | fi |
| 22140 | ;; |
| 22141 | |
| 22142 | aix4* | aix5*) |
| 22143 | if test "$host_cpu" = ia64; then |
| 22144 | # On IA64, the linker does run time linking by default, so we don't |
| 22145 | # have to do anything special. |
| 22146 | aix_use_runtimelinking=no |
| 22147 | exp_sym_flag='-Bexport' |
| 22148 | no_entry_flag="" |
| 22149 | else |
| 22150 | # If we're using GNU nm, then we don't want the "-C" option. |
| 22151 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 22152 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 22153 | 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' |
| 22154 | else |
| 22155 | 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' |
| 22156 | fi |
| 22157 | aix_use_runtimelinking=no |
| 22158 | |
| 22159 | # Test if we are trying to use run time linking or normal |
| 22160 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22161 | # need to do runtime linking. |
| 22162 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 22163 | for ld_flag in $LDFLAGS; do |
| 22164 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 22165 | aix_use_runtimelinking=yes |
| 22166 | break |
| 22167 | fi |
| 22168 | done |
| 22169 | esac |
| 22170 | |
| 22171 | exp_sym_flag='-bexport' |
| 22172 | no_entry_flag='-bnoentry' |
| 22173 | fi |
| 22174 | |
| 22175 | # When large executables or shared objects are built, AIX ld can |
| 22176 | # have problems creating the table of contents. If linking a library |
| 22177 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 22178 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22179 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22180 | |
| 22181 | archive_cmds_GCJ='' |
| 22182 | hardcode_direct_GCJ=yes |
| 22183 | hardcode_libdir_separator_GCJ=':' |
| 22184 | link_all_deplibs_GCJ=yes |
| 22185 | |
| 22186 | if test "$GCC" = yes; then |
| 22187 | case $host_os in aix4.012|aix4.012.*) |
| 22188 | # We only want to do this on AIX 4.2 and lower, the check |
| 22189 | # below for broken collect2 doesn't work under 4.3+ |
| 22190 | collect2name=`${CC} -print-prog-name=collect2` |
| 22191 | if test -f "$collect2name" && \ |
| 22192 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 22193 | then |
| 22194 | # We have reworked collect2 |
| 22195 | hardcode_direct_GCJ=yes |
| 22196 | else |
| 22197 | # We have old collect2 |
| 22198 | hardcode_direct_GCJ=unsupported |
| 22199 | # It fails to find uninstalled libraries when the uninstalled |
| 22200 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 22201 | # to unsupported forces relinking |
| 22202 | hardcode_minus_L_GCJ=yes |
| 22203 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22204 | hardcode_libdir_separator_GCJ= |
| 22205 | fi |
| 22206 | esac |
| 22207 | shared_flag='-shared' |
| 22208 | else |
| 22209 | # not using gcc |
| 22210 | if test "$host_cpu" = ia64; then |
| 22211 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22212 | # chokes on -Wl,-G. The following line is correct: |
| 22213 | shared_flag='-G' |
| 22214 | else |
| 22215 | if test "$aix_use_runtimelinking" = yes; then |
| 22216 | shared_flag='${wl}-G' |
| 22217 | else |
| 22218 | shared_flag='${wl}-bM:SRE' |
| 22219 | fi |
| 22220 | fi |
| 22221 | fi |
| 22222 | |
| 22223 | # It seems that -bexpall does not export symbols beginning with |
| 22224 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22225 | always_export_symbols_GCJ=yes |
| 22226 | if test "$aix_use_runtimelinking" = yes; then |
| 22227 | # Warning - without using the other runtime loading flags (-brtl), |
| 22228 | # -berok will link without error, but may produce a broken library. |
| 22229 | allow_undefined_flag_GCJ='-berok' |
| 22230 | # Determine the default libpath from the value encoded in an empty executable. |
| 22231 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22232 | /* confdefs.h. */ |
| 22233 | _ACEOF |
| 22234 | cat confdefs.h >>conftest.$ac_ext |
| 22235 | cat >>conftest.$ac_ext <<_ACEOF |
| 22236 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22237 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22238 | int |
| 22239 | main () |
| 22240 | { |
| 22241 | |
| 22242 | ; |
| 22243 | return 0; |
| 22244 | } |
| 22245 | _ACEOF |
| 22246 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22248 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22249 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22251 | rm -f conftest.er1 |
| 22252 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22254 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22255 | { ac_try='test -z "$ac_c_werror_flag" |
| 22256 | || test ! -s conftest.err' |
| 22257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22258 | (eval $ac_try) 2>&5 |
| 22259 | ac_status=$? |
| 22260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22261 | (exit $ac_status); }; } && |
| 22262 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22264 | (eval $ac_try) 2>&5 |
| 22265 | ac_status=$? |
| 22266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22267 | (exit $ac_status); }; }; then |
| 22268 | |
| 22269 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22270 | }'` |
| 22271 | # Check for a 64-bit object if we didn't find anything. |
| 22272 | 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; } |
| 22273 | }'`; fi |
| 22274 | else |
| 22275 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22277 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22278 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22279 | rm -f conftest.err conftest.$ac_objext \ |
| 22280 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22281 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22282 | |
| 22283 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22284 | 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" |
| 22285 | else |
| 22286 | if test "$host_cpu" = ia64; then |
| 22287 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 22288 | allow_undefined_flag_GCJ="-z nodefs" |
| 22289 | 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" |
| 22290 | else |
| 22291 | # Determine the default libpath from the value encoded in an empty executable. |
| 22292 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22293 | /* confdefs.h. */ |
| 22294 | _ACEOF |
| 22295 | cat confdefs.h >>conftest.$ac_ext |
| 22296 | cat >>conftest.$ac_ext <<_ACEOF |
| 22297 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22298 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22299 | int |
| 22300 | main () |
| 22301 | { |
| 22302 | |
| 22303 | ; |
| 22304 | return 0; |
| 22305 | } |
| 22306 | _ACEOF |
| 22307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22309 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22310 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22312 | rm -f conftest.er1 |
| 22313 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22315 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22316 | { ac_try='test -z "$ac_c_werror_flag" |
| 22317 | || test ! -s conftest.err' |
| 22318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22319 | (eval $ac_try) 2>&5 |
| 22320 | ac_status=$? |
| 22321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22322 | (exit $ac_status); }; } && |
| 22323 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22325 | (eval $ac_try) 2>&5 |
| 22326 | ac_status=$? |
| 22327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22328 | (exit $ac_status); }; }; then |
| 22329 | |
| 22330 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22331 | }'` |
| 22332 | # Check for a 64-bit object if we didn't find anything. |
| 22333 | 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; } |
| 22334 | }'`; fi |
| 22335 | else |
| 22336 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22338 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22339 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22340 | rm -f conftest.err conftest.$ac_objext \ |
| 22341 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22342 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22343 | |
| 22344 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22345 | # Warning - without using the other run time loading flags, |
| 22346 | # -berok will link without error, but may produce a broken library. |
| 22347 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 22348 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 22349 | # -bexpall does not export symbols beginning with underscore (_) |
| 22350 | always_export_symbols_GCJ=yes |
| 22351 | # Exported symbols can be pulled into shared objects from archives |
| 22352 | whole_archive_flag_spec_GCJ=' ' |
| 22353 | archive_cmds_need_lc_GCJ=yes |
| 22354 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22355 | 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] | 22356 | fi |
| 22357 | fi |
| 22358 | ;; |
| 22359 | |
| 22360 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22361 | 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] | 22362 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22363 | hardcode_minus_L_GCJ=yes |
| 22364 | # see comment about different semantics on the GNU ld section |
| 22365 | ld_shlibs_GCJ=no |
| 22366 | ;; |
| 22367 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22368 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22369 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 22370 | ;; |
| 22371 | |
| 22372 | cygwin* | mingw* | pw32*) |
| 22373 | # When not using gcc, we currently assume that we are using |
| 22374 | # Microsoft Visual C++. |
| 22375 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22376 | # no search path for DLLs. |
| 22377 | hardcode_libdir_flag_spec_GCJ=' ' |
| 22378 | allow_undefined_flag_GCJ=unsupported |
| 22379 | # Tell ltmain to make .lib files, not .a files. |
| 22380 | libext=lib |
| 22381 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22382 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22383 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22384 | 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] | 22385 | # The linker will automatically build a .lib file if we build a DLL. |
| 22386 | old_archive_From_new_cmds_GCJ='true' |
| 22387 | # FIXME: Should let the user specify the lib program. |
| 22388 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 22389 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 22390 | enable_shared_with_static_runtimes_GCJ=yes |
| 22391 | ;; |
| 22392 | |
| 22393 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22394 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22395 | rhapsody* | darwin1.[012]) |
| 22396 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 22397 | ;; |
| 22398 | *) # Darwin 1.3 on |
| 22399 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22400 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22401 | else |
| 22402 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22403 | 10.[012]) |
| 22404 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22405 | ;; |
| 22406 | 10.*) |
| 22407 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 22408 | ;; |
| 22409 | esac |
| 22410 | fi |
| 22411 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22412 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22413 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22414 | hardcode_direct_GCJ=no |
| 22415 | hardcode_automatic_GCJ=yes |
| 22416 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22417 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22418 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22419 | if test "$GCC" = yes ; then |
| 22420 | output_verbose_link_cmd='echo' |
| 22421 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22422 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 22423 | # 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] | 22424 | 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}' |
| 22425 | 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] | 22426 | else |
| 22427 | case "$cc_basename" in |
| 22428 | xlc*) |
| 22429 | output_verbose_link_cmd='echo' |
| 22430 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22431 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 22432 | # 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] | 22433 | 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}' |
| 22434 | 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] | 22435 | ;; |
| 22436 | *) |
| 22437 | ld_shlibs_GCJ=no |
| 22438 | ;; |
| 22439 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22440 | fi |
| 22441 | ;; |
| 22442 | |
| 22443 | dgux*) |
| 22444 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22445 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22446 | hardcode_shlibpath_var_GCJ=no |
| 22447 | ;; |
| 22448 | |
| 22449 | freebsd1*) |
| 22450 | ld_shlibs_GCJ=no |
| 22451 | ;; |
| 22452 | |
| 22453 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22454 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22455 | # does not break anything, and helps significantly (at the cost of a little |
| 22456 | # extra space). |
| 22457 | freebsd2.2*) |
| 22458 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22459 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22460 | hardcode_direct_GCJ=yes |
| 22461 | hardcode_shlibpath_var_GCJ=no |
| 22462 | ;; |
| 22463 | |
| 22464 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22465 | freebsd2*) |
| 22466 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22467 | hardcode_direct_GCJ=yes |
| 22468 | hardcode_minus_L_GCJ=yes |
| 22469 | hardcode_shlibpath_var_GCJ=no |
| 22470 | ;; |
| 22471 | |
| 22472 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22473 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22474 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22475 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22476 | hardcode_direct_GCJ=yes |
| 22477 | hardcode_shlibpath_var_GCJ=no |
| 22478 | ;; |
| 22479 | |
| 22480 | hpux9*) |
| 22481 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22482 | 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] | 22483 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22484 | 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] | 22485 | fi |
| 22486 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 22487 | hardcode_libdir_separator_GCJ=: |
| 22488 | hardcode_direct_GCJ=yes |
| 22489 | |
| 22490 | # hardcode_minus_L: Not really in the search PATH, |
| 22491 | # but as the default location of the library. |
| 22492 | hardcode_minus_L_GCJ=yes |
| 22493 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22494 | ;; |
| 22495 | |
| 22496 | hpux10* | hpux11*) |
| 22497 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22498 | case "$host_cpu" in |
| 22499 | hppa*64*|ia64*) |
| 22500 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22501 | ;; |
| 22502 | *) |
| 22503 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22504 | ;; |
| 22505 | esac |
| 22506 | else |
| 22507 | case "$host_cpu" in |
| 22508 | hppa*64*|ia64*) |
| 22509 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22510 | ;; |
| 22511 | *) |
| 22512 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22513 | ;; |
| 22514 | esac |
| 22515 | fi |
| 22516 | if test "$with_gnu_ld" = no; then |
| 22517 | case "$host_cpu" in |
| 22518 | hppa*64*) |
| 22519 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 22520 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 22521 | hardcode_libdir_separator_GCJ=: |
| 22522 | hardcode_direct_GCJ=no |
| 22523 | hardcode_shlibpath_var_GCJ=no |
| 22524 | ;; |
| 22525 | ia64*) |
| 22526 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22527 | hardcode_direct_GCJ=no |
| 22528 | hardcode_shlibpath_var_GCJ=no |
| 22529 | |
| 22530 | # hardcode_minus_L: Not really in the search PATH, |
| 22531 | # but as the default location of the library. |
| 22532 | hardcode_minus_L_GCJ=yes |
| 22533 | ;; |
| 22534 | *) |
| 22535 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 22536 | hardcode_libdir_separator_GCJ=: |
| 22537 | hardcode_direct_GCJ=yes |
| 22538 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22539 | |
| 22540 | # hardcode_minus_L: Not really in the search PATH, |
| 22541 | # but as the default location of the library. |
| 22542 | hardcode_minus_L_GCJ=yes |
| 22543 | ;; |
| 22544 | esac |
| 22545 | fi |
| 22546 | ;; |
| 22547 | |
| 22548 | irix5* | irix6* | nonstopux*) |
| 22549 | if test "$GCC" = yes; then |
| 22550 | 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' |
| 22551 | else |
| 22552 | 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' |
| 22553 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 22554 | fi |
| 22555 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22556 | hardcode_libdir_separator_GCJ=: |
| 22557 | link_all_deplibs_GCJ=yes |
| 22558 | ;; |
| 22559 | |
| 22560 | netbsd*) |
| 22561 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22562 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22563 | else |
| 22564 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22565 | fi |
| 22566 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22567 | hardcode_direct_GCJ=yes |
| 22568 | hardcode_shlibpath_var_GCJ=no |
| 22569 | ;; |
| 22570 | |
| 22571 | newsos6) |
| 22572 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22573 | hardcode_direct_GCJ=yes |
| 22574 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22575 | hardcode_libdir_separator_GCJ=: |
| 22576 | hardcode_shlibpath_var_GCJ=no |
| 22577 | ;; |
| 22578 | |
| 22579 | openbsd*) |
| 22580 | hardcode_direct_GCJ=yes |
| 22581 | hardcode_shlibpath_var_GCJ=no |
| 22582 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22583 | 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] | 22584 | 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] | 22585 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22586 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22587 | else |
| 22588 | case $host_os in |
| 22589 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22590 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22591 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22592 | ;; |
| 22593 | *) |
| 22594 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22595 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22596 | ;; |
| 22597 | esac |
| 22598 | fi |
| 22599 | ;; |
| 22600 | |
| 22601 | os2*) |
| 22602 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22603 | hardcode_minus_L_GCJ=yes |
| 22604 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22605 | 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] | 22606 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22607 | ;; |
| 22608 | |
| 22609 | osf3*) |
| 22610 | if test "$GCC" = yes; then |
| 22611 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22612 | 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' |
| 22613 | else |
| 22614 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22615 | 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' |
| 22616 | fi |
| 22617 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22618 | hardcode_libdir_separator_GCJ=: |
| 22619 | ;; |
| 22620 | |
| 22621 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22622 | if test "$GCC" = yes; then |
| 22623 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22624 | 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' |
| 22625 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22626 | else |
| 22627 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22628 | 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] | 22629 | 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~ |
| 22630 | $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' |
| 22631 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22632 | # Both c and cxx compiler support -rpath directly |
| 22633 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 22634 | fi |
| 22635 | hardcode_libdir_separator_GCJ=: |
| 22636 | ;; |
| 22637 | |
| 22638 | sco3.2v5*) |
| 22639 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22640 | hardcode_shlibpath_var_GCJ=no |
| 22641 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 22642 | runpath_var=LD_RUN_PATH |
| 22643 | hardcode_runpath_var=yes |
| 22644 | ;; |
| 22645 | |
| 22646 | solaris*) |
| 22647 | no_undefined_flag_GCJ=' -z text' |
| 22648 | if test "$GCC" = yes; then |
| 22649 | 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] | 22650 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22651 | $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] | 22652 | else |
| 22653 | 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] | 22654 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22655 | $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] | 22656 | fi |
| 22657 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22658 | hardcode_shlibpath_var_GCJ=no |
| 22659 | case $host_os in |
| 22660 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 22661 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22662 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 22663 | esac |
| 22664 | link_all_deplibs_GCJ=yes |
| 22665 | ;; |
| 22666 | |
| 22667 | sunos4*) |
| 22668 | if test "x$host_vendor" = xsequent; then |
| 22669 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22670 | # files that make .init and .fini sections work. |
| 22671 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22672 | else |
| 22673 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22674 | fi |
| 22675 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22676 | hardcode_direct_GCJ=yes |
| 22677 | hardcode_minus_L_GCJ=yes |
| 22678 | hardcode_shlibpath_var_GCJ=no |
| 22679 | ;; |
| 22680 | |
| 22681 | sysv4) |
| 22682 | case $host_vendor in |
| 22683 | sni) |
| 22684 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22685 | hardcode_direct_GCJ=yes # is this really true??? |
| 22686 | ;; |
| 22687 | siemens) |
| 22688 | ## LD is ld it makes a PLAMLIB |
| 22689 | ## CC just makes a GrossModule. |
| 22690 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22691 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 22692 | hardcode_direct_GCJ=no |
| 22693 | ;; |
| 22694 | motorola) |
| 22695 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22696 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 22697 | ;; |
| 22698 | esac |
| 22699 | runpath_var='LD_RUN_PATH' |
| 22700 | hardcode_shlibpath_var_GCJ=no |
| 22701 | ;; |
| 22702 | |
| 22703 | sysv4.3*) |
| 22704 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22705 | hardcode_shlibpath_var_GCJ=no |
| 22706 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 22707 | ;; |
| 22708 | |
| 22709 | sysv4*MP*) |
| 22710 | if test -d /usr/nec; then |
| 22711 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22712 | hardcode_shlibpath_var_GCJ=no |
| 22713 | runpath_var=LD_RUN_PATH |
| 22714 | hardcode_runpath_var=yes |
| 22715 | ld_shlibs_GCJ=yes |
| 22716 | fi |
| 22717 | ;; |
| 22718 | |
| 22719 | sysv4.2uw2*) |
| 22720 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22721 | hardcode_direct_GCJ=yes |
| 22722 | hardcode_minus_L_GCJ=no |
| 22723 | hardcode_shlibpath_var_GCJ=no |
| 22724 | hardcode_runpath_var=yes |
| 22725 | runpath_var=LD_RUN_PATH |
| 22726 | ;; |
| 22727 | |
| 22728 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 22729 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 22730 | if test "$GCC" = yes; then |
| 22731 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22732 | else |
| 22733 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22734 | fi |
| 22735 | runpath_var='LD_RUN_PATH' |
| 22736 | hardcode_shlibpath_var_GCJ=no |
| 22737 | ;; |
| 22738 | |
| 22739 | sysv5*) |
| 22740 | no_undefined_flag_GCJ=' -z text' |
| 22741 | # $CC -shared without GNU ld will not create a library from C++ |
| 22742 | # object files and a static libstdc++, better avoid it by now |
| 22743 | 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] | 22744 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22745 | $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] | 22746 | hardcode_libdir_flag_spec_GCJ= |
| 22747 | hardcode_shlibpath_var_GCJ=no |
| 22748 | runpath_var='LD_RUN_PATH' |
| 22749 | ;; |
| 22750 | |
| 22751 | uts4*) |
| 22752 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22753 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22754 | hardcode_shlibpath_var_GCJ=no |
| 22755 | ;; |
| 22756 | |
| 22757 | *) |
| 22758 | ld_shlibs_GCJ=no |
| 22759 | ;; |
| 22760 | esac |
| 22761 | fi |
| 22762 | |
| 22763 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 22764 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 22765 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 22766 | |
| 22767 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22768 | if test "$GCC" = yes; then |
| 22769 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22770 | fi |
| 22771 | |
| 22772 | # |
| 22773 | # Do we need to explicitly link libc? |
| 22774 | # |
| 22775 | case "x$archive_cmds_need_lc_GCJ" in |
| 22776 | x|xyes) |
| 22777 | # Assume -lc should be added |
| 22778 | archive_cmds_need_lc_GCJ=yes |
| 22779 | |
| 22780 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22781 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22782 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22783 | # FIXME: we may have to deal with multi-command sequences. |
| 22784 | ;; |
| 22785 | '$CC '*) |
| 22786 | # Test whether the compiler implicitly links with -lc since on some |
| 22787 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22788 | # to ld, don't add -lc before -lgcc. |
| 22789 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22790 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 22791 | $rm conftest* |
| 22792 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22793 | |
| 22794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22795 | (eval $ac_compile) 2>&5 |
| 22796 | ac_status=$? |
| 22797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22798 | (exit $ac_status); } 2>conftest.err; then |
| 22799 | soname=conftest |
| 22800 | lib=conftest |
| 22801 | libobjs=conftest.$ac_objext |
| 22802 | deplibs= |
| 22803 | wl=$lt_prog_compiler_wl_GCJ |
| 22804 | compiler_flags=-v |
| 22805 | linker_flags=-v |
| 22806 | verstring= |
| 22807 | output_objdir=. |
| 22808 | libname=conftest |
| 22809 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 22810 | allow_undefined_flag_GCJ= |
| 22811 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22812 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22813 | ac_status=$? |
| 22814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22815 | (exit $ac_status); } |
| 22816 | then |
| 22817 | archive_cmds_need_lc_GCJ=no |
| 22818 | else |
| 22819 | archive_cmds_need_lc_GCJ=yes |
| 22820 | fi |
| 22821 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 22822 | else |
| 22823 | cat conftest.err 1>&5 |
| 22824 | fi |
| 22825 | $rm conftest* |
| 22826 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 22827 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 22828 | ;; |
| 22829 | esac |
| 22830 | fi |
| 22831 | ;; |
| 22832 | esac |
| 22833 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22834 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22835 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 22836 | library_names_spec= |
| 22837 | libname_spec='lib$name' |
| 22838 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22839 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22840 | postinstall_cmds= |
| 22841 | postuninstall_cmds= |
| 22842 | finish_cmds= |
| 22843 | finish_eval= |
| 22844 | shlibpath_var= |
| 22845 | shlibpath_overrides_runpath=unknown |
| 22846 | version_type=none |
| 22847 | dynamic_linker="$host_os ld.so" |
| 22848 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22849 | if test "$GCC" = yes; then |
| 22850 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22851 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22852 | # if the path contains ";" then we assume it to be the separator |
| 22853 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22854 | # assumed that no part of a normal pathname contains ";" but that should |
| 22855 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22856 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22857 | else |
| 22858 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22859 | fi |
| 22860 | else |
| 22861 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22862 | fi |
| 22863 | need_lib_prefix=unknown |
| 22864 | hardcode_into_libs=no |
| 22865 | |
| 22866 | # when you set need_version to no, make sure it does not cause -set_version |
| 22867 | # flags to be left without arguments |
| 22868 | need_version=unknown |
| 22869 | |
| 22870 | case $host_os in |
| 22871 | aix3*) |
| 22872 | version_type=linux |
| 22873 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22874 | shlibpath_var=LIBPATH |
| 22875 | |
| 22876 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22877 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22878 | ;; |
| 22879 | |
| 22880 | aix4* | aix5*) |
| 22881 | version_type=linux |
| 22882 | need_lib_prefix=no |
| 22883 | need_version=no |
| 22884 | hardcode_into_libs=yes |
| 22885 | if test "$host_cpu" = ia64; then |
| 22886 | # AIX 5 supports IA64 |
| 22887 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22888 | shlibpath_var=LD_LIBRARY_PATH |
| 22889 | else |
| 22890 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22891 | # for dependence libraries. The import file would start with |
| 22892 | # the line `#! .'. This would cause the generated library to |
| 22893 | # depend on `.', always an invalid library. This was fixed in |
| 22894 | # development snapshots of GCC prior to 3.0. |
| 22895 | case $host_os in |
| 22896 | aix4 | aix4.[01] | aix4.[01].*) |
| 22897 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22898 | echo ' yes ' |
| 22899 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22900 | : |
| 22901 | else |
| 22902 | can_build_shared=no |
| 22903 | fi |
| 22904 | ;; |
| 22905 | esac |
| 22906 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22907 | # soname into executable. Probably we can add versioning support to |
| 22908 | # collect2, so additional links can be useful in future. |
| 22909 | if test "$aix_use_runtimelinking" = yes; then |
| 22910 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22911 | # instead of lib<name>.a to let people know that these are not |
| 22912 | # typical AIX shared libraries. |
| 22913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22914 | else |
| 22915 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22916 | # and later when we are not doing run time linking. |
| 22917 | library_names_spec='${libname}${release}.a $libname.a' |
| 22918 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22919 | fi |
| 22920 | shlibpath_var=LIBPATH |
| 22921 | fi |
| 22922 | ;; |
| 22923 | |
| 22924 | amigaos*) |
| 22925 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22926 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22927 | 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] | 22928 | ;; |
| 22929 | |
| 22930 | beos*) |
| 22931 | library_names_spec='${libname}${shared_ext}' |
| 22932 | dynamic_linker="$host_os ld.so" |
| 22933 | shlibpath_var=LIBRARY_PATH |
| 22934 | ;; |
| 22935 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22936 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22937 | version_type=linux |
| 22938 | need_version=no |
| 22939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22940 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22941 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22942 | shlibpath_var=LD_LIBRARY_PATH |
| 22943 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22944 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22945 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22946 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22947 | # libtool to hard-code these into programs |
| 22948 | ;; |
| 22949 | |
| 22950 | cygwin* | mingw* | pw32*) |
| 22951 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22952 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22953 | need_version=no |
| 22954 | need_lib_prefix=no |
| 22955 | |
| 22956 | case $GCC,$host_os in |
| 22957 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22958 | library_names_spec='$libname.dll.a' |
| 22959 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22960 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22961 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22962 | dldir=$destdir/`dirname \$dlpath`~ |
| 22963 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22964 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22965 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22966 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22967 | $rm \$dlpath' |
| 22968 | shlibpath_overrides_runpath=yes |
| 22969 | |
| 22970 | case $host_os in |
| 22971 | cygwin*) |
| 22972 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22973 | 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] | 22974 | 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] | 22975 | ;; |
| 22976 | mingw*) |
| 22977 | # MinGW DLLs use traditional 'lib' prefix |
| 22978 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22979 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22980 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22981 | # It is most probably a Windows format PATH printed by |
| 22982 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22983 | # path with ; separators, and with drive letters. We can handle the |
| 22984 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22985 | # especially as we might pass files found there to a mingw objdump, |
| 22986 | # which wouldn't understand a cygwinified path. Ahh. |
| 22987 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22988 | else |
| 22989 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22990 | fi |
| 22991 | ;; |
| 22992 | pw32*) |
| 22993 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 22994 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 22995 | ;; |
| 22996 | esac |
| 22997 | ;; |
| 22998 | |
| 22999 | *) |
| 23000 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 23001 | ;; |
| 23002 | esac |
| 23003 | dynamic_linker='Win32 ld.exe' |
| 23004 | # FIXME: first we should search . and the directory the executable is in |
| 23005 | shlibpath_var=PATH |
| 23006 | ;; |
| 23007 | |
| 23008 | darwin* | rhapsody*) |
| 23009 | dynamic_linker="$host_os dyld" |
| 23010 | version_type=darwin |
| 23011 | need_lib_prefix=no |
| 23012 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23013 | 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] | 23014 | soname_spec='${libname}${release}${major}$shared_ext' |
| 23015 | shlibpath_overrides_runpath=yes |
| 23016 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23017 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23018 | # 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] | 23019 | if test "$GCC" = yes; then |
| 23020 | 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"` |
| 23021 | else |
| 23022 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23023 | fi |
| 23024 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 23025 | ;; |
| 23026 | |
| 23027 | dgux*) |
| 23028 | version_type=linux |
| 23029 | need_lib_prefix=no |
| 23030 | need_version=no |
| 23031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 23032 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23033 | shlibpath_var=LD_LIBRARY_PATH |
| 23034 | ;; |
| 23035 | |
| 23036 | freebsd1*) |
| 23037 | dynamic_linker=no |
| 23038 | ;; |
| 23039 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23040 | kfreebsd*-gnu) |
| 23041 | version_type=linux |
| 23042 | need_lib_prefix=no |
| 23043 | need_version=no |
| 23044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23046 | shlibpath_var=LD_LIBRARY_PATH |
| 23047 | shlibpath_overrides_runpath=no |
| 23048 | hardcode_into_libs=yes |
| 23049 | dynamic_linker='GNU ld.so' |
| 23050 | ;; |
| 23051 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23052 | freebsd*) |
| 23053 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 23054 | version_type=freebsd-$objformat |
| 23055 | case $version_type in |
| 23056 | freebsd-elf*) |
| 23057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23058 | need_version=no |
| 23059 | need_lib_prefix=no |
| 23060 | ;; |
| 23061 | freebsd-*) |
| 23062 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 23063 | need_version=yes |
| 23064 | ;; |
| 23065 | esac |
| 23066 | shlibpath_var=LD_LIBRARY_PATH |
| 23067 | case $host_os in |
| 23068 | freebsd2*) |
| 23069 | shlibpath_overrides_runpath=yes |
| 23070 | ;; |
| 23071 | freebsd3.01* | freebsdelf3.01*) |
| 23072 | shlibpath_overrides_runpath=yes |
| 23073 | hardcode_into_libs=yes |
| 23074 | ;; |
| 23075 | *) # from 3.2 on |
| 23076 | shlibpath_overrides_runpath=no |
| 23077 | hardcode_into_libs=yes |
| 23078 | ;; |
| 23079 | esac |
| 23080 | ;; |
| 23081 | |
| 23082 | gnu*) |
| 23083 | version_type=linux |
| 23084 | need_lib_prefix=no |
| 23085 | need_version=no |
| 23086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 23087 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23088 | shlibpath_var=LD_LIBRARY_PATH |
| 23089 | hardcode_into_libs=yes |
| 23090 | ;; |
| 23091 | |
| 23092 | hpux9* | hpux10* | hpux11*) |
| 23093 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 23094 | # link against other versions. |
| 23095 | version_type=sunos |
| 23096 | need_lib_prefix=no |
| 23097 | need_version=no |
| 23098 | case "$host_cpu" in |
| 23099 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23100 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23101 | hardcode_into_libs=yes |
| 23102 | dynamic_linker="$host_os dld.so" |
| 23103 | shlibpath_var=LD_LIBRARY_PATH |
| 23104 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23106 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23107 | if test "X$HPUX_IA64_MODE" = X32; then |
| 23108 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 23109 | else |
| 23110 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 23111 | fi |
| 23112 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23113 | ;; |
| 23114 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23115 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23116 | hardcode_into_libs=yes |
| 23117 | dynamic_linker="$host_os dld.sl" |
| 23118 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 23119 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23121 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23122 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 23123 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23124 | ;; |
| 23125 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23126 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23127 | dynamic_linker="$host_os dld.sl" |
| 23128 | shlibpath_var=SHLIB_PATH |
| 23129 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 23130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23131 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23132 | ;; |
| 23133 | esac |
| 23134 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 23135 | postinstall_cmds='chmod 555 $lib' |
| 23136 | ;; |
| 23137 | |
| 23138 | irix5* | irix6* | nonstopux*) |
| 23139 | case $host_os in |
| 23140 | nonstopux*) version_type=nonstopux ;; |
| 23141 | *) |
| 23142 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23143 | version_type=linux |
| 23144 | else |
| 23145 | version_type=irix |
| 23146 | fi ;; |
| 23147 | esac |
| 23148 | need_lib_prefix=no |
| 23149 | need_version=no |
| 23150 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23152 | case $host_os in |
| 23153 | irix5* | nonstopux*) |
| 23154 | libsuff= shlibsuff= |
| 23155 | ;; |
| 23156 | *) |
| 23157 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23158 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23159 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23160 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23161 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23162 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23163 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23164 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23165 | esac |
| 23166 | ;; |
| 23167 | esac |
| 23168 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23169 | shlibpath_overrides_runpath=no |
| 23170 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23171 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23172 | hardcode_into_libs=yes |
| 23173 | ;; |
| 23174 | |
| 23175 | # No shared lib support for Linux oldld, aout, or coff. |
| 23176 | linux*oldld* | linux*aout* | linux*coff*) |
| 23177 | dynamic_linker=no |
| 23178 | ;; |
| 23179 | |
| 23180 | # This must be Linux ELF. |
| 23181 | linux*) |
| 23182 | version_type=linux |
| 23183 | need_lib_prefix=no |
| 23184 | need_version=no |
| 23185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23186 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23187 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23188 | shlibpath_var=LD_LIBRARY_PATH |
| 23189 | shlibpath_overrides_runpath=no |
| 23190 | # This implies no fast_install, which is unacceptable. |
| 23191 | # Some rework will be needed to allow for fast_install |
| 23192 | # before this can be enabled. |
| 23193 | hardcode_into_libs=yes |
| 23194 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23195 | # Append ld.so.conf contents to the search path |
| 23196 | if test -f /etc/ld.so.conf; then |
| 23197 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 23198 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23199 | fi |
| 23200 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23201 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23202 | # powerpc, because MkLinux only supported shared libraries with the |
| 23203 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23204 | # most powerpc-linux boxes support dynamic linking these days and |
| 23205 | # people can always --disable-shared, the test was removed, and we |
| 23206 | # assume the GNU/Linux dynamic linker is in use. |
| 23207 | dynamic_linker='GNU/Linux ld.so' |
| 23208 | ;; |
| 23209 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23210 | knetbsd*-gnu) |
| 23211 | version_type=linux |
| 23212 | need_lib_prefix=no |
| 23213 | need_version=no |
| 23214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23215 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23216 | shlibpath_var=LD_LIBRARY_PATH |
| 23217 | shlibpath_overrides_runpath=no |
| 23218 | hardcode_into_libs=yes |
| 23219 | dynamic_linker='GNU ld.so' |
| 23220 | ;; |
| 23221 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23222 | netbsd*) |
| 23223 | version_type=sunos |
| 23224 | need_lib_prefix=no |
| 23225 | need_version=no |
| 23226 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23228 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23229 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23230 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23231 | 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] | 23232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23233 | dynamic_linker='NetBSD ld.elf_so' |
| 23234 | fi |
| 23235 | shlibpath_var=LD_LIBRARY_PATH |
| 23236 | shlibpath_overrides_runpath=yes |
| 23237 | hardcode_into_libs=yes |
| 23238 | ;; |
| 23239 | |
| 23240 | newsos6) |
| 23241 | version_type=linux |
| 23242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23243 | shlibpath_var=LD_LIBRARY_PATH |
| 23244 | shlibpath_overrides_runpath=yes |
| 23245 | ;; |
| 23246 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23247 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23248 | version_type=linux |
| 23249 | need_lib_prefix=no |
| 23250 | need_version=no |
| 23251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23252 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23253 | shlibpath_var=LD_LIBRARY_PATH |
| 23254 | shlibpath_overrides_runpath=yes |
| 23255 | ;; |
| 23256 | |
| 23257 | openbsd*) |
| 23258 | version_type=sunos |
| 23259 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 23260 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23262 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23263 | shlibpath_var=LD_LIBRARY_PATH |
| 23264 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23265 | case $host_os in |
| 23266 | openbsd2.[89] | openbsd2.[89].*) |
| 23267 | shlibpath_overrides_runpath=no |
| 23268 | ;; |
| 23269 | *) |
| 23270 | shlibpath_overrides_runpath=yes |
| 23271 | ;; |
| 23272 | esac |
| 23273 | else |
| 23274 | shlibpath_overrides_runpath=yes |
| 23275 | fi |
| 23276 | ;; |
| 23277 | |
| 23278 | os2*) |
| 23279 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23280 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23281 | need_lib_prefix=no |
| 23282 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23283 | dynamic_linker='OS/2 ld.exe' |
| 23284 | shlibpath_var=LIBPATH |
| 23285 | ;; |
| 23286 | |
| 23287 | osf3* | osf4* | osf5*) |
| 23288 | version_type=osf |
| 23289 | need_lib_prefix=no |
| 23290 | need_version=no |
| 23291 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23293 | shlibpath_var=LD_LIBRARY_PATH |
| 23294 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23295 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23296 | ;; |
| 23297 | |
| 23298 | sco3.2v5*) |
| 23299 | version_type=osf |
| 23300 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23302 | shlibpath_var=LD_LIBRARY_PATH |
| 23303 | ;; |
| 23304 | |
| 23305 | solaris*) |
| 23306 | version_type=linux |
| 23307 | need_lib_prefix=no |
| 23308 | need_version=no |
| 23309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23310 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23311 | shlibpath_var=LD_LIBRARY_PATH |
| 23312 | shlibpath_overrides_runpath=yes |
| 23313 | hardcode_into_libs=yes |
| 23314 | # ldd complains unless libraries are executable |
| 23315 | postinstall_cmds='chmod +x $lib' |
| 23316 | ;; |
| 23317 | |
| 23318 | sunos4*) |
| 23319 | version_type=sunos |
| 23320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23321 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23322 | shlibpath_var=LD_LIBRARY_PATH |
| 23323 | shlibpath_overrides_runpath=yes |
| 23324 | if test "$with_gnu_ld" = yes; then |
| 23325 | need_lib_prefix=no |
| 23326 | fi |
| 23327 | need_version=yes |
| 23328 | ;; |
| 23329 | |
| 23330 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 23331 | version_type=linux |
| 23332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23333 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23334 | shlibpath_var=LD_LIBRARY_PATH |
| 23335 | case $host_vendor in |
| 23336 | sni) |
| 23337 | shlibpath_overrides_runpath=no |
| 23338 | need_lib_prefix=no |
| 23339 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23340 | runpath_var=LD_RUN_PATH |
| 23341 | ;; |
| 23342 | siemens) |
| 23343 | need_lib_prefix=no |
| 23344 | ;; |
| 23345 | motorola) |
| 23346 | need_lib_prefix=no |
| 23347 | need_version=no |
| 23348 | shlibpath_overrides_runpath=no |
| 23349 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23350 | ;; |
| 23351 | esac |
| 23352 | ;; |
| 23353 | |
| 23354 | sysv4*MP*) |
| 23355 | if test -d /usr/nec ;then |
| 23356 | version_type=linux |
| 23357 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23358 | soname_spec='$libname${shared_ext}.$major' |
| 23359 | shlibpath_var=LD_LIBRARY_PATH |
| 23360 | fi |
| 23361 | ;; |
| 23362 | |
| 23363 | uts4*) |
| 23364 | version_type=linux |
| 23365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23366 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23367 | shlibpath_var=LD_LIBRARY_PATH |
| 23368 | ;; |
| 23369 | |
| 23370 | *) |
| 23371 | dynamic_linker=no |
| 23372 | ;; |
| 23373 | esac |
| 23374 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23375 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 23376 | test "$dynamic_linker" = no && can_build_shared=no |
| 23377 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23378 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23379 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 23380 | hardcode_action_GCJ= |
| 23381 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 23382 | test -n "$runpath_var_GCJ" || \ |
| 23383 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 23384 | |
| 23385 | # We can hardcode non-existant directories. |
| 23386 | if test "$hardcode_direct_GCJ" != no && |
| 23387 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23388 | # have to relink, otherwise we might link with an installed library |
| 23389 | # when we should be linking with a yet-to-be-installed one |
| 23390 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 23391 | test "$hardcode_minus_L_GCJ" != no; then |
| 23392 | # Linking always hardcodes the temporary library directory. |
| 23393 | hardcode_action_GCJ=relink |
| 23394 | else |
| 23395 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23396 | hardcode_action_GCJ=immediate |
| 23397 | fi |
| 23398 | else |
| 23399 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23400 | # directories. |
| 23401 | hardcode_action_GCJ=unsupported |
| 23402 | fi |
| 23403 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 23404 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 23405 | |
| 23406 | if test "$hardcode_action_GCJ" = relink; then |
| 23407 | # Fast installation is not supported |
| 23408 | enable_fast_install=no |
| 23409 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23410 | test "$enable_shared" = no; then |
| 23411 | # Fast installation is not necessary |
| 23412 | enable_fast_install=needless |
| 23413 | fi |
| 23414 | |
| 23415 | striplib= |
| 23416 | old_striplib= |
| 23417 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 23418 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 23419 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 23420 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 23421 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 23422 | echo "$as_me:$LINENO: result: yes" >&5 |
| 23423 | echo "${ECHO_T}yes" >&6 |
| 23424 | else |
| 23425 | # FIXME - insert some real tests, host_os isn't really good enough |
| 23426 | case $host_os in |
| 23427 | darwin*) |
| 23428 | if test -n "$STRIP" ; then |
| 23429 | striplib="$STRIP -x" |
| 23430 | echo "$as_me:$LINENO: result: yes" >&5 |
| 23431 | echo "${ECHO_T}yes" >&6 |
| 23432 | else |
| 23433 | echo "$as_me:$LINENO: result: no" >&5 |
| 23434 | echo "${ECHO_T}no" >&6 |
| 23435 | fi |
| 23436 | ;; |
| 23437 | *) |
| 23438 | echo "$as_me:$LINENO: result: no" >&5 |
| 23439 | echo "${ECHO_T}no" >&6 |
| 23440 | ;; |
| 23441 | esac |
| 23442 | fi |
| 23443 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23444 | if test "x$enable_dlopen" != xyes; then |
| 23445 | enable_dlopen=unknown |
| 23446 | enable_dlopen_self=unknown |
| 23447 | enable_dlopen_self_static=unknown |
| 23448 | else |
| 23449 | lt_cv_dlopen=no |
| 23450 | lt_cv_dlopen_libs= |
| 23451 | |
| 23452 | case $host_os in |
| 23453 | beos*) |
| 23454 | lt_cv_dlopen="load_add_on" |
| 23455 | lt_cv_dlopen_libs= |
| 23456 | lt_cv_dlopen_self=yes |
| 23457 | ;; |
| 23458 | |
| 23459 | mingw* | pw32*) |
| 23460 | lt_cv_dlopen="LoadLibrary" |
| 23461 | lt_cv_dlopen_libs= |
| 23462 | ;; |
| 23463 | |
| 23464 | cygwin*) |
| 23465 | lt_cv_dlopen="dlopen" |
| 23466 | lt_cv_dlopen_libs= |
| 23467 | ;; |
| 23468 | |
| 23469 | darwin*) |
| 23470 | # if libdl is installed we need to link against it |
| 23471 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 23472 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 23473 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 23474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23475 | else |
| 23476 | ac_check_lib_save_LIBS=$LIBS |
| 23477 | LIBS="-ldl $LIBS" |
| 23478 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23479 | /* confdefs.h. */ |
| 23480 | _ACEOF |
| 23481 | cat confdefs.h >>conftest.$ac_ext |
| 23482 | cat >>conftest.$ac_ext <<_ACEOF |
| 23483 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23484 | |
| 23485 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23486 | #ifdef __cplusplus |
| 23487 | extern "C" |
| 23488 | #endif |
| 23489 | /* We use char because int might match the return type of a gcc2 |
| 23490 | builtin and then its argument prototype would still apply. */ |
| 23491 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23492 | int |
| 23493 | main () |
| 23494 | { |
| 23495 | dlopen (); |
| 23496 | ; |
| 23497 | return 0; |
| 23498 | } |
| 23499 | _ACEOF |
| 23500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23502 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23503 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23505 | rm -f conftest.er1 |
| 23506 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23508 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23509 | { ac_try='test -z "$ac_c_werror_flag" |
| 23510 | || test ! -s conftest.err' |
| 23511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23512 | (eval $ac_try) 2>&5 |
| 23513 | ac_status=$? |
| 23514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23515 | (exit $ac_status); }; } && |
| 23516 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23518 | (eval $ac_try) 2>&5 |
| 23519 | ac_status=$? |
| 23520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23521 | (exit $ac_status); }; }; then |
| 23522 | ac_cv_lib_dl_dlopen=yes |
| 23523 | else |
| 23524 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23526 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23527 | ac_cv_lib_dl_dlopen=no |
| 23528 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23529 | rm -f conftest.err conftest.$ac_objext \ |
| 23530 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23531 | LIBS=$ac_check_lib_save_LIBS |
| 23532 | fi |
| 23533 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 23534 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 23535 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 23536 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 23537 | else |
| 23538 | |
| 23539 | lt_cv_dlopen="dyld" |
| 23540 | lt_cv_dlopen_libs= |
| 23541 | lt_cv_dlopen_self=yes |
| 23542 | |
| 23543 | fi |
| 23544 | |
| 23545 | ;; |
| 23546 | |
| 23547 | *) |
| 23548 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 23549 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 23550 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 23551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23552 | else |
| 23553 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23554 | /* confdefs.h. */ |
| 23555 | _ACEOF |
| 23556 | cat confdefs.h >>conftest.$ac_ext |
| 23557 | cat >>conftest.$ac_ext <<_ACEOF |
| 23558 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23559 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 23560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23561 | #define shl_load innocuous_shl_load |
| 23562 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23563 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23564 | which can conflict with char shl_load (); below. |
| 23565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23566 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23567 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23568 | #ifdef __STDC__ |
| 23569 | # include <limits.h> |
| 23570 | #else |
| 23571 | # include <assert.h> |
| 23572 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23573 | |
| 23574 | #undef shl_load |
| 23575 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23576 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23577 | #ifdef __cplusplus |
| 23578 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23579 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23580 | #endif |
| 23581 | /* We use char because int might match the return type of a gcc2 |
| 23582 | builtin and then its argument prototype would still apply. */ |
| 23583 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23584 | /* The GNU C library defines this for functions which it implements |
| 23585 | to always fail with ENOSYS. Some functions are actually named |
| 23586 | something starting with __ and the normal name is an alias. */ |
| 23587 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 23588 | choke me |
| 23589 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23590 | char (*f) () = shl_load; |
| 23591 | #endif |
| 23592 | #ifdef __cplusplus |
| 23593 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23594 | #endif |
| 23595 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23596 | int |
| 23597 | main () |
| 23598 | { |
| 23599 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23600 | ; |
| 23601 | return 0; |
| 23602 | } |
| 23603 | _ACEOF |
| 23604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23606 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23607 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23609 | rm -f conftest.er1 |
| 23610 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23612 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23613 | { ac_try='test -z "$ac_c_werror_flag" |
| 23614 | || test ! -s conftest.err' |
| 23615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23616 | (eval $ac_try) 2>&5 |
| 23617 | ac_status=$? |
| 23618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23619 | (exit $ac_status); }; } && |
| 23620 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23622 | (eval $ac_try) 2>&5 |
| 23623 | ac_status=$? |
| 23624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23625 | (exit $ac_status); }; }; then |
| 23626 | ac_cv_func_shl_load=yes |
| 23627 | else |
| 23628 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23630 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23631 | ac_cv_func_shl_load=no |
| 23632 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23633 | rm -f conftest.err conftest.$ac_objext \ |
| 23634 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23635 | fi |
| 23636 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 23637 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 23638 | if test $ac_cv_func_shl_load = yes; then |
| 23639 | lt_cv_dlopen="shl_load" |
| 23640 | else |
| 23641 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 23642 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 23643 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 23644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23645 | else |
| 23646 | ac_check_lib_save_LIBS=$LIBS |
| 23647 | LIBS="-ldld $LIBS" |
| 23648 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23649 | /* confdefs.h. */ |
| 23650 | _ACEOF |
| 23651 | cat confdefs.h >>conftest.$ac_ext |
| 23652 | cat >>conftest.$ac_ext <<_ACEOF |
| 23653 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23654 | |
| 23655 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23656 | #ifdef __cplusplus |
| 23657 | extern "C" |
| 23658 | #endif |
| 23659 | /* We use char because int might match the return type of a gcc2 |
| 23660 | builtin and then its argument prototype would still apply. */ |
| 23661 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23662 | int |
| 23663 | main () |
| 23664 | { |
| 23665 | shl_load (); |
| 23666 | ; |
| 23667 | return 0; |
| 23668 | } |
| 23669 | _ACEOF |
| 23670 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23672 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23673 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23675 | rm -f conftest.er1 |
| 23676 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23678 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23679 | { ac_try='test -z "$ac_c_werror_flag" |
| 23680 | || test ! -s conftest.err' |
| 23681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23682 | (eval $ac_try) 2>&5 |
| 23683 | ac_status=$? |
| 23684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23685 | (exit $ac_status); }; } && |
| 23686 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23688 | (eval $ac_try) 2>&5 |
| 23689 | ac_status=$? |
| 23690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23691 | (exit $ac_status); }; }; then |
| 23692 | ac_cv_lib_dld_shl_load=yes |
| 23693 | else |
| 23694 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23696 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23697 | ac_cv_lib_dld_shl_load=no |
| 23698 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23699 | rm -f conftest.err conftest.$ac_objext \ |
| 23700 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23701 | LIBS=$ac_check_lib_save_LIBS |
| 23702 | fi |
| 23703 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 23704 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 23705 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 23706 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 23707 | else |
| 23708 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 23709 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 23710 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 23711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23712 | else |
| 23713 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23714 | /* confdefs.h. */ |
| 23715 | _ACEOF |
| 23716 | cat confdefs.h >>conftest.$ac_ext |
| 23717 | cat >>conftest.$ac_ext <<_ACEOF |
| 23718 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23719 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 23720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23721 | #define dlopen innocuous_dlopen |
| 23722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23723 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23724 | which can conflict with char dlopen (); below. |
| 23725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23726 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23727 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23728 | #ifdef __STDC__ |
| 23729 | # include <limits.h> |
| 23730 | #else |
| 23731 | # include <assert.h> |
| 23732 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23733 | |
| 23734 | #undef dlopen |
| 23735 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23736 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23737 | #ifdef __cplusplus |
| 23738 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23739 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23740 | #endif |
| 23741 | /* We use char because int might match the return type of a gcc2 |
| 23742 | builtin and then its argument prototype would still apply. */ |
| 23743 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23744 | /* The GNU C library defines this for functions which it implements |
| 23745 | to always fail with ENOSYS. Some functions are actually named |
| 23746 | something starting with __ and the normal name is an alias. */ |
| 23747 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 23748 | choke me |
| 23749 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23750 | char (*f) () = dlopen; |
| 23751 | #endif |
| 23752 | #ifdef __cplusplus |
| 23753 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23754 | #endif |
| 23755 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23756 | int |
| 23757 | main () |
| 23758 | { |
| 23759 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23760 | ; |
| 23761 | return 0; |
| 23762 | } |
| 23763 | _ACEOF |
| 23764 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23766 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23767 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23769 | rm -f conftest.er1 |
| 23770 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23772 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23773 | { ac_try='test -z "$ac_c_werror_flag" |
| 23774 | || test ! -s conftest.err' |
| 23775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23776 | (eval $ac_try) 2>&5 |
| 23777 | ac_status=$? |
| 23778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23779 | (exit $ac_status); }; } && |
| 23780 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23782 | (eval $ac_try) 2>&5 |
| 23783 | ac_status=$? |
| 23784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23785 | (exit $ac_status); }; }; then |
| 23786 | ac_cv_func_dlopen=yes |
| 23787 | else |
| 23788 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23790 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23791 | ac_cv_func_dlopen=no |
| 23792 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23793 | rm -f conftest.err conftest.$ac_objext \ |
| 23794 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23795 | fi |
| 23796 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 23797 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 23798 | if test $ac_cv_func_dlopen = yes; then |
| 23799 | lt_cv_dlopen="dlopen" |
| 23800 | else |
| 23801 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 23802 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 23803 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 23804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23805 | else |
| 23806 | ac_check_lib_save_LIBS=$LIBS |
| 23807 | LIBS="-ldl $LIBS" |
| 23808 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23809 | /* confdefs.h. */ |
| 23810 | _ACEOF |
| 23811 | cat confdefs.h >>conftest.$ac_ext |
| 23812 | cat >>conftest.$ac_ext <<_ACEOF |
| 23813 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23814 | |
| 23815 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23816 | #ifdef __cplusplus |
| 23817 | extern "C" |
| 23818 | #endif |
| 23819 | /* We use char because int might match the return type of a gcc2 |
| 23820 | builtin and then its argument prototype would still apply. */ |
| 23821 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23822 | int |
| 23823 | main () |
| 23824 | { |
| 23825 | dlopen (); |
| 23826 | ; |
| 23827 | return 0; |
| 23828 | } |
| 23829 | _ACEOF |
| 23830 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23832 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23833 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23835 | rm -f conftest.er1 |
| 23836 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23838 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23839 | { ac_try='test -z "$ac_c_werror_flag" |
| 23840 | || test ! -s conftest.err' |
| 23841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23842 | (eval $ac_try) 2>&5 |
| 23843 | ac_status=$? |
| 23844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23845 | (exit $ac_status); }; } && |
| 23846 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23848 | (eval $ac_try) 2>&5 |
| 23849 | ac_status=$? |
| 23850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23851 | (exit $ac_status); }; }; then |
| 23852 | ac_cv_lib_dl_dlopen=yes |
| 23853 | else |
| 23854 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23856 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23857 | ac_cv_lib_dl_dlopen=no |
| 23858 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23859 | rm -f conftest.err conftest.$ac_objext \ |
| 23860 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23861 | LIBS=$ac_check_lib_save_LIBS |
| 23862 | fi |
| 23863 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 23864 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 23865 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 23866 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 23867 | else |
| 23868 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 23869 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 23870 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 23871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23872 | else |
| 23873 | ac_check_lib_save_LIBS=$LIBS |
| 23874 | LIBS="-lsvld $LIBS" |
| 23875 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23876 | /* confdefs.h. */ |
| 23877 | _ACEOF |
| 23878 | cat confdefs.h >>conftest.$ac_ext |
| 23879 | cat >>conftest.$ac_ext <<_ACEOF |
| 23880 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23881 | |
| 23882 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23883 | #ifdef __cplusplus |
| 23884 | extern "C" |
| 23885 | #endif |
| 23886 | /* We use char because int might match the return type of a gcc2 |
| 23887 | builtin and then its argument prototype would still apply. */ |
| 23888 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23889 | int |
| 23890 | main () |
| 23891 | { |
| 23892 | dlopen (); |
| 23893 | ; |
| 23894 | return 0; |
| 23895 | } |
| 23896 | _ACEOF |
| 23897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23899 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23900 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23902 | rm -f conftest.er1 |
| 23903 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23905 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23906 | { ac_try='test -z "$ac_c_werror_flag" |
| 23907 | || test ! -s conftest.err' |
| 23908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23909 | (eval $ac_try) 2>&5 |
| 23910 | ac_status=$? |
| 23911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23912 | (exit $ac_status); }; } && |
| 23913 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23915 | (eval $ac_try) 2>&5 |
| 23916 | ac_status=$? |
| 23917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23918 | (exit $ac_status); }; }; then |
| 23919 | ac_cv_lib_svld_dlopen=yes |
| 23920 | else |
| 23921 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23923 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23924 | ac_cv_lib_svld_dlopen=no |
| 23925 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23926 | rm -f conftest.err conftest.$ac_objext \ |
| 23927 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23928 | LIBS=$ac_check_lib_save_LIBS |
| 23929 | fi |
| 23930 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 23931 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 23932 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 23933 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 23934 | else |
| 23935 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 23936 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 23937 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 23938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23939 | else |
| 23940 | ac_check_lib_save_LIBS=$LIBS |
| 23941 | LIBS="-ldld $LIBS" |
| 23942 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23943 | /* confdefs.h. */ |
| 23944 | _ACEOF |
| 23945 | cat confdefs.h >>conftest.$ac_ext |
| 23946 | cat >>conftest.$ac_ext <<_ACEOF |
| 23947 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23948 | |
| 23949 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23950 | #ifdef __cplusplus |
| 23951 | extern "C" |
| 23952 | #endif |
| 23953 | /* We use char because int might match the return type of a gcc2 |
| 23954 | builtin and then its argument prototype would still apply. */ |
| 23955 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23956 | int |
| 23957 | main () |
| 23958 | { |
| 23959 | dld_link (); |
| 23960 | ; |
| 23961 | return 0; |
| 23962 | } |
| 23963 | _ACEOF |
| 23964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23966 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23967 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23969 | rm -f conftest.er1 |
| 23970 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23972 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23973 | { ac_try='test -z "$ac_c_werror_flag" |
| 23974 | || test ! -s conftest.err' |
| 23975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23976 | (eval $ac_try) 2>&5 |
| 23977 | ac_status=$? |
| 23978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23979 | (exit $ac_status); }; } && |
| 23980 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23982 | (eval $ac_try) 2>&5 |
| 23983 | ac_status=$? |
| 23984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23985 | (exit $ac_status); }; }; then |
| 23986 | ac_cv_lib_dld_dld_link=yes |
| 23987 | else |
| 23988 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23990 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23991 | ac_cv_lib_dld_dld_link=no |
| 23992 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23993 | rm -f conftest.err conftest.$ac_objext \ |
| 23994 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23995 | LIBS=$ac_check_lib_save_LIBS |
| 23996 | fi |
| 23997 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 23998 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 23999 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 24000 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 24001 | fi |
| 24002 | |
| 24003 | |
| 24004 | fi |
| 24005 | |
| 24006 | |
| 24007 | fi |
| 24008 | |
| 24009 | |
| 24010 | fi |
| 24011 | |
| 24012 | |
| 24013 | fi |
| 24014 | |
| 24015 | |
| 24016 | fi |
| 24017 | |
| 24018 | ;; |
| 24019 | esac |
| 24020 | |
| 24021 | if test "x$lt_cv_dlopen" != xno; then |
| 24022 | enable_dlopen=yes |
| 24023 | else |
| 24024 | enable_dlopen=no |
| 24025 | fi |
| 24026 | |
| 24027 | case $lt_cv_dlopen in |
| 24028 | dlopen) |
| 24029 | save_CPPFLAGS="$CPPFLAGS" |
| 24030 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 24031 | |
| 24032 | save_LDFLAGS="$LDFLAGS" |
| 24033 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 24034 | |
| 24035 | save_LIBS="$LIBS" |
| 24036 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 24037 | |
| 24038 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 24039 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 24040 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 24041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24042 | else |
| 24043 | if test "$cross_compiling" = yes; then : |
| 24044 | lt_cv_dlopen_self=cross |
| 24045 | else |
| 24046 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 24047 | lt_status=$lt_dlunknown |
| 24048 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 24049 | #line 24049 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24050 | #include "confdefs.h" |
| 24051 | |
| 24052 | #if HAVE_DLFCN_H |
| 24053 | #include <dlfcn.h> |
| 24054 | #endif |
| 24055 | |
| 24056 | #include <stdio.h> |
| 24057 | |
| 24058 | #ifdef RTLD_GLOBAL |
| 24059 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 24060 | #else |
| 24061 | # ifdef DL_GLOBAL |
| 24062 | # define LT_DLGLOBAL DL_GLOBAL |
| 24063 | # else |
| 24064 | # define LT_DLGLOBAL 0 |
| 24065 | # endif |
| 24066 | #endif |
| 24067 | |
| 24068 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 24069 | find out it does not work in some platform. */ |
| 24070 | #ifndef LT_DLLAZY_OR_NOW |
| 24071 | # ifdef RTLD_LAZY |
| 24072 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 24073 | # else |
| 24074 | # ifdef DL_LAZY |
| 24075 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 24076 | # else |
| 24077 | # ifdef RTLD_NOW |
| 24078 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 24079 | # else |
| 24080 | # ifdef DL_NOW |
| 24081 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 24082 | # else |
| 24083 | # define LT_DLLAZY_OR_NOW 0 |
| 24084 | # endif |
| 24085 | # endif |
| 24086 | # endif |
| 24087 | # endif |
| 24088 | #endif |
| 24089 | |
| 24090 | #ifdef __cplusplus |
| 24091 | extern "C" void exit (int); |
| 24092 | #endif |
| 24093 | |
| 24094 | void fnord() { int i=42;} |
| 24095 | int main () |
| 24096 | { |
| 24097 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 24098 | int status = $lt_dlunknown; |
| 24099 | |
| 24100 | if (self) |
| 24101 | { |
| 24102 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 24103 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 24104 | /* dlclose (self); */ |
| 24105 | } |
| 24106 | |
| 24107 | exit (status); |
| 24108 | } |
| 24109 | EOF |
| 24110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24111 | (eval $ac_link) 2>&5 |
| 24112 | ac_status=$? |
| 24113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24114 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 24115 | (./conftest; exit; ) 2>/dev/null |
| 24116 | lt_status=$? |
| 24117 | case x$lt_status in |
| 24118 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 24119 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 24120 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 24121 | esac |
| 24122 | else : |
| 24123 | # compilation failed |
| 24124 | lt_cv_dlopen_self=no |
| 24125 | fi |
| 24126 | fi |
| 24127 | rm -fr conftest* |
| 24128 | |
| 24129 | |
| 24130 | fi |
| 24131 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 24132 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 24133 | |
| 24134 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 24135 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 24136 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 24137 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 24138 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 24139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24140 | else |
| 24141 | if test "$cross_compiling" = yes; then : |
| 24142 | lt_cv_dlopen_self_static=cross |
| 24143 | else |
| 24144 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 24145 | lt_status=$lt_dlunknown |
| 24146 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 24147 | #line 24147 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24148 | #include "confdefs.h" |
| 24149 | |
| 24150 | #if HAVE_DLFCN_H |
| 24151 | #include <dlfcn.h> |
| 24152 | #endif |
| 24153 | |
| 24154 | #include <stdio.h> |
| 24155 | |
| 24156 | #ifdef RTLD_GLOBAL |
| 24157 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 24158 | #else |
| 24159 | # ifdef DL_GLOBAL |
| 24160 | # define LT_DLGLOBAL DL_GLOBAL |
| 24161 | # else |
| 24162 | # define LT_DLGLOBAL 0 |
| 24163 | # endif |
| 24164 | #endif |
| 24165 | |
| 24166 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 24167 | find out it does not work in some platform. */ |
| 24168 | #ifndef LT_DLLAZY_OR_NOW |
| 24169 | # ifdef RTLD_LAZY |
| 24170 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 24171 | # else |
| 24172 | # ifdef DL_LAZY |
| 24173 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 24174 | # else |
| 24175 | # ifdef RTLD_NOW |
| 24176 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 24177 | # else |
| 24178 | # ifdef DL_NOW |
| 24179 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 24180 | # else |
| 24181 | # define LT_DLLAZY_OR_NOW 0 |
| 24182 | # endif |
| 24183 | # endif |
| 24184 | # endif |
| 24185 | # endif |
| 24186 | #endif |
| 24187 | |
| 24188 | #ifdef __cplusplus |
| 24189 | extern "C" void exit (int); |
| 24190 | #endif |
| 24191 | |
| 24192 | void fnord() { int i=42;} |
| 24193 | int main () |
| 24194 | { |
| 24195 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 24196 | int status = $lt_dlunknown; |
| 24197 | |
| 24198 | if (self) |
| 24199 | { |
| 24200 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 24201 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 24202 | /* dlclose (self); */ |
| 24203 | } |
| 24204 | |
| 24205 | exit (status); |
| 24206 | } |
| 24207 | EOF |
| 24208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24209 | (eval $ac_link) 2>&5 |
| 24210 | ac_status=$? |
| 24211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24212 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 24213 | (./conftest; exit; ) 2>/dev/null |
| 24214 | lt_status=$? |
| 24215 | case x$lt_status in |
| 24216 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 24217 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 24218 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 24219 | esac |
| 24220 | else : |
| 24221 | # compilation failed |
| 24222 | lt_cv_dlopen_self_static=no |
| 24223 | fi |
| 24224 | fi |
| 24225 | rm -fr conftest* |
| 24226 | |
| 24227 | |
| 24228 | fi |
| 24229 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 24230 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 24231 | fi |
| 24232 | |
| 24233 | CPPFLAGS="$save_CPPFLAGS" |
| 24234 | LDFLAGS="$save_LDFLAGS" |
| 24235 | LIBS="$save_LIBS" |
| 24236 | ;; |
| 24237 | esac |
| 24238 | |
| 24239 | case $lt_cv_dlopen_self in |
| 24240 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 24241 | *) enable_dlopen_self=unknown ;; |
| 24242 | esac |
| 24243 | |
| 24244 | case $lt_cv_dlopen_self_static in |
| 24245 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 24246 | *) enable_dlopen_self_static=unknown ;; |
| 24247 | esac |
| 24248 | fi |
| 24249 | |
| 24250 | |
| 24251 | # The else clause should only fire when bootstrapping the |
| 24252 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 24253 | # with your package, and you will get complaints that there are |
| 24254 | # no rules to generate ltmain.sh. |
| 24255 | if test -f "$ltmain"; then |
| 24256 | # See if we are running on zsh, and set the options which allow our commands through |
| 24257 | # without removal of \ escapes. |
| 24258 | if test -n "${ZSH_VERSION+set}" ; then |
| 24259 | setopt NO_GLOB_SUBST |
| 24260 | fi |
| 24261 | # Now quote all the things that may contain metacharacters while being |
| 24262 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 24263 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24264 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 24265 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24266 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 24267 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 24268 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 24269 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 24270 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 24271 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 24272 | old_postinstall_cmds old_postuninstall_cmds \ |
| 24273 | compiler_GCJ \ |
| 24274 | CC_GCJ \ |
| 24275 | LD_GCJ \ |
| 24276 | lt_prog_compiler_wl_GCJ \ |
| 24277 | lt_prog_compiler_pic_GCJ \ |
| 24278 | lt_prog_compiler_static_GCJ \ |
| 24279 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 24280 | export_dynamic_flag_spec_GCJ \ |
| 24281 | thread_safe_flag_spec_GCJ \ |
| 24282 | whole_archive_flag_spec_GCJ \ |
| 24283 | enable_shared_with_static_runtimes_GCJ \ |
| 24284 | old_archive_cmds_GCJ \ |
| 24285 | old_archive_from_new_cmds_GCJ \ |
| 24286 | predep_objects_GCJ \ |
| 24287 | postdep_objects_GCJ \ |
| 24288 | predeps_GCJ \ |
| 24289 | postdeps_GCJ \ |
| 24290 | compiler_lib_search_path_GCJ \ |
| 24291 | archive_cmds_GCJ \ |
| 24292 | archive_expsym_cmds_GCJ \ |
| 24293 | postinstall_cmds_GCJ \ |
| 24294 | postuninstall_cmds_GCJ \ |
| 24295 | old_archive_from_expsyms_cmds_GCJ \ |
| 24296 | allow_undefined_flag_GCJ \ |
| 24297 | no_undefined_flag_GCJ \ |
| 24298 | export_symbols_cmds_GCJ \ |
| 24299 | hardcode_libdir_flag_spec_GCJ \ |
| 24300 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 24301 | hardcode_libdir_separator_GCJ \ |
| 24302 | hardcode_automatic_GCJ \ |
| 24303 | module_cmds_GCJ \ |
| 24304 | module_expsym_cmds_GCJ \ |
| 24305 | lt_cv_prog_compiler_c_o_GCJ \ |
| 24306 | exclude_expsyms_GCJ \ |
| 24307 | include_expsyms_GCJ; do |
| 24308 | |
| 24309 | case $var in |
| 24310 | old_archive_cmds_GCJ | \ |
| 24311 | old_archive_from_new_cmds_GCJ | \ |
| 24312 | archive_cmds_GCJ | \ |
| 24313 | archive_expsym_cmds_GCJ | \ |
| 24314 | module_cmds_GCJ | \ |
| 24315 | module_expsym_cmds_GCJ | \ |
| 24316 | old_archive_from_expsyms_cmds_GCJ | \ |
| 24317 | export_symbols_cmds_GCJ | \ |
| 24318 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 24319 | postinstall_cmds | postuninstall_cmds | \ |
| 24320 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 24321 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 24322 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24323 | 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] | 24324 | ;; |
| 24325 | *) |
| 24326 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 24327 | ;; |
| 24328 | esac |
| 24329 | done |
| 24330 | |
| 24331 | case $lt_echo in |
| 24332 | *'\$0 --fallback-echo"') |
| 24333 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 24334 | ;; |
| 24335 | esac |
| 24336 | |
| 24337 | cfgfile="$ofile" |
| 24338 | |
| 24339 | cat <<__EOF__ >> "$cfgfile" |
| 24340 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 24341 | |
| 24342 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 24343 | |
| 24344 | # Shell to use when invoking shell scripts. |
| 24345 | SHELL=$lt_SHELL |
| 24346 | |
| 24347 | # Whether or not to build shared libraries. |
| 24348 | build_libtool_libs=$enable_shared |
| 24349 | |
| 24350 | # Whether or not to build static libraries. |
| 24351 | build_old_libs=$enable_static |
| 24352 | |
| 24353 | # Whether or not to add -lc for building shared libraries. |
| 24354 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 24355 | |
| 24356 | # Whether or not to disallow shared libs when runtime libs are static |
| 24357 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 24358 | |
| 24359 | # Whether or not to optimize for fast installation. |
| 24360 | fast_install=$enable_fast_install |
| 24361 | |
| 24362 | # The host system. |
| 24363 | host_alias=$host_alias |
| 24364 | host=$host |
| 24365 | |
| 24366 | # An echo program that does not interpret backslashes. |
| 24367 | echo=$lt_echo |
| 24368 | |
| 24369 | # The archiver. |
| 24370 | AR=$lt_AR |
| 24371 | AR_FLAGS=$lt_AR_FLAGS |
| 24372 | |
| 24373 | # A C compiler. |
| 24374 | LTCC=$lt_LTCC |
| 24375 | |
| 24376 | # A language-specific compiler. |
| 24377 | CC=$lt_compiler_GCJ |
| 24378 | |
| 24379 | # Is the compiler the GNU C compiler? |
| 24380 | with_gcc=$GCC_GCJ |
| 24381 | |
| 24382 | # An ERE matcher. |
| 24383 | EGREP=$lt_EGREP |
| 24384 | |
| 24385 | # The linker used to build libraries. |
| 24386 | LD=$lt_LD_GCJ |
| 24387 | |
| 24388 | # Whether we need hard or soft links. |
| 24389 | LN_S=$lt_LN_S |
| 24390 | |
| 24391 | # A BSD-compatible nm program. |
| 24392 | NM=$lt_NM |
| 24393 | |
| 24394 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24395 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24396 | |
| 24397 | # Used to examine libraries when file_magic_cmd begins "file" |
| 24398 | MAGIC_CMD=$MAGIC_CMD |
| 24399 | |
| 24400 | # Used on cygwin: DLL creation program. |
| 24401 | DLLTOOL="$DLLTOOL" |
| 24402 | |
| 24403 | # Used on cygwin: object dumper. |
| 24404 | OBJDUMP="$OBJDUMP" |
| 24405 | |
| 24406 | # Used on cygwin: assembler. |
| 24407 | AS="$AS" |
| 24408 | |
| 24409 | # The name of the directory that contains temporary libtool files. |
| 24410 | objdir=$objdir |
| 24411 | |
| 24412 | # How to create reloadable object files. |
| 24413 | reload_flag=$lt_reload_flag |
| 24414 | reload_cmds=$lt_reload_cmds |
| 24415 | |
| 24416 | # How to pass a linker flag through the compiler. |
| 24417 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 24418 | |
| 24419 | # Object file suffix (normally "o"). |
| 24420 | objext="$ac_objext" |
| 24421 | |
| 24422 | # Old archive suffix (normally "a"). |
| 24423 | libext="$libext" |
| 24424 | |
| 24425 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24426 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24427 | |
| 24428 | # Executable file suffix (normally ""). |
| 24429 | exeext="$exeext" |
| 24430 | |
| 24431 | # Additional compiler flags for building library objects. |
| 24432 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 24433 | pic_mode=$pic_mode |
| 24434 | |
| 24435 | # What is the maximum length of a command? |
| 24436 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 24437 | |
| 24438 | # Does compiler simultaneously support -c and -o options? |
| 24439 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 24440 | |
| 24441 | # Must we lock files when doing compilation ? |
| 24442 | need_locks=$lt_need_locks |
| 24443 | |
| 24444 | # Do we need the lib prefix for modules? |
| 24445 | need_lib_prefix=$need_lib_prefix |
| 24446 | |
| 24447 | # Do we need a version for libraries? |
| 24448 | need_version=$need_version |
| 24449 | |
| 24450 | # Whether dlopen is supported. |
| 24451 | dlopen_support=$enable_dlopen |
| 24452 | |
| 24453 | # Whether dlopen of programs is supported. |
| 24454 | dlopen_self=$enable_dlopen_self |
| 24455 | |
| 24456 | # Whether dlopen of statically linked programs is supported. |
| 24457 | dlopen_self_static=$enable_dlopen_self_static |
| 24458 | |
| 24459 | # Compiler flag to prevent dynamic linking. |
| 24460 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 24461 | |
| 24462 | # Compiler flag to turn off builtin functions. |
| 24463 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 24464 | |
| 24465 | # Compiler flag to allow reflexive dlopens. |
| 24466 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 24467 | |
| 24468 | # Compiler flag to generate shared objects directly from archives. |
| 24469 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 24470 | |
| 24471 | # Compiler flag to generate thread-safe objects. |
| 24472 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 24473 | |
| 24474 | # Library versioning type. |
| 24475 | version_type=$version_type |
| 24476 | |
| 24477 | # Format of library name prefix. |
| 24478 | libname_spec=$lt_libname_spec |
| 24479 | |
| 24480 | # List of archive names. First name is the real one, the rest are links. |
| 24481 | # The last name is the one that the linker finds with -lNAME. |
| 24482 | library_names_spec=$lt_library_names_spec |
| 24483 | |
| 24484 | # The coded name of the library, if different from the real name. |
| 24485 | soname_spec=$lt_soname_spec |
| 24486 | |
| 24487 | # Commands used to build and install an old-style archive. |
| 24488 | RANLIB=$lt_RANLIB |
| 24489 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 24490 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24491 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24492 | |
| 24493 | # Create an old-style archive from a shared archive. |
| 24494 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 24495 | |
| 24496 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24497 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 24498 | |
| 24499 | # Commands used to build and install a shared archive. |
| 24500 | archive_cmds=$lt_archive_cmds_GCJ |
| 24501 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 24502 | postinstall_cmds=$lt_postinstall_cmds |
| 24503 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24504 | |
| 24505 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24506 | module_cmds=$lt_module_cmds_GCJ |
| 24507 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 24508 | |
| 24509 | # Commands to strip libraries. |
| 24510 | old_striplib=$lt_old_striplib |
| 24511 | striplib=$lt_striplib |
| 24512 | |
| 24513 | # Dependencies to place before the objects being linked to create a |
| 24514 | # shared library. |
| 24515 | predep_objects=$lt_predep_objects_GCJ |
| 24516 | |
| 24517 | # Dependencies to place after the objects being linked to create a |
| 24518 | # shared library. |
| 24519 | postdep_objects=$lt_postdep_objects_GCJ |
| 24520 | |
| 24521 | # Dependencies to place before the objects being linked to create a |
| 24522 | # shared library. |
| 24523 | predeps=$lt_predeps_GCJ |
| 24524 | |
| 24525 | # Dependencies to place after the objects being linked to create a |
| 24526 | # shared library. |
| 24527 | postdeps=$lt_postdeps_GCJ |
| 24528 | |
| 24529 | # The library search path used internally by the compiler when linking |
| 24530 | # a shared library. |
| 24531 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 24532 | |
| 24533 | # Method to check whether dependent libraries are shared objects. |
| 24534 | deplibs_check_method=$lt_deplibs_check_method |
| 24535 | |
| 24536 | # Command to use when deplibs_check_method == file_magic. |
| 24537 | file_magic_cmd=$lt_file_magic_cmd |
| 24538 | |
| 24539 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24540 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 24541 | |
| 24542 | # Flag that forces no undefined symbols. |
| 24543 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 24544 | |
| 24545 | # Commands used to finish a libtool library installation in a directory. |
| 24546 | finish_cmds=$lt_finish_cmds |
| 24547 | |
| 24548 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24549 | finish_eval=$lt_finish_eval |
| 24550 | |
| 24551 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24552 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24553 | |
| 24554 | # Transform the output of nm in a proper C declaration |
| 24555 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24556 | |
| 24557 | # Transform the output of nm in a C name address pair |
| 24558 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24559 | |
| 24560 | # This is the shared library runtime path variable. |
| 24561 | runpath_var=$runpath_var |
| 24562 | |
| 24563 | # This is the shared library path variable. |
| 24564 | shlibpath_var=$shlibpath_var |
| 24565 | |
| 24566 | # Is shlibpath searched before the hard-coded library search path? |
| 24567 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24568 | |
| 24569 | # How to hardcode a shared library path into an executable. |
| 24570 | hardcode_action=$hardcode_action_GCJ |
| 24571 | |
| 24572 | # Whether we should hardcode library paths into libraries. |
| 24573 | hardcode_into_libs=$hardcode_into_libs |
| 24574 | |
| 24575 | # Flag to hardcode \$libdir into a binary during linking. |
| 24576 | # This must work even if \$libdir does not exist. |
| 24577 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 24578 | |
| 24579 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24580 | # a binary during linking. This must work even if \$libdir does |
| 24581 | # not exist. |
| 24582 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 24583 | |
| 24584 | # Whether we need a single -rpath flag with a separated argument. |
| 24585 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 24586 | |
| 24587 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24588 | # resulting binary. |
| 24589 | hardcode_direct=$hardcode_direct_GCJ |
| 24590 | |
| 24591 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24592 | # resulting binary. |
| 24593 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 24594 | |
| 24595 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24596 | # the resulting binary. |
| 24597 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 24598 | |
| 24599 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24600 | # and all subsequent libraries and executables linked against it. |
| 24601 | hardcode_automatic=$hardcode_automatic_GCJ |
| 24602 | |
| 24603 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24604 | # restored at relink time. |
| 24605 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24606 | |
| 24607 | # Whether libtool must link a program against all its dependency libraries. |
| 24608 | link_all_deplibs=$link_all_deplibs_GCJ |
| 24609 | |
| 24610 | # Compile-time system search path for libraries |
| 24611 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24612 | |
| 24613 | # Run-time system search path for libraries |
| 24614 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24615 | |
| 24616 | # Fix the shell variable \$srcfile for the compiler. |
| 24617 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 24618 | |
| 24619 | # Set to yes if exported symbols are required. |
| 24620 | always_export_symbols=$always_export_symbols_GCJ |
| 24621 | |
| 24622 | # The commands to list exported symbols. |
| 24623 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 24624 | |
| 24625 | # The commands to extract the exported symbol list from a shared archive. |
| 24626 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24627 | |
| 24628 | # Symbols that should not be listed in the preloaded symbols. |
| 24629 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 24630 | |
| 24631 | # Symbols that must always be exported. |
| 24632 | include_expsyms=$lt_include_expsyms_GCJ |
| 24633 | |
| 24634 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24635 | |
| 24636 | __EOF__ |
| 24637 | |
| 24638 | |
| 24639 | else |
| 24640 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24641 | # `config.status --recheck' to rerun these tests and create the |
| 24642 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24643 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24644 | if test -f "$ltmain_in"; then |
| 24645 | test -f Makefile && make "$ltmain" |
| 24646 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24647 | fi |
| 24648 | |
| 24649 | |
| 24650 | ac_ext=c |
| 24651 | ac_cpp='$CPP $CPPFLAGS' |
| 24652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24655 | |
| 24656 | CC="$lt_save_CC" |
| 24657 | |
| 24658 | else |
| 24659 | tagname="" |
| 24660 | fi |
| 24661 | ;; |
| 24662 | |
| 24663 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24664 | ac_ext=c |
| 24665 | ac_cpp='$CPP $CPPFLAGS' |
| 24666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24669 | |
| 24670 | |
| 24671 | # Source file extension for RC test sources. |
| 24672 | ac_ext=rc |
| 24673 | |
| 24674 | # Object file extension for compiled RC test sources. |
| 24675 | objext=o |
| 24676 | objext_RC=$objext |
| 24677 | |
| 24678 | # Code to be used in simple compile tests |
| 24679 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 24680 | |
| 24681 | # Code to be used in simple link tests |
| 24682 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 24683 | |
| 24684 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24685 | |
| 24686 | # If no C compiler was specified, use CC. |
| 24687 | LTCC=${LTCC-"$CC"} |
| 24688 | |
| 24689 | # Allow CC to be a program name with arguments. |
| 24690 | compiler=$CC |
| 24691 | |
| 24692 | |
| 24693 | # Allow CC to be a program name with arguments. |
| 24694 | lt_save_CC="$CC" |
| 24695 | CC=${RC-"windres"} |
| 24696 | compiler=$CC |
| 24697 | compiler_RC=$CC |
| 24698 | lt_cv_prog_compiler_c_o_RC=yes |
| 24699 | |
| 24700 | # The else clause should only fire when bootstrapping the |
| 24701 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 24702 | # with your package, and you will get complaints that there are |
| 24703 | # no rules to generate ltmain.sh. |
| 24704 | if test -f "$ltmain"; then |
| 24705 | # See if we are running on zsh, and set the options which allow our commands through |
| 24706 | # without removal of \ escapes. |
| 24707 | if test -n "${ZSH_VERSION+set}" ; then |
| 24708 | setopt NO_GLOB_SUBST |
| 24709 | fi |
| 24710 | # Now quote all the things that may contain metacharacters while being |
| 24711 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 24712 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24713 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 24714 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24715 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 24716 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 24717 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 24718 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 24719 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 24720 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 24721 | old_postinstall_cmds old_postuninstall_cmds \ |
| 24722 | compiler_RC \ |
| 24723 | CC_RC \ |
| 24724 | LD_RC \ |
| 24725 | lt_prog_compiler_wl_RC \ |
| 24726 | lt_prog_compiler_pic_RC \ |
| 24727 | lt_prog_compiler_static_RC \ |
| 24728 | lt_prog_compiler_no_builtin_flag_RC \ |
| 24729 | export_dynamic_flag_spec_RC \ |
| 24730 | thread_safe_flag_spec_RC \ |
| 24731 | whole_archive_flag_spec_RC \ |
| 24732 | enable_shared_with_static_runtimes_RC \ |
| 24733 | old_archive_cmds_RC \ |
| 24734 | old_archive_from_new_cmds_RC \ |
| 24735 | predep_objects_RC \ |
| 24736 | postdep_objects_RC \ |
| 24737 | predeps_RC \ |
| 24738 | postdeps_RC \ |
| 24739 | compiler_lib_search_path_RC \ |
| 24740 | archive_cmds_RC \ |
| 24741 | archive_expsym_cmds_RC \ |
| 24742 | postinstall_cmds_RC \ |
| 24743 | postuninstall_cmds_RC \ |
| 24744 | old_archive_from_expsyms_cmds_RC \ |
| 24745 | allow_undefined_flag_RC \ |
| 24746 | no_undefined_flag_RC \ |
| 24747 | export_symbols_cmds_RC \ |
| 24748 | hardcode_libdir_flag_spec_RC \ |
| 24749 | hardcode_libdir_flag_spec_ld_RC \ |
| 24750 | hardcode_libdir_separator_RC \ |
| 24751 | hardcode_automatic_RC \ |
| 24752 | module_cmds_RC \ |
| 24753 | module_expsym_cmds_RC \ |
| 24754 | lt_cv_prog_compiler_c_o_RC \ |
| 24755 | exclude_expsyms_RC \ |
| 24756 | include_expsyms_RC; do |
| 24757 | |
| 24758 | case $var in |
| 24759 | old_archive_cmds_RC | \ |
| 24760 | old_archive_from_new_cmds_RC | \ |
| 24761 | archive_cmds_RC | \ |
| 24762 | archive_expsym_cmds_RC | \ |
| 24763 | module_cmds_RC | \ |
| 24764 | module_expsym_cmds_RC | \ |
| 24765 | old_archive_from_expsyms_cmds_RC | \ |
| 24766 | export_symbols_cmds_RC | \ |
| 24767 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 24768 | postinstall_cmds | postuninstall_cmds | \ |
| 24769 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 24770 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 24771 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24772 | 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] | 24773 | ;; |
| 24774 | *) |
| 24775 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 24776 | ;; |
| 24777 | esac |
| 24778 | done |
| 24779 | |
| 24780 | case $lt_echo in |
| 24781 | *'\$0 --fallback-echo"') |
| 24782 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 24783 | ;; |
| 24784 | esac |
| 24785 | |
| 24786 | cfgfile="$ofile" |
| 24787 | |
| 24788 | cat <<__EOF__ >> "$cfgfile" |
| 24789 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 24790 | |
| 24791 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 24792 | |
| 24793 | # Shell to use when invoking shell scripts. |
| 24794 | SHELL=$lt_SHELL |
| 24795 | |
| 24796 | # Whether or not to build shared libraries. |
| 24797 | build_libtool_libs=$enable_shared |
| 24798 | |
| 24799 | # Whether or not to build static libraries. |
| 24800 | build_old_libs=$enable_static |
| 24801 | |
| 24802 | # Whether or not to add -lc for building shared libraries. |
| 24803 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 24804 | |
| 24805 | # Whether or not to disallow shared libs when runtime libs are static |
| 24806 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 24807 | |
| 24808 | # Whether or not to optimize for fast installation. |
| 24809 | fast_install=$enable_fast_install |
| 24810 | |
| 24811 | # The host system. |
| 24812 | host_alias=$host_alias |
| 24813 | host=$host |
| 24814 | |
| 24815 | # An echo program that does not interpret backslashes. |
| 24816 | echo=$lt_echo |
| 24817 | |
| 24818 | # The archiver. |
| 24819 | AR=$lt_AR |
| 24820 | AR_FLAGS=$lt_AR_FLAGS |
| 24821 | |
| 24822 | # A C compiler. |
| 24823 | LTCC=$lt_LTCC |
| 24824 | |
| 24825 | # A language-specific compiler. |
| 24826 | CC=$lt_compiler_RC |
| 24827 | |
| 24828 | # Is the compiler the GNU C compiler? |
| 24829 | with_gcc=$GCC_RC |
| 24830 | |
| 24831 | # An ERE matcher. |
| 24832 | EGREP=$lt_EGREP |
| 24833 | |
| 24834 | # The linker used to build libraries. |
| 24835 | LD=$lt_LD_RC |
| 24836 | |
| 24837 | # Whether we need hard or soft links. |
| 24838 | LN_S=$lt_LN_S |
| 24839 | |
| 24840 | # A BSD-compatible nm program. |
| 24841 | NM=$lt_NM |
| 24842 | |
| 24843 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24844 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24845 | |
| 24846 | # Used to examine libraries when file_magic_cmd begins "file" |
| 24847 | MAGIC_CMD=$MAGIC_CMD |
| 24848 | |
| 24849 | # Used on cygwin: DLL creation program. |
| 24850 | DLLTOOL="$DLLTOOL" |
| 24851 | |
| 24852 | # Used on cygwin: object dumper. |
| 24853 | OBJDUMP="$OBJDUMP" |
| 24854 | |
| 24855 | # Used on cygwin: assembler. |
| 24856 | AS="$AS" |
| 24857 | |
| 24858 | # The name of the directory that contains temporary libtool files. |
| 24859 | objdir=$objdir |
| 24860 | |
| 24861 | # How to create reloadable object files. |
| 24862 | reload_flag=$lt_reload_flag |
| 24863 | reload_cmds=$lt_reload_cmds |
| 24864 | |
| 24865 | # How to pass a linker flag through the compiler. |
| 24866 | wl=$lt_lt_prog_compiler_wl_RC |
| 24867 | |
| 24868 | # Object file suffix (normally "o"). |
| 24869 | objext="$ac_objext" |
| 24870 | |
| 24871 | # Old archive suffix (normally "a"). |
| 24872 | libext="$libext" |
| 24873 | |
| 24874 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24875 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24876 | |
| 24877 | # Executable file suffix (normally ""). |
| 24878 | exeext="$exeext" |
| 24879 | |
| 24880 | # Additional compiler flags for building library objects. |
| 24881 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 24882 | pic_mode=$pic_mode |
| 24883 | |
| 24884 | # What is the maximum length of a command? |
| 24885 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 24886 | |
| 24887 | # Does compiler simultaneously support -c and -o options? |
| 24888 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 24889 | |
| 24890 | # Must we lock files when doing compilation ? |
| 24891 | need_locks=$lt_need_locks |
| 24892 | |
| 24893 | # Do we need the lib prefix for modules? |
| 24894 | need_lib_prefix=$need_lib_prefix |
| 24895 | |
| 24896 | # Do we need a version for libraries? |
| 24897 | need_version=$need_version |
| 24898 | |
| 24899 | # Whether dlopen is supported. |
| 24900 | dlopen_support=$enable_dlopen |
| 24901 | |
| 24902 | # Whether dlopen of programs is supported. |
| 24903 | dlopen_self=$enable_dlopen_self |
| 24904 | |
| 24905 | # Whether dlopen of statically linked programs is supported. |
| 24906 | dlopen_self_static=$enable_dlopen_self_static |
| 24907 | |
| 24908 | # Compiler flag to prevent dynamic linking. |
| 24909 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 24910 | |
| 24911 | # Compiler flag to turn off builtin functions. |
| 24912 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 24913 | |
| 24914 | # Compiler flag to allow reflexive dlopens. |
| 24915 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 24916 | |
| 24917 | # Compiler flag to generate shared objects directly from archives. |
| 24918 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 24919 | |
| 24920 | # Compiler flag to generate thread-safe objects. |
| 24921 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 24922 | |
| 24923 | # Library versioning type. |
| 24924 | version_type=$version_type |
| 24925 | |
| 24926 | # Format of library name prefix. |
| 24927 | libname_spec=$lt_libname_spec |
| 24928 | |
| 24929 | # List of archive names. First name is the real one, the rest are links. |
| 24930 | # The last name is the one that the linker finds with -lNAME. |
| 24931 | library_names_spec=$lt_library_names_spec |
| 24932 | |
| 24933 | # The coded name of the library, if different from the real name. |
| 24934 | soname_spec=$lt_soname_spec |
| 24935 | |
| 24936 | # Commands used to build and install an old-style archive. |
| 24937 | RANLIB=$lt_RANLIB |
| 24938 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 24939 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24940 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24941 | |
| 24942 | # Create an old-style archive from a shared archive. |
| 24943 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 24944 | |
| 24945 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24946 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 24947 | |
| 24948 | # Commands used to build and install a shared archive. |
| 24949 | archive_cmds=$lt_archive_cmds_RC |
| 24950 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 24951 | postinstall_cmds=$lt_postinstall_cmds |
| 24952 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24953 | |
| 24954 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24955 | module_cmds=$lt_module_cmds_RC |
| 24956 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 24957 | |
| 24958 | # Commands to strip libraries. |
| 24959 | old_striplib=$lt_old_striplib |
| 24960 | striplib=$lt_striplib |
| 24961 | |
| 24962 | # Dependencies to place before the objects being linked to create a |
| 24963 | # shared library. |
| 24964 | predep_objects=$lt_predep_objects_RC |
| 24965 | |
| 24966 | # Dependencies to place after the objects being linked to create a |
| 24967 | # shared library. |
| 24968 | postdep_objects=$lt_postdep_objects_RC |
| 24969 | |
| 24970 | # Dependencies to place before the objects being linked to create a |
| 24971 | # shared library. |
| 24972 | predeps=$lt_predeps_RC |
| 24973 | |
| 24974 | # Dependencies to place after the objects being linked to create a |
| 24975 | # shared library. |
| 24976 | postdeps=$lt_postdeps_RC |
| 24977 | |
| 24978 | # The library search path used internally by the compiler when linking |
| 24979 | # a shared library. |
| 24980 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 24981 | |
| 24982 | # Method to check whether dependent libraries are shared objects. |
| 24983 | deplibs_check_method=$lt_deplibs_check_method |
| 24984 | |
| 24985 | # Command to use when deplibs_check_method == file_magic. |
| 24986 | file_magic_cmd=$lt_file_magic_cmd |
| 24987 | |
| 24988 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24989 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 24990 | |
| 24991 | # Flag that forces no undefined symbols. |
| 24992 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 24993 | |
| 24994 | # Commands used to finish a libtool library installation in a directory. |
| 24995 | finish_cmds=$lt_finish_cmds |
| 24996 | |
| 24997 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24998 | finish_eval=$lt_finish_eval |
| 24999 | |
| 25000 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25001 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25002 | |
| 25003 | # Transform the output of nm in a proper C declaration |
| 25004 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25005 | |
| 25006 | # Transform the output of nm in a C name address pair |
| 25007 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25008 | |
| 25009 | # This is the shared library runtime path variable. |
| 25010 | runpath_var=$runpath_var |
| 25011 | |
| 25012 | # This is the shared library path variable. |
| 25013 | shlibpath_var=$shlibpath_var |
| 25014 | |
| 25015 | # Is shlibpath searched before the hard-coded library search path? |
| 25016 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25017 | |
| 25018 | # How to hardcode a shared library path into an executable. |
| 25019 | hardcode_action=$hardcode_action_RC |
| 25020 | |
| 25021 | # Whether we should hardcode library paths into libraries. |
| 25022 | hardcode_into_libs=$hardcode_into_libs |
| 25023 | |
| 25024 | # Flag to hardcode \$libdir into a binary during linking. |
| 25025 | # This must work even if \$libdir does not exist. |
| 25026 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 25027 | |
| 25028 | # If ld is used when linking, flag to hardcode \$libdir into |
| 25029 | # a binary during linking. This must work even if \$libdir does |
| 25030 | # not exist. |
| 25031 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 25032 | |
| 25033 | # Whether we need a single -rpath flag with a separated argument. |
| 25034 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 25035 | |
| 25036 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 25037 | # resulting binary. |
| 25038 | hardcode_direct=$hardcode_direct_RC |
| 25039 | |
| 25040 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 25041 | # resulting binary. |
| 25042 | hardcode_minus_L=$hardcode_minus_L_RC |
| 25043 | |
| 25044 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 25045 | # the resulting binary. |
| 25046 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 25047 | |
| 25048 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 25049 | # and all subsequent libraries and executables linked against it. |
| 25050 | hardcode_automatic=$hardcode_automatic_RC |
| 25051 | |
| 25052 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25053 | # restored at relink time. |
| 25054 | variables_saved_for_relink="$variables_saved_for_relink" |
| 25055 | |
| 25056 | # Whether libtool must link a program against all its dependency libraries. |
| 25057 | link_all_deplibs=$link_all_deplibs_RC |
| 25058 | |
| 25059 | # Compile-time system search path for libraries |
| 25060 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25061 | |
| 25062 | # Run-time system search path for libraries |
| 25063 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25064 | |
| 25065 | # Fix the shell variable \$srcfile for the compiler. |
| 25066 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 25067 | |
| 25068 | # Set to yes if exported symbols are required. |
| 25069 | always_export_symbols=$always_export_symbols_RC |
| 25070 | |
| 25071 | # The commands to list exported symbols. |
| 25072 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 25073 | |
| 25074 | # The commands to extract the exported symbol list from a shared archive. |
| 25075 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25076 | |
| 25077 | # Symbols that should not be listed in the preloaded symbols. |
| 25078 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 25079 | |
| 25080 | # Symbols that must always be exported. |
| 25081 | include_expsyms=$lt_include_expsyms_RC |
| 25082 | |
| 25083 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 25084 | |
| 25085 | __EOF__ |
| 25086 | |
| 25087 | |
| 25088 | else |
| 25089 | # If there is no Makefile yet, we rely on a make rule to execute |
| 25090 | # `config.status --recheck' to rerun these tests and create the |
| 25091 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25092 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 25093 | if test -f "$ltmain_in"; then |
| 25094 | test -f Makefile && make "$ltmain" |
| 25095 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25096 | fi |
| 25097 | |
| 25098 | |
| 25099 | ac_ext=c |
| 25100 | ac_cpp='$CPP $CPPFLAGS' |
| 25101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25102 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25103 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25104 | |
| 25105 | CC="$lt_save_CC" |
| 25106 | |
| 25107 | ;; |
| 25108 | |
| 25109 | *) |
| 25110 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 25111 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 25112 | { (exit 1); exit 1; }; } |
| 25113 | ;; |
| 25114 | esac |
| 25115 | |
| 25116 | # Append the new tag name to the list of available tags. |
| 25117 | if test -n "$tagname" ; then |
| 25118 | available_tags="$available_tags $tagname" |
| 25119 | fi |
| 25120 | fi |
| 25121 | done |
| 25122 | IFS="$lt_save_ifs" |
| 25123 | |
| 25124 | # Now substitute the updated list of available tags. |
| 25125 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 25126 | mv "${ofile}T" "$ofile" |
| 25127 | chmod +x "$ofile" |
| 25128 | else |
| 25129 | rm -f "${ofile}T" |
| 25130 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 25131 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 25132 | { (exit 1); exit 1; }; } |
| 25133 | fi |
| 25134 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25135 | |
| 25136 | |
| 25137 | |
| 25138 | # This can be used to rebuild libtool when needed |
| 25139 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 25140 | |
| 25141 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25142 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25143 | |
| 25144 | # Prevent multiple expansion |
| 25145 | |
| 25146 | |
| 25147 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25148 | |
| 25149 | |
| 25150 | |
| 25151 | |
| 25152 | |
| 25153 | |
| 25154 | |
| 25155 | |
| 25156 | |
| 25157 | |
| 25158 | |
| 25159 | |
| 25160 | |
| 25161 | |
| 25162 | |
| 25163 | |
| 25164 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25165 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 25166 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 25167 | |
| 25168 | cat >>confdefs.h <<\_ACEOF |
| 25169 | #define CAN_DLOPEN_SELF 1 |
| 25170 | _ACEOF |
| 25171 | |
| 25172 | fi |
| 25173 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25174 | etags_version=`$ETAGS --version 2>&1` |
| 25175 | case "$etags_version" in |
| 25176 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 25177 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 25178 | *) ETAGSFLAGS="" ;; |
| 25179 | esac |
| 25180 | ETAGSFLAGS=$ETAGSFLAGS |
| 25181 | |
| 25182 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 25183 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 25184 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 25185 | LLVMGXX="llvm-g++${EXEEXT}" |
| 25186 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 25187 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25188 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 25189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 25190 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 25191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25192 | else |
| 25193 | case $LLVMGCC in |
| 25194 | [\\/]* | ?:[\\/]*) |
| 25195 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 25196 | ;; |
| 25197 | *) |
| 25198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25199 | for as_dir in $PATH |
| 25200 | do |
| 25201 | IFS=$as_save_IFS |
| 25202 | test -z "$as_dir" && as_dir=. |
| 25203 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25204 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25205 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 25206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25207 | break 2 |
| 25208 | fi |
| 25209 | done |
| 25210 | done |
| 25211 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25212 | ;; |
| 25213 | esac |
| 25214 | fi |
| 25215 | LLVMGCC=$ac_cv_path_LLVMGCC |
| 25216 | |
| 25217 | if test -n "$LLVMGCC"; then |
| 25218 | echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 25219 | echo "${ECHO_T}$LLVMGCC" >&6 |
| 25220 | else |
| 25221 | echo "$as_me:$LINENO: result: no" >&5 |
| 25222 | echo "${ECHO_T}no" >&6 |
| 25223 | fi |
| 25224 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 25225 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 25226 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 25228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 25229 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 25230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25231 | else |
| 25232 | case $LLVMGXX in |
| 25233 | [\\/]* | ?:[\\/]*) |
| 25234 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 25235 | ;; |
| 25236 | *) |
| 25237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25238 | for as_dir in $PATH |
| 25239 | do |
| 25240 | IFS=$as_save_IFS |
| 25241 | test -z "$as_dir" && as_dir=. |
| 25242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25243 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25244 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 25245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25246 | break 2 |
| 25247 | fi |
| 25248 | done |
| 25249 | done |
| 25250 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25251 | ;; |
| 25252 | esac |
| 25253 | fi |
| 25254 | LLVMGXX=$ac_cv_path_LLVMGXX |
| 25255 | |
| 25256 | if test -n "$LLVMGXX"; then |
| 25257 | echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 25258 | echo "${ECHO_T}$LLVMGXX" >&6 |
| 25259 | else |
| 25260 | echo "$as_me:$LINENO: result: no" >&5 |
| 25261 | echo "${ECHO_T}no" >&6 |
| 25262 | fi |
| 25263 | |
| 25264 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 25265 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 25266 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25267 | LLVMGCC=$LLVMGCC |
| 25268 | |
| 25269 | LLVMGXX=$LLVMGXX |
| 25270 | |
| 25271 | fi |
| 25272 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25273 | echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 25274 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 |
| 25275 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 25276 | ICC=no |
| 25277 | IXX=no |
| 25278 | case $CC in |
| 25279 | icc*|icpc*) |
| 25280 | ICC=yes |
| 25281 | IXX=yes |
| 25282 | ;; |
| 25283 | *) |
| 25284 | ;; |
| 25285 | esac |
| 25286 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 25287 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 25288 | then |
| 25289 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 25290 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 25291 | { (exit 1); exit 1; }; } |
| 25292 | fi |
| 25293 | |
| 25294 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 25295 | then |
| 25296 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 25297 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 25298 | { (exit 1); exit 1; }; } |
| 25299 | fi |
| 25300 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 25301 | if test "$GCC" = "yes" |
| 25302 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 25303 | gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'` |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 25304 | if test "$gccmajor" -lt "3" |
| 25305 | then |
| 25306 | { { 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] | 25307 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 25308 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 25309 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25310 | fi |
| 25311 | |
| 25312 | if test -z "$llvm_cv_gnu_make_command" |
| 25313 | then |
| 25314 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 25315 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 25316 | { (exit 1); exit 1; }; } |
| 25317 | fi |
| 25318 | |
| 25319 | echo "$as_me:$LINENO: result: ok" >&5 |
| 25320 | echo "${ECHO_T}ok" >&6 |
| 25321 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25322 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25323 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25324 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 25325 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 25326 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 25327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25328 | else |
| 25329 | ac_check_lib_save_LIBS=$LIBS |
| 25330 | LIBS="-lelf $LIBS" |
| 25331 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25332 | /* confdefs.h. */ |
| 25333 | _ACEOF |
| 25334 | cat confdefs.h >>conftest.$ac_ext |
| 25335 | cat >>conftest.$ac_ext <<_ACEOF |
| 25336 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25337 | |
| 25338 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25339 | #ifdef __cplusplus |
| 25340 | extern "C" |
| 25341 | #endif |
| 25342 | /* We use char because int might match the return type of a gcc2 |
| 25343 | builtin and then its argument prototype would still apply. */ |
| 25344 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25345 | int |
| 25346 | main () |
| 25347 | { |
| 25348 | elf_begin (); |
| 25349 | ; |
| 25350 | return 0; |
| 25351 | } |
| 25352 | _ACEOF |
| 25353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25355 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25356 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25358 | rm -f conftest.er1 |
| 25359 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25361 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25362 | { ac_try='test -z "$ac_c_werror_flag" |
| 25363 | || test ! -s conftest.err' |
| 25364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25365 | (eval $ac_try) 2>&5 |
| 25366 | ac_status=$? |
| 25367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25368 | (exit $ac_status); }; } && |
| 25369 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25371 | (eval $ac_try) 2>&5 |
| 25372 | ac_status=$? |
| 25373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25374 | (exit $ac_status); }; }; then |
| 25375 | ac_cv_lib_elf_elf_begin=yes |
| 25376 | else |
| 25377 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25379 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25380 | ac_cv_lib_elf_elf_begin=no |
| 25381 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25382 | rm -f conftest.err conftest.$ac_objext \ |
| 25383 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25384 | LIBS=$ac_check_lib_save_LIBS |
| 25385 | fi |
| 25386 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 25387 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 25388 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 25389 | cat >>confdefs.h <<_ACEOF |
| 25390 | #define HAVE_LIBELF 1 |
| 25391 | _ACEOF |
| 25392 | |
| 25393 | LIBS="-lelf $LIBS" |
| 25394 | |
| 25395 | fi |
| 25396 | |
| 25397 | |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25398 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 25399 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 |
| 25400 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 25401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25402 | else |
| 25403 | ac_check_lib_save_LIBS=$LIBS |
| 25404 | LIBS="-lm $LIBS" |
| 25405 | cat >conftest.$ac_ext <<_ACEOF |
| 25406 | /* confdefs.h. */ |
| 25407 | _ACEOF |
| 25408 | cat confdefs.h >>conftest.$ac_ext |
| 25409 | cat >>conftest.$ac_ext <<_ACEOF |
| 25410 | /* end confdefs.h. */ |
| 25411 | |
| 25412 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25413 | #ifdef __cplusplus |
| 25414 | extern "C" |
| 25415 | #endif |
| 25416 | /* We use char because int might match the return type of a gcc2 |
| 25417 | builtin and then its argument prototype would still apply. */ |
| 25418 | char sin (); |
| 25419 | int |
| 25420 | main () |
| 25421 | { |
| 25422 | sin (); |
| 25423 | ; |
| 25424 | return 0; |
| 25425 | } |
| 25426 | _ACEOF |
| 25427 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25429 | (eval $ac_link) 2>conftest.er1 |
| 25430 | ac_status=$? |
| 25431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25432 | rm -f conftest.er1 |
| 25433 | cat conftest.err >&5 |
| 25434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25435 | (exit $ac_status); } && |
| 25436 | { ac_try='test -z "$ac_c_werror_flag" |
| 25437 | || test ! -s conftest.err' |
| 25438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25439 | (eval $ac_try) 2>&5 |
| 25440 | ac_status=$? |
| 25441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25442 | (exit $ac_status); }; } && |
| 25443 | { ac_try='test -s conftest$ac_exeext' |
| 25444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25445 | (eval $ac_try) 2>&5 |
| 25446 | ac_status=$? |
| 25447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25448 | (exit $ac_status); }; }; then |
| 25449 | ac_cv_lib_m_sin=yes |
| 25450 | else |
| 25451 | echo "$as_me: failed program was:" >&5 |
| 25452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25453 | |
| 25454 | ac_cv_lib_m_sin=no |
| 25455 | fi |
| 25456 | rm -f conftest.err conftest.$ac_objext \ |
| 25457 | conftest$ac_exeext conftest.$ac_ext |
| 25458 | LIBS=$ac_check_lib_save_LIBS |
| 25459 | fi |
| 25460 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 25461 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 |
| 25462 | if test $ac_cv_lib_m_sin = yes; then |
| 25463 | cat >>confdefs.h <<_ACEOF |
| 25464 | #define HAVE_LIBM 1 |
| 25465 | _ACEOF |
| 25466 | |
| 25467 | LIBS="-lm $LIBS" |
| 25468 | |
| 25469 | fi |
| 25470 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25471 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 25472 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25473 | echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 25474 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6 |
| 25475 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25477 | else |
| 25478 | ac_check_lib_save_LIBS=$LIBS |
| 25479 | LIBS="-limagehlp $LIBS" |
| 25480 | cat >conftest.$ac_ext <<_ACEOF |
| 25481 | /* confdefs.h. */ |
| 25482 | _ACEOF |
| 25483 | cat confdefs.h >>conftest.$ac_ext |
| 25484 | cat >>conftest.$ac_ext <<_ACEOF |
| 25485 | /* end confdefs.h. */ |
| 25486 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25487 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25488 | int |
| 25489 | main () |
| 25490 | { |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25491 | main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25492 | ; |
| 25493 | return 0; |
| 25494 | } |
| 25495 | _ACEOF |
| 25496 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25498 | (eval $ac_link) 2>conftest.er1 |
| 25499 | ac_status=$? |
| 25500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25501 | rm -f conftest.er1 |
| 25502 | cat conftest.err >&5 |
| 25503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25504 | (exit $ac_status); } && |
| 25505 | { ac_try='test -z "$ac_c_werror_flag" |
| 25506 | || test ! -s conftest.err' |
| 25507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25508 | (eval $ac_try) 2>&5 |
| 25509 | ac_status=$? |
| 25510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25511 | (exit $ac_status); }; } && |
| 25512 | { ac_try='test -s conftest$ac_exeext' |
| 25513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25514 | (eval $ac_try) 2>&5 |
| 25515 | ac_status=$? |
| 25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25517 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25518 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25519 | else |
| 25520 | echo "$as_me: failed program was:" >&5 |
| 25521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25522 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25523 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25524 | fi |
| 25525 | rm -f conftest.err conftest.$ac_objext \ |
| 25526 | conftest$ac_exeext conftest.$ac_ext |
| 25527 | LIBS=$ac_check_lib_save_LIBS |
| 25528 | fi |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25529 | echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 25530 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6 |
| 25531 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25532 | cat >>confdefs.h <<_ACEOF |
| 25533 | #define HAVE_LIBIMAGEHLP 1 |
| 25534 | _ACEOF |
| 25535 | |
| 25536 | LIBS="-limagehlp $LIBS" |
| 25537 | |
| 25538 | fi |
| 25539 | |
| 25540 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25541 | echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 25542 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6 |
| 25543 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25545 | else |
| 25546 | ac_check_lib_save_LIBS=$LIBS |
| 25547 | LIBS="-lpsapi $LIBS" |
| 25548 | cat >conftest.$ac_ext <<_ACEOF |
| 25549 | /* confdefs.h. */ |
| 25550 | _ACEOF |
| 25551 | cat confdefs.h >>conftest.$ac_ext |
| 25552 | cat >>conftest.$ac_ext <<_ACEOF |
| 25553 | /* end confdefs.h. */ |
| 25554 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25555 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25556 | int |
| 25557 | main () |
| 25558 | { |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25559 | main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25560 | ; |
| 25561 | return 0; |
| 25562 | } |
| 25563 | _ACEOF |
| 25564 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25566 | (eval $ac_link) 2>conftest.er1 |
| 25567 | ac_status=$? |
| 25568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25569 | rm -f conftest.er1 |
| 25570 | cat conftest.err >&5 |
| 25571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25572 | (exit $ac_status); } && |
| 25573 | { ac_try='test -z "$ac_c_werror_flag" |
| 25574 | || test ! -s conftest.err' |
| 25575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25576 | (eval $ac_try) 2>&5 |
| 25577 | ac_status=$? |
| 25578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25579 | (exit $ac_status); }; } && |
| 25580 | { ac_try='test -s conftest$ac_exeext' |
| 25581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25582 | (eval $ac_try) 2>&5 |
| 25583 | ac_status=$? |
| 25584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25585 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25586 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25587 | else |
| 25588 | echo "$as_me: failed program was:" >&5 |
| 25589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25590 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25591 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25592 | fi |
| 25593 | rm -f conftest.err conftest.$ac_objext \ |
| 25594 | conftest$ac_exeext conftest.$ac_ext |
| 25595 | LIBS=$ac_check_lib_save_LIBS |
| 25596 | fi |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25597 | echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 25598 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6 |
| 25599 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25600 | cat >>confdefs.h <<_ACEOF |
| 25601 | #define HAVE_LIBPSAPI 1 |
| 25602 | _ACEOF |
| 25603 | |
| 25604 | LIBS="-lpsapi $LIBS" |
| 25605 | |
| 25606 | fi |
| 25607 | |
| 25608 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 25609 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 25610 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 25611 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 |
| 25612 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 25613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25614 | else |
| 25615 | ac_func_search_save_LIBS=$LIBS |
| 25616 | ac_cv_search_lt_dlopen=no |
| 25617 | cat >conftest.$ac_ext <<_ACEOF |
| 25618 | /* confdefs.h. */ |
| 25619 | _ACEOF |
| 25620 | cat confdefs.h >>conftest.$ac_ext |
| 25621 | cat >>conftest.$ac_ext <<_ACEOF |
| 25622 | /* end confdefs.h. */ |
| 25623 | |
| 25624 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25625 | #ifdef __cplusplus |
| 25626 | extern "C" |
| 25627 | #endif |
| 25628 | /* We use char because int might match the return type of a gcc2 |
| 25629 | builtin and then its argument prototype would still apply. */ |
| 25630 | char lt_dlopen (); |
| 25631 | int |
| 25632 | main () |
| 25633 | { |
| 25634 | lt_dlopen (); |
| 25635 | ; |
| 25636 | return 0; |
| 25637 | } |
| 25638 | _ACEOF |
| 25639 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25641 | (eval $ac_link) 2>conftest.er1 |
| 25642 | ac_status=$? |
| 25643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25644 | rm -f conftest.er1 |
| 25645 | cat conftest.err >&5 |
| 25646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25647 | (exit $ac_status); } && |
| 25648 | { ac_try='test -z "$ac_c_werror_flag" |
| 25649 | || test ! -s conftest.err' |
| 25650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25651 | (eval $ac_try) 2>&5 |
| 25652 | ac_status=$? |
| 25653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25654 | (exit $ac_status); }; } && |
| 25655 | { ac_try='test -s conftest$ac_exeext' |
| 25656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25657 | (eval $ac_try) 2>&5 |
| 25658 | ac_status=$? |
| 25659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25660 | (exit $ac_status); }; }; then |
| 25661 | ac_cv_search_lt_dlopen="none required" |
| 25662 | else |
| 25663 | echo "$as_me: failed program was:" >&5 |
| 25664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25665 | |
| 25666 | fi |
| 25667 | rm -f conftest.err conftest.$ac_objext \ |
| 25668 | conftest$ac_exeext conftest.$ac_ext |
| 25669 | if test "$ac_cv_search_lt_dlopen" = no; then |
| 25670 | for ac_lib in ltdl; do |
| 25671 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25672 | cat >conftest.$ac_ext <<_ACEOF |
| 25673 | /* confdefs.h. */ |
| 25674 | _ACEOF |
| 25675 | cat confdefs.h >>conftest.$ac_ext |
| 25676 | cat >>conftest.$ac_ext <<_ACEOF |
| 25677 | /* end confdefs.h. */ |
| 25678 | |
| 25679 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25680 | #ifdef __cplusplus |
| 25681 | extern "C" |
| 25682 | #endif |
| 25683 | /* We use char because int might match the return type of a gcc2 |
| 25684 | builtin and then its argument prototype would still apply. */ |
| 25685 | char lt_dlopen (); |
| 25686 | int |
| 25687 | main () |
| 25688 | { |
| 25689 | lt_dlopen (); |
| 25690 | ; |
| 25691 | return 0; |
| 25692 | } |
| 25693 | _ACEOF |
| 25694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25696 | (eval $ac_link) 2>conftest.er1 |
| 25697 | ac_status=$? |
| 25698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25699 | rm -f conftest.er1 |
| 25700 | cat conftest.err >&5 |
| 25701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25702 | (exit $ac_status); } && |
| 25703 | { ac_try='test -z "$ac_c_werror_flag" |
| 25704 | || test ! -s conftest.err' |
| 25705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25706 | (eval $ac_try) 2>&5 |
| 25707 | ac_status=$? |
| 25708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25709 | (exit $ac_status); }; } && |
| 25710 | { ac_try='test -s conftest$ac_exeext' |
| 25711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25712 | (eval $ac_try) 2>&5 |
| 25713 | ac_status=$? |
| 25714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25715 | (exit $ac_status); }; }; then |
| 25716 | ac_cv_search_lt_dlopen="-l$ac_lib" |
| 25717 | break |
| 25718 | else |
| 25719 | echo "$as_me: failed program was:" >&5 |
| 25720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25721 | |
| 25722 | fi |
| 25723 | rm -f conftest.err conftest.$ac_objext \ |
| 25724 | conftest$ac_exeext conftest.$ac_ext |
| 25725 | done |
| 25726 | fi |
| 25727 | LIBS=$ac_func_search_save_LIBS |
| 25728 | fi |
| 25729 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 25730 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 |
| 25731 | if test "$ac_cv_search_lt_dlopen" != no; then |
| 25732 | test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" |
| 25733 | |
| 25734 | cat >>confdefs.h <<\_ACEOF |
| 25735 | #define HAVE_LT_DLOPEN 1 |
| 25736 | _ACEOF |
| 25737 | |
| 25738 | else |
| 25739 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 25740 | not be available" >&5 |
| 25741 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 25742 | not be available" >&2;} |
| 25743 | fi |
| 25744 | |
| 25745 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25746 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 25747 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 25748 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 25749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25750 | else |
| 25751 | ac_func_search_save_LIBS=$LIBS |
| 25752 | ac_cv_search_dlopen=no |
| 25753 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25754 | /* confdefs.h. */ |
| 25755 | _ACEOF |
| 25756 | cat confdefs.h >>conftest.$ac_ext |
| 25757 | cat >>conftest.$ac_ext <<_ACEOF |
| 25758 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25759 | |
| 25760 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25761 | #ifdef __cplusplus |
| 25762 | extern "C" |
| 25763 | #endif |
| 25764 | /* We use char because int might match the return type of a gcc2 |
| 25765 | builtin and then its argument prototype would still apply. */ |
| 25766 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25767 | int |
| 25768 | main () |
| 25769 | { |
| 25770 | dlopen (); |
| 25771 | ; |
| 25772 | return 0; |
| 25773 | } |
| 25774 | _ACEOF |
| 25775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25777 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25778 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25780 | rm -f conftest.er1 |
| 25781 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25783 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25784 | { ac_try='test -z "$ac_c_werror_flag" |
| 25785 | || test ! -s conftest.err' |
| 25786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25787 | (eval $ac_try) 2>&5 |
| 25788 | ac_status=$? |
| 25789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25790 | (exit $ac_status); }; } && |
| 25791 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25793 | (eval $ac_try) 2>&5 |
| 25794 | ac_status=$? |
| 25795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25796 | (exit $ac_status); }; }; then |
| 25797 | ac_cv_search_dlopen="none required" |
| 25798 | else |
| 25799 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25801 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25802 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25803 | rm -f conftest.err conftest.$ac_objext \ |
| 25804 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25805 | if test "$ac_cv_search_dlopen" = no; then |
| 25806 | for ac_lib in dl; do |
| 25807 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25808 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25809 | /* confdefs.h. */ |
| 25810 | _ACEOF |
| 25811 | cat confdefs.h >>conftest.$ac_ext |
| 25812 | cat >>conftest.$ac_ext <<_ACEOF |
| 25813 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25814 | |
| 25815 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25816 | #ifdef __cplusplus |
| 25817 | extern "C" |
| 25818 | #endif |
| 25819 | /* We use char because int might match the return type of a gcc2 |
| 25820 | builtin and then its argument prototype would still apply. */ |
| 25821 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25822 | int |
| 25823 | main () |
| 25824 | { |
| 25825 | dlopen (); |
| 25826 | ; |
| 25827 | return 0; |
| 25828 | } |
| 25829 | _ACEOF |
| 25830 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25832 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25833 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25835 | rm -f conftest.er1 |
| 25836 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25838 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25839 | { ac_try='test -z "$ac_c_werror_flag" |
| 25840 | || test ! -s conftest.err' |
| 25841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25842 | (eval $ac_try) 2>&5 |
| 25843 | ac_status=$? |
| 25844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25845 | (exit $ac_status); }; } && |
| 25846 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25848 | (eval $ac_try) 2>&5 |
| 25849 | ac_status=$? |
| 25850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25851 | (exit $ac_status); }; }; then |
| 25852 | ac_cv_search_dlopen="-l$ac_lib" |
| 25853 | break |
| 25854 | else |
| 25855 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25857 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25858 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25859 | rm -f conftest.err conftest.$ac_objext \ |
| 25860 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25861 | done |
| 25862 | fi |
| 25863 | LIBS=$ac_func_search_save_LIBS |
| 25864 | fi |
| 25865 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 25866 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 25867 | if test "$ac_cv_search_dlopen" != no; then |
| 25868 | 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] | 25869 | |
| 25870 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25871 | #define HAVE_DLOPEN 1 |
| 25872 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25873 | |
| 25874 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25875 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 25876 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25877 | fi |
| 25878 | |
| 25879 | |
| 25880 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 25881 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 25882 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 25883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25884 | else |
| 25885 | ac_func_search_save_LIBS=$LIBS |
| 25886 | ac_cv_search_mallinfo=no |
| 25887 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25888 | /* confdefs.h. */ |
| 25889 | _ACEOF |
| 25890 | cat confdefs.h >>conftest.$ac_ext |
| 25891 | cat >>conftest.$ac_ext <<_ACEOF |
| 25892 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25893 | |
| 25894 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25895 | #ifdef __cplusplus |
| 25896 | extern "C" |
| 25897 | #endif |
| 25898 | /* We use char because int might match the return type of a gcc2 |
| 25899 | builtin and then its argument prototype would still apply. */ |
| 25900 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25901 | int |
| 25902 | main () |
| 25903 | { |
| 25904 | mallinfo (); |
| 25905 | ; |
| 25906 | return 0; |
| 25907 | } |
| 25908 | _ACEOF |
| 25909 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25911 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25912 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25914 | rm -f conftest.er1 |
| 25915 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25917 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25918 | { ac_try='test -z "$ac_c_werror_flag" |
| 25919 | || test ! -s conftest.err' |
| 25920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25921 | (eval $ac_try) 2>&5 |
| 25922 | ac_status=$? |
| 25923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25924 | (exit $ac_status); }; } && |
| 25925 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25927 | (eval $ac_try) 2>&5 |
| 25928 | ac_status=$? |
| 25929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25930 | (exit $ac_status); }; }; then |
| 25931 | ac_cv_search_mallinfo="none required" |
| 25932 | else |
| 25933 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25935 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25936 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25937 | rm -f conftest.err conftest.$ac_objext \ |
| 25938 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25939 | if test "$ac_cv_search_mallinfo" = no; then |
| 25940 | for ac_lib in malloc; do |
| 25941 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25942 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25943 | /* confdefs.h. */ |
| 25944 | _ACEOF |
| 25945 | cat confdefs.h >>conftest.$ac_ext |
| 25946 | cat >>conftest.$ac_ext <<_ACEOF |
| 25947 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25948 | |
| 25949 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25950 | #ifdef __cplusplus |
| 25951 | extern "C" |
| 25952 | #endif |
| 25953 | /* We use char because int might match the return type of a gcc2 |
| 25954 | builtin and then its argument prototype would still apply. */ |
| 25955 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25956 | int |
| 25957 | main () |
| 25958 | { |
| 25959 | mallinfo (); |
| 25960 | ; |
| 25961 | return 0; |
| 25962 | } |
| 25963 | _ACEOF |
| 25964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25966 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25967 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25969 | rm -f conftest.er1 |
| 25970 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25972 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25973 | { ac_try='test -z "$ac_c_werror_flag" |
| 25974 | || test ! -s conftest.err' |
| 25975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25976 | (eval $ac_try) 2>&5 |
| 25977 | ac_status=$? |
| 25978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25979 | (exit $ac_status); }; } && |
| 25980 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25982 | (eval $ac_try) 2>&5 |
| 25983 | ac_status=$? |
| 25984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25985 | (exit $ac_status); }; }; then |
| 25986 | ac_cv_search_mallinfo="-l$ac_lib" |
| 25987 | break |
| 25988 | else |
| 25989 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25991 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25992 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25993 | rm -f conftest.err conftest.$ac_objext \ |
| 25994 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25995 | done |
| 25996 | fi |
| 25997 | LIBS=$ac_func_search_save_LIBS |
| 25998 | fi |
| 25999 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 26000 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 26001 | if test "$ac_cv_search_mallinfo" != no; then |
| 26002 | 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] | 26003 | |
| 26004 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26005 | #define HAVE_MALLINFO 1 |
| 26006 | _ACEOF |
| 26007 | |
| 26008 | fi |
| 26009 | |
| 26010 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 26011 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26012 | |
| 26013 | echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 26014 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 |
| 26015 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 26016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26017 | else |
| 26018 | ac_check_lib_save_LIBS=$LIBS |
| 26019 | LIBS="-lpthread $LIBS" |
| 26020 | cat >conftest.$ac_ext <<_ACEOF |
| 26021 | /* confdefs.h. */ |
| 26022 | _ACEOF |
| 26023 | cat confdefs.h >>conftest.$ac_ext |
| 26024 | cat >>conftest.$ac_ext <<_ACEOF |
| 26025 | /* end confdefs.h. */ |
| 26026 | |
| 26027 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26028 | #ifdef __cplusplus |
| 26029 | extern "C" |
| 26030 | #endif |
| 26031 | /* We use char because int might match the return type of a gcc2 |
| 26032 | builtin and then its argument prototype would still apply. */ |
| 26033 | char pthread_mutex_init (); |
| 26034 | int |
| 26035 | main () |
| 26036 | { |
| 26037 | pthread_mutex_init (); |
| 26038 | ; |
| 26039 | return 0; |
| 26040 | } |
| 26041 | _ACEOF |
| 26042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26044 | (eval $ac_link) 2>conftest.er1 |
| 26045 | ac_status=$? |
| 26046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26047 | rm -f conftest.er1 |
| 26048 | cat conftest.err >&5 |
| 26049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26050 | (exit $ac_status); } && |
| 26051 | { ac_try='test -z "$ac_c_werror_flag" |
| 26052 | || test ! -s conftest.err' |
| 26053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26054 | (eval $ac_try) 2>&5 |
| 26055 | ac_status=$? |
| 26056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26057 | (exit $ac_status); }; } && |
| 26058 | { ac_try='test -s conftest$ac_exeext' |
| 26059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26060 | (eval $ac_try) 2>&5 |
| 26061 | ac_status=$? |
| 26062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26063 | (exit $ac_status); }; }; then |
| 26064 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 26065 | else |
| 26066 | echo "$as_me: failed program was:" >&5 |
| 26067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26068 | |
| 26069 | ac_cv_lib_pthread_pthread_mutex_init=no |
| 26070 | fi |
| 26071 | rm -f conftest.err conftest.$ac_objext \ |
| 26072 | conftest$ac_exeext conftest.$ac_ext |
| 26073 | LIBS=$ac_check_lib_save_LIBS |
| 26074 | fi |
| 26075 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 26076 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 |
| 26077 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 26078 | cat >>confdefs.h <<_ACEOF |
| 26079 | #define HAVE_LIBPTHREAD 1 |
| 26080 | _ACEOF |
| 26081 | |
| 26082 | LIBS="-lpthread $LIBS" |
| 26083 | |
| 26084 | fi |
| 26085 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 26086 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26087 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 |
| 26088 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 26089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26090 | else |
| 26091 | ac_func_search_save_LIBS=$LIBS |
| 26092 | ac_cv_search_pthread_mutex_lock=no |
| 26093 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26094 | /* confdefs.h. */ |
| 26095 | _ACEOF |
| 26096 | cat confdefs.h >>conftest.$ac_ext |
| 26097 | cat >>conftest.$ac_ext <<_ACEOF |
| 26098 | /* end confdefs.h. */ |
| 26099 | |
| 26100 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26101 | #ifdef __cplusplus |
| 26102 | extern "C" |
| 26103 | #endif |
| 26104 | /* We use char because int might match the return type of a gcc2 |
| 26105 | builtin and then its argument prototype would still apply. */ |
| 26106 | char pthread_mutex_lock (); |
| 26107 | int |
| 26108 | main () |
| 26109 | { |
| 26110 | pthread_mutex_lock (); |
| 26111 | ; |
| 26112 | return 0; |
| 26113 | } |
| 26114 | _ACEOF |
| 26115 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26117 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26118 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26120 | rm -f conftest.er1 |
| 26121 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26123 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26124 | { ac_try='test -z "$ac_c_werror_flag" |
| 26125 | || test ! -s conftest.err' |
| 26126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26127 | (eval $ac_try) 2>&5 |
| 26128 | ac_status=$? |
| 26129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26130 | (exit $ac_status); }; } && |
| 26131 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26133 | (eval $ac_try) 2>&5 |
| 26134 | ac_status=$? |
| 26135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26136 | (exit $ac_status); }; }; then |
| 26137 | ac_cv_search_pthread_mutex_lock="none required" |
| 26138 | else |
| 26139 | echo "$as_me: failed program was:" >&5 |
| 26140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26141 | |
| 26142 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26143 | rm -f conftest.err conftest.$ac_objext \ |
| 26144 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26145 | if test "$ac_cv_search_pthread_mutex_lock" = no; then |
| 26146 | for ac_lib in pthread; do |
| 26147 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 26148 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26149 | /* confdefs.h. */ |
| 26150 | _ACEOF |
| 26151 | cat confdefs.h >>conftest.$ac_ext |
| 26152 | cat >>conftest.$ac_ext <<_ACEOF |
| 26153 | /* end confdefs.h. */ |
| 26154 | |
| 26155 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26156 | #ifdef __cplusplus |
| 26157 | extern "C" |
| 26158 | #endif |
| 26159 | /* We use char because int might match the return type of a gcc2 |
| 26160 | builtin and then its argument prototype would still apply. */ |
| 26161 | char pthread_mutex_lock (); |
| 26162 | int |
| 26163 | main () |
| 26164 | { |
| 26165 | pthread_mutex_lock (); |
| 26166 | ; |
| 26167 | return 0; |
| 26168 | } |
| 26169 | _ACEOF |
| 26170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26172 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26173 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26175 | rm -f conftest.er1 |
| 26176 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26178 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26179 | { ac_try='test -z "$ac_c_werror_flag" |
| 26180 | || test ! -s conftest.err' |
| 26181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26182 | (eval $ac_try) 2>&5 |
| 26183 | ac_status=$? |
| 26184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26185 | (exit $ac_status); }; } && |
| 26186 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26188 | (eval $ac_try) 2>&5 |
| 26189 | ac_status=$? |
| 26190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26191 | (exit $ac_status); }; }; then |
| 26192 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" |
| 26193 | break |
| 26194 | else |
| 26195 | echo "$as_me: failed program was:" >&5 |
| 26196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26197 | |
| 26198 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26199 | rm -f conftest.err conftest.$ac_objext \ |
| 26200 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26201 | done |
| 26202 | fi |
| 26203 | LIBS=$ac_func_search_save_LIBS |
| 26204 | fi |
| 26205 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 26206 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 |
| 26207 | if test "$ac_cv_search_pthread_mutex_lock" != no; then |
| 26208 | 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] | 26209 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 26210 | cat >>confdefs.h <<\_ACEOF |
| 26211 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 26212 | _ACEOF |
| 26213 | |
| 26214 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26215 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 26216 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 26217 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26218 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26219 | |
| 26220 | |
| 26221 | |
| 26222 | |
| 26223 | |
| 26224 | ac_header_dirent=no |
| 26225 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 26226 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 26227 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 26228 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 26229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26231 | else |
| 26232 | cat >conftest.$ac_ext <<_ACEOF |
| 26233 | /* confdefs.h. */ |
| 26234 | _ACEOF |
| 26235 | cat confdefs.h >>conftest.$ac_ext |
| 26236 | cat >>conftest.$ac_ext <<_ACEOF |
| 26237 | /* end confdefs.h. */ |
| 26238 | #include <sys/types.h> |
| 26239 | #include <$ac_hdr> |
| 26240 | |
| 26241 | int |
| 26242 | main () |
| 26243 | { |
| 26244 | if ((DIR *) 0) |
| 26245 | return 0; |
| 26246 | ; |
| 26247 | return 0; |
| 26248 | } |
| 26249 | _ACEOF |
| 26250 | rm -f conftest.$ac_objext |
| 26251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26252 | (eval $ac_compile) 2>conftest.er1 |
| 26253 | ac_status=$? |
| 26254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26255 | rm -f conftest.er1 |
| 26256 | cat conftest.err >&5 |
| 26257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26258 | (exit $ac_status); } && |
| 26259 | { ac_try='test -z "$ac_c_werror_flag" |
| 26260 | || test ! -s conftest.err' |
| 26261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26262 | (eval $ac_try) 2>&5 |
| 26263 | ac_status=$? |
| 26264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26265 | (exit $ac_status); }; } && |
| 26266 | { ac_try='test -s conftest.$ac_objext' |
| 26267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26268 | (eval $ac_try) 2>&5 |
| 26269 | ac_status=$? |
| 26270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26271 | (exit $ac_status); }; }; then |
| 26272 | eval "$as_ac_Header=yes" |
| 26273 | else |
| 26274 | echo "$as_me: failed program was:" >&5 |
| 26275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26276 | |
| 26277 | eval "$as_ac_Header=no" |
| 26278 | fi |
| 26279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26280 | fi |
| 26281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26283 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26284 | cat >>confdefs.h <<_ACEOF |
| 26285 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 26286 | _ACEOF |
| 26287 | |
| 26288 | ac_header_dirent=$ac_hdr; break |
| 26289 | fi |
| 26290 | |
| 26291 | done |
| 26292 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 26293 | if test $ac_header_dirent = dirent.h; then |
| 26294 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 26295 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 26296 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26298 | else |
| 26299 | ac_func_search_save_LIBS=$LIBS |
| 26300 | ac_cv_search_opendir=no |
| 26301 | cat >conftest.$ac_ext <<_ACEOF |
| 26302 | /* confdefs.h. */ |
| 26303 | _ACEOF |
| 26304 | cat confdefs.h >>conftest.$ac_ext |
| 26305 | cat >>conftest.$ac_ext <<_ACEOF |
| 26306 | /* end confdefs.h. */ |
| 26307 | |
| 26308 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26309 | #ifdef __cplusplus |
| 26310 | extern "C" |
| 26311 | #endif |
| 26312 | /* We use char because int might match the return type of a gcc2 |
| 26313 | builtin and then its argument prototype would still apply. */ |
| 26314 | char opendir (); |
| 26315 | int |
| 26316 | main () |
| 26317 | { |
| 26318 | opendir (); |
| 26319 | ; |
| 26320 | return 0; |
| 26321 | } |
| 26322 | _ACEOF |
| 26323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26325 | (eval $ac_link) 2>conftest.er1 |
| 26326 | ac_status=$? |
| 26327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26328 | rm -f conftest.er1 |
| 26329 | cat conftest.err >&5 |
| 26330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26331 | (exit $ac_status); } && |
| 26332 | { ac_try='test -z "$ac_c_werror_flag" |
| 26333 | || test ! -s conftest.err' |
| 26334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26335 | (eval $ac_try) 2>&5 |
| 26336 | ac_status=$? |
| 26337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26338 | (exit $ac_status); }; } && |
| 26339 | { ac_try='test -s conftest$ac_exeext' |
| 26340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26341 | (eval $ac_try) 2>&5 |
| 26342 | ac_status=$? |
| 26343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26344 | (exit $ac_status); }; }; then |
| 26345 | ac_cv_search_opendir="none required" |
| 26346 | else |
| 26347 | echo "$as_me: failed program was:" >&5 |
| 26348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26349 | |
| 26350 | fi |
| 26351 | rm -f conftest.err conftest.$ac_objext \ |
| 26352 | conftest$ac_exeext conftest.$ac_ext |
| 26353 | if test "$ac_cv_search_opendir" = no; then |
| 26354 | for ac_lib in dir; do |
| 26355 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 26356 | cat >conftest.$ac_ext <<_ACEOF |
| 26357 | /* confdefs.h. */ |
| 26358 | _ACEOF |
| 26359 | cat confdefs.h >>conftest.$ac_ext |
| 26360 | cat >>conftest.$ac_ext <<_ACEOF |
| 26361 | /* end confdefs.h. */ |
| 26362 | |
| 26363 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26364 | #ifdef __cplusplus |
| 26365 | extern "C" |
| 26366 | #endif |
| 26367 | /* We use char because int might match the return type of a gcc2 |
| 26368 | builtin and then its argument prototype would still apply. */ |
| 26369 | char opendir (); |
| 26370 | int |
| 26371 | main () |
| 26372 | { |
| 26373 | opendir (); |
| 26374 | ; |
| 26375 | return 0; |
| 26376 | } |
| 26377 | _ACEOF |
| 26378 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26380 | (eval $ac_link) 2>conftest.er1 |
| 26381 | ac_status=$? |
| 26382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26383 | rm -f conftest.er1 |
| 26384 | cat conftest.err >&5 |
| 26385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26386 | (exit $ac_status); } && |
| 26387 | { ac_try='test -z "$ac_c_werror_flag" |
| 26388 | || test ! -s conftest.err' |
| 26389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26390 | (eval $ac_try) 2>&5 |
| 26391 | ac_status=$? |
| 26392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26393 | (exit $ac_status); }; } && |
| 26394 | { ac_try='test -s conftest$ac_exeext' |
| 26395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26396 | (eval $ac_try) 2>&5 |
| 26397 | ac_status=$? |
| 26398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26399 | (exit $ac_status); }; }; then |
| 26400 | ac_cv_search_opendir="-l$ac_lib" |
| 26401 | break |
| 26402 | else |
| 26403 | echo "$as_me: failed program was:" >&5 |
| 26404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26405 | |
| 26406 | fi |
| 26407 | rm -f conftest.err conftest.$ac_objext \ |
| 26408 | conftest$ac_exeext conftest.$ac_ext |
| 26409 | done |
| 26410 | fi |
| 26411 | LIBS=$ac_func_search_save_LIBS |
| 26412 | fi |
| 26413 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 26414 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 26415 | if test "$ac_cv_search_opendir" != no; then |
| 26416 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 26417 | |
| 26418 | fi |
| 26419 | |
| 26420 | else |
| 26421 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 26422 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 26423 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26425 | else |
| 26426 | ac_func_search_save_LIBS=$LIBS |
| 26427 | ac_cv_search_opendir=no |
| 26428 | cat >conftest.$ac_ext <<_ACEOF |
| 26429 | /* confdefs.h. */ |
| 26430 | _ACEOF |
| 26431 | cat confdefs.h >>conftest.$ac_ext |
| 26432 | cat >>conftest.$ac_ext <<_ACEOF |
| 26433 | /* end confdefs.h. */ |
| 26434 | |
| 26435 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26436 | #ifdef __cplusplus |
| 26437 | extern "C" |
| 26438 | #endif |
| 26439 | /* We use char because int might match the return type of a gcc2 |
| 26440 | builtin and then its argument prototype would still apply. */ |
| 26441 | char opendir (); |
| 26442 | int |
| 26443 | main () |
| 26444 | { |
| 26445 | opendir (); |
| 26446 | ; |
| 26447 | return 0; |
| 26448 | } |
| 26449 | _ACEOF |
| 26450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26452 | (eval $ac_link) 2>conftest.er1 |
| 26453 | ac_status=$? |
| 26454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26455 | rm -f conftest.er1 |
| 26456 | cat conftest.err >&5 |
| 26457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26458 | (exit $ac_status); } && |
| 26459 | { ac_try='test -z "$ac_c_werror_flag" |
| 26460 | || test ! -s conftest.err' |
| 26461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26462 | (eval $ac_try) 2>&5 |
| 26463 | ac_status=$? |
| 26464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26465 | (exit $ac_status); }; } && |
| 26466 | { ac_try='test -s conftest$ac_exeext' |
| 26467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26468 | (eval $ac_try) 2>&5 |
| 26469 | ac_status=$? |
| 26470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26471 | (exit $ac_status); }; }; then |
| 26472 | ac_cv_search_opendir="none required" |
| 26473 | else |
| 26474 | echo "$as_me: failed program was:" >&5 |
| 26475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26476 | |
| 26477 | fi |
| 26478 | rm -f conftest.err conftest.$ac_objext \ |
| 26479 | conftest$ac_exeext conftest.$ac_ext |
| 26480 | if test "$ac_cv_search_opendir" = no; then |
| 26481 | for ac_lib in x; do |
| 26482 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 26483 | cat >conftest.$ac_ext <<_ACEOF |
| 26484 | /* confdefs.h. */ |
| 26485 | _ACEOF |
| 26486 | cat confdefs.h >>conftest.$ac_ext |
| 26487 | cat >>conftest.$ac_ext <<_ACEOF |
| 26488 | /* end confdefs.h. */ |
| 26489 | |
| 26490 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26491 | #ifdef __cplusplus |
| 26492 | extern "C" |
| 26493 | #endif |
| 26494 | /* We use char because int might match the return type of a gcc2 |
| 26495 | builtin and then its argument prototype would still apply. */ |
| 26496 | char opendir (); |
| 26497 | int |
| 26498 | main () |
| 26499 | { |
| 26500 | opendir (); |
| 26501 | ; |
| 26502 | return 0; |
| 26503 | } |
| 26504 | _ACEOF |
| 26505 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26507 | (eval $ac_link) 2>conftest.er1 |
| 26508 | ac_status=$? |
| 26509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26510 | rm -f conftest.er1 |
| 26511 | cat conftest.err >&5 |
| 26512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26513 | (exit $ac_status); } && |
| 26514 | { ac_try='test -z "$ac_c_werror_flag" |
| 26515 | || test ! -s conftest.err' |
| 26516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26517 | (eval $ac_try) 2>&5 |
| 26518 | ac_status=$? |
| 26519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26520 | (exit $ac_status); }; } && |
| 26521 | { ac_try='test -s conftest$ac_exeext' |
| 26522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26523 | (eval $ac_try) 2>&5 |
| 26524 | ac_status=$? |
| 26525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26526 | (exit $ac_status); }; }; then |
| 26527 | ac_cv_search_opendir="-l$ac_lib" |
| 26528 | break |
| 26529 | else |
| 26530 | echo "$as_me: failed program was:" >&5 |
| 26531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26532 | |
| 26533 | fi |
| 26534 | rm -f conftest.err conftest.$ac_objext \ |
| 26535 | conftest$ac_exeext conftest.$ac_ext |
| 26536 | done |
| 26537 | fi |
| 26538 | LIBS=$ac_func_search_save_LIBS |
| 26539 | fi |
| 26540 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 26541 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 26542 | if test "$ac_cv_search_opendir" != no; then |
| 26543 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 26544 | |
| 26545 | fi |
| 26546 | |
| 26547 | fi |
| 26548 | |
| 26549 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 26550 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 26551 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 26552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26553 | else |
| 26554 | ac_ext=c |
| 26555 | ac_cpp='$CPP $CPPFLAGS' |
| 26556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26559 | |
| 26560 | cat >conftest.$ac_ext <<_ACEOF |
| 26561 | /* confdefs.h. */ |
| 26562 | _ACEOF |
| 26563 | cat confdefs.h >>conftest.$ac_ext |
| 26564 | cat >>conftest.$ac_ext <<_ACEOF |
| 26565 | /* end confdefs.h. */ |
| 26566 | #include <sys/mman.h> |
| 26567 | #include <unistd.h> |
| 26568 | #include <fcntl.h> |
| 26569 | int |
| 26570 | main () |
| 26571 | { |
| 26572 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 26573 | ; |
| 26574 | return 0; |
| 26575 | } |
| 26576 | _ACEOF |
| 26577 | rm -f conftest.$ac_objext |
| 26578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26579 | (eval $ac_compile) 2>conftest.er1 |
| 26580 | ac_status=$? |
| 26581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26582 | rm -f conftest.er1 |
| 26583 | cat conftest.err >&5 |
| 26584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26585 | (exit $ac_status); } && |
| 26586 | { ac_try='test -z "$ac_c_werror_flag" |
| 26587 | || test ! -s conftest.err' |
| 26588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26589 | (eval $ac_try) 2>&5 |
| 26590 | ac_status=$? |
| 26591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26592 | (exit $ac_status); }; } && |
| 26593 | { ac_try='test -s conftest.$ac_objext' |
| 26594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26595 | (eval $ac_try) 2>&5 |
| 26596 | ac_status=$? |
| 26597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26598 | (exit $ac_status); }; }; then |
| 26599 | ac_cv_header_mmap_anon=yes |
| 26600 | else |
| 26601 | echo "$as_me: failed program was:" >&5 |
| 26602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26603 | |
| 26604 | ac_cv_header_mmap_anon=no |
| 26605 | fi |
| 26606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26607 | ac_ext=c |
| 26608 | ac_cpp='$CPP $CPPFLAGS' |
| 26609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26612 | |
| 26613 | |
| 26614 | fi |
| 26615 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 26616 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 26617 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 26618 | |
| 26619 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26620 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26621 | _ACEOF |
| 26622 | |
| 26623 | fi |
| 26624 | |
| 26625 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 26626 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 26627 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 26628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26629 | else |
| 26630 | cat >conftest.$ac_ext <<_ACEOF |
| 26631 | /* confdefs.h. */ |
| 26632 | _ACEOF |
| 26633 | cat confdefs.h >>conftest.$ac_ext |
| 26634 | cat >>conftest.$ac_ext <<_ACEOF |
| 26635 | /* end confdefs.h. */ |
| 26636 | #include <sys/types.h> |
| 26637 | #include <sys/stat.h> |
| 26638 | |
| 26639 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 26640 | # if S_ISBLK (S_IFDIR) |
| 26641 | You lose. |
| 26642 | # endif |
| 26643 | #endif |
| 26644 | |
| 26645 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 26646 | # if S_ISBLK (S_IFCHR) |
| 26647 | You lose. |
| 26648 | # endif |
| 26649 | #endif |
| 26650 | |
| 26651 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 26652 | # if S_ISLNK (S_IFREG) |
| 26653 | You lose. |
| 26654 | # endif |
| 26655 | #endif |
| 26656 | |
| 26657 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 26658 | # if S_ISSOCK (S_IFREG) |
| 26659 | You lose. |
| 26660 | # endif |
| 26661 | #endif |
| 26662 | |
| 26663 | _ACEOF |
| 26664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26665 | $EGREP "You lose" >/dev/null 2>&1; then |
| 26666 | ac_cv_header_stat_broken=yes |
| 26667 | else |
| 26668 | ac_cv_header_stat_broken=no |
| 26669 | fi |
| 26670 | rm -f conftest* |
| 26671 | |
| 26672 | fi |
| 26673 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 26674 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 26675 | if test $ac_cv_header_stat_broken = yes; then |
| 26676 | |
| 26677 | cat >>confdefs.h <<\_ACEOF |
| 26678 | #define STAT_MACROS_BROKEN 1 |
| 26679 | _ACEOF |
| 26680 | |
| 26681 | fi |
| 26682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26683 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 26684 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 26685 | if test "${ac_cv_header_stdc+set}" = set; then |
| 26686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26687 | else |
| 26688 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26689 | /* confdefs.h. */ |
| 26690 | _ACEOF |
| 26691 | cat confdefs.h >>conftest.$ac_ext |
| 26692 | cat >>conftest.$ac_ext <<_ACEOF |
| 26693 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26694 | #include <stdlib.h> |
| 26695 | #include <stdarg.h> |
| 26696 | #include <string.h> |
| 26697 | #include <float.h> |
| 26698 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26699 | int |
| 26700 | main () |
| 26701 | { |
| 26702 | |
| 26703 | ; |
| 26704 | return 0; |
| 26705 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26706 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26707 | rm -f conftest.$ac_objext |
| 26708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26709 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26710 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26712 | rm -f conftest.er1 |
| 26713 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26715 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26716 | { ac_try='test -z "$ac_c_werror_flag" |
| 26717 | || test ! -s conftest.err' |
| 26718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26719 | (eval $ac_try) 2>&5 |
| 26720 | ac_status=$? |
| 26721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26722 | (exit $ac_status); }; } && |
| 26723 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26725 | (eval $ac_try) 2>&5 |
| 26726 | ac_status=$? |
| 26727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26728 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26729 | ac_cv_header_stdc=yes |
| 26730 | else |
| 26731 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26733 | |
| 26734 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26735 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26737 | |
| 26738 | if test $ac_cv_header_stdc = yes; then |
| 26739 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 26740 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26741 | /* confdefs.h. */ |
| 26742 | _ACEOF |
| 26743 | cat confdefs.h >>conftest.$ac_ext |
| 26744 | cat >>conftest.$ac_ext <<_ACEOF |
| 26745 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26746 | #include <string.h> |
| 26747 | |
| 26748 | _ACEOF |
| 26749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26750 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26751 | : |
| 26752 | else |
| 26753 | ac_cv_header_stdc=no |
| 26754 | fi |
| 26755 | rm -f conftest* |
| 26756 | |
| 26757 | fi |
| 26758 | |
| 26759 | if test $ac_cv_header_stdc = yes; then |
| 26760 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 26761 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26762 | /* confdefs.h. */ |
| 26763 | _ACEOF |
| 26764 | cat confdefs.h >>conftest.$ac_ext |
| 26765 | cat >>conftest.$ac_ext <<_ACEOF |
| 26766 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26767 | #include <stdlib.h> |
| 26768 | |
| 26769 | _ACEOF |
| 26770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26771 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26772 | : |
| 26773 | else |
| 26774 | ac_cv_header_stdc=no |
| 26775 | fi |
| 26776 | rm -f conftest* |
| 26777 | |
| 26778 | fi |
| 26779 | |
| 26780 | if test $ac_cv_header_stdc = yes; then |
| 26781 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 26782 | if test "$cross_compiling" = yes; then |
| 26783 | : |
| 26784 | else |
| 26785 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26786 | /* confdefs.h. */ |
| 26787 | _ACEOF |
| 26788 | cat confdefs.h >>conftest.$ac_ext |
| 26789 | cat >>conftest.$ac_ext <<_ACEOF |
| 26790 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26791 | #include <ctype.h> |
| 26792 | #if ((' ' & 0x0FF) == 0x020) |
| 26793 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 26794 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 26795 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26796 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26797 | (('a' <= (c) && (c) <= 'i') \ |
| 26798 | || ('j' <= (c) && (c) <= 'r') \ |
| 26799 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26800 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 26801 | #endif |
| 26802 | |
| 26803 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 26804 | int |
| 26805 | main () |
| 26806 | { |
| 26807 | int i; |
| 26808 | for (i = 0; i < 256; i++) |
| 26809 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26810 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26811 | exit(2); |
| 26812 | exit (0); |
| 26813 | } |
| 26814 | _ACEOF |
| 26815 | rm -f conftest$ac_exeext |
| 26816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26817 | (eval $ac_link) 2>&5 |
| 26818 | ac_status=$? |
| 26819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26822 | (eval $ac_try) 2>&5 |
| 26823 | ac_status=$? |
| 26824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26825 | (exit $ac_status); }; }; then |
| 26826 | : |
| 26827 | else |
| 26828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26829 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26831 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26832 | ( exit $ac_status ) |
| 26833 | ac_cv_header_stdc=no |
| 26834 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26835 | 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] | 26836 | fi |
| 26837 | fi |
| 26838 | fi |
| 26839 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 26840 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 26841 | if test $ac_cv_header_stdc = yes; then |
| 26842 | |
| 26843 | cat >>confdefs.h <<\_ACEOF |
| 26844 | #define STDC_HEADERS 1 |
| 26845 | _ACEOF |
| 26846 | |
| 26847 | fi |
| 26848 | |
| 26849 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 26850 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 26851 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 26852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26853 | else |
| 26854 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26855 | /* confdefs.h. */ |
| 26856 | _ACEOF |
| 26857 | cat confdefs.h >>conftest.$ac_ext |
| 26858 | cat >>conftest.$ac_ext <<_ACEOF |
| 26859 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26860 | #include <sys/types.h> |
| 26861 | #include <sys/wait.h> |
| 26862 | #ifndef WEXITSTATUS |
| 26863 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 26864 | #endif |
| 26865 | #ifndef WIFEXITED |
| 26866 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 26867 | #endif |
| 26868 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26869 | int |
| 26870 | main () |
| 26871 | { |
| 26872 | int s; |
| 26873 | wait (&s); |
| 26874 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 26875 | ; |
| 26876 | return 0; |
| 26877 | } |
| 26878 | _ACEOF |
| 26879 | rm -f conftest.$ac_objext |
| 26880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26881 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26882 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26884 | rm -f conftest.er1 |
| 26885 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26887 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26888 | { ac_try='test -z "$ac_c_werror_flag" |
| 26889 | || test ! -s conftest.err' |
| 26890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26891 | (eval $ac_try) 2>&5 |
| 26892 | ac_status=$? |
| 26893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26894 | (exit $ac_status); }; } && |
| 26895 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26897 | (eval $ac_try) 2>&5 |
| 26898 | ac_status=$? |
| 26899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26900 | (exit $ac_status); }; }; then |
| 26901 | ac_cv_header_sys_wait_h=yes |
| 26902 | else |
| 26903 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26905 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26906 | ac_cv_header_sys_wait_h=no |
| 26907 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26909 | fi |
| 26910 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 26911 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 26912 | if test $ac_cv_header_sys_wait_h = yes; then |
| 26913 | |
| 26914 | cat >>confdefs.h <<\_ACEOF |
| 26915 | #define HAVE_SYS_WAIT_H 1 |
| 26916 | _ACEOF |
| 26917 | |
| 26918 | fi |
| 26919 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26920 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 26921 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 26922 | if test "${ac_cv_header_time+set}" = set; then |
| 26923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26924 | else |
| 26925 | cat >conftest.$ac_ext <<_ACEOF |
| 26926 | /* confdefs.h. */ |
| 26927 | _ACEOF |
| 26928 | cat confdefs.h >>conftest.$ac_ext |
| 26929 | cat >>conftest.$ac_ext <<_ACEOF |
| 26930 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26931 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26932 | #include <sys/time.h> |
| 26933 | #include <time.h> |
| 26934 | |
| 26935 | int |
| 26936 | main () |
| 26937 | { |
| 26938 | if ((struct tm *) 0) |
| 26939 | return 0; |
| 26940 | ; |
| 26941 | return 0; |
| 26942 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26943 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26944 | rm -f conftest.$ac_objext |
| 26945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26946 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26947 | ac_status=$? |
| 26948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26949 | rm -f conftest.er1 |
| 26950 | cat conftest.err >&5 |
| 26951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26952 | (exit $ac_status); } && |
| 26953 | { ac_try='test -z "$ac_c_werror_flag" |
| 26954 | || test ! -s conftest.err' |
| 26955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26956 | (eval $ac_try) 2>&5 |
| 26957 | ac_status=$? |
| 26958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26959 | (exit $ac_status); }; } && |
| 26960 | { ac_try='test -s conftest.$ac_objext' |
| 26961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26962 | (eval $ac_try) 2>&5 |
| 26963 | ac_status=$? |
| 26964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26965 | (exit $ac_status); }; }; then |
| 26966 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26967 | else |
| 26968 | echo "$as_me: failed program was:" >&5 |
| 26969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26970 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26971 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26972 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26974 | fi |
| 26975 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 26976 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 26977 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26978 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26979 | cat >>confdefs.h <<\_ACEOF |
| 26980 | #define TIME_WITH_SYS_TIME 1 |
| 26981 | _ACEOF |
| 26982 | |
| 26983 | fi |
| 26984 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26985 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26986 | |
| 26987 | |
| 26988 | |
| 26989 | |
| 26990 | |
| 26991 | |
| 26992 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 26993 | do |
| 26994 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27000 | fi |
| 27001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27003 | else |
| 27004 | # Is the header compilable? |
| 27005 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27006 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 27007 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27008 | /* confdefs.h. */ |
| 27009 | _ACEOF |
| 27010 | cat confdefs.h >>conftest.$ac_ext |
| 27011 | cat >>conftest.$ac_ext <<_ACEOF |
| 27012 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27013 | $ac_includes_default |
| 27014 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27015 | _ACEOF |
| 27016 | rm -f conftest.$ac_objext |
| 27017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27018 | (eval $ac_compile) 2>conftest.er1 |
| 27019 | ac_status=$? |
| 27020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27021 | rm -f conftest.er1 |
| 27022 | cat conftest.err >&5 |
| 27023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27024 | (exit $ac_status); } && |
| 27025 | { ac_try='test -z "$ac_c_werror_flag" |
| 27026 | || test ! -s conftest.err' |
| 27027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27028 | (eval $ac_try) 2>&5 |
| 27029 | ac_status=$? |
| 27030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27031 | (exit $ac_status); }; } && |
| 27032 | { ac_try='test -s conftest.$ac_objext' |
| 27033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27034 | (eval $ac_try) 2>&5 |
| 27035 | ac_status=$? |
| 27036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27037 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27038 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27039 | else |
| 27040 | echo "$as_me: failed program was:" >&5 |
| 27041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27042 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27043 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27044 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27047 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27048 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27049 | # Is the header present? |
| 27050 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27051 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 27052 | cat >conftest.$ac_ext <<_ACEOF |
| 27053 | /* confdefs.h. */ |
| 27054 | _ACEOF |
| 27055 | cat confdefs.h >>conftest.$ac_ext |
| 27056 | cat >>conftest.$ac_ext <<_ACEOF |
| 27057 | /* end confdefs.h. */ |
| 27058 | #include <$ac_header> |
| 27059 | _ACEOF |
| 27060 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27061 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27062 | ac_status=$? |
| 27063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27064 | rm -f conftest.er1 |
| 27065 | cat conftest.err >&5 |
| 27066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27067 | (exit $ac_status); } >/dev/null; then |
| 27068 | if test -s conftest.err; then |
| 27069 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27070 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27071 | else |
| 27072 | ac_cpp_err= |
| 27073 | fi |
| 27074 | else |
| 27075 | ac_cpp_err=yes |
| 27076 | fi |
| 27077 | if test -z "$ac_cpp_err"; then |
| 27078 | ac_header_preproc=yes |
| 27079 | else |
| 27080 | echo "$as_me: failed program was:" >&5 |
| 27081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27082 | |
| 27083 | ac_header_preproc=no |
| 27084 | fi |
| 27085 | rm -f conftest.err conftest.$ac_ext |
| 27086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27087 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27088 | |
| 27089 | # So? What about this header? |
| 27090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27091 | yes:no: ) |
| 27092 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27093 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27095 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27096 | ac_header_preproc=yes |
| 27097 | ;; |
| 27098 | no:yes:* ) |
| 27099 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27100 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27101 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27102 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27103 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27104 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27105 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27106 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27108 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27109 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27110 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27111 | ( |
| 27112 | cat <<\_ASBOX |
| 27113 | ## ----------------------------------- ## |
| 27114 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27115 | ## ----------------------------------- ## |
| 27116 | _ASBOX |
| 27117 | ) | |
| 27118 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27119 | ;; |
| 27120 | esac |
| 27121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27125 | else |
| 27126 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27127 | fi |
| 27128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27129 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27130 | |
| 27131 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27132 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27133 | cat >>confdefs.h <<_ACEOF |
| 27134 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27135 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27136 | |
| 27137 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27138 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27139 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27140 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27141 | |
| 27142 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27143 | |
| 27144 | |
| 27145 | |
| 27146 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 27147 | for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27148 | do |
| 27149 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27151 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27152 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27155 | fi |
| 27156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27157 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27158 | else |
| 27159 | # Is the header compilable? |
| 27160 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27161 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 27162 | cat >conftest.$ac_ext <<_ACEOF |
| 27163 | /* confdefs.h. */ |
| 27164 | _ACEOF |
| 27165 | cat confdefs.h >>conftest.$ac_ext |
| 27166 | cat >>conftest.$ac_ext <<_ACEOF |
| 27167 | /* end confdefs.h. */ |
| 27168 | $ac_includes_default |
| 27169 | #include <$ac_header> |
| 27170 | _ACEOF |
| 27171 | rm -f conftest.$ac_objext |
| 27172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27173 | (eval $ac_compile) 2>conftest.er1 |
| 27174 | ac_status=$? |
| 27175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27176 | rm -f conftest.er1 |
| 27177 | cat conftest.err >&5 |
| 27178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27179 | (exit $ac_status); } && |
| 27180 | { ac_try='test -z "$ac_c_werror_flag" |
| 27181 | || test ! -s conftest.err' |
| 27182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27183 | (eval $ac_try) 2>&5 |
| 27184 | ac_status=$? |
| 27185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27186 | (exit $ac_status); }; } && |
| 27187 | { ac_try='test -s conftest.$ac_objext' |
| 27188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27189 | (eval $ac_try) 2>&5 |
| 27190 | ac_status=$? |
| 27191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27192 | (exit $ac_status); }; }; then |
| 27193 | ac_header_compiler=yes |
| 27194 | else |
| 27195 | echo "$as_me: failed program was:" >&5 |
| 27196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27197 | |
| 27198 | ac_header_compiler=no |
| 27199 | fi |
| 27200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27201 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27202 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27203 | |
| 27204 | # Is the header present? |
| 27205 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27206 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 27207 | cat >conftest.$ac_ext <<_ACEOF |
| 27208 | /* confdefs.h. */ |
| 27209 | _ACEOF |
| 27210 | cat confdefs.h >>conftest.$ac_ext |
| 27211 | cat >>conftest.$ac_ext <<_ACEOF |
| 27212 | /* end confdefs.h. */ |
| 27213 | #include <$ac_header> |
| 27214 | _ACEOF |
| 27215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27217 | ac_status=$? |
| 27218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27219 | rm -f conftest.er1 |
| 27220 | cat conftest.err >&5 |
| 27221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27222 | (exit $ac_status); } >/dev/null; then |
| 27223 | if test -s conftest.err; then |
| 27224 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27225 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27226 | else |
| 27227 | ac_cpp_err= |
| 27228 | fi |
| 27229 | else |
| 27230 | ac_cpp_err=yes |
| 27231 | fi |
| 27232 | if test -z "$ac_cpp_err"; then |
| 27233 | ac_header_preproc=yes |
| 27234 | else |
| 27235 | echo "$as_me: failed program was:" >&5 |
| 27236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27237 | |
| 27238 | ac_header_preproc=no |
| 27239 | fi |
| 27240 | rm -f conftest.err conftest.$ac_ext |
| 27241 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27242 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27243 | |
| 27244 | # So? What about this header? |
| 27245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27246 | yes:no: ) |
| 27247 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27248 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27249 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27250 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27251 | ac_header_preproc=yes |
| 27252 | ;; |
| 27253 | no:yes:* ) |
| 27254 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27255 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27256 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27257 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27258 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27259 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27260 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27261 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27263 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27264 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27265 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27266 | ( |
| 27267 | cat <<\_ASBOX |
| 27268 | ## ----------------------------------- ## |
| 27269 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27270 | ## ----------------------------------- ## |
| 27271 | _ASBOX |
| 27272 | ) | |
| 27273 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27274 | ;; |
| 27275 | esac |
| 27276 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27280 | else |
| 27281 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27282 | fi |
| 27283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27284 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27285 | |
| 27286 | fi |
| 27287 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27288 | cat >>confdefs.h <<_ACEOF |
| 27289 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27290 | _ACEOF |
| 27291 | |
| 27292 | fi |
| 27293 | |
| 27294 | done |
| 27295 | |
| 27296 | |
| 27297 | |
| 27298 | |
| 27299 | |
| 27300 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 27301 | for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27302 | do |
| 27303 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27309 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27311 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27312 | else |
| 27313 | # Is the header compilable? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27314 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27315 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27316 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +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. */ |
| 27322 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27323 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27324 | _ACEOF |
| 27325 | rm -f conftest.$ac_objext |
| 27326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27327 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27328 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27330 | rm -f conftest.er1 |
| 27331 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27333 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27334 | { ac_try='test -z "$ac_c_werror_flag" |
| 27335 | || test ! -s conftest.err' |
| 27336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27337 | (eval $ac_try) 2>&5 |
| 27338 | ac_status=$? |
| 27339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27340 | (exit $ac_status); }; } && |
| 27341 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27343 | (eval $ac_try) 2>&5 |
| 27344 | ac_status=$? |
| 27345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27346 | (exit $ac_status); }; }; then |
| 27347 | ac_header_compiler=yes |
| 27348 | else |
| 27349 | echo "$as_me: failed program was:" >&5 |
| 27350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27351 | |
| 27352 | ac_header_compiler=no |
| 27353 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27356 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27357 | |
| 27358 | # Is the header present? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27359 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27360 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27361 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27362 | /* confdefs.h. */ |
| 27363 | _ACEOF |
| 27364 | cat confdefs.h >>conftest.$ac_ext |
| 27365 | cat >>conftest.$ac_ext <<_ACEOF |
| 27366 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27367 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27368 | _ACEOF |
| 27369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27371 | ac_status=$? |
| 27372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27373 | rm -f conftest.er1 |
| 27374 | cat conftest.err >&5 |
| 27375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27376 | (exit $ac_status); } >/dev/null; then |
| 27377 | if test -s conftest.err; then |
| 27378 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27379 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27380 | else |
| 27381 | ac_cpp_err= |
| 27382 | fi |
| 27383 | else |
| 27384 | ac_cpp_err=yes |
| 27385 | fi |
| 27386 | if test -z "$ac_cpp_err"; then |
| 27387 | ac_header_preproc=yes |
| 27388 | else |
| 27389 | echo "$as_me: failed program was:" >&5 |
| 27390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27391 | |
| 27392 | ac_header_preproc=no |
| 27393 | fi |
| 27394 | rm -f conftest.err conftest.$ac_ext |
| 27395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27396 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27397 | |
| 27398 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27399 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27400 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27401 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27402 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27404 | 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] | 27405 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 27406 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27407 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27408 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27409 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27410 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27411 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27412 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27413 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27414 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27415 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27418 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27419 | 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] | 27420 | ( |
| 27421 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27422 | ## ----------------------------------- ## |
| 27423 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27424 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27425 | _ASBOX |
| 27426 | ) | |
| 27427 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27428 | ;; |
| 27429 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27434 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27435 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27436 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27439 | |
| 27440 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27442 | cat >>confdefs.h <<_ACEOF |
| 27443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27444 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27445 | |
| 27446 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27447 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27448 | done |
| 27449 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27450 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 27451 | |
| 27452 | for ac_header in sys/types.h malloc/malloc.h |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27453 | do |
| 27454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27460 | fi |
| 27461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27463 | else |
| 27464 | # Is the header compilable? |
| 27465 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27466 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 27467 | cat >conftest.$ac_ext <<_ACEOF |
| 27468 | /* confdefs.h. */ |
| 27469 | _ACEOF |
| 27470 | cat confdefs.h >>conftest.$ac_ext |
| 27471 | cat >>conftest.$ac_ext <<_ACEOF |
| 27472 | /* end confdefs.h. */ |
| 27473 | $ac_includes_default |
| 27474 | #include <$ac_header> |
| 27475 | _ACEOF |
| 27476 | rm -f conftest.$ac_objext |
| 27477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27478 | (eval $ac_compile) 2>conftest.er1 |
| 27479 | ac_status=$? |
| 27480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27481 | rm -f conftest.er1 |
| 27482 | cat conftest.err >&5 |
| 27483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27484 | (exit $ac_status); } && |
| 27485 | { ac_try='test -z "$ac_c_werror_flag" |
| 27486 | || test ! -s conftest.err' |
| 27487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27488 | (eval $ac_try) 2>&5 |
| 27489 | ac_status=$? |
| 27490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27491 | (exit $ac_status); }; } && |
| 27492 | { ac_try='test -s conftest.$ac_objext' |
| 27493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27494 | (eval $ac_try) 2>&5 |
| 27495 | ac_status=$? |
| 27496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27497 | (exit $ac_status); }; }; then |
| 27498 | ac_header_compiler=yes |
| 27499 | else |
| 27500 | echo "$as_me: failed program was:" >&5 |
| 27501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27502 | |
| 27503 | ac_header_compiler=no |
| 27504 | fi |
| 27505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27506 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27507 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27508 | |
| 27509 | # Is the header present? |
| 27510 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 27512 | cat >conftest.$ac_ext <<_ACEOF |
| 27513 | /* confdefs.h. */ |
| 27514 | _ACEOF |
| 27515 | cat confdefs.h >>conftest.$ac_ext |
| 27516 | cat >>conftest.$ac_ext <<_ACEOF |
| 27517 | /* end confdefs.h. */ |
| 27518 | #include <$ac_header> |
| 27519 | _ACEOF |
| 27520 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27521 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27522 | ac_status=$? |
| 27523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27524 | rm -f conftest.er1 |
| 27525 | cat conftest.err >&5 |
| 27526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27527 | (exit $ac_status); } >/dev/null; then |
| 27528 | if test -s conftest.err; then |
| 27529 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27530 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27531 | else |
| 27532 | ac_cpp_err= |
| 27533 | fi |
| 27534 | else |
| 27535 | ac_cpp_err=yes |
| 27536 | fi |
| 27537 | if test -z "$ac_cpp_err"; then |
| 27538 | ac_header_preproc=yes |
| 27539 | else |
| 27540 | echo "$as_me: failed program was:" >&5 |
| 27541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27542 | |
| 27543 | ac_header_preproc=no |
| 27544 | fi |
| 27545 | rm -f conftest.err conftest.$ac_ext |
| 27546 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27547 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27548 | |
| 27549 | # So? What about this header? |
| 27550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27551 | yes:no: ) |
| 27552 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27553 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27555 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27556 | ac_header_preproc=yes |
| 27557 | ;; |
| 27558 | no:yes:* ) |
| 27559 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27560 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27561 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27562 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27563 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27564 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27565 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27566 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27568 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27569 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27570 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27571 | ( |
| 27572 | cat <<\_ASBOX |
| 27573 | ## ----------------------------------- ## |
| 27574 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27575 | ## ----------------------------------- ## |
| 27576 | _ASBOX |
| 27577 | ) | |
| 27578 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27579 | ;; |
| 27580 | esac |
| 27581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27585 | else |
| 27586 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27587 | fi |
| 27588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27590 | |
| 27591 | fi |
| 27592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27593 | cat >>confdefs.h <<_ACEOF |
| 27594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27595 | _ACEOF |
| 27596 | |
| 27597 | fi |
| 27598 | |
| 27599 | done |
| 27600 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27601 | if test "$ENABLE_THREADS" -eq 1 ; then |
| 27602 | |
| 27603 | for ac_header in pthread.h |
| 27604 | do |
| 27605 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27607 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27608 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27611 | fi |
| 27612 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27613 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27614 | else |
| 27615 | # Is the header compilable? |
| 27616 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27617 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 27618 | cat >conftest.$ac_ext <<_ACEOF |
| 27619 | /* confdefs.h. */ |
| 27620 | _ACEOF |
| 27621 | cat confdefs.h >>conftest.$ac_ext |
| 27622 | cat >>conftest.$ac_ext <<_ACEOF |
| 27623 | /* end confdefs.h. */ |
| 27624 | $ac_includes_default |
| 27625 | #include <$ac_header> |
| 27626 | _ACEOF |
| 27627 | rm -f conftest.$ac_objext |
| 27628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27629 | (eval $ac_compile) 2>conftest.er1 |
| 27630 | ac_status=$? |
| 27631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27632 | rm -f conftest.er1 |
| 27633 | cat conftest.err >&5 |
| 27634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27635 | (exit $ac_status); } && |
| 27636 | { ac_try='test -z "$ac_c_werror_flag" |
| 27637 | || test ! -s conftest.err' |
| 27638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27639 | (eval $ac_try) 2>&5 |
| 27640 | ac_status=$? |
| 27641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27642 | (exit $ac_status); }; } && |
| 27643 | { ac_try='test -s conftest.$ac_objext' |
| 27644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27645 | (eval $ac_try) 2>&5 |
| 27646 | ac_status=$? |
| 27647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27648 | (exit $ac_status); }; }; then |
| 27649 | ac_header_compiler=yes |
| 27650 | else |
| 27651 | echo "$as_me: failed program was:" >&5 |
| 27652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27653 | |
| 27654 | ac_header_compiler=no |
| 27655 | fi |
| 27656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27657 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27658 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27659 | |
| 27660 | # Is the header present? |
| 27661 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27662 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 27663 | cat >conftest.$ac_ext <<_ACEOF |
| 27664 | /* confdefs.h. */ |
| 27665 | _ACEOF |
| 27666 | cat confdefs.h >>conftest.$ac_ext |
| 27667 | cat >>conftest.$ac_ext <<_ACEOF |
| 27668 | /* end confdefs.h. */ |
| 27669 | #include <$ac_header> |
| 27670 | _ACEOF |
| 27671 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27672 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27673 | ac_status=$? |
| 27674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27675 | rm -f conftest.er1 |
| 27676 | cat conftest.err >&5 |
| 27677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27678 | (exit $ac_status); } >/dev/null; then |
| 27679 | if test -s conftest.err; then |
| 27680 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27682 | else |
| 27683 | ac_cpp_err= |
| 27684 | fi |
| 27685 | else |
| 27686 | ac_cpp_err=yes |
| 27687 | fi |
| 27688 | if test -z "$ac_cpp_err"; then |
| 27689 | ac_header_preproc=yes |
| 27690 | else |
| 27691 | echo "$as_me: failed program was:" >&5 |
| 27692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27693 | |
| 27694 | ac_header_preproc=no |
| 27695 | fi |
| 27696 | rm -f conftest.err conftest.$ac_ext |
| 27697 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27698 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27699 | |
| 27700 | # So? What about this header? |
| 27701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27702 | yes:no: ) |
| 27703 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27704 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27706 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27707 | ac_header_preproc=yes |
| 27708 | ;; |
| 27709 | no:yes:* ) |
| 27710 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27711 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27712 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27713 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27714 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27715 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27716 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27717 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27718 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27719 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27720 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27721 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27722 | ( |
| 27723 | cat <<\_ASBOX |
| 27724 | ## ----------------------------------- ## |
| 27725 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27726 | ## ----------------------------------- ## |
| 27727 | _ASBOX |
| 27728 | ) | |
| 27729 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27730 | ;; |
| 27731 | esac |
| 27732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27736 | else |
| 27737 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27738 | fi |
| 27739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27740 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27741 | |
| 27742 | fi |
| 27743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27744 | cat >>confdefs.h <<_ACEOF |
| 27745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27746 | _ACEOF |
| 27747 | |
| 27748 | fi |
| 27749 | |
| 27750 | done |
| 27751 | |
| 27752 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 27753 | |
| 27754 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27755 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 27756 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 27757 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 27758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27759 | else |
| 27760 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27761 | /* confdefs.h. */ |
| 27762 | _ACEOF |
| 27763 | cat confdefs.h >>conftest.$ac_ext |
| 27764 | cat >>conftest.$ac_ext <<_ACEOF |
| 27765 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27766 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27767 | int |
| 27768 | main () |
| 27769 | { |
| 27770 | if ((pid_t *) 0) |
| 27771 | return 0; |
| 27772 | if (sizeof (pid_t)) |
| 27773 | return 0; |
| 27774 | ; |
| 27775 | return 0; |
| 27776 | } |
| 27777 | _ACEOF |
| 27778 | rm -f conftest.$ac_objext |
| 27779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27780 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27781 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27783 | rm -f conftest.er1 |
| 27784 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27786 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27787 | { ac_try='test -z "$ac_c_werror_flag" |
| 27788 | || test ! -s conftest.err' |
| 27789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27790 | (eval $ac_try) 2>&5 |
| 27791 | ac_status=$? |
| 27792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27793 | (exit $ac_status); }; } && |
| 27794 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27796 | (eval $ac_try) 2>&5 |
| 27797 | ac_status=$? |
| 27798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27799 | (exit $ac_status); }; }; then |
| 27800 | ac_cv_type_pid_t=yes |
| 27801 | else |
| 27802 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27804 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27805 | ac_cv_type_pid_t=no |
| 27806 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27808 | fi |
| 27809 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 27810 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 27811 | if test $ac_cv_type_pid_t = yes; then |
| 27812 | : |
| 27813 | else |
| 27814 | |
| 27815 | cat >>confdefs.h <<_ACEOF |
| 27816 | #define pid_t int |
| 27817 | _ACEOF |
| 27818 | |
| 27819 | fi |
| 27820 | |
| 27821 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 27822 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 27823 | if test "${ac_cv_type_size_t+set}" = set; then |
| 27824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27825 | else |
| 27826 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27827 | /* confdefs.h. */ |
| 27828 | _ACEOF |
| 27829 | cat confdefs.h >>conftest.$ac_ext |
| 27830 | cat >>conftest.$ac_ext <<_ACEOF |
| 27831 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27832 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27833 | int |
| 27834 | main () |
| 27835 | { |
| 27836 | if ((size_t *) 0) |
| 27837 | return 0; |
| 27838 | if (sizeof (size_t)) |
| 27839 | return 0; |
| 27840 | ; |
| 27841 | return 0; |
| 27842 | } |
| 27843 | _ACEOF |
| 27844 | rm -f conftest.$ac_objext |
| 27845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27846 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27847 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27849 | rm -f conftest.er1 |
| 27850 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27852 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27853 | { ac_try='test -z "$ac_c_werror_flag" |
| 27854 | || test ! -s conftest.err' |
| 27855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27856 | (eval $ac_try) 2>&5 |
| 27857 | ac_status=$? |
| 27858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27859 | (exit $ac_status); }; } && |
| 27860 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27862 | (eval $ac_try) 2>&5 |
| 27863 | ac_status=$? |
| 27864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27865 | (exit $ac_status); }; }; then |
| 27866 | ac_cv_type_size_t=yes |
| 27867 | else |
| 27868 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27870 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27871 | ac_cv_type_size_t=no |
| 27872 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27874 | fi |
| 27875 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 27876 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 27877 | if test $ac_cv_type_size_t = yes; then |
| 27878 | : |
| 27879 | else |
| 27880 | |
| 27881 | cat >>confdefs.h <<_ACEOF |
| 27882 | #define size_t unsigned |
| 27883 | _ACEOF |
| 27884 | |
| 27885 | fi |
| 27886 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27887 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 27888 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 27889 | if test "${ac_cv_type_signal+set}" = set; then |
| 27890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27891 | else |
| 27892 | cat >conftest.$ac_ext <<_ACEOF |
| 27893 | /* confdefs.h. */ |
| 27894 | _ACEOF |
| 27895 | cat confdefs.h >>conftest.$ac_ext |
| 27896 | cat >>conftest.$ac_ext <<_ACEOF |
| 27897 | /* end confdefs.h. */ |
| 27898 | #include <sys/types.h> |
| 27899 | #include <signal.h> |
| 27900 | #ifdef signal |
| 27901 | # undef signal |
| 27902 | #endif |
| 27903 | #ifdef __cplusplus |
| 27904 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 27905 | #else |
| 27906 | void (*signal ()) (); |
| 27907 | #endif |
| 27908 | |
| 27909 | int |
| 27910 | main () |
| 27911 | { |
| 27912 | int i; |
| 27913 | ; |
| 27914 | return 0; |
| 27915 | } |
| 27916 | _ACEOF |
| 27917 | rm -f conftest.$ac_objext |
| 27918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27919 | (eval $ac_compile) 2>conftest.er1 |
| 27920 | ac_status=$? |
| 27921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27922 | rm -f conftest.er1 |
| 27923 | cat conftest.err >&5 |
| 27924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27925 | (exit $ac_status); } && |
| 27926 | { ac_try='test -z "$ac_c_werror_flag" |
| 27927 | || test ! -s conftest.err' |
| 27928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27929 | (eval $ac_try) 2>&5 |
| 27930 | ac_status=$? |
| 27931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27932 | (exit $ac_status); }; } && |
| 27933 | { ac_try='test -s conftest.$ac_objext' |
| 27934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27935 | (eval $ac_try) 2>&5 |
| 27936 | ac_status=$? |
| 27937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27938 | (exit $ac_status); }; }; then |
| 27939 | ac_cv_type_signal=void |
| 27940 | else |
| 27941 | echo "$as_me: failed program was:" >&5 |
| 27942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27943 | |
| 27944 | ac_cv_type_signal=int |
| 27945 | fi |
| 27946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27947 | fi |
| 27948 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 27949 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 27950 | |
| 27951 | cat >>confdefs.h <<_ACEOF |
| 27952 | #define RETSIGTYPE $ac_cv_type_signal |
| 27953 | _ACEOF |
| 27954 | |
| 27955 | |
| 27956 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 27957 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 27958 | if test "${ac_cv_struct_tm+set}" = set; then |
| 27959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27960 | else |
| 27961 | cat >conftest.$ac_ext <<_ACEOF |
| 27962 | /* confdefs.h. */ |
| 27963 | _ACEOF |
| 27964 | cat confdefs.h >>conftest.$ac_ext |
| 27965 | cat >>conftest.$ac_ext <<_ACEOF |
| 27966 | /* end confdefs.h. */ |
| 27967 | #include <sys/types.h> |
| 27968 | #include <time.h> |
| 27969 | |
| 27970 | int |
| 27971 | main () |
| 27972 | { |
| 27973 | struct tm *tp; tp->tm_sec; |
| 27974 | ; |
| 27975 | return 0; |
| 27976 | } |
| 27977 | _ACEOF |
| 27978 | rm -f conftest.$ac_objext |
| 27979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27980 | (eval $ac_compile) 2>conftest.er1 |
| 27981 | ac_status=$? |
| 27982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27983 | rm -f conftest.er1 |
| 27984 | cat conftest.err >&5 |
| 27985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27986 | (exit $ac_status); } && |
| 27987 | { ac_try='test -z "$ac_c_werror_flag" |
| 27988 | || test ! -s conftest.err' |
| 27989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27990 | (eval $ac_try) 2>&5 |
| 27991 | ac_status=$? |
| 27992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27993 | (exit $ac_status); }; } && |
| 27994 | { ac_try='test -s conftest.$ac_objext' |
| 27995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27996 | (eval $ac_try) 2>&5 |
| 27997 | ac_status=$? |
| 27998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27999 | (exit $ac_status); }; }; then |
| 28000 | ac_cv_struct_tm=time.h |
| 28001 | else |
| 28002 | echo "$as_me: failed program was:" >&5 |
| 28003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28004 | |
| 28005 | ac_cv_struct_tm=sys/time.h |
| 28006 | fi |
| 28007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28008 | fi |
| 28009 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 28010 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 28011 | if test $ac_cv_struct_tm = sys/time.h; then |
| 28012 | |
| 28013 | cat >>confdefs.h <<\_ACEOF |
| 28014 | #define TM_IN_SYS_TIME 1 |
| 28015 | _ACEOF |
| 28016 | |
| 28017 | fi |
| 28018 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28019 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 28020 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 28021 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 28022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28023 | else |
| 28024 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28025 | /* confdefs.h. */ |
| 28026 | _ACEOF |
| 28027 | cat confdefs.h >>conftest.$ac_ext |
| 28028 | cat >>conftest.$ac_ext <<_ACEOF |
| 28029 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28030 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28031 | int |
| 28032 | main () |
| 28033 | { |
| 28034 | if ((int64_t *) 0) |
| 28035 | return 0; |
| 28036 | if (sizeof (int64_t)) |
| 28037 | return 0; |
| 28038 | ; |
| 28039 | return 0; |
| 28040 | } |
| 28041 | _ACEOF |
| 28042 | rm -f conftest.$ac_objext |
| 28043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28044 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28045 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28047 | rm -f conftest.er1 |
| 28048 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28050 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28051 | { ac_try='test -z "$ac_c_werror_flag" |
| 28052 | || test ! -s conftest.err' |
| 28053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28054 | (eval $ac_try) 2>&5 |
| 28055 | ac_status=$? |
| 28056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28057 | (exit $ac_status); }; } && |
| 28058 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28060 | (eval $ac_try) 2>&5 |
| 28061 | ac_status=$? |
| 28062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28063 | (exit $ac_status); }; }; then |
| 28064 | ac_cv_type_int64_t=yes |
| 28065 | else |
| 28066 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28068 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28069 | ac_cv_type_int64_t=no |
| 28070 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28072 | fi |
| 28073 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 28074 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 28075 | if test $ac_cv_type_int64_t = yes; then |
| 28076 | |
| 28077 | cat >>confdefs.h <<_ACEOF |
| 28078 | #define HAVE_INT64_T 1 |
| 28079 | _ACEOF |
| 28080 | |
| 28081 | |
| 28082 | else |
| 28083 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 28084 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 28085 | { (exit 1); exit 1; }; } |
| 28086 | fi |
| 28087 | |
| 28088 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 28089 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 28090 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 28091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28092 | else |
| 28093 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28094 | /* confdefs.h. */ |
| 28095 | _ACEOF |
| 28096 | cat confdefs.h >>conftest.$ac_ext |
| 28097 | cat >>conftest.$ac_ext <<_ACEOF |
| 28098 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28099 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28100 | int |
| 28101 | main () |
| 28102 | { |
| 28103 | if ((uint64_t *) 0) |
| 28104 | return 0; |
| 28105 | if (sizeof (uint64_t)) |
| 28106 | return 0; |
| 28107 | ; |
| 28108 | return 0; |
| 28109 | } |
| 28110 | _ACEOF |
| 28111 | rm -f conftest.$ac_objext |
| 28112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28113 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28114 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28116 | rm -f conftest.er1 |
| 28117 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28119 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28120 | { ac_try='test -z "$ac_c_werror_flag" |
| 28121 | || test ! -s conftest.err' |
| 28122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28123 | (eval $ac_try) 2>&5 |
| 28124 | ac_status=$? |
| 28125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28126 | (exit $ac_status); }; } && |
| 28127 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28129 | (eval $ac_try) 2>&5 |
| 28130 | ac_status=$? |
| 28131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28132 | (exit $ac_status); }; }; then |
| 28133 | ac_cv_type_uint64_t=yes |
| 28134 | else |
| 28135 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28138 | ac_cv_type_uint64_t=no |
| 28139 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28141 | fi |
| 28142 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 28143 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 28144 | if test $ac_cv_type_uint64_t = yes; then |
| 28145 | |
| 28146 | cat >>confdefs.h <<_ACEOF |
| 28147 | #define HAVE_UINT64_T 1 |
| 28148 | _ACEOF |
| 28149 | |
| 28150 | |
| 28151 | else |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 28152 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28153 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 28154 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 28155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28156 | else |
| 28157 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28158 | /* confdefs.h. */ |
| 28159 | _ACEOF |
| 28160 | cat confdefs.h >>conftest.$ac_ext |
| 28161 | cat >>conftest.$ac_ext <<_ACEOF |
| 28162 | /* end confdefs.h. */ |
| 28163 | $ac_includes_default |
| 28164 | int |
| 28165 | main () |
| 28166 | { |
| 28167 | if ((u_int64_t *) 0) |
| 28168 | return 0; |
| 28169 | if (sizeof (u_int64_t)) |
| 28170 | return 0; |
| 28171 | ; |
| 28172 | return 0; |
| 28173 | } |
| 28174 | _ACEOF |
| 28175 | rm -f conftest.$ac_objext |
| 28176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28177 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28178 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28180 | rm -f conftest.er1 |
| 28181 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28183 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28184 | { ac_try='test -z "$ac_c_werror_flag" |
| 28185 | || test ! -s conftest.err' |
| 28186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28187 | (eval $ac_try) 2>&5 |
| 28188 | ac_status=$? |
| 28189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28190 | (exit $ac_status); }; } && |
| 28191 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28193 | (eval $ac_try) 2>&5 |
| 28194 | ac_status=$? |
| 28195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28196 | (exit $ac_status); }; }; then |
| 28197 | ac_cv_type_u_int64_t=yes |
| 28198 | else |
| 28199 | echo "$as_me: failed program was:" >&5 |
| 28200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28201 | |
| 28202 | ac_cv_type_u_int64_t=no |
| 28203 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28205 | fi |
| 28206 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 28207 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 28208 | if test $ac_cv_type_u_int64_t = yes; then |
| 28209 | |
| 28210 | cat >>confdefs.h <<_ACEOF |
| 28211 | #define HAVE_U_INT64_T 1 |
| 28212 | _ACEOF |
| 28213 | |
| 28214 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 28215 | else |
| 28216 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 28217 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 28218 | { (exit 1); exit 1; }; } |
| 28219 | fi |
| 28220 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28221 | fi |
| 28222 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28223 | |
| 28224 | |
| 28225 | |
| 28226 | |
| 28227 | |
| 28228 | |
| 28229 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 28230 | |
| 28231 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28232 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28233 | do |
| 28234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28235 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28237 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28239 | else |
| 28240 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28241 | /* confdefs.h. */ |
| 28242 | _ACEOF |
| 28243 | cat confdefs.h >>conftest.$ac_ext |
| 28244 | cat >>conftest.$ac_ext <<_ACEOF |
| 28245 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28248 | #define $ac_func innocuous_$ac_func |
| 28249 | |
| 28250 | /* System header to define __stub macros and hopefully few prototypes, |
| 28251 | which can conflict with char $ac_func (); below. |
| 28252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28253 | <limits.h> exists even on freestanding compilers. */ |
| 28254 | |
| 28255 | #ifdef __STDC__ |
| 28256 | # include <limits.h> |
| 28257 | #else |
| 28258 | # include <assert.h> |
| 28259 | #endif |
| 28260 | |
| 28261 | #undef $ac_func |
| 28262 | |
| 28263 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28264 | #ifdef __cplusplus |
| 28265 | extern "C" |
| 28266 | { |
| 28267 | #endif |
| 28268 | /* We use char because int might match the return type of a gcc2 |
| 28269 | builtin and then its argument prototype would still apply. */ |
| 28270 | char $ac_func (); |
| 28271 | /* The GNU C library defines this for functions which it implements |
| 28272 | to always fail with ENOSYS. Some functions are actually named |
| 28273 | something starting with __ and the normal name is an alias. */ |
| 28274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28275 | choke me |
| 28276 | #else |
| 28277 | char (*f) () = $ac_func; |
| 28278 | #endif |
| 28279 | #ifdef __cplusplus |
| 28280 | } |
| 28281 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28282 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28283 | int |
| 28284 | main () |
| 28285 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28286 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28287 | ; |
| 28288 | return 0; |
| 28289 | } |
| 28290 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28291 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28293 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28294 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28296 | rm -f conftest.er1 |
| 28297 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28299 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28300 | { ac_try='test -z "$ac_c_werror_flag" |
| 28301 | || test ! -s conftest.err' |
| 28302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28303 | (eval $ac_try) 2>&5 |
| 28304 | ac_status=$? |
| 28305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28306 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28307 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28309 | (eval $ac_try) 2>&5 |
| 28310 | ac_status=$? |
| 28311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28312 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28313 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28314 | else |
| 28315 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28317 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28318 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28319 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28320 | rm -f conftest.err conftest.$ac_objext \ |
| 28321 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28322 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28325 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28326 | cat >>confdefs.h <<_ACEOF |
| 28327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28328 | _ACEOF |
| 28329 | |
| 28330 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28331 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28332 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28333 | |
| 28334 | |
| 28335 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 28336 | |
| 28337 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28338 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28339 | for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp |
| 28340 | do |
| 28341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28342 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28344 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 28345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28346 | else |
| 28347 | cat >conftest.$ac_ext <<_ACEOF |
| 28348 | /* confdefs.h. */ |
| 28349 | _ACEOF |
| 28350 | cat confdefs.h >>conftest.$ac_ext |
| 28351 | cat >>conftest.$ac_ext <<_ACEOF |
| 28352 | /* end confdefs.h. */ |
| 28353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28355 | #define $ac_func innocuous_$ac_func |
| 28356 | |
| 28357 | /* System header to define __stub macros and hopefully few prototypes, |
| 28358 | which can conflict with char $ac_func (); below. |
| 28359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28360 | <limits.h> exists even on freestanding compilers. */ |
| 28361 | |
| 28362 | #ifdef __STDC__ |
| 28363 | # include <limits.h> |
| 28364 | #else |
| 28365 | # include <assert.h> |
| 28366 | #endif |
| 28367 | |
| 28368 | #undef $ac_func |
| 28369 | |
| 28370 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28371 | #ifdef __cplusplus |
| 28372 | extern "C" |
| 28373 | { |
| 28374 | #endif |
| 28375 | /* We use char because int might match the return type of a gcc2 |
| 28376 | builtin and then its argument prototype would still apply. */ |
| 28377 | char $ac_func (); |
| 28378 | /* The GNU C library defines this for functions which it implements |
| 28379 | to always fail with ENOSYS. Some functions are actually named |
| 28380 | something starting with __ and the normal name is an alias. */ |
| 28381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28382 | choke me |
| 28383 | #else |
| 28384 | char (*f) () = $ac_func; |
| 28385 | #endif |
| 28386 | #ifdef __cplusplus |
| 28387 | } |
| 28388 | #endif |
| 28389 | |
| 28390 | int |
| 28391 | main () |
| 28392 | { |
| 28393 | return f != $ac_func; |
| 28394 | ; |
| 28395 | return 0; |
| 28396 | } |
| 28397 | _ACEOF |
| 28398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28400 | (eval $ac_link) 2>conftest.er1 |
| 28401 | ac_status=$? |
| 28402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28403 | rm -f conftest.er1 |
| 28404 | cat conftest.err >&5 |
| 28405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28406 | (exit $ac_status); } && |
| 28407 | { ac_try='test -z "$ac_c_werror_flag" |
| 28408 | || test ! -s conftest.err' |
| 28409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28410 | (eval $ac_try) 2>&5 |
| 28411 | ac_status=$? |
| 28412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28413 | (exit $ac_status); }; } && |
| 28414 | { ac_try='test -s conftest$ac_exeext' |
| 28415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28416 | (eval $ac_try) 2>&5 |
| 28417 | ac_status=$? |
| 28418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28419 | (exit $ac_status); }; }; then |
| 28420 | eval "$as_ac_var=yes" |
| 28421 | else |
| 28422 | echo "$as_me: failed program was:" >&5 |
| 28423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28424 | |
| 28425 | eval "$as_ac_var=no" |
| 28426 | fi |
| 28427 | rm -f conftest.err conftest.$ac_objext \ |
| 28428 | conftest$ac_exeext conftest.$ac_ext |
| 28429 | fi |
| 28430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28431 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28432 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28433 | cat >>confdefs.h <<_ACEOF |
| 28434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28435 | _ACEOF |
| 28436 | |
| 28437 | fi |
| 28438 | done |
| 28439 | |
| 28440 | |
| 28441 | |
| 28442 | |
| 28443 | |
| 28444 | |
| 28445 | |
| 28446 | |
| 28447 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28448 | do |
| 28449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28452 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 28453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28454 | else |
| 28455 | cat >conftest.$ac_ext <<_ACEOF |
| 28456 | /* confdefs.h. */ |
| 28457 | _ACEOF |
| 28458 | cat confdefs.h >>conftest.$ac_ext |
| 28459 | cat >>conftest.$ac_ext <<_ACEOF |
| 28460 | /* end confdefs.h. */ |
| 28461 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28463 | #define $ac_func innocuous_$ac_func |
| 28464 | |
| 28465 | /* System header to define __stub macros and hopefully few prototypes, |
| 28466 | which can conflict with char $ac_func (); below. |
| 28467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28468 | <limits.h> exists even on freestanding compilers. */ |
| 28469 | |
| 28470 | #ifdef __STDC__ |
| 28471 | # include <limits.h> |
| 28472 | #else |
| 28473 | # include <assert.h> |
| 28474 | #endif |
| 28475 | |
| 28476 | #undef $ac_func |
| 28477 | |
| 28478 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28479 | #ifdef __cplusplus |
| 28480 | extern "C" |
| 28481 | { |
| 28482 | #endif |
| 28483 | /* We use char because int might match the return type of a gcc2 |
| 28484 | builtin and then its argument prototype would still apply. */ |
| 28485 | char $ac_func (); |
| 28486 | /* The GNU C library defines this for functions which it implements |
| 28487 | to always fail with ENOSYS. Some functions are actually named |
| 28488 | something starting with __ and the normal name is an alias. */ |
| 28489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28490 | choke me |
| 28491 | #else |
| 28492 | char (*f) () = $ac_func; |
| 28493 | #endif |
| 28494 | #ifdef __cplusplus |
| 28495 | } |
| 28496 | #endif |
| 28497 | |
| 28498 | int |
| 28499 | main () |
| 28500 | { |
| 28501 | return f != $ac_func; |
| 28502 | ; |
| 28503 | return 0; |
| 28504 | } |
| 28505 | _ACEOF |
| 28506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28508 | (eval $ac_link) 2>conftest.er1 |
| 28509 | ac_status=$? |
| 28510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28511 | rm -f conftest.er1 |
| 28512 | cat conftest.err >&5 |
| 28513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28514 | (exit $ac_status); } && |
| 28515 | { ac_try='test -z "$ac_c_werror_flag" |
| 28516 | || test ! -s conftest.err' |
| 28517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28518 | (eval $ac_try) 2>&5 |
| 28519 | ac_status=$? |
| 28520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28521 | (exit $ac_status); }; } && |
| 28522 | { ac_try='test -s conftest$ac_exeext' |
| 28523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28524 | (eval $ac_try) 2>&5 |
| 28525 | ac_status=$? |
| 28526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28527 | (exit $ac_status); }; }; then |
| 28528 | eval "$as_ac_var=yes" |
| 28529 | else |
| 28530 | echo "$as_me: failed program was:" >&5 |
| 28531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28532 | |
| 28533 | eval "$as_ac_var=no" |
| 28534 | fi |
| 28535 | rm -f conftest.err conftest.$ac_objext \ |
| 28536 | conftest$ac_exeext conftest.$ac_ext |
| 28537 | fi |
| 28538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28539 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28540 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28541 | cat >>confdefs.h <<_ACEOF |
| 28542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28543 | _ACEOF |
| 28544 | |
| 28545 | fi |
| 28546 | done |
| 28547 | |
| 28548 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 28549 | |
| 28550 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28551 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 28552 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28553 | do |
| 28554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28557 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28559 | else |
| 28560 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28561 | /* confdefs.h. */ |
| 28562 | _ACEOF |
| 28563 | cat confdefs.h >>conftest.$ac_ext |
| 28564 | cat >>conftest.$ac_ext <<_ACEOF |
| 28565 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28566 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28568 | #define $ac_func innocuous_$ac_func |
| 28569 | |
| 28570 | /* System header to define __stub macros and hopefully few prototypes, |
| 28571 | which can conflict with char $ac_func (); below. |
| 28572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28573 | <limits.h> exists even on freestanding compilers. */ |
| 28574 | |
| 28575 | #ifdef __STDC__ |
| 28576 | # include <limits.h> |
| 28577 | #else |
| 28578 | # include <assert.h> |
| 28579 | #endif |
| 28580 | |
| 28581 | #undef $ac_func |
| 28582 | |
| 28583 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28584 | #ifdef __cplusplus |
| 28585 | extern "C" |
| 28586 | { |
| 28587 | #endif |
| 28588 | /* We use char because int might match the return type of a gcc2 |
| 28589 | builtin and then its argument prototype would still apply. */ |
| 28590 | char $ac_func (); |
| 28591 | /* The GNU C library defines this for functions which it implements |
| 28592 | to always fail with ENOSYS. Some functions are actually named |
| 28593 | something starting with __ and the normal name is an alias. */ |
| 28594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28595 | choke me |
| 28596 | #else |
| 28597 | char (*f) () = $ac_func; |
| 28598 | #endif |
| 28599 | #ifdef __cplusplus |
| 28600 | } |
| 28601 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28602 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28603 | int |
| 28604 | main () |
| 28605 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28606 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28607 | ; |
| 28608 | return 0; |
| 28609 | } |
| 28610 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28611 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28613 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28614 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28616 | rm -f conftest.er1 |
| 28617 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28619 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28620 | { ac_try='test -z "$ac_c_werror_flag" |
| 28621 | || test ! -s conftest.err' |
| 28622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28623 | (eval $ac_try) 2>&5 |
| 28624 | ac_status=$? |
| 28625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28626 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28627 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28629 | (eval $ac_try) 2>&5 |
| 28630 | ac_status=$? |
| 28631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28632 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28633 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28634 | else |
| 28635 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28637 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28638 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28639 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28640 | rm -f conftest.err conftest.$ac_objext \ |
| 28641 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28642 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28643 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28644 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28645 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28646 | cat >>confdefs.h <<_ACEOF |
| 28647 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28648 | _ACEOF |
| 28649 | |
| 28650 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28651 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28652 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28653 | |
| 28654 | |
| 28655 | |
| 28656 | |
| 28657 | |
| 28658 | |
| 28659 | for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp |
| 28660 | do |
| 28661 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28662 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28663 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28664 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 28665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28666 | else |
| 28667 | cat >conftest.$ac_ext <<_ACEOF |
| 28668 | /* confdefs.h. */ |
| 28669 | _ACEOF |
| 28670 | cat confdefs.h >>conftest.$ac_ext |
| 28671 | cat >>conftest.$ac_ext <<_ACEOF |
| 28672 | /* end confdefs.h. */ |
| 28673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28675 | #define $ac_func innocuous_$ac_func |
| 28676 | |
| 28677 | /* System header to define __stub macros and hopefully few prototypes, |
| 28678 | which can conflict with char $ac_func (); below. |
| 28679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28680 | <limits.h> exists even on freestanding compilers. */ |
| 28681 | |
| 28682 | #ifdef __STDC__ |
| 28683 | # include <limits.h> |
| 28684 | #else |
| 28685 | # include <assert.h> |
| 28686 | #endif |
| 28687 | |
| 28688 | #undef $ac_func |
| 28689 | |
| 28690 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28691 | #ifdef __cplusplus |
| 28692 | extern "C" |
| 28693 | { |
| 28694 | #endif |
| 28695 | /* We use char because int might match the return type of a gcc2 |
| 28696 | builtin and then its argument prototype would still apply. */ |
| 28697 | char $ac_func (); |
| 28698 | /* The GNU C library defines this for functions which it implements |
| 28699 | to always fail with ENOSYS. Some functions are actually named |
| 28700 | something starting with __ and the normal name is an alias. */ |
| 28701 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28702 | choke me |
| 28703 | #else |
| 28704 | char (*f) () = $ac_func; |
| 28705 | #endif |
| 28706 | #ifdef __cplusplus |
| 28707 | } |
| 28708 | #endif |
| 28709 | |
| 28710 | int |
| 28711 | main () |
| 28712 | { |
| 28713 | return f != $ac_func; |
| 28714 | ; |
| 28715 | return 0; |
| 28716 | } |
| 28717 | _ACEOF |
| 28718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28720 | (eval $ac_link) 2>conftest.er1 |
| 28721 | ac_status=$? |
| 28722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28723 | rm -f conftest.er1 |
| 28724 | cat conftest.err >&5 |
| 28725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28726 | (exit $ac_status); } && |
| 28727 | { ac_try='test -z "$ac_c_werror_flag" |
| 28728 | || test ! -s conftest.err' |
| 28729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28730 | (eval $ac_try) 2>&5 |
| 28731 | ac_status=$? |
| 28732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28733 | (exit $ac_status); }; } && |
| 28734 | { ac_try='test -s conftest$ac_exeext' |
| 28735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28736 | (eval $ac_try) 2>&5 |
| 28737 | ac_status=$? |
| 28738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28739 | (exit $ac_status); }; }; then |
| 28740 | eval "$as_ac_var=yes" |
| 28741 | else |
| 28742 | echo "$as_me: failed program was:" >&5 |
| 28743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28744 | |
| 28745 | eval "$as_ac_var=no" |
| 28746 | fi |
| 28747 | rm -f conftest.err conftest.$ac_objext \ |
| 28748 | conftest$ac_exeext conftest.$ac_ext |
| 28749 | fi |
| 28750 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28751 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28752 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28753 | cat >>confdefs.h <<_ACEOF |
| 28754 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28755 | _ACEOF |
| 28756 | |
| 28757 | fi |
| 28758 | done |
| 28759 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28760 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 28761 | 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] | 28762 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28764 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28765 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28766 | ac_cpp='$CPP $CPPFLAGS' |
| 28767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28770 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28771 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28772 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28773 | else |
| 28774 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28775 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28776 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28777 | _ACEOF |
| 28778 | cat confdefs.h >>conftest.$ac_ext |
| 28779 | cat >>conftest.$ac_ext <<_ACEOF |
| 28780 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28781 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28782 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28783 | #include <stdlib.h> |
| 28784 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28785 | int |
| 28786 | main () |
| 28787 | { |
| 28788 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28789 | volatile double A, B; |
| 28790 | char Buffer[100]; |
| 28791 | A = 1; |
| 28792 | A /= 10.0; |
| 28793 | sprintf(Buffer, "%a", A); |
| 28794 | B = atof(Buffer); |
| 28795 | if (A != B) |
| 28796 | return (1); |
| 28797 | if (A != 0x1.999999999999ap-4) |
| 28798 | return (1); |
| 28799 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28800 | ; |
| 28801 | return 0; |
| 28802 | } |
| 28803 | _ACEOF |
| 28804 | rm -f conftest$ac_exeext |
| 28805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28806 | (eval $ac_link) 2>&5 |
| 28807 | ac_status=$? |
| 28808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 28810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28811 | (eval $ac_try) 2>&5 |
| 28812 | ac_status=$? |
| 28813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28814 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28815 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28816 | else |
| 28817 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28818 | echo "$as_me: failed program was:" >&5 |
| 28819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28820 | |
| 28821 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28822 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28823 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28824 | 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] | 28825 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28826 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28827 | ac_cpp='$CPP $CPPFLAGS' |
| 28828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28831 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28832 | fi |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28833 | echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 28834 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6 |
| 28835 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28836 | |
| 28837 | cat >>confdefs.h <<\_ACEOF |
| 28838 | #define HAVE_PRINTF_A 1 |
| 28839 | _ACEOF |
| 28840 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28841 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28842 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28843 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 28844 | # for constant arguments. Useless! |
| 28845 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 28846 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 28847 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28849 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28850 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28851 | /* confdefs.h. */ |
| 28852 | _ACEOF |
| 28853 | cat confdefs.h >>conftest.$ac_ext |
| 28854 | cat >>conftest.$ac_ext <<_ACEOF |
| 28855 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28856 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28857 | int |
| 28858 | main () |
| 28859 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28860 | char *p = (char *) alloca (2 * sizeof (int)); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28861 | ; |
| 28862 | return 0; |
| 28863 | } |
| 28864 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28867 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28868 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28870 | rm -f conftest.er1 |
| 28871 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28873 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28874 | { ac_try='test -z "$ac_c_werror_flag" |
| 28875 | || test ! -s conftest.err' |
| 28876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28877 | (eval $ac_try) 2>&5 |
| 28878 | ac_status=$? |
| 28879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28880 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28881 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28883 | (eval $ac_try) 2>&5 |
| 28884 | ac_status=$? |
| 28885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28886 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28887 | ac_cv_working_alloca_h=yes |
| 28888 | else |
| 28889 | echo "$as_me: failed program was:" >&5 |
| 28890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28891 | |
| 28892 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28893 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28894 | rm -f conftest.err conftest.$ac_objext \ |
| 28895 | conftest$ac_exeext conftest.$ac_ext |
| 28896 | fi |
| 28897 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 28898 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 28899 | if test $ac_cv_working_alloca_h = yes; then |
| 28900 | |
| 28901 | cat >>confdefs.h <<\_ACEOF |
| 28902 | #define HAVE_ALLOCA_H 1 |
| 28903 | _ACEOF |
| 28904 | |
| 28905 | fi |
| 28906 | |
| 28907 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 28908 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 28909 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 28910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28911 | else |
| 28912 | cat >conftest.$ac_ext <<_ACEOF |
| 28913 | /* confdefs.h. */ |
| 28914 | _ACEOF |
| 28915 | cat confdefs.h >>conftest.$ac_ext |
| 28916 | cat >>conftest.$ac_ext <<_ACEOF |
| 28917 | /* end confdefs.h. */ |
| 28918 | #ifdef __GNUC__ |
| 28919 | # define alloca __builtin_alloca |
| 28920 | #else |
| 28921 | # ifdef _MSC_VER |
| 28922 | # include <malloc.h> |
| 28923 | # define alloca _alloca |
| 28924 | # else |
| 28925 | # if HAVE_ALLOCA_H |
| 28926 | # include <alloca.h> |
| 28927 | # else |
| 28928 | # ifdef _AIX |
| 28929 | #pragma alloca |
| 28930 | # else |
| 28931 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 28932 | char *alloca (); |
| 28933 | # endif |
| 28934 | # endif |
| 28935 | # endif |
| 28936 | # endif |
| 28937 | #endif |
| 28938 | |
| 28939 | int |
| 28940 | main () |
| 28941 | { |
| 28942 | char *p = (char *) alloca (1); |
| 28943 | ; |
| 28944 | return 0; |
| 28945 | } |
| 28946 | _ACEOF |
| 28947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28949 | (eval $ac_link) 2>conftest.er1 |
| 28950 | ac_status=$? |
| 28951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28952 | rm -f conftest.er1 |
| 28953 | cat conftest.err >&5 |
| 28954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28955 | (exit $ac_status); } && |
| 28956 | { ac_try='test -z "$ac_c_werror_flag" |
| 28957 | || test ! -s conftest.err' |
| 28958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28959 | (eval $ac_try) 2>&5 |
| 28960 | ac_status=$? |
| 28961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28962 | (exit $ac_status); }; } && |
| 28963 | { ac_try='test -s conftest$ac_exeext' |
| 28964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28965 | (eval $ac_try) 2>&5 |
| 28966 | ac_status=$? |
| 28967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28968 | (exit $ac_status); }; }; then |
| 28969 | ac_cv_func_alloca_works=yes |
| 28970 | else |
| 28971 | echo "$as_me: failed program was:" >&5 |
| 28972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28973 | |
| 28974 | ac_cv_func_alloca_works=no |
| 28975 | fi |
| 28976 | rm -f conftest.err conftest.$ac_objext \ |
| 28977 | conftest$ac_exeext conftest.$ac_ext |
| 28978 | fi |
| 28979 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 28980 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 28981 | |
| 28982 | if test $ac_cv_func_alloca_works = yes; then |
| 28983 | |
| 28984 | cat >>confdefs.h <<\_ACEOF |
| 28985 | #define HAVE_ALLOCA 1 |
| 28986 | _ACEOF |
| 28987 | |
| 28988 | else |
| 28989 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 28990 | # that cause trouble. Some versions do not even contain alloca or |
| 28991 | # contain a buggy version. If you still want to use their alloca, |
| 28992 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 28993 | |
| 28994 | ALLOCA=alloca.$ac_objext |
| 28995 | |
| 28996 | cat >>confdefs.h <<\_ACEOF |
| 28997 | #define C_ALLOCA 1 |
| 28998 | _ACEOF |
| 28999 | |
| 29000 | |
| 29001 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 29002 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 29003 | if test "${ac_cv_os_cray+set}" = set; then |
| 29004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29005 | else |
| 29006 | cat >conftest.$ac_ext <<_ACEOF |
| 29007 | /* confdefs.h. */ |
| 29008 | _ACEOF |
| 29009 | cat confdefs.h >>conftest.$ac_ext |
| 29010 | cat >>conftest.$ac_ext <<_ACEOF |
| 29011 | /* end confdefs.h. */ |
| 29012 | #if defined(CRAY) && ! defined(CRAY2) |
| 29013 | webecray |
| 29014 | #else |
| 29015 | wenotbecray |
| 29016 | #endif |
| 29017 | |
| 29018 | _ACEOF |
| 29019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29020 | $EGREP "webecray" >/dev/null 2>&1; then |
| 29021 | ac_cv_os_cray=yes |
| 29022 | else |
| 29023 | ac_cv_os_cray=no |
| 29024 | fi |
| 29025 | rm -f conftest* |
| 29026 | |
| 29027 | fi |
| 29028 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 29029 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 29030 | if test $ac_cv_os_cray = yes; then |
| 29031 | for ac_func in _getb67 GETB67 getb67; do |
| 29032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 29033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 29035 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 29036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29037 | else |
| 29038 | cat >conftest.$ac_ext <<_ACEOF |
| 29039 | /* confdefs.h. */ |
| 29040 | _ACEOF |
| 29041 | cat confdefs.h >>conftest.$ac_ext |
| 29042 | cat >>conftest.$ac_ext <<_ACEOF |
| 29043 | /* end confdefs.h. */ |
| 29044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29046 | #define $ac_func innocuous_$ac_func |
| 29047 | |
| 29048 | /* System header to define __stub macros and hopefully few prototypes, |
| 29049 | which can conflict with char $ac_func (); below. |
| 29050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29051 | <limits.h> exists even on freestanding compilers. */ |
| 29052 | |
| 29053 | #ifdef __STDC__ |
| 29054 | # include <limits.h> |
| 29055 | #else |
| 29056 | # include <assert.h> |
| 29057 | #endif |
| 29058 | |
| 29059 | #undef $ac_func |
| 29060 | |
| 29061 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 29062 | #ifdef __cplusplus |
| 29063 | extern "C" |
| 29064 | { |
| 29065 | #endif |
| 29066 | /* We use char because int might match the return type of a gcc2 |
| 29067 | builtin and then its argument prototype would still apply. */ |
| 29068 | char $ac_func (); |
| 29069 | /* The GNU C library defines this for functions which it implements |
| 29070 | to always fail with ENOSYS. Some functions are actually named |
| 29071 | something starting with __ and the normal name is an alias. */ |
| 29072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 29073 | choke me |
| 29074 | #else |
| 29075 | char (*f) () = $ac_func; |
| 29076 | #endif |
| 29077 | #ifdef __cplusplus |
| 29078 | } |
| 29079 | #endif |
| 29080 | |
| 29081 | int |
| 29082 | main () |
| 29083 | { |
| 29084 | return f != $ac_func; |
| 29085 | ; |
| 29086 | return 0; |
| 29087 | } |
| 29088 | _ACEOF |
| 29089 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 29091 | (eval $ac_link) 2>conftest.er1 |
| 29092 | ac_status=$? |
| 29093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29094 | rm -f conftest.er1 |
| 29095 | cat conftest.err >&5 |
| 29096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29097 | (exit $ac_status); } && |
| 29098 | { ac_try='test -z "$ac_c_werror_flag" |
| 29099 | || test ! -s conftest.err' |
| 29100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29101 | (eval $ac_try) 2>&5 |
| 29102 | ac_status=$? |
| 29103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29104 | (exit $ac_status); }; } && |
| 29105 | { ac_try='test -s conftest$ac_exeext' |
| 29106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29107 | (eval $ac_try) 2>&5 |
| 29108 | ac_status=$? |
| 29109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29110 | (exit $ac_status); }; }; then |
| 29111 | eval "$as_ac_var=yes" |
| 29112 | else |
| 29113 | echo "$as_me: failed program was:" >&5 |
| 29114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29115 | |
| 29116 | eval "$as_ac_var=no" |
| 29117 | fi |
| 29118 | rm -f conftest.err conftest.$ac_objext \ |
| 29119 | conftest$ac_exeext conftest.$ac_ext |
| 29120 | fi |
| 29121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 29122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 29123 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29124 | |
| 29125 | cat >>confdefs.h <<_ACEOF |
| 29126 | #define CRAY_STACKSEG_END $ac_func |
| 29127 | _ACEOF |
| 29128 | |
| 29129 | break |
| 29130 | fi |
| 29131 | |
| 29132 | done |
| 29133 | fi |
| 29134 | |
| 29135 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 29136 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 29137 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 29138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29139 | else |
| 29140 | if test "$cross_compiling" = yes; then |
| 29141 | ac_cv_c_stack_direction=0 |
| 29142 | else |
| 29143 | cat >conftest.$ac_ext <<_ACEOF |
| 29144 | /* confdefs.h. */ |
| 29145 | _ACEOF |
| 29146 | cat confdefs.h >>conftest.$ac_ext |
| 29147 | cat >>conftest.$ac_ext <<_ACEOF |
| 29148 | /* end confdefs.h. */ |
| 29149 | int |
| 29150 | find_stack_direction () |
| 29151 | { |
| 29152 | static char *addr = 0; |
| 29153 | auto char dummy; |
| 29154 | if (addr == 0) |
| 29155 | { |
| 29156 | addr = &dummy; |
| 29157 | return find_stack_direction (); |
| 29158 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29159 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29160 | return (&dummy > addr) ? 1 : -1; |
| 29161 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29162 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29163 | int |
| 29164 | main () |
| 29165 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29166 | exit (find_stack_direction () < 0); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29167 | } |
| 29168 | _ACEOF |
| 29169 | rm -f conftest$ac_exeext |
| 29170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 29171 | (eval $ac_link) 2>&5 |
| 29172 | ac_status=$? |
| 29173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29176 | (eval $ac_try) 2>&5 |
| 29177 | ac_status=$? |
| 29178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29179 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29180 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29181 | else |
| 29182 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29183 | echo "$as_me: failed program was:" >&5 |
| 29184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29185 | |
| 29186 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29187 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29188 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29189 | 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] | 29190 | fi |
| 29191 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29192 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 29193 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 29194 | |
| 29195 | cat >>confdefs.h <<_ACEOF |
| 29196 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 29197 | _ACEOF |
| 29198 | |
| 29199 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29200 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29201 | |
| 29202 | |
| 29203 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 29204 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 |
| 29205 | if test "${ac_cv_func_rand48+set}" = set; then |
| 29206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29207 | else |
| 29208 | ac_ext=cc |
| 29209 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29210 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29211 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29212 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29213 | |
| 29214 | cat >conftest.$ac_ext <<_ACEOF |
| 29215 | /* confdefs.h. */ |
| 29216 | _ACEOF |
| 29217 | cat confdefs.h >>conftest.$ac_ext |
| 29218 | cat >>conftest.$ac_ext <<_ACEOF |
| 29219 | /* end confdefs.h. */ |
| 29220 | #include <stdlib.h> |
| 29221 | int |
| 29222 | main () |
| 29223 | { |
| 29224 | srand48(0);lrand48();drand48(); |
| 29225 | ; |
| 29226 | return 0; |
| 29227 | } |
| 29228 | _ACEOF |
| 29229 | rm -f conftest.$ac_objext |
| 29230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 29231 | (eval $ac_compile) 2>conftest.er1 |
| 29232 | ac_status=$? |
| 29233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29234 | rm -f conftest.er1 |
| 29235 | cat conftest.err >&5 |
| 29236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29237 | (exit $ac_status); } && |
| 29238 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29239 | || test ! -s conftest.err' |
| 29240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29241 | (eval $ac_try) 2>&5 |
| 29242 | ac_status=$? |
| 29243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29244 | (exit $ac_status); }; } && |
| 29245 | { ac_try='test -s conftest.$ac_objext' |
| 29246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29247 | (eval $ac_try) 2>&5 |
| 29248 | ac_status=$? |
| 29249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29250 | (exit $ac_status); }; }; then |
| 29251 | ac_cv_func_rand48=yes |
| 29252 | else |
| 29253 | echo "$as_me: failed program was:" >&5 |
| 29254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29255 | |
| 29256 | ac_cv_func_rand48=no |
| 29257 | fi |
| 29258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29259 | ac_ext=c |
| 29260 | ac_cpp='$CPP $CPPFLAGS' |
| 29261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29264 | |
| 29265 | fi |
| 29266 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 29267 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 |
| 29268 | |
| 29269 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 29270 | |
| 29271 | cat >>confdefs.h <<\_ACEOF |
| 29272 | #define HAVE_RAND48 1 |
| 29273 | _ACEOF |
| 29274 | |
| 29275 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29276 | |
| 29277 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29278 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 29279 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 29280 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 29281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29282 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29283 | ac_ext=cc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29284 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29285 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29286 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29287 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29288 | |
| 29289 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29290 | /* confdefs.h. */ |
| 29291 | _ACEOF |
| 29292 | cat confdefs.h >>conftest.$ac_ext |
| 29293 | cat >>conftest.$ac_ext <<_ACEOF |
| 29294 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29295 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29296 | int |
| 29297 | main () |
| 29298 | { |
| 29299 | using namespace Outer::Inner; return i; |
| 29300 | ; |
| 29301 | return 0; |
| 29302 | } |
| 29303 | _ACEOF |
| 29304 | rm -f conftest.$ac_objext |
| 29305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29306 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29307 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29309 | rm -f conftest.er1 |
| 29310 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29312 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29313 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29314 | || test ! -s conftest.err' |
| 29315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29316 | (eval $ac_try) 2>&5 |
| 29317 | ac_status=$? |
| 29318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29319 | (exit $ac_status); }; } && |
| 29320 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29322 | (eval $ac_try) 2>&5 |
| 29323 | ac_status=$? |
| 29324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29325 | (exit $ac_status); }; }; then |
| 29326 | ac_cv_cxx_namespaces=yes |
| 29327 | else |
| 29328 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29330 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29331 | ac_cv_cxx_namespaces=no |
| 29332 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29334 | ac_ext=c |
| 29335 | ac_cpp='$CPP $CPPFLAGS' |
| 29336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29339 | |
| 29340 | |
| 29341 | fi |
| 29342 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 29343 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 29344 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 29345 | |
| 29346 | cat >>confdefs.h <<\_ACEOF |
| 29347 | #define HAVE_NAMESPACES |
| 29348 | _ACEOF |
| 29349 | |
| 29350 | fi |
| 29351 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29352 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 29353 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 |
| 29354 | 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] | 29355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29356 | else |
| 29357 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29358 | ac_ext=cc |
| 29359 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29360 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29361 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29362 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29363 | |
| 29364 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29365 | /* confdefs.h. */ |
| 29366 | _ACEOF |
| 29367 | cat confdefs.h >>conftest.$ac_ext |
| 29368 | cat >>conftest.$ac_ext <<_ACEOF |
| 29369 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29370 | #include <ext/hash_map> |
| 29371 | #ifdef HAVE_NAMESPACES |
| 29372 | using namespace std; |
| 29373 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29374 | int |
| 29375 | main () |
| 29376 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29377 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29378 | ; |
| 29379 | return 0; |
| 29380 | } |
| 29381 | _ACEOF |
| 29382 | rm -f conftest.$ac_objext |
| 29383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29384 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29385 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29387 | rm -f conftest.er1 |
| 29388 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29390 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29391 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29392 | || test ! -s conftest.err' |
| 29393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29394 | (eval $ac_try) 2>&5 |
| 29395 | ac_status=$? |
| 29396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29397 | (exit $ac_status); }; } && |
| 29398 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29400 | (eval $ac_try) 2>&5 |
| 29401 | ac_status=$? |
| 29402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29403 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29404 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29405 | else |
| 29406 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29408 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29409 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29410 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29412 | ac_ext=c |
| 29413 | ac_cpp='$CPP $CPPFLAGS' |
| 29414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29417 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29418 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29419 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 29420 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29421 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 29422 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29423 | |
| 29424 | cat >>confdefs.h <<\_ACEOF |
| 29425 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 29426 | _ACEOF |
| 29427 | |
| 29428 | else |
| 29429 | |
| 29430 | cat >>confdefs.h <<\_ACEOF |
| 29431 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 29432 | _ACEOF |
| 29433 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29434 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29435 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29436 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 29437 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 |
| 29438 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 29439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29440 | else |
| 29441 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29442 | ac_ext=cc |
| 29443 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29444 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29445 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29446 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29447 | |
| 29448 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29449 | /* confdefs.h. */ |
| 29450 | _ACEOF |
| 29451 | cat confdefs.h >>conftest.$ac_ext |
| 29452 | cat >>conftest.$ac_ext <<_ACEOF |
| 29453 | /* end confdefs.h. */ |
| 29454 | #include <ext/hash_map> |
| 29455 | #ifdef HAVE_NAMESPACES |
| 29456 | using namespace __gnu_cxx; |
| 29457 | #endif |
| 29458 | int |
| 29459 | main () |
| 29460 | { |
| 29461 | hash_map<int,int> t; |
| 29462 | ; |
| 29463 | return 0; |
| 29464 | } |
| 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 | 9058349 | 2003-11-10 03:06:28 +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 | 9058349 | 2003-11-10 03:06:28 +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 | 9058349 | 2003-11-10 03:06:28 +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_cxx_have_gnu_ext_hash_map=yes |
| 29489 | else |
| 29490 | echo "$as_me: failed program was:" >&5 |
| 29491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29492 | |
| 29493 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29496 | ac_ext=c |
| 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_cxx_have_gnu_ext_hash_map" >&5 |
| 29504 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29505 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 29506 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29507 | |
| 29508 | cat >>confdefs.h <<\_ACEOF |
| 29509 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 29510 | _ACEOF |
| 29511 | |
| 29512 | else |
| 29513 | |
| 29514 | cat >>confdefs.h <<\_ACEOF |
| 29515 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 29516 | _ACEOF |
| 29517 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29518 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29519 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29520 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 29521 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 |
| 29522 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 29523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29524 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29525 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29526 | ac_ext=cc |
| 29527 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29528 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29529 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29530 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29531 | |
| 29532 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29533 | /* confdefs.h. */ |
| 29534 | _ACEOF |
| 29535 | cat confdefs.h >>conftest.$ac_ext |
| 29536 | cat >>conftest.$ac_ext <<_ACEOF |
| 29537 | /* end confdefs.h. */ |
| 29538 | #include <hash_map> |
| 29539 | int |
| 29540 | main () |
| 29541 | { |
| 29542 | hash_map<int,int> t; |
| 29543 | ; |
| 29544 | return 0; |
| 29545 | } |
| 29546 | _ACEOF |
| 29547 | rm -f conftest.$ac_objext |
| 29548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29549 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29550 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29552 | rm -f conftest.er1 |
| 29553 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29555 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29556 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29557 | || test ! -s conftest.err' |
| 29558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29559 | (eval $ac_try) 2>&5 |
| 29560 | ac_status=$? |
| 29561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29562 | (exit $ac_status); }; } && |
| 29563 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29565 | (eval $ac_try) 2>&5 |
| 29566 | ac_status=$? |
| 29567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29568 | (exit $ac_status); }; }; then |
| 29569 | ac_cv_cxx_have_global_hash_map=yes |
| 29570 | else |
| 29571 | echo "$as_me: failed program was:" >&5 |
| 29572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29573 | |
| 29574 | ac_cv_cxx_have_global_hash_map=no |
| 29575 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29577 | ac_ext=c |
| 29578 | ac_cpp='$CPP $CPPFLAGS' |
| 29579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29582 | |
| 29583 | fi |
| 29584 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 29585 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29586 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 29587 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29588 | |
| 29589 | cat >>confdefs.h <<\_ACEOF |
| 29590 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 29591 | _ACEOF |
| 29592 | |
| 29593 | else |
| 29594 | |
| 29595 | cat >>confdefs.h <<\_ACEOF |
| 29596 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 29597 | _ACEOF |
| 29598 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29599 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29600 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29601 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 29602 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 |
| 29603 | 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] | 29604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29605 | else |
| 29606 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29607 | ac_ext=cc |
| 29608 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29609 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29610 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29611 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29612 | |
| 29613 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29614 | /* confdefs.h. */ |
| 29615 | _ACEOF |
| 29616 | cat confdefs.h >>conftest.$ac_ext |
| 29617 | cat >>conftest.$ac_ext <<_ACEOF |
| 29618 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29619 | #include <ext/hash_set> |
| 29620 | #ifdef HAVE_NAMESPACES |
| 29621 | using namespace std; |
| 29622 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29623 | int |
| 29624 | main () |
| 29625 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29626 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29627 | ; |
| 29628 | return 0; |
| 29629 | } |
| 29630 | _ACEOF |
| 29631 | rm -f conftest.$ac_objext |
| 29632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29633 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29634 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29636 | rm -f conftest.er1 |
| 29637 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29639 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29640 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29641 | || test ! -s conftest.err' |
| 29642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29643 | (eval $ac_try) 2>&5 |
| 29644 | ac_status=$? |
| 29645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29646 | (exit $ac_status); }; } && |
| 29647 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29649 | (eval $ac_try) 2>&5 |
| 29650 | ac_status=$? |
| 29651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29652 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29653 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29654 | else |
| 29655 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29657 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29658 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29659 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29661 | ac_ext=c |
| 29662 | ac_cpp='$CPP $CPPFLAGS' |
| 29663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29666 | |
| 29667 | fi |
| 29668 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 29669 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29670 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 29671 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29672 | |
| 29673 | cat >>confdefs.h <<\_ACEOF |
| 29674 | #define HAVE_STD_EXT_HASH_SET 1 |
| 29675 | _ACEOF |
| 29676 | |
| 29677 | else |
| 29678 | |
| 29679 | cat >>confdefs.h <<\_ACEOF |
| 29680 | #define HAVE_STD_EXT_HASH_SET 0 |
| 29681 | _ACEOF |
| 29682 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29683 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29684 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29685 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 29686 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 |
| 29687 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 29688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29689 | else |
| 29690 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29691 | ac_ext=cc |
| 29692 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29693 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29694 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29695 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29697 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29698 | /* confdefs.h. */ |
| 29699 | _ACEOF |
| 29700 | cat confdefs.h >>conftest.$ac_ext |
| 29701 | cat >>conftest.$ac_ext <<_ACEOF |
| 29702 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29703 | #include <ext/hash_set> |
| 29704 | #ifdef HAVE_NAMESPACES |
| 29705 | using namespace __gnu_cxx; |
| 29706 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29707 | int |
| 29708 | main () |
| 29709 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29710 | hash_set<int> t; |
| 29711 | ; |
| 29712 | return 0; |
| 29713 | } |
| 29714 | _ACEOF |
| 29715 | rm -f conftest.$ac_objext |
| 29716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29717 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29718 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29720 | rm -f conftest.er1 |
| 29721 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29723 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29724 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29725 | || test ! -s conftest.err' |
| 29726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29727 | (eval $ac_try) 2>&5 |
| 29728 | ac_status=$? |
| 29729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29730 | (exit $ac_status); }; } && |
| 29731 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29733 | (eval $ac_try) 2>&5 |
| 29734 | ac_status=$? |
| 29735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29736 | (exit $ac_status); }; }; then |
| 29737 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 29738 | else |
| 29739 | echo "$as_me: failed program was:" >&5 |
| 29740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29741 | |
| 29742 | ac_cv_cxx_have_gnu_ext_hash_set=no |
| 29743 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29745 | ac_ext=c |
| 29746 | ac_cpp='$CPP $CPPFLAGS' |
| 29747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29750 | |
| 29751 | fi |
| 29752 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 29753 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29754 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 29755 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29756 | |
| 29757 | cat >>confdefs.h <<\_ACEOF |
| 29758 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 29759 | _ACEOF |
| 29760 | |
| 29761 | else |
| 29762 | |
| 29763 | cat >>confdefs.h <<\_ACEOF |
| 29764 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 29765 | _ACEOF |
| 29766 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29767 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29768 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29769 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 29770 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 |
| 29771 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 29772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29773 | else |
| 29774 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29775 | ac_ext=cc |
| 29776 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29777 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29778 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29779 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29780 | |
| 29781 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29782 | /* confdefs.h. */ |
| 29783 | _ACEOF |
| 29784 | cat confdefs.h >>conftest.$ac_ext |
| 29785 | cat >>conftest.$ac_ext <<_ACEOF |
| 29786 | /* end confdefs.h. */ |
| 29787 | #include <hash_set> |
| 29788 | int |
| 29789 | main () |
| 29790 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29791 | hash_set<int> t; return 0; |
| 29792 | ; |
| 29793 | return 0; |
| 29794 | } |
| 29795 | _ACEOF |
| 29796 | rm -f conftest.$ac_objext |
| 29797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29798 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29799 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29801 | rm -f conftest.er1 |
| 29802 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29804 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29805 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29806 | || test ! -s conftest.err' |
| 29807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29808 | (eval $ac_try) 2>&5 |
| 29809 | ac_status=$? |
| 29810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29811 | (exit $ac_status); }; } && |
| 29812 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29814 | (eval $ac_try) 2>&5 |
| 29815 | ac_status=$? |
| 29816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29817 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29818 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29819 | else |
| 29820 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29822 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29823 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29824 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29826 | ac_ext=c |
| 29827 | ac_cpp='$CPP $CPPFLAGS' |
| 29828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29831 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29832 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29833 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 29834 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29835 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 29836 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29837 | |
| 29838 | cat >>confdefs.h <<\_ACEOF |
| 29839 | #define HAVE_GLOBAL_HASH_SET 1 |
| 29840 | _ACEOF |
| 29841 | |
| 29842 | else |
| 29843 | |
| 29844 | cat >>confdefs.h <<\_ACEOF |
| 29845 | #define HAVE_GLOBAL_HASH_SET 0 |
| 29846 | _ACEOF |
| 29847 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29848 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29849 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29850 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 29851 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 29852 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 29853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29854 | else |
| 29855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29856 | ac_ext=cc |
| 29857 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29858 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29859 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29860 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29861 | |
| 29862 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29863 | /* confdefs.h. */ |
| 29864 | _ACEOF |
| 29865 | cat confdefs.h >>conftest.$ac_ext |
| 29866 | cat >>conftest.$ac_ext <<_ACEOF |
| 29867 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29868 | #include <iterator> |
| 29869 | #ifdef HAVE_NAMESPACES |
| 29870 | using namespace std; |
| 29871 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29872 | int |
| 29873 | main () |
| 29874 | { |
| 29875 | iterator<int,int,int> t; return 0; |
| 29876 | ; |
| 29877 | return 0; |
| 29878 | } |
| 29879 | _ACEOF |
| 29880 | rm -f conftest.$ac_objext |
| 29881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29882 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29883 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29885 | rm -f conftest.er1 |
| 29886 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29888 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29889 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29890 | || test ! -s conftest.err' |
| 29891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29892 | (eval $ac_try) 2>&5 |
| 29893 | ac_status=$? |
| 29894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29895 | (exit $ac_status); }; } && |
| 29896 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29898 | (eval $ac_try) 2>&5 |
| 29899 | ac_status=$? |
| 29900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29901 | (exit $ac_status); }; }; then |
| 29902 | ac_cv_cxx_have_std_iterator=yes |
| 29903 | else |
| 29904 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29906 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29907 | ac_cv_cxx_have_std_iterator=no |
| 29908 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29910 | ac_ext=c |
| 29911 | ac_cpp='$CPP $CPPFLAGS' |
| 29912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29915 | |
| 29916 | |
| 29917 | fi |
| 29918 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 29919 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29920 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 29921 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29922 | |
| 29923 | cat >>confdefs.h <<\_ACEOF |
| 29924 | #define HAVE_STD_ITERATOR 1 |
| 29925 | _ACEOF |
| 29926 | |
| 29927 | else |
| 29928 | |
| 29929 | cat >>confdefs.h <<\_ACEOF |
| 29930 | #define HAVE_STD_ITERATOR 0 |
| 29931 | _ACEOF |
| 29932 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29933 | fi |
| 29934 | |
| 29935 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 29936 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 29937 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 29938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29939 | else |
| 29940 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29941 | ac_ext=cc |
| 29942 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29943 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29944 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29945 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29946 | |
| 29947 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29948 | /* confdefs.h. */ |
| 29949 | _ACEOF |
| 29950 | cat confdefs.h >>conftest.$ac_ext |
| 29951 | cat >>conftest.$ac_ext <<_ACEOF |
| 29952 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29953 | #include <iterator> |
| 29954 | #ifdef HAVE_NAMESPACES |
| 29955 | using namespace std; |
| 29956 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29957 | int |
| 29958 | main () |
| 29959 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 29960 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29961 | ; |
| 29962 | return 0; |
| 29963 | } |
| 29964 | _ACEOF |
| 29965 | rm -f conftest.$ac_objext |
| 29966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29967 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29968 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29970 | rm -f conftest.er1 |
| 29971 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29973 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29974 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29975 | || test ! -s conftest.err' |
| 29976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29977 | (eval $ac_try) 2>&5 |
| 29978 | ac_status=$? |
| 29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29980 | (exit $ac_status); }; } && |
| 29981 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29983 | (eval $ac_try) 2>&5 |
| 29984 | ac_status=$? |
| 29985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29986 | (exit $ac_status); }; }; then |
| 29987 | ac_cv_cxx_have_bi_iterator=yes |
| 29988 | else |
| 29989 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29991 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29992 | ac_cv_cxx_have_bi_iterator=no |
| 29993 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29995 | ac_ext=c |
| 29996 | ac_cpp='$CPP $CPPFLAGS' |
| 29997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30000 | |
| 30001 | |
| 30002 | fi |
| 30003 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 30004 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 30005 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 30006 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 30007 | |
| 30008 | cat >>confdefs.h <<\_ACEOF |
| 30009 | #define HAVE_BI_ITERATOR 1 |
| 30010 | _ACEOF |
| 30011 | |
| 30012 | else |
| 30013 | |
| 30014 | cat >>confdefs.h <<\_ACEOF |
| 30015 | #define HAVE_BI_ITERATOR 0 |
| 30016 | _ACEOF |
| 30017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30018 | fi |
| 30019 | |
| 30020 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 30021 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 30022 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 30023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30024 | else |
| 30025 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30026 | ac_ext=cc |
| 30027 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30028 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30029 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30030 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30031 | |
| 30032 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30033 | /* confdefs.h. */ |
| 30034 | _ACEOF |
| 30035 | cat confdefs.h >>conftest.$ac_ext |
| 30036 | cat >>conftest.$ac_ext <<_ACEOF |
| 30037 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30038 | #include <iterator> |
| 30039 | #ifdef HAVE_NAMESPACES |
| 30040 | using namespace std; |
| 30041 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30042 | int |
| 30043 | main () |
| 30044 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 30045 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30046 | ; |
| 30047 | return 0; |
| 30048 | } |
| 30049 | _ACEOF |
| 30050 | rm -f conftest.$ac_objext |
| 30051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30052 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30053 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30055 | rm -f conftest.er1 |
| 30056 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30058 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30059 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30060 | || test ! -s conftest.err' |
| 30061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30062 | (eval $ac_try) 2>&5 |
| 30063 | ac_status=$? |
| 30064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30065 | (exit $ac_status); }; } && |
| 30066 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30068 | (eval $ac_try) 2>&5 |
| 30069 | ac_status=$? |
| 30070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30071 | (exit $ac_status); }; }; then |
| 30072 | ac_cv_cxx_have_fwd_iterator=yes |
| 30073 | else |
| 30074 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30076 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30077 | ac_cv_cxx_have_fwd_iterator=no |
| 30078 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30080 | ac_ext=c |
| 30081 | ac_cpp='$CPP $CPPFLAGS' |
| 30082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30085 | |
| 30086 | |
| 30087 | fi |
| 30088 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 30089 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 30090 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 30091 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 30092 | |
| 30093 | cat >>confdefs.h <<\_ACEOF |
| 30094 | #define HAVE_FWD_ITERATOR 1 |
| 30095 | _ACEOF |
| 30096 | |
| 30097 | else |
| 30098 | |
| 30099 | cat >>confdefs.h <<\_ACEOF |
| 30100 | #define HAVE_FWD_ITERATOR 0 |
| 30101 | _ACEOF |
| 30102 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30103 | fi |
| 30104 | |
| 30105 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30106 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 30107 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 |
| 30108 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 30109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30110 | else |
| 30111 | ac_ext=cc |
| 30112 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30113 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30114 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30115 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30116 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30117 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30118 | /* confdefs.h. */ |
| 30119 | _ACEOF |
| 30120 | cat confdefs.h >>conftest.$ac_ext |
| 30121 | cat >>conftest.$ac_ext <<_ACEOF |
| 30122 | /* end confdefs.h. */ |
| 30123 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30124 | int |
| 30125 | main () |
| 30126 | { |
| 30127 | float f; isnan(f); |
| 30128 | ; |
| 30129 | return 0; |
| 30130 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30131 | _ACEOF |
| 30132 | rm -f conftest.$ac_objext |
| 30133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30134 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30135 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30137 | rm -f conftest.er1 |
| 30138 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30140 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30141 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30142 | || test ! -s conftest.err' |
| 30143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30144 | (eval $ac_try) 2>&5 |
| 30145 | ac_status=$? |
| 30146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30147 | (exit $ac_status); }; } && |
| 30148 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30150 | (eval $ac_try) 2>&5 |
| 30151 | ac_status=$? |
| 30152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30153 | (exit $ac_status); }; }; then |
| 30154 | ac_cv_func_isnan_in_math_h=yes |
| 30155 | else |
| 30156 | echo "$as_me: failed program was:" >&5 |
| 30157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30158 | |
| 30159 | ac_cv_func_isnan_in_math_h=no |
| 30160 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30162 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30163 | ac_cpp='$CPP $CPPFLAGS' |
| 30164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30167 | |
| 30168 | fi |
| 30169 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 30170 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30171 | |
| 30172 | |
| 30173 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30174 | |
| 30175 | cat >>confdefs.h <<\_ACEOF |
| 30176 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 30177 | _ACEOF |
| 30178 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30179 | fi |
| 30180 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30181 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 30182 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 |
| 30183 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 30184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30185 | else |
| 30186 | ac_ext=cc |
| 30187 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30188 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30189 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30190 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30191 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30192 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30193 | /* confdefs.h. */ |
| 30194 | _ACEOF |
| 30195 | cat confdefs.h >>conftest.$ac_ext |
| 30196 | cat >>conftest.$ac_ext <<_ACEOF |
| 30197 | /* end confdefs.h. */ |
| 30198 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30199 | int |
| 30200 | main () |
| 30201 | { |
| 30202 | float f; isnan(f); |
| 30203 | ; |
| 30204 | return 0; |
| 30205 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30206 | _ACEOF |
| 30207 | rm -f conftest.$ac_objext |
| 30208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30209 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30210 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30212 | rm -f conftest.er1 |
| 30213 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30215 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30216 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30217 | || test ! -s conftest.err' |
| 30218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30219 | (eval $ac_try) 2>&5 |
| 30220 | ac_status=$? |
| 30221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30222 | (exit $ac_status); }; } && |
| 30223 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30225 | (eval $ac_try) 2>&5 |
| 30226 | ac_status=$? |
| 30227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30228 | (exit $ac_status); }; }; then |
| 30229 | ac_cv_func_isnan_in_cmath=yes |
| 30230 | else |
| 30231 | echo "$as_me: failed program was:" >&5 |
| 30232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30233 | |
| 30234 | ac_cv_func_isnan_in_cmath=no |
| 30235 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30237 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30238 | ac_cpp='$CPP $CPPFLAGS' |
| 30239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30242 | |
| 30243 | fi |
| 30244 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 30245 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30246 | |
| 30247 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30248 | |
| 30249 | cat >>confdefs.h <<\_ACEOF |
| 30250 | #define HAVE_ISNAN_IN_CMATH 1 |
| 30251 | _ACEOF |
| 30252 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30253 | fi |
| 30254 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30255 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 30256 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 |
| 30257 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 30258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30259 | else |
| 30260 | ac_ext=cc |
| 30261 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30265 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30266 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30267 | /* confdefs.h. */ |
| 30268 | _ACEOF |
| 30269 | cat confdefs.h >>conftest.$ac_ext |
| 30270 | cat >>conftest.$ac_ext <<_ACEOF |
| 30271 | /* end confdefs.h. */ |
| 30272 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30273 | int |
| 30274 | main () |
| 30275 | { |
| 30276 | float f; std::isnan(f); |
| 30277 | ; |
| 30278 | return 0; |
| 30279 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30280 | _ACEOF |
| 30281 | rm -f conftest.$ac_objext |
| 30282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30283 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30284 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30286 | rm -f conftest.er1 |
| 30287 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30289 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30290 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30291 | || test ! -s conftest.err' |
| 30292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30293 | (eval $ac_try) 2>&5 |
| 30294 | ac_status=$? |
| 30295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30296 | (exit $ac_status); }; } && |
| 30297 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30299 | (eval $ac_try) 2>&5 |
| 30300 | ac_status=$? |
| 30301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30302 | (exit $ac_status); }; }; then |
| 30303 | ac_cv_func_std_isnan_in_cmath=yes |
| 30304 | else |
| 30305 | echo "$as_me: failed program was:" >&5 |
| 30306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30307 | |
| 30308 | ac_cv_func_std_isnan_in_cmath=no |
| 30309 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30311 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30312 | ac_cpp='$CPP $CPPFLAGS' |
| 30313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30316 | |
| 30317 | fi |
| 30318 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 30319 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30320 | |
| 30321 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30322 | |
| 30323 | cat >>confdefs.h <<\_ACEOF |
| 30324 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 30325 | _ACEOF |
| 30326 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30327 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30328 | |
| 30329 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30330 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 30331 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 |
| 30332 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 30333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30334 | else |
| 30335 | ac_ext=cc |
| 30336 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30337 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30338 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30339 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30340 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30341 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30342 | /* confdefs.h. */ |
| 30343 | _ACEOF |
| 30344 | cat confdefs.h >>conftest.$ac_ext |
| 30345 | cat >>conftest.$ac_ext <<_ACEOF |
| 30346 | /* end confdefs.h. */ |
| 30347 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30348 | int |
| 30349 | main () |
| 30350 | { |
| 30351 | float f; isinf(f); |
| 30352 | ; |
| 30353 | return 0; |
| 30354 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30355 | _ACEOF |
| 30356 | rm -f conftest.$ac_objext |
| 30357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30358 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30359 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30361 | rm -f conftest.er1 |
| 30362 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30364 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30365 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30366 | || test ! -s conftest.err' |
| 30367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30368 | (eval $ac_try) 2>&5 |
| 30369 | ac_status=$? |
| 30370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30371 | (exit $ac_status); }; } && |
| 30372 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30374 | (eval $ac_try) 2>&5 |
| 30375 | ac_status=$? |
| 30376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30377 | (exit $ac_status); }; }; then |
| 30378 | ac_cv_func_isinf_in_math_h=yes |
| 30379 | else |
| 30380 | echo "$as_me: failed program was:" >&5 |
| 30381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30382 | |
| 30383 | ac_cv_func_isinf_in_math_h=no |
| 30384 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30386 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30387 | ac_cpp='$CPP $CPPFLAGS' |
| 30388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30391 | |
| 30392 | fi |
| 30393 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 30394 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30395 | |
| 30396 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30397 | |
| 30398 | cat >>confdefs.h <<\_ACEOF |
| 30399 | #define HAVE_ISINF_IN_MATH_H 1 |
| 30400 | _ACEOF |
| 30401 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30402 | fi |
| 30403 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30404 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 30405 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 |
| 30406 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 30407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30408 | else |
| 30409 | ac_ext=cc |
| 30410 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30411 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30412 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30413 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30414 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30415 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30416 | /* confdefs.h. */ |
| 30417 | _ACEOF |
| 30418 | cat confdefs.h >>conftest.$ac_ext |
| 30419 | cat >>conftest.$ac_ext <<_ACEOF |
| 30420 | /* end confdefs.h. */ |
| 30421 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30422 | int |
| 30423 | main () |
| 30424 | { |
| 30425 | float f; isinf(f); |
| 30426 | ; |
| 30427 | return 0; |
| 30428 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30429 | _ACEOF |
| 30430 | rm -f conftest.$ac_objext |
| 30431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30432 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30433 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30435 | rm -f conftest.er1 |
| 30436 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30438 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30439 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30440 | || test ! -s conftest.err' |
| 30441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30442 | (eval $ac_try) 2>&5 |
| 30443 | ac_status=$? |
| 30444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30445 | (exit $ac_status); }; } && |
| 30446 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30448 | (eval $ac_try) 2>&5 |
| 30449 | ac_status=$? |
| 30450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30451 | (exit $ac_status); }; }; then |
| 30452 | ac_cv_func_isinf_in_cmath=yes |
| 30453 | else |
| 30454 | echo "$as_me: failed program was:" >&5 |
| 30455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30456 | |
| 30457 | ac_cv_func_isinf_in_cmath=no |
| 30458 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30460 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30461 | ac_cpp='$CPP $CPPFLAGS' |
| 30462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30465 | |
| 30466 | fi |
| 30467 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 30468 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30469 | |
| 30470 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30471 | |
| 30472 | cat >>confdefs.h <<\_ACEOF |
| 30473 | #define HAVE_ISINF_IN_CMATH 1 |
| 30474 | _ACEOF |
| 30475 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30476 | fi |
| 30477 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30478 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 30479 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 |
| 30480 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 30481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30482 | else |
| 30483 | ac_ext=cc |
| 30484 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30485 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30486 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30487 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30488 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30489 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30490 | /* confdefs.h. */ |
| 30491 | _ACEOF |
| 30492 | cat confdefs.h >>conftest.$ac_ext |
| 30493 | cat >>conftest.$ac_ext <<_ACEOF |
| 30494 | /* end confdefs.h. */ |
| 30495 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30496 | int |
| 30497 | main () |
| 30498 | { |
| 30499 | float f; std::isinf(f)} |
| 30500 | ; |
| 30501 | return 0; |
| 30502 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30503 | _ACEOF |
| 30504 | rm -f conftest.$ac_objext |
| 30505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30506 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30507 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30509 | rm -f conftest.er1 |
| 30510 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30512 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30513 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30514 | || test ! -s conftest.err' |
| 30515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30516 | (eval $ac_try) 2>&5 |
| 30517 | ac_status=$? |
| 30518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30519 | (exit $ac_status); }; } && |
| 30520 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30522 | (eval $ac_try) 2>&5 |
| 30523 | ac_status=$? |
| 30524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30525 | (exit $ac_status); }; }; then |
| 30526 | ac_cv_func_std_isinf_in_cmath=yes |
| 30527 | else |
| 30528 | echo "$as_me: failed program was:" >&5 |
| 30529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30530 | |
| 30531 | ac_cv_func_std_isinf_in_cmath=no |
| 30532 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30534 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30535 | ac_cpp='$CPP $CPPFLAGS' |
| 30536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30539 | |
| 30540 | fi |
| 30541 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 30542 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30543 | |
| 30544 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30545 | |
| 30546 | cat >>confdefs.h <<\_ACEOF |
| 30547 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 30548 | _ACEOF |
| 30549 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30550 | fi |
| 30551 | |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30552 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 30553 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 |
| 30554 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 30555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30556 | else |
| 30557 | ac_ext=cc |
| 30558 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30562 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30563 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30564 | /* confdefs.h. */ |
| 30565 | _ACEOF |
| 30566 | cat confdefs.h >>conftest.$ac_ext |
| 30567 | cat >>conftest.$ac_ext <<_ACEOF |
| 30568 | /* end confdefs.h. */ |
| 30569 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30570 | int |
| 30571 | main () |
| 30572 | { |
| 30573 | float f; finite(f); |
| 30574 | ; |
| 30575 | return 0; |
| 30576 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30577 | _ACEOF |
| 30578 | rm -f conftest.$ac_objext |
| 30579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30580 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30581 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30583 | rm -f conftest.er1 |
| 30584 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30586 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30587 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30588 | || test ! -s conftest.err' |
| 30589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30590 | (eval $ac_try) 2>&5 |
| 30591 | ac_status=$? |
| 30592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30593 | (exit $ac_status); }; } && |
| 30594 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30596 | (eval $ac_try) 2>&5 |
| 30597 | ac_status=$? |
| 30598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30599 | (exit $ac_status); }; }; then |
| 30600 | ac_cv_func_finite_in_ieeefp_h=yes |
| 30601 | else |
| 30602 | echo "$as_me: failed program was:" >&5 |
| 30603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30604 | |
| 30605 | ac_cv_func_finite_in_ieeefp_h=no |
| 30606 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30608 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30609 | ac_cpp='$CPP $CPPFLAGS' |
| 30610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30613 | |
| 30614 | fi |
| 30615 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 30616 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30617 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 30618 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30619 | |
| 30620 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 30621 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30622 | _ACEOF |
| 30623 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30624 | fi |
| 30625 | |
| 30626 | |
| 30627 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30628 | |
| 30629 | |
| 30630 | for ac_header in stdlib.h unistd.h |
| 30631 | do |
| 30632 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30633 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 30634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 30636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 30637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30638 | fi |
| 30639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 30640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 30641 | else |
| 30642 | # Is the header compilable? |
| 30643 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30644 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 30645 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30646 | /* confdefs.h. */ |
| 30647 | _ACEOF |
| 30648 | cat confdefs.h >>conftest.$ac_ext |
| 30649 | cat >>conftest.$ac_ext <<_ACEOF |
| 30650 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30651 | $ac_includes_default |
| 30652 | #include <$ac_header> |
| 30653 | _ACEOF |
| 30654 | rm -f conftest.$ac_objext |
| 30655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30656 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30657 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30659 | rm -f conftest.er1 |
| 30660 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30662 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30663 | { ac_try='test -z "$ac_c_werror_flag" |
| 30664 | || test ! -s conftest.err' |
| 30665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30666 | (eval $ac_try) 2>&5 |
| 30667 | ac_status=$? |
| 30668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30669 | (exit $ac_status); }; } && |
| 30670 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30672 | (eval $ac_try) 2>&5 |
| 30673 | ac_status=$? |
| 30674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30675 | (exit $ac_status); }; }; then |
| 30676 | ac_header_compiler=yes |
| 30677 | else |
| 30678 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30680 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30681 | ac_header_compiler=no |
| 30682 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30684 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30685 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 30686 | |
| 30687 | # Is the header present? |
| 30688 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30689 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 30690 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30691 | /* confdefs.h. */ |
| 30692 | _ACEOF |
| 30693 | cat confdefs.h >>conftest.$ac_ext |
| 30694 | cat >>conftest.$ac_ext <<_ACEOF |
| 30695 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30696 | #include <$ac_header> |
| 30697 | _ACEOF |
| 30698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 30699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 30700 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30701 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30702 | rm -f conftest.er1 |
| 30703 | cat conftest.err >&5 |
| 30704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30705 | (exit $ac_status); } >/dev/null; then |
| 30706 | if test -s conftest.err; then |
| 30707 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30708 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30709 | else |
| 30710 | ac_cpp_err= |
| 30711 | fi |
| 30712 | else |
| 30713 | ac_cpp_err=yes |
| 30714 | fi |
| 30715 | if test -z "$ac_cpp_err"; then |
| 30716 | ac_header_preproc=yes |
| 30717 | else |
| 30718 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30720 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30721 | ac_header_preproc=no |
| 30722 | fi |
| 30723 | rm -f conftest.err conftest.$ac_ext |
| 30724 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30725 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 30726 | |
| 30727 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30728 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30729 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30730 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30731 | 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] | 30732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30733 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30734 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30735 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30736 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30737 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30738 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30739 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30740 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30741 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30742 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30743 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30744 | 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] | 30745 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30746 | 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] | 30747 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30748 | 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] | 30749 | ( |
| 30750 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30751 | ## ----------------------------------- ## |
| 30752 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30753 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30754 | _ASBOX |
| 30755 | ) | |
| 30756 | sed "s/^/$as_me: WARNING: /" >&2 |
| 30757 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30758 | esac |
| 30759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 30761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 30762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30763 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30764 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30765 | fi |
| 30766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 30767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 30768 | |
| 30769 | fi |
| 30770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30771 | cat >>confdefs.h <<_ACEOF |
| 30772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30773 | _ACEOF |
| 30774 | |
| 30775 | fi |
| 30776 | |
| 30777 | done |
| 30778 | |
| 30779 | |
| 30780 | for ac_func in getpagesize |
| 30781 | do |
| 30782 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30783 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30784 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 30785 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 30786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30787 | else |
| 30788 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30789 | /* confdefs.h. */ |
| 30790 | _ACEOF |
| 30791 | cat confdefs.h >>conftest.$ac_ext |
| 30792 | cat >>conftest.$ac_ext <<_ACEOF |
| 30793 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30794 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30795 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30796 | #define $ac_func innocuous_$ac_func |
| 30797 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30798 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30799 | which can conflict with char $ac_func (); below. |
| 30800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30801 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30802 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30803 | #ifdef __STDC__ |
| 30804 | # include <limits.h> |
| 30805 | #else |
| 30806 | # include <assert.h> |
| 30807 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30808 | |
| 30809 | #undef $ac_func |
| 30810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30811 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 30812 | #ifdef __cplusplus |
| 30813 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30814 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30815 | #endif |
| 30816 | /* We use char because int might match the return type of a gcc2 |
| 30817 | builtin and then its argument prototype would still apply. */ |
| 30818 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30819 | /* The GNU C library defines this for functions which it implements |
| 30820 | to always fail with ENOSYS. Some functions are actually named |
| 30821 | something starting with __ and the normal name is an alias. */ |
| 30822 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 30823 | choke me |
| 30824 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30825 | char (*f) () = $ac_func; |
| 30826 | #endif |
| 30827 | #ifdef __cplusplus |
| 30828 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30829 | #endif |
| 30830 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30831 | int |
| 30832 | main () |
| 30833 | { |
| 30834 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30835 | ; |
| 30836 | return 0; |
| 30837 | } |
| 30838 | _ACEOF |
| 30839 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30841 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30842 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30844 | rm -f conftest.er1 |
| 30845 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30847 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30848 | { ac_try='test -z "$ac_c_werror_flag" |
| 30849 | || test ! -s conftest.err' |
| 30850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30851 | (eval $ac_try) 2>&5 |
| 30852 | ac_status=$? |
| 30853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30854 | (exit $ac_status); }; } && |
| 30855 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30857 | (eval $ac_try) 2>&5 |
| 30858 | ac_status=$? |
| 30859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30860 | (exit $ac_status); }; }; then |
| 30861 | eval "$as_ac_var=yes" |
| 30862 | else |
| 30863 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30865 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30866 | eval "$as_ac_var=no" |
| 30867 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30868 | rm -f conftest.err conftest.$ac_objext \ |
| 30869 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30870 | fi |
| 30871 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 30872 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 30873 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30874 | cat >>confdefs.h <<_ACEOF |
| 30875 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30876 | _ACEOF |
| 30877 | |
| 30878 | fi |
| 30879 | done |
| 30880 | |
| 30881 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 30882 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 30883 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 30884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30885 | else |
| 30886 | if test "$cross_compiling" = yes; then |
| 30887 | ac_cv_func_mmap_fixed_mapped=no |
| 30888 | else |
| 30889 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30890 | /* confdefs.h. */ |
| 30891 | _ACEOF |
| 30892 | cat confdefs.h >>conftest.$ac_ext |
| 30893 | cat >>conftest.$ac_ext <<_ACEOF |
| 30894 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30895 | $ac_includes_default |
| 30896 | /* malloc might have been renamed as rpl_malloc. */ |
| 30897 | #undef malloc |
| 30898 | |
| 30899 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 30900 | Here is a matrix of mmap possibilities: |
| 30901 | mmap private not fixed |
| 30902 | mmap private fixed at somewhere currently unmapped |
| 30903 | mmap private fixed at somewhere already mapped |
| 30904 | mmap shared not fixed |
| 30905 | mmap shared fixed at somewhere currently unmapped |
| 30906 | mmap shared fixed at somewhere already mapped |
| 30907 | For private mappings, we should verify that changes cannot be read() |
| 30908 | back from the file, nor mmap's back from the file at a different |
| 30909 | address. (There have been systems where private was not correctly |
| 30910 | implemented like the infamous i386 svr4.0, and systems where the |
| 30911 | VM page cache was not coherent with the file system buffer cache |
| 30912 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 30913 | For shared mappings, we should conversely verify that changes get |
| 30914 | propagated back to all the places they're supposed to be. |
| 30915 | |
| 30916 | Grep wants private fixed already mapped. |
| 30917 | The main things grep needs to know about mmap are: |
| 30918 | * does it exist and is it safe to write into the mmap'd area |
| 30919 | * how to use it (BSD variants) */ |
| 30920 | |
| 30921 | #include <fcntl.h> |
| 30922 | #include <sys/mman.h> |
| 30923 | |
| 30924 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 30925 | char *malloc (); |
| 30926 | #endif |
| 30927 | |
| 30928 | /* This mess was copied from the GNU getpagesize.h. */ |
| 30929 | #if !HAVE_GETPAGESIZE |
| 30930 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 30931 | # if !HAVE_SYS_PARAM_H |
| 30932 | # define HAVE_SYS_PARAM_H 1 |
| 30933 | # endif |
| 30934 | |
| 30935 | # ifdef _SC_PAGESIZE |
| 30936 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 30937 | # else /* no _SC_PAGESIZE */ |
| 30938 | # if HAVE_SYS_PARAM_H |
| 30939 | # include <sys/param.h> |
| 30940 | # ifdef EXEC_PAGESIZE |
| 30941 | # define getpagesize() EXEC_PAGESIZE |
| 30942 | # else /* no EXEC_PAGESIZE */ |
| 30943 | # ifdef NBPG |
| 30944 | # define getpagesize() NBPG * CLSIZE |
| 30945 | # ifndef CLSIZE |
| 30946 | # define CLSIZE 1 |
| 30947 | # endif /* no CLSIZE */ |
| 30948 | # else /* no NBPG */ |
| 30949 | # ifdef NBPC |
| 30950 | # define getpagesize() NBPC |
| 30951 | # else /* no NBPC */ |
| 30952 | # ifdef PAGESIZE |
| 30953 | # define getpagesize() PAGESIZE |
| 30954 | # endif /* PAGESIZE */ |
| 30955 | # endif /* no NBPC */ |
| 30956 | # endif /* no NBPG */ |
| 30957 | # endif /* no EXEC_PAGESIZE */ |
| 30958 | # else /* no HAVE_SYS_PARAM_H */ |
| 30959 | # define getpagesize() 8192 /* punt totally */ |
| 30960 | # endif /* no HAVE_SYS_PARAM_H */ |
| 30961 | # endif /* no _SC_PAGESIZE */ |
| 30962 | |
| 30963 | #endif /* no HAVE_GETPAGESIZE */ |
| 30964 | |
| 30965 | int |
| 30966 | main () |
| 30967 | { |
| 30968 | char *data, *data2, *data3; |
| 30969 | int i, pagesize; |
| 30970 | int fd; |
| 30971 | |
| 30972 | pagesize = getpagesize (); |
| 30973 | |
| 30974 | /* First, make a file with some known garbage in it. */ |
| 30975 | data = (char *) malloc (pagesize); |
| 30976 | if (!data) |
| 30977 | exit (1); |
| 30978 | for (i = 0; i < pagesize; ++i) |
| 30979 | *(data + i) = rand (); |
| 30980 | umask (0); |
| 30981 | fd = creat ("conftest.mmap", 0600); |
| 30982 | if (fd < 0) |
| 30983 | exit (1); |
| 30984 | if (write (fd, data, pagesize) != pagesize) |
| 30985 | exit (1); |
| 30986 | close (fd); |
| 30987 | |
| 30988 | /* Next, try to mmap the file at a fixed address which already has |
| 30989 | something else allocated at it. If we can, also make sure that |
| 30990 | we see the same garbage. */ |
| 30991 | fd = open ("conftest.mmap", O_RDWR); |
| 30992 | if (fd < 0) |
| 30993 | exit (1); |
| 30994 | data2 = (char *) malloc (2 * pagesize); |
| 30995 | if (!data2) |
| 30996 | exit (1); |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30997 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30998 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30999 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31000 | exit (1); |
| 31001 | for (i = 0; i < pagesize; ++i) |
| 31002 | if (*(data + i) != *(data2 + i)) |
| 31003 | exit (1); |
| 31004 | |
| 31005 | /* Finally, make sure that changes to the mapped area do not |
| 31006 | percolate back to the file as seen by read(). (This is a bug on |
| 31007 | some variants of i386 svr4.0.) */ |
| 31008 | for (i = 0; i < pagesize; ++i) |
| 31009 | *(data2 + i) = *(data2 + i) + 1; |
| 31010 | data3 = (char *) malloc (pagesize); |
| 31011 | if (!data3) |
| 31012 | exit (1); |
| 31013 | if (read (fd, data3, pagesize) != pagesize) |
| 31014 | exit (1); |
| 31015 | for (i = 0; i < pagesize; ++i) |
| 31016 | if (*(data + i) != *(data3 + i)) |
| 31017 | exit (1); |
| 31018 | close (fd); |
| 31019 | exit (0); |
| 31020 | } |
| 31021 | _ACEOF |
| 31022 | rm -f conftest$ac_exeext |
| 31023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 31024 | (eval $ac_link) 2>&5 |
| 31025 | ac_status=$? |
| 31026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 31028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31029 | (eval $ac_try) 2>&5 |
| 31030 | ac_status=$? |
| 31031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31032 | (exit $ac_status); }; }; then |
| 31033 | ac_cv_func_mmap_fixed_mapped=yes |
| 31034 | else |
| 31035 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31036 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31038 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31039 | ( exit $ac_status ) |
| 31040 | ac_cv_func_mmap_fixed_mapped=no |
| 31041 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31042 | 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] | 31043 | fi |
| 31044 | fi |
| 31045 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 31046 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 31047 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 31048 | |
| 31049 | cat >>confdefs.h <<\_ACEOF |
| 31050 | #define HAVE_MMAP 1 |
| 31051 | _ACEOF |
| 31052 | |
| 31053 | fi |
| 31054 | rm -f conftest.mmap |
| 31055 | |
| 31056 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 31057 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 31058 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 31059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31060 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31061 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31062 | ac_cpp='$CPP $CPPFLAGS' |
| 31063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31066 | |
| 31067 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 31068 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31069 | else |
| 31070 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31071 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31072 | /* confdefs.h. */ |
| 31073 | _ACEOF |
| 31074 | cat confdefs.h >>conftest.$ac_ext |
| 31075 | cat >>conftest.$ac_ext <<_ACEOF |
| 31076 | /* end confdefs.h. */ |
| 31077 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31078 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 31079 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31080 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31081 | |
| 31082 | int |
| 31083 | main () |
| 31084 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31085 | |
| 31086 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31087 | fd = creat ("foo",0777); |
| 31088 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 31089 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 31090 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31091 | ; |
| 31092 | return 0; |
| 31093 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31094 | _ACEOF |
| 31095 | rm -f conftest$ac_exeext |
| 31096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 31097 | (eval $ac_link) 2>&5 |
| 31098 | ac_status=$? |
| 31099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31100 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 31101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31102 | (eval $ac_try) 2>&5 |
| 31103 | ac_status=$? |
| 31104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31105 | (exit $ac_status); }; }; then |
| 31106 | ac_cv_func_mmap_file=yes |
| 31107 | else |
| 31108 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31109 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31111 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31112 | ( exit $ac_status ) |
| 31113 | ac_cv_func_mmap_file=no |
| 31114 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31115 | 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] | 31116 | fi |
| 31117 | ac_ext=c |
| 31118 | ac_cpp='$CPP $CPPFLAGS' |
| 31119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31122 | |
| 31123 | |
| 31124 | fi |
| 31125 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 31126 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 31127 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 31128 | |
| 31129 | cat >>confdefs.h <<\_ACEOF |
| 31130 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31131 | _ACEOF |
| 31132 | |
| 31133 | MMAP_FILE=yes |
| 31134 | |
| 31135 | fi |
| 31136 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31137 | echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 31138 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6 |
| 31139 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 31140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31141 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 31142 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31143 | ac_cv_need_dev_zero_for_mmap=yes |
| 31144 | else |
| 31145 | ac_cv_need_dev_zero_for_mmap=no |
| 31146 | fi |
| 31147 | |
| 31148 | fi |
| 31149 | echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 31150 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6 |
| 31151 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 31152 | |
| 31153 | cat >>confdefs.h <<\_ACEOF |
| 31154 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 31155 | _ACEOF |
| 31156 | |
| 31157 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31158 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 31159 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 31160 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 31161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31162 | else |
| 31163 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31164 | /* confdefs.h. */ |
| 31165 | _ACEOF |
| 31166 | cat confdefs.h >>conftest.$ac_ext |
| 31167 | cat >>conftest.$ac_ext <<_ACEOF |
| 31168 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31169 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 31170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31171 | #define mprotect innocuous_mprotect |
| 31172 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31173 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31174 | which can conflict with char mprotect (); below. |
| 31175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31176 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31177 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31178 | #ifdef __STDC__ |
| 31179 | # include <limits.h> |
| 31180 | #else |
| 31181 | # include <assert.h> |
| 31182 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31183 | |
| 31184 | #undef mprotect |
| 31185 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31186 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 31187 | #ifdef __cplusplus |
| 31188 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31189 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31190 | #endif |
| 31191 | /* We use char because int might match the return type of a gcc2 |
| 31192 | builtin and then its argument prototype would still apply. */ |
| 31193 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31194 | /* The GNU C library defines this for functions which it implements |
| 31195 | to always fail with ENOSYS. Some functions are actually named |
| 31196 | something starting with __ and the normal name is an alias. */ |
| 31197 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 31198 | choke me |
| 31199 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31200 | char (*f) () = mprotect; |
| 31201 | #endif |
| 31202 | #ifdef __cplusplus |
| 31203 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31204 | #endif |
| 31205 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31206 | int |
| 31207 | main () |
| 31208 | { |
| 31209 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31210 | ; |
| 31211 | return 0; |
| 31212 | } |
| 31213 | _ACEOF |
| 31214 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31216 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31217 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31219 | rm -f conftest.er1 |
| 31220 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31222 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31223 | { ac_try='test -z "$ac_c_werror_flag" |
| 31224 | || test ! -s conftest.err' |
| 31225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31226 | (eval $ac_try) 2>&5 |
| 31227 | ac_status=$? |
| 31228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31229 | (exit $ac_status); }; } && |
| 31230 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 31232 | (eval $ac_try) 2>&5 |
| 31233 | ac_status=$? |
| 31234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31235 | (exit $ac_status); }; }; then |
| 31236 | ac_cv_func_mprotect=yes |
| 31237 | else |
| 31238 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31240 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31241 | ac_cv_func_mprotect=no |
| 31242 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31243 | rm -f conftest.err conftest.$ac_objext \ |
| 31244 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31245 | fi |
| 31246 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 31247 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 31248 | if test $ac_cv_func_mprotect = yes; then |
| 31249 | : |
| 31250 | else |
| 31251 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 31252 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 31253 | { (exit 1); exit 1; }; } |
| 31254 | fi |
| 31255 | |
| 31256 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31257 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 31258 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 31259 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 31260 | 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] | 31261 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31262 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 31263 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31264 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 31265 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 31266 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31267 | |
| 31268 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31269 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 31270 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31271 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 31272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31273 | else |
| 31274 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31275 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31276 | cp /dev/null conftest.c |
Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 31277 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31278 | if test $? -eq 0 ; then |
| 31279 | llvm_cv_llvmgcc_sanity="yes" |
| 31280 | fi |
| 31281 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31282 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31283 | fi |
| 31284 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 31285 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 |
| 31286 | |
| 31287 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31288 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31289 | LLVMCC1=$llvmcc1path |
| 31290 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31291 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31292 | LLVMCC1PLUS=$llvmcc1pluspath |
| 31293 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31294 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 31295 | LLVMGCCDIR=$llvmgccdir |
| 31296 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 31297 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 31298 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 31299 | LLVMGCC_VERSION=$llvmgccversion |
| 31300 | |
| 31301 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 31302 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31303 | fi |
| 31304 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31305 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 31306 | |
| 31307 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31308 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31309 | # information into substitutions that will end up in Makefile.config.in |
| 31310 | # that these configured values can be used by the makefiles |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 31311 | if test "${prefix}" == "NONE" ; then |
| 31312 | prefix="/usr/local" |
| 31313 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31314 | eval LLVM_PREFIX="${prefix}"; |
| 31315 | eval LLVM_BINDIR="${prefix}/bin"; |
| 31316 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31317 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 31318 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 31319 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31320 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 31321 | eval LLVM_INFODIR="${prefix}/info"; |
| 31322 | eval LLVM_MANDIR="${prefix}/man"; |
| 31323 | LLVM_CONFIGTIME=`date` |
| 31324 | |
| 31325 | |
| 31326 | |
| 31327 | |
| 31328 | |
| 31329 | |
| 31330 | |
| 31331 | |
| 31332 | |
| 31333 | |
| 31334 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31335 | # Place the various directores into the config.h file as #defines so that we |
| 31336 | # can know about the installation paths within LLVM. |
| 31337 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31338 | cat >>confdefs.h <<_ACEOF |
| 31339 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 31340 | _ACEOF |
| 31341 | |
| 31342 | |
| 31343 | cat >>confdefs.h <<_ACEOF |
| 31344 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 31345 | _ACEOF |
| 31346 | |
| 31347 | |
| 31348 | cat >>confdefs.h <<_ACEOF |
| 31349 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 31350 | _ACEOF |
| 31351 | |
| 31352 | |
| 31353 | cat >>confdefs.h <<_ACEOF |
| 31354 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 31355 | _ACEOF |
| 31356 | |
| 31357 | |
| 31358 | cat >>confdefs.h <<_ACEOF |
| 31359 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 31360 | _ACEOF |
| 31361 | |
| 31362 | |
| 31363 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 31364 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31365 | _ACEOF |
| 31366 | |
| 31367 | |
| 31368 | cat >>confdefs.h <<_ACEOF |
| 31369 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 31370 | _ACEOF |
| 31371 | |
| 31372 | |
| 31373 | cat >>confdefs.h <<_ACEOF |
| 31374 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 31375 | _ACEOF |
| 31376 | |
| 31377 | |
| 31378 | cat >>confdefs.h <<_ACEOF |
| 31379 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 31380 | _ACEOF |
| 31381 | |
| 31382 | |
| 31383 | cat >>confdefs.h <<_ACEOF |
| 31384 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 31385 | _ACEOF |
| 31386 | |
| 31387 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31388 | |
| 31389 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
| 31390 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31391 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
| 31392 | |
| 31393 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
| 31394 | |
| 31395 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
| 31396 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31397 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
| 31398 | |
| 31399 | |
| 31400 | ac_config_files="$ac_config_files Makefile.config" |
| 31401 | |
| 31402 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31403 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 31404 | |
| 31405 | |
Reid Spencer | e198afc | 2006-04-20 22:15:30 +0000 | [diff] [blame] | 31406 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 31407 | |
| 31408 | |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31409 | ac_config_commands="$ac_config_commands setup" |
| 31410 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31411 | ac_config_commands="$ac_config_commands Makefile" |
| 31412 | |
| 31413 | |
| 31414 | ac_config_commands="$ac_config_commands Makefile.common" |
| 31415 | |
| 31416 | |
| 31417 | ac_config_commands="$ac_config_commands examples/Makefile" |
| 31418 | |
| 31419 | |
| 31420 | ac_config_commands="$ac_config_commands lib/Makefile" |
| 31421 | |
| 31422 | |
| 31423 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 31424 | |
| 31425 | |
| 31426 | ac_config_commands="$ac_config_commands test/Makefile" |
| 31427 | |
| 31428 | |
| 31429 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
| 31430 | |
| 31431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31432 | ac_config_commands="$ac_config_commands tools/Makefile" |
| 31433 | |
| 31434 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31435 | ac_config_commands="$ac_config_commands utils/Makefile" |
| 31436 | |
| 31437 | |
| 31438 | ac_config_commands="$ac_config_commands projects/Makefile" |
| 31439 | |
| 31440 | |
| 31441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31442 | cat >confcache <<\_ACEOF |
| 31443 | # This file is a shell script that caches the results of configure |
| 31444 | # tests run on this system so they can be shared between configure |
| 31445 | # scripts and configure runs, see configure's option --config-cache. |
| 31446 | # It is not useful on other systems. If it contains results you don't |
| 31447 | # want to keep, you may remove or edit it. |
| 31448 | # |
| 31449 | # config.status only pays attention to the cache file if you give it |
| 31450 | # the --recheck option to rerun configure. |
| 31451 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31452 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31453 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 31454 | # following values. |
| 31455 | |
| 31456 | _ACEOF |
| 31457 | |
| 31458 | # The following way of writing the cache mishandles newlines in values, |
| 31459 | # but we know of no workaround that is simple, portable, and efficient. |
| 31460 | # So, don't put newlines in cache variables' values. |
| 31461 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 31462 | # and sets the high bit in the cache file unless we assign to the vars. |
| 31463 | { |
| 31464 | (set) 2>&1 | |
| 31465 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 31466 | *ac_space=\ *) |
| 31467 | # `set' does not quote correctly, so add quotes (double-quote |
| 31468 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 31469 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31470 | "s/'/'\\\\''/g; |
| 31471 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31472 | ;; |
| 31473 | *) |
| 31474 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 31475 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31476 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31477 | ;; |
| 31478 | esac; |
| 31479 | } | |
| 31480 | sed ' |
| 31481 | t clear |
| 31482 | : clear |
| 31483 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 31484 | t end |
| 31485 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 31486 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31487 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31488 | if test -w $cache_file; then |
| 31489 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 31490 | cat confcache >$cache_file |
| 31491 | else |
| 31492 | echo "not updating unwritable cache $cache_file" |
| 31493 | fi |
| 31494 | fi |
| 31495 | rm -f confcache |
| 31496 | |
| 31497 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 31498 | # Let make expand exec_prefix. |
| 31499 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 31500 | |
| 31501 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 31502 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 31503 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 31504 | # (actually we leave an empty line to preserve line numbers). |
| 31505 | if test "x$srcdir" = x.; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31506 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31507 | s/:*\$(srcdir):*/:/; |
| 31508 | s/:*\${srcdir}:*/:/; |
| 31509 | s/:*@srcdir@:*/:/; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31510 | s/^\([^=]*=[ ]*\):*/\1/; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31511 | s/:*$//; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31512 | s/^[^=]*=[ ]*$//; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31513 | }' |
| 31514 | fi |
| 31515 | |
| 31516 | DEFS=-DHAVE_CONFIG_H |
| 31517 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31518 | ac_libobjs= |
| 31519 | ac_ltlibobjs= |
| 31520 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 31521 | # 1. Remove the extension, and $U if already installed. |
| 31522 | ac_i=`echo "$ac_i" | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31523 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31524 | # 2. Add them. |
| 31525 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 31526 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 31527 | done |
| 31528 | LIBOBJS=$ac_libobjs |
| 31529 | |
| 31530 | LTLIBOBJS=$ac_ltlibobjs |
| 31531 | |
| 31532 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31533 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 31534 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 31535 | Usually this means the macro was only invoked conditionally." >&5 |
| 31536 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 31537 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31538 | { (exit 1); exit 1; }; } |
| 31539 | fi |
| 31540 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 31541 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 31542 | Usually this means the macro was only invoked conditionally." >&5 |
| 31543 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 31544 | Usually this means the macro was only invoked conditionally." >&2;} |
| 31545 | { (exit 1); exit 1; }; } |
| 31546 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31547 | |
| 31548 | : ${CONFIG_STATUS=./config.status} |
| 31549 | ac_clean_files_save=$ac_clean_files |
| 31550 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 31551 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 31552 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 31553 | cat >$CONFIG_STATUS <<_ACEOF |
| 31554 | #! $SHELL |
| 31555 | # Generated by $as_me. |
| 31556 | # Run this file to recreate the current configuration. |
| 31557 | # Compiler output produced by configure, useful for debugging |
| 31558 | # configure, is in config.log if it exists. |
| 31559 | |
| 31560 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31561 | ac_cs_recheck=false |
| 31562 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31563 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 31564 | _ACEOF |
| 31565 | |
| 31566 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31567 | ## --------------------- ## |
| 31568 | ## M4sh Initialization. ## |
| 31569 | ## --------------------- ## |
| 31570 | |
| 31571 | # Be Bourne compatible |
| 31572 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 31573 | emulate sh |
| 31574 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31575 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 31576 | # is contrary to our usage. Disable this feature. |
| 31577 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31578 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 31579 | set -o posix |
| 31580 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31581 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31582 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31583 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31584 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31585 | as_unset=unset |
| 31586 | else |
| 31587 | as_unset=false |
| 31588 | fi |
| 31589 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31590 | |
| 31591 | # Work around bugs in pre-3.0 UWIN ksh. |
| 31592 | $as_unset ENV MAIL MAILPATH |
| 31593 | PS1='$ ' |
| 31594 | PS2='> ' |
| 31595 | PS4='+ ' |
| 31596 | |
| 31597 | # NLS nuisances. |
| 31598 | for as_var in \ |
| 31599 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 31600 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 31601 | LC_TELEPHONE LC_TIME |
| 31602 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31603 | 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] | 31604 | eval $as_var=C; export $as_var |
| 31605 | else |
| 31606 | $as_unset $as_var |
| 31607 | fi |
| 31608 | done |
| 31609 | |
| 31610 | # Required to use basename. |
| 31611 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 31612 | as_expr=expr |
| 31613 | else |
| 31614 | as_expr=false |
| 31615 | fi |
| 31616 | |
| 31617 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 31618 | as_basename=basename |
| 31619 | else |
| 31620 | as_basename=false |
| 31621 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31622 | |
| 31623 | |
| 31624 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31625 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31626 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 31627 | X"$0" : 'X\(//\)$' \| \ |
| 31628 | X"$0" : 'X\(/\)$' \| \ |
| 31629 | . : '\(.\)' 2>/dev/null || |
| 31630 | echo X/"$0" | |
| 31631 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 31632 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 31633 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 31634 | s/.*/./; q'` |
| 31635 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31636 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31637 | # PATH needs CR, and LINENO needs CR and PATH. |
| 31638 | # Avoid depending upon Character Ranges. |
| 31639 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31640 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 31641 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 31642 | as_cr_digits='0123456789' |
| 31643 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 31644 | |
| 31645 | # The user is always right. |
| 31646 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31647 | echo "#! /bin/sh" >conf$$.sh |
| 31648 | echo "exit 0" >>conf$$.sh |
| 31649 | chmod +x conf$$.sh |
| 31650 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31651 | PATH_SEPARATOR=';' |
| 31652 | else |
| 31653 | PATH_SEPARATOR=: |
| 31654 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31655 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31656 | fi |
| 31657 | |
| 31658 | |
| 31659 | as_lineno_1=$LINENO |
| 31660 | as_lineno_2=$LINENO |
| 31661 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 31662 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 31663 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 31664 | # Find who we are. Look in the path if we contain no path at all |
| 31665 | # relative or not. |
| 31666 | case $0 in |
| 31667 | *[\\/]* ) as_myself=$0 ;; |
| 31668 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31669 | for as_dir in $PATH |
| 31670 | do |
| 31671 | IFS=$as_save_IFS |
| 31672 | test -z "$as_dir" && as_dir=. |
| 31673 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 31674 | done |
| 31675 | |
| 31676 | ;; |
| 31677 | esac |
| 31678 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 31679 | # in which case we are not to be found in the path. |
| 31680 | if test "x$as_myself" = x; then |
| 31681 | as_myself=$0 |
| 31682 | fi |
| 31683 | if test ! -f "$as_myself"; then |
| 31684 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 31685 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 31686 | { (exit 1); exit 1; }; } |
| 31687 | fi |
| 31688 | case $CONFIG_SHELL in |
| 31689 | '') |
| 31690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31691 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 31692 | do |
| 31693 | IFS=$as_save_IFS |
| 31694 | test -z "$as_dir" && as_dir=. |
| 31695 | for as_base in sh bash ksh sh5; do |
| 31696 | case $as_dir in |
| 31697 | /*) |
| 31698 | if ("$as_dir/$as_base" -c ' |
| 31699 | as_lineno_1=$LINENO |
| 31700 | as_lineno_2=$LINENO |
| 31701 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 31702 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 31703 | 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] | 31704 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 31705 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31706 | CONFIG_SHELL=$as_dir/$as_base |
| 31707 | export CONFIG_SHELL |
| 31708 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 31709 | fi;; |
| 31710 | esac |
| 31711 | done |
| 31712 | done |
| 31713 | ;; |
| 31714 | esac |
| 31715 | |
| 31716 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 31717 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 31718 | # line-number line before each line; the second 'sed' does the real |
| 31719 | # work. The second script uses 'N' to pair each line-number line |
| 31720 | # with the numbered line, and appends trailing '-' during |
| 31721 | # substitution so that $LINENO is not a special case at line end. |
| 31722 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 31723 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 31724 | sed '=' <$as_myself | |
| 31725 | sed ' |
| 31726 | N |
| 31727 | s,$,-, |
| 31728 | : loop |
| 31729 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 31730 | t loop |
| 31731 | s,-$,, |
| 31732 | s,^['$as_cr_digits']*\n,, |
| 31733 | ' >$as_me.lineno && |
| 31734 | chmod +x $as_me.lineno || |
| 31735 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 31736 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 31737 | { (exit 1); exit 1; }; } |
| 31738 | |
| 31739 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 31740 | # (the dirname of $[0] is not the place where we might find the |
| 31741 | # original and so on. Autoconf is especially sensible to this). |
| 31742 | . ./$as_me.lineno |
| 31743 | # Exit status is that of the last command. |
| 31744 | exit |
| 31745 | } |
| 31746 | |
| 31747 | |
| 31748 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 31749 | *c*,-n*) ECHO_N= ECHO_C=' |
| 31750 | ' ECHO_T=' ' ;; |
| 31751 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 31752 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 31753 | esac |
| 31754 | |
| 31755 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 31756 | as_expr=expr |
| 31757 | else |
| 31758 | as_expr=false |
| 31759 | fi |
| 31760 | |
| 31761 | rm -f conf$$ conf$$.exe conf$$.file |
| 31762 | echo >conf$$.file |
| 31763 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 31764 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 31765 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 31766 | if test -f conf$$.exe; then |
| 31767 | # Don't use ln at all; we don't have any links |
| 31768 | as_ln_s='cp -p' |
| 31769 | else |
| 31770 | as_ln_s='ln -s' |
| 31771 | fi |
| 31772 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 31773 | as_ln_s=ln |
| 31774 | else |
| 31775 | as_ln_s='cp -p' |
| 31776 | fi |
| 31777 | rm -f conf$$ conf$$.exe conf$$.file |
| 31778 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31779 | if mkdir -p . 2>/dev/null; then |
| 31780 | as_mkdir_p=: |
| 31781 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31782 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31783 | as_mkdir_p=false |
| 31784 | fi |
| 31785 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31786 | as_executable_p="test -f" |
| 31787 | |
| 31788 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31789 | 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] | 31790 | |
| 31791 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31792 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31793 | |
| 31794 | |
| 31795 | # IFS |
| 31796 | # We need space, tab and new line, in precisely that order. |
| 31797 | as_nl=' |
| 31798 | ' |
| 31799 | IFS=" $as_nl" |
| 31800 | |
| 31801 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31802 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31803 | |
| 31804 | exec 6>&1 |
| 31805 | |
| 31806 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 31807 | # report actual input values of CONFIG_FILES etc. instead of their |
| 31808 | # values after options handling. Logging --version etc. is OK. |
| 31809 | exec 5>>config.log |
| 31810 | { |
| 31811 | echo |
| 31812 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 31813 | ## Running $as_me. ## |
| 31814 | _ASBOX |
| 31815 | } >&5 |
| 31816 | cat >&5 <<_CSEOF |
| 31817 | |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 31818 | This file was extended by llvm $as_me 1.9cvs, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31819 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31820 | |
| 31821 | CONFIG_FILES = $CONFIG_FILES |
| 31822 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 31823 | CONFIG_LINKS = $CONFIG_LINKS |
| 31824 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 31825 | $ $0 $@ |
| 31826 | |
| 31827 | _CSEOF |
| 31828 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 31829 | echo >&5 |
| 31830 | _ACEOF |
| 31831 | |
| 31832 | # Files that config.status was made for. |
| 31833 | if test -n "$ac_config_files"; then |
| 31834 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 31835 | fi |
| 31836 | |
| 31837 | if test -n "$ac_config_headers"; then |
| 31838 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 31839 | fi |
| 31840 | |
| 31841 | if test -n "$ac_config_links"; then |
| 31842 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 31843 | fi |
| 31844 | |
| 31845 | if test -n "$ac_config_commands"; then |
| 31846 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 31847 | fi |
| 31848 | |
| 31849 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31850 | |
| 31851 | ac_cs_usage="\ |
| 31852 | \`$as_me' instantiates files from templates according to the |
| 31853 | current configuration. |
| 31854 | |
| 31855 | Usage: $0 [OPTIONS] [FILE]... |
| 31856 | |
| 31857 | -h, --help print this help, then exit |
| 31858 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31859 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31860 | -d, --debug don't remove temporary files |
| 31861 | --recheck update $as_me by reconfiguring in the same conditions |
| 31862 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31863 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31864 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31865 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31866 | |
| 31867 | Configuration files: |
| 31868 | $config_files |
| 31869 | |
| 31870 | Configuration headers: |
| 31871 | $config_headers |
| 31872 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31873 | Configuration commands: |
| 31874 | $config_commands |
| 31875 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31876 | Report bugs to <bug-autoconf@gnu.org>." |
| 31877 | _ACEOF |
| 31878 | |
| 31879 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31880 | ac_cs_version="\\ |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 31881 | llvm config.status 1.9cvs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31882 | configured by $0, generated by GNU Autoconf 2.59, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31883 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 31884 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31885 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31886 | This config.status script is free software; the Free Software Foundation |
| 31887 | gives unlimited permission to copy, distribute and modify it." |
| 31888 | srcdir=$srcdir |
| 31889 | INSTALL="$INSTALL" |
| 31890 | _ACEOF |
| 31891 | |
| 31892 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31893 | # If no file are specified by the user, then we need to provide default |
| 31894 | # value. By we need to know if files were specified by the user. |
| 31895 | ac_need_defaults=: |
| 31896 | while test $# != 0 |
| 31897 | do |
| 31898 | case $1 in |
| 31899 | --*=*) |
| 31900 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 31901 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31902 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31903 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31904 | -*) |
| 31905 | ac_option=$1 |
| 31906 | ac_optarg=$2 |
| 31907 | ac_shift=shift |
| 31908 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31909 | *) # This is not an option, so the user has probably given explicit |
| 31910 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31911 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31912 | ac_need_defaults=false;; |
| 31913 | esac |
| 31914 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31915 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31916 | # Handling of the options. |
| 31917 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 31918 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31919 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 31920 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31921 | --version | --vers* | -V ) |
| 31922 | echo "$ac_cs_version"; exit 0 ;; |
| 31923 | --he | --h) |
| 31924 | # Conflict between --help and --header |
| 31925 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 31926 | Try \`$0 --help' for more information." >&5 |
| 31927 | echo "$as_me: error: ambiguous option: $1 |
| 31928 | Try \`$0 --help' for more information." >&2;} |
| 31929 | { (exit 1); exit 1; }; };; |
| 31930 | --help | --hel | -h ) |
| 31931 | echo "$ac_cs_usage"; exit 0 ;; |
| 31932 | --debug | --d* | -d ) |
| 31933 | debug=: ;; |
| 31934 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31935 | $ac_shift |
| 31936 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31937 | ac_need_defaults=false;; |
| 31938 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31939 | $ac_shift |
| 31940 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31941 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31942 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 31943 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 31944 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31945 | |
| 31946 | # This is an error. |
| 31947 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 31948 | Try \`$0 --help' for more information." >&5 |
| 31949 | echo "$as_me: error: unrecognized option: $1 |
| 31950 | Try \`$0 --help' for more information." >&2;} |
| 31951 | { (exit 1); exit 1; }; } ;; |
| 31952 | |
| 31953 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 31954 | |
| 31955 | esac |
| 31956 | shift |
| 31957 | done |
| 31958 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31959 | ac_configure_extra_args= |
| 31960 | |
| 31961 | if $ac_cs_silent; then |
| 31962 | exec 6>/dev/null |
| 31963 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 31964 | fi |
| 31965 | |
| 31966 | _ACEOF |
| 31967 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31968 | if \$ac_cs_recheck; then |
| 31969 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 31970 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 31971 | fi |
| 31972 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31973 | _ACEOF |
| 31974 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31975 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31976 | # |
| 31977 | # INIT-COMMANDS section. |
| 31978 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31979 | |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31980 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31981 | |
| 31982 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31983 | |
| 31984 | |
| 31985 | |
| 31986 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31987 | for ac_config_target in $ac_config_targets |
| 31988 | do |
| 31989 | case "$ac_config_target" in |
| 31990 | # Handling of arguments. |
| 31991 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31992 | "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Reid Spencer | e198afc | 2006-04-20 22:15:30 +0000 | [diff] [blame] | 31993 | "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31994 | "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31995 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 31996 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 31997 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31998 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31999 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32000 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 32001 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32002 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 32003 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32004 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 32005 | "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] | 32006 | "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] | 32007 | "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 32008 | "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] | 32009 | "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32010 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 32011 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 32012 | { (exit 1); exit 1; }; };; |
| 32013 | esac |
| 32014 | done |
| 32015 | |
| 32016 | # If the user did not use the arguments to specify the items to instantiate, |
| 32017 | # then the envvar interface is used. Set only those that are not. |
| 32018 | # We use the long form for the default assignment because of an extremely |
| 32019 | # bizarre bug on SunOS 4.1.3. |
| 32020 | if $ac_need_defaults; then |
| 32021 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 32022 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32023 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32024 | fi |
| 32025 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32026 | # Have a temporary directory for convenience. Make it in the build tree |
| 32027 | # simply because there is no reason to put it here, and in addition, |
| 32028 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32029 | # Create a temporary directory, and hook for its removal unless debugging. |
| 32030 | $debug || |
| 32031 | { |
| 32032 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 32033 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 32034 | } |
| 32035 | |
| 32036 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32037 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32038 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32039 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32040 | test -n "$tmp" && test -d "$tmp" |
| 32041 | } || |
| 32042 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32043 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32044 | (umask 077 && mkdir $tmp) |
| 32045 | } || |
| 32046 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32047 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32048 | { (exit 1); exit 1; } |
| 32049 | } |
| 32050 | |
| 32051 | _ACEOF |
| 32052 | |
| 32053 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32054 | |
| 32055 | # |
| 32056 | # CONFIG_FILES section. |
| 32057 | # |
| 32058 | |
| 32059 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 32060 | # This happens for instance when ./config.status config.h |
| 32061 | if test -n "\$CONFIG_FILES"; then |
| 32062 | # Protect against being on the right side of a sed subst in config.status. |
| 32063 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 32064 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 32065 | s,@SHELL@,$SHELL,;t t |
| 32066 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 32067 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 32068 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 32069 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 32070 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 32071 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 32072 | s,@exec_prefix@,$exec_prefix,;t t |
| 32073 | s,@prefix@,$prefix,;t t |
| 32074 | s,@program_transform_name@,$program_transform_name,;t t |
| 32075 | s,@bindir@,$bindir,;t t |
| 32076 | s,@sbindir@,$sbindir,;t t |
| 32077 | s,@libexecdir@,$libexecdir,;t t |
| 32078 | s,@datadir@,$datadir,;t t |
| 32079 | s,@sysconfdir@,$sysconfdir,;t t |
| 32080 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 32081 | s,@localstatedir@,$localstatedir,;t t |
| 32082 | s,@libdir@,$libdir,;t t |
| 32083 | s,@includedir@,$includedir,;t t |
| 32084 | s,@oldincludedir@,$oldincludedir,;t t |
| 32085 | s,@infodir@,$infodir,;t t |
| 32086 | s,@mandir@,$mandir,;t t |
| 32087 | s,@build_alias@,$build_alias,;t t |
| 32088 | s,@host_alias@,$host_alias,;t t |
| 32089 | s,@target_alias@,$target_alias,;t t |
| 32090 | s,@DEFS@,$DEFS,;t t |
| 32091 | s,@ECHO_C@,$ECHO_C,;t t |
| 32092 | s,@ECHO_N@,$ECHO_N,;t t |
| 32093 | s,@ECHO_T@,$ECHO_T,;t t |
| 32094 | s,@LIBS@,$LIBS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32095 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32096 | s,@subdirs@,$subdirs,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32097 | s,@build@,$build,;t t |
| 32098 | s,@build_cpu@,$build_cpu,;t t |
| 32099 | s,@build_vendor@,$build_vendor,;t t |
| 32100 | s,@build_os@,$build_os,;t t |
| 32101 | s,@host@,$host,;t t |
| 32102 | s,@host_cpu@,$host_cpu,;t t |
| 32103 | s,@host_vendor@,$host_vendor,;t t |
| 32104 | s,@host_os@,$host_os,;t t |
| 32105 | s,@target@,$target,;t t |
| 32106 | s,@target_cpu@,$target_cpu,;t t |
| 32107 | s,@target_vendor@,$target_vendor,;t t |
| 32108 | s,@target_os@,$target_os,;t t |
| 32109 | s,@OS@,$OS,;t t |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 32110 | s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t |
| 32111 | s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 32112 | s,@ARCH@,$ARCH,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32113 | s,@ENDIAN@,$ENDIAN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32114 | s,@CC@,$CC,;t t |
| 32115 | s,@CFLAGS@,$CFLAGS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32116 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 32117 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32118 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32119 | s,@EXEEXT@,$EXEEXT,;t t |
| 32120 | s,@OBJEXT@,$OBJEXT,;t t |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 32121 | s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t |
| 32122 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 32123 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 32124 | s,@CVSBUILD@,$CVSBUILD,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32125 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
Reid Spencer | c28ccd8 | 2006-04-09 20:42:14 +0000 | [diff] [blame] | 32126 | s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 32127 | s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32128 | s,@JIT@,$JIT,;t t |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 32129 | s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 32130 | s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 32131 | s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 32132 | s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 32133 | s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32134 | s,@CPP@,$CPP,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32135 | s,@CXX@,$CXX,;t t |
| 32136 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 32137 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32138 | s,@LEX@,$LEX,;t t |
| 32139 | s,@LEXLIB@,$LEXLIB,;t t |
| 32140 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 32141 | s,@FLEX@,$FLEX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32142 | s,@YACC@,$YACC,;t t |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 32143 | s,@BISON@,$BISON,;t t |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 32144 | s,@NM@,$NM,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32145 | s,@ifGNUmake@,$ifGNUmake,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 32146 | s,@LN_S@,$LN_S,;t t |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 32147 | s,@CMP@,$CMP,;t t |
| 32148 | s,@CP@,$CP,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 32149 | s,@DATE@,$DATE,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32150 | s,@FIND@,$FIND,;t t |
| 32151 | s,@GREP@,$GREP,;t t |
| 32152 | s,@MKDIR@,$MKDIR,;t t |
| 32153 | s,@MV@,$MV,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 32154 | s,@RANLIB@,$RANLIB,;t t |
| 32155 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32156 | s,@RM@,$RM,;t t |
| 32157 | s,@SED@,$SED,;t t |
Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 32158 | s,@TAR@,$TAR,;t t |
Reid Spencer | aea7fe4 | 2006-07-28 05:05:00 +0000 | [diff] [blame] | 32159 | s,@BINPWD@,$BINPWD,;t t |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 32160 | s,@GRAPHVIZ@,$GRAPHVIZ,;t t |
Reid Spencer | caf0ece | 2006-06-05 15:54:38 +0000 | [diff] [blame] | 32161 | s,@DOT@,$DOT,;t t |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 32162 | s,@GV@,$GV,;t t |
Reid Spencer | ecbd242 | 2006-06-02 23:13:18 +0000 | [diff] [blame] | 32163 | s,@DOTTY@,$DOTTY,;t t |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 32164 | s,@PERL@,$PERL,;t t |
| 32165 | s,@HAVE_PERL@,$HAVE_PERL,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32166 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 32167 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 32168 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 32169 | s,@BZIP2@,$BZIP2,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 32170 | s,@DOXYGEN@,$DOXYGEN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32171 | s,@ETAGS@,$ETAGS,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 32172 | s,@GROFF@,$GROFF,;t t |
| 32173 | s,@GZIP@,$GZIP,;t t |
| 32174 | s,@POD2HTML@,$POD2HTML,;t t |
| 32175 | s,@POD2MAN@,$POD2MAN,;t t |
Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 32176 | s,@RUNTEST@,$RUNTEST,;t t |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 32177 | s,@TCLSH@,$TCLSH,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 32178 | s,@ZIP@,$ZIP,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 32179 | s,@EGREP@,$EGREP,;t t |
| 32180 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t |
| 32181 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t |
| 32182 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t |
| 32183 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t |
| 32184 | s,@LIBADD_DL@,$LIBADD_DL,;t t |
| 32185 | s,@ECHO@,$ECHO,;t t |
| 32186 | s,@AR@,$AR,;t t |
| 32187 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 32188 | s,@STRIP@,$STRIP,;t t |
| 32189 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 32190 | s,@CXXCPP@,$CXXCPP,;t t |
| 32191 | s,@F77@,$F77,;t t |
| 32192 | s,@FFLAGS@,$FFLAGS,;t t |
| 32193 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
| 32194 | s,@LIBTOOL@,$LIBTOOL,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32195 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 32196 | s,@LLVMGCC@,$LLVMGCC,;t t |
| 32197 | s,@LLVMGXX@,$LLVMGXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32198 | s,@ALLOCA@,$ALLOCA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32199 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 32200 | s,@LLVMCC1@,$LLVMCC1,;t t |
| 32201 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 32202 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 32203 | s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t |
| 32204 | s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 32205 | s,@SHLIBEXT@,$SHLIBEXT,;t t |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 32206 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t |
| 32207 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t |
| 32208 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t |
| 32209 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t |
| 32210 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t |
| 32211 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t |
| 32212 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t |
| 32213 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t |
| 32214 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t |
| 32215 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 32216 | s,@LIBOBJS@,$LIBOBJS,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32217 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32218 | CEOF |
| 32219 | |
| 32220 | _ACEOF |
| 32221 | |
| 32222 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32223 | # Split the substitutions into bite-sized pieces for seds with |
| 32224 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 32225 | ac_max_sed_lines=48 |
| 32226 | ac_sed_frag=1 # Number of current file. |
| 32227 | ac_beg=1 # First line for current file. |
| 32228 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 32229 | ac_more_lines=: |
| 32230 | ac_sed_cmds= |
| 32231 | while $ac_more_lines; do |
| 32232 | if test $ac_beg -gt 1; then |
| 32233 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 32234 | else |
| 32235 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 32236 | fi |
| 32237 | if test ! -s $tmp/subs.frag; then |
| 32238 | ac_more_lines=false |
| 32239 | else |
| 32240 | # The purpose of the label and of the branching condition is to |
| 32241 | # speed up the sed processing (if there are no `@' at all, there |
| 32242 | # is no need to browse any of the substitutions). |
| 32243 | # These are the two extra sed commands mentioned above. |
| 32244 | (echo ':t |
| 32245 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 32246 | if test -z "$ac_sed_cmds"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32247 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32248 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32249 | 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] | 32250 | fi |
| 32251 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 32252 | ac_beg=$ac_end |
| 32253 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 32254 | fi |
| 32255 | done |
| 32256 | if test -z "$ac_sed_cmds"; then |
| 32257 | ac_sed_cmds=cat |
| 32258 | fi |
| 32259 | fi # test -n "$CONFIG_FILES" |
| 32260 | |
| 32261 | _ACEOF |
| 32262 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32263 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 32264 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 32265 | case $ac_file in |
| 32266 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32267 | cat >$tmp/stdin |
| 32268 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 32269 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32270 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32271 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32272 | * ) ac_file_in=$ac_file.in ;; |
| 32273 | esac |
| 32274 | |
| 32275 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 32276 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 32277 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32278 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 32279 | X"$ac_file" : 'X\(//\)$' \| \ |
| 32280 | X"$ac_file" : 'X\(/\)' \| \ |
| 32281 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32282 | echo X"$ac_file" | |
| 32283 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32284 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32285 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32286 | /^X\(\/\).*/{ s//\1/; q; } |
| 32287 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32288 | { if $as_mkdir_p; then |
| 32289 | mkdir -p "$ac_dir" |
| 32290 | else |
| 32291 | as_dir="$ac_dir" |
| 32292 | as_dirs= |
| 32293 | while test ! -d "$as_dir"; do |
| 32294 | as_dirs="$as_dir $as_dirs" |
| 32295 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 32296 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32297 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 32298 | X"$as_dir" : 'X\(//\)$' \| \ |
| 32299 | X"$as_dir" : 'X\(/\)' \| \ |
| 32300 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32301 | echo X"$as_dir" | |
| 32302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32303 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32304 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32305 | /^X\(\/\).*/{ s//\1/; q; } |
| 32306 | s/.*/./; q'` |
| 32307 | done |
| 32308 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 32309 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 32310 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 32311 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32312 | |
| 32313 | ac_builddir=. |
| 32314 | |
| 32315 | if test "$ac_dir" != .; then |
| 32316 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 32317 | # A "../" for each directory in $ac_dir_suffix. |
| 32318 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 32319 | else |
| 32320 | ac_dir_suffix= ac_top_builddir= |
| 32321 | fi |
| 32322 | |
| 32323 | case $srcdir in |
| 32324 | .) # No --srcdir option. We are building in place. |
| 32325 | ac_srcdir=. |
| 32326 | if test -z "$ac_top_builddir"; then |
| 32327 | ac_top_srcdir=. |
| 32328 | else |
| 32329 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 32330 | fi ;; |
| 32331 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 32332 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32333 | ac_top_srcdir=$srcdir ;; |
| 32334 | *) # Relative path. |
| 32335 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 32336 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 32337 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32338 | |
| 32339 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 32340 | # the directories may not exist. |
| 32341 | case `pwd` in |
| 32342 | .) ac_abs_builddir="$ac_dir";; |
| 32343 | *) |
| 32344 | case "$ac_dir" in |
| 32345 | .) ac_abs_builddir=`pwd`;; |
| 32346 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 32347 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 32348 | esac;; |
| 32349 | esac |
| 32350 | case $ac_abs_builddir in |
| 32351 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32352 | *) |
| 32353 | case ${ac_top_builddir}. in |
| 32354 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 32355 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32356 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 32357 | esac;; |
| 32358 | esac |
| 32359 | case $ac_abs_builddir in |
| 32360 | .) ac_abs_srcdir=$ac_srcdir;; |
| 32361 | *) |
| 32362 | case $ac_srcdir in |
| 32363 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 32364 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 32365 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 32366 | esac;; |
| 32367 | esac |
| 32368 | case $ac_abs_builddir in |
| 32369 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32370 | *) |
| 32371 | case $ac_top_srcdir in |
| 32372 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 32373 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32374 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 32375 | esac;; |
| 32376 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32377 | |
| 32378 | |
| 32379 | case $INSTALL in |
| 32380 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 32381 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 32382 | esac |
| 32383 | |
| 32384 | if test x"$ac_file" != x-; then |
| 32385 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 32386 | echo "$as_me: creating $ac_file" >&6;} |
| 32387 | rm -f "$ac_file" |
| 32388 | fi |
| 32389 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 32390 | # use $as_me), people would be surprised to read: |
| 32391 | # /* config.h. Generated by config.status. */ |
| 32392 | if test x"$ac_file" = x-; then |
| 32393 | configure_input= |
| 32394 | else |
| 32395 | configure_input="$ac_file. " |
| 32396 | fi |
| 32397 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32398 | sed 's,.*/,,'` by configure." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32399 | |
| 32400 | # First look for the input files in the build tree, otherwise in the |
| 32401 | # src tree. |
| 32402 | ac_file_inputs=`IFS=: |
| 32403 | for f in $ac_file_in; do |
| 32404 | case $f in |
| 32405 | -) echo $tmp/stdin ;; |
| 32406 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32407 | # Absolute (can't be DOS-style, as IFS=:) |
| 32408 | 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] | 32409 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 32410 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32411 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32412 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32413 | if test -f "$f"; then |
| 32414 | # Build tree |
| 32415 | echo "$f" |
| 32416 | elif test -f "$srcdir/$f"; then |
| 32417 | # Source tree |
| 32418 | echo "$srcdir/$f" |
| 32419 | else |
| 32420 | # /dev/null tree |
| 32421 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32422 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 32423 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32424 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32425 | esac |
| 32426 | done` || { (exit 1); exit 1; } |
| 32427 | _ACEOF |
| 32428 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32429 | sed "$ac_vpsub |
| 32430 | $extrasub |
| 32431 | _ACEOF |
| 32432 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32433 | :t |
| 32434 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 32435 | s,@configure_input@,$configure_input,;t t |
| 32436 | s,@srcdir@,$ac_srcdir,;t t |
| 32437 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 32438 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 32439 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 32440 | s,@builddir@,$ac_builddir,;t t |
| 32441 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 32442 | s,@top_builddir@,$ac_top_builddir,;t t |
| 32443 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 32444 | s,@INSTALL@,$ac_INSTALL,;t t |
| 32445 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 32446 | rm -f $tmp/stdin |
| 32447 | if test x"$ac_file" != x-; then |
| 32448 | mv $tmp/out $ac_file |
| 32449 | else |
| 32450 | cat $tmp/out |
| 32451 | rm -f $tmp/out |
| 32452 | fi |
| 32453 | |
| 32454 | done |
| 32455 | _ACEOF |
| 32456 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32457 | |
| 32458 | # |
| 32459 | # CONFIG_HEADER section. |
| 32460 | # |
| 32461 | |
| 32462 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 32463 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 32464 | # |
| 32465 | # ac_d sets the value in "#define NAME VALUE" lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32466 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 32467 | ac_dB='[ ].*$,\1#\2' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32468 | ac_dC=' ' |
| 32469 | ac_dD=',;t' |
| 32470 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32471 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32472 | ac_uB='$,\1#\2define\3' |
| 32473 | ac_uC=' ' |
| 32474 | ac_uD=',;t' |
| 32475 | |
| 32476 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 32477 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 32478 | case $ac_file in |
| 32479 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32480 | cat >$tmp/stdin |
| 32481 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 32482 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32483 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32484 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32485 | * ) ac_file_in=$ac_file.in ;; |
| 32486 | esac |
| 32487 | |
| 32488 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 32489 | echo "$as_me: creating $ac_file" >&6;} |
| 32490 | |
| 32491 | # First look for the input files in the build tree, otherwise in the |
| 32492 | # src tree. |
| 32493 | ac_file_inputs=`IFS=: |
| 32494 | for f in $ac_file_in; do |
| 32495 | case $f in |
| 32496 | -) echo $tmp/stdin ;; |
| 32497 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32498 | # Absolute (can't be DOS-style, as IFS=:) |
| 32499 | 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] | 32500 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 32501 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32502 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 32503 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32504 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32505 | if test -f "$f"; then |
| 32506 | # Build tree |
| 32507 | echo "$f" |
| 32508 | elif test -f "$srcdir/$f"; then |
| 32509 | # Source tree |
| 32510 | echo "$srcdir/$f" |
| 32511 | else |
| 32512 | # /dev/null tree |
| 32513 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32514 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 32515 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32516 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32517 | esac |
| 32518 | done` || { (exit 1); exit 1; } |
| 32519 | # Remove the trailing spaces. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32520 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32521 | |
| 32522 | _ACEOF |
| 32523 | |
| 32524 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 32525 | # `conftest.undefs', that substitutes the proper values into |
| 32526 | # config.h.in to produce config.h. The first handles `#define' |
| 32527 | # templates, and the second `#undef' templates. |
| 32528 | # And first: Protect against being on the right side of a sed subst in |
| 32529 | # config.status. Protect against being in an unquoted here document |
| 32530 | # in config.status. |
| 32531 | rm -f conftest.defines conftest.undefs |
| 32532 | # Using a here document instead of a string reduces the quoting nightmare. |
| 32533 | # Putting comments in sed scripts is not portable. |
| 32534 | # |
| 32535 | # `end' is used to avoid that the second main sed command (meant for |
| 32536 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 32537 | # See the Autoconf documentation for `clear'. |
| 32538 | cat >confdef2sed.sed <<\_ACEOF |
| 32539 | s/[\\&,]/\\&/g |
| 32540 | s,[\\$`],\\&,g |
| 32541 | t clear |
| 32542 | : clear |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32543 | 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] | 32544 | t end |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32545 | 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] | 32546 | : end |
| 32547 | _ACEOF |
| 32548 | # If some macros were called several times there might be several times |
| 32549 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 32550 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 32551 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 32552 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 32553 | rm -f confdef2sed.sed |
| 32554 | |
| 32555 | # This sed command replaces #undef with comments. This is necessary, for |
| 32556 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 32557 | # on some systems where configure will not decide to define it. |
| 32558 | cat >>conftest.undefs <<\_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32559 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32560 | _ACEOF |
| 32561 | |
| 32562 | # Break up conftest.defines because some shells have a limit on the size |
| 32563 | # of here documents, and old seds have small limits too (100 cmds). |
| 32564 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32565 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32566 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 32567 | echo ' :' >>$CONFIG_STATUS |
| 32568 | rm -f conftest.tail |
| 32569 | while grep . conftest.defines >/dev/null |
| 32570 | do |
| 32571 | # Write a limited-size here document to $tmp/defines.sed. |
| 32572 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 32573 | # Speed up: don't consider the non `#define' lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32574 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32575 | # Work around the forget-to-reset-the-flag bug. |
| 32576 | echo 't clr' >>$CONFIG_STATUS |
| 32577 | echo ': clr' >>$CONFIG_STATUS |
| 32578 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 32579 | echo 'CEOF |
| 32580 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 32581 | rm -f $tmp/in |
| 32582 | mv $tmp/out $tmp/in |
| 32583 | ' >>$CONFIG_STATUS |
| 32584 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 32585 | rm -f conftest.defines |
| 32586 | mv conftest.tail conftest.defines |
| 32587 | done |
| 32588 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32589 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32590 | echo >>$CONFIG_STATUS |
| 32591 | |
| 32592 | # Break up conftest.undefs because some shells have a limit on the size |
| 32593 | # of here documents, and old seds have small limits too (100 cmds). |
| 32594 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 32595 | rm -f conftest.tail |
| 32596 | while grep . conftest.undefs >/dev/null |
| 32597 | do |
| 32598 | # Write a limited-size here document to $tmp/undefs.sed. |
| 32599 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 32600 | # Speed up: don't consider the non `#undef' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32601 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32602 | # Work around the forget-to-reset-the-flag bug. |
| 32603 | echo 't clr' >>$CONFIG_STATUS |
| 32604 | echo ': clr' >>$CONFIG_STATUS |
| 32605 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 32606 | echo 'CEOF |
| 32607 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 32608 | rm -f $tmp/in |
| 32609 | mv $tmp/out $tmp/in |
| 32610 | ' >>$CONFIG_STATUS |
| 32611 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 32612 | rm -f conftest.undefs |
| 32613 | mv conftest.tail conftest.undefs |
| 32614 | done |
| 32615 | rm -f conftest.undefs |
| 32616 | |
| 32617 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32618 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 32619 | # use $as_me), people would be surprised to read: |
| 32620 | # /* config.h. Generated by config.status. */ |
| 32621 | if test x"$ac_file" = x-; then |
| 32622 | echo "/* Generated by configure. */" >$tmp/config.h |
| 32623 | else |
| 32624 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 32625 | fi |
| 32626 | cat $tmp/in >>$tmp/config.h |
| 32627 | rm -f $tmp/in |
| 32628 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32629 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32630 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 32631 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 32632 | else |
| 32633 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 32634 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32635 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 32636 | X"$ac_file" : 'X\(//\)$' \| \ |
| 32637 | X"$ac_file" : 'X\(/\)' \| \ |
| 32638 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32639 | echo X"$ac_file" | |
| 32640 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32641 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32642 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32643 | /^X\(\/\).*/{ s//\1/; q; } |
| 32644 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32645 | { if $as_mkdir_p; then |
| 32646 | mkdir -p "$ac_dir" |
| 32647 | else |
| 32648 | as_dir="$ac_dir" |
| 32649 | as_dirs= |
| 32650 | while test ! -d "$as_dir"; do |
| 32651 | as_dirs="$as_dir $as_dirs" |
| 32652 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 32653 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32654 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 32655 | X"$as_dir" : 'X\(//\)$' \| \ |
| 32656 | X"$as_dir" : 'X\(/\)' \| \ |
| 32657 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32658 | echo X"$as_dir" | |
| 32659 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32660 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32661 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32662 | /^X\(\/\).*/{ s//\1/; q; } |
| 32663 | s/.*/./; q'` |
| 32664 | done |
| 32665 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 32666 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 32667 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 32668 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32669 | |
| 32670 | rm -f $ac_file |
| 32671 | mv $tmp/config.h $ac_file |
| 32672 | fi |
| 32673 | else |
| 32674 | cat $tmp/config.h |
| 32675 | rm -f $tmp/config.h |
| 32676 | fi |
| 32677 | done |
| 32678 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32679 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32680 | |
| 32681 | # |
| 32682 | # CONFIG_COMMANDS section. |
| 32683 | # |
| 32684 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 32685 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 32686 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 32687 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 32688 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32689 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 32690 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 32691 | X"$ac_dest" : 'X\(/\)' \| \ |
| 32692 | . : '\(.\)' 2>/dev/null || |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32693 | echo X"$ac_dest" | |
| 32694 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32695 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32696 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32697 | /^X\(\/\).*/{ s//\1/; q; } |
| 32698 | s/.*/./; q'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32699 | { if $as_mkdir_p; then |
| 32700 | mkdir -p "$ac_dir" |
| 32701 | else |
| 32702 | as_dir="$ac_dir" |
| 32703 | as_dirs= |
| 32704 | while test ! -d "$as_dir"; do |
| 32705 | as_dirs="$as_dir $as_dirs" |
| 32706 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 32707 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32708 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 32709 | X"$as_dir" : 'X\(//\)$' \| \ |
| 32710 | X"$as_dir" : 'X\(/\)' \| \ |
| 32711 | . : '\(.\)' 2>/dev/null || |
| 32712 | echo X"$as_dir" | |
| 32713 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32714 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32715 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32716 | /^X\(\/\).*/{ s//\1/; q; } |
| 32717 | s/.*/./; q'` |
| 32718 | done |
| 32719 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 32720 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 32721 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 32722 | { (exit 1); exit 1; }; }; } |
| 32723 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32724 | ac_builddir=. |
| 32725 | |
| 32726 | if test "$ac_dir" != .; then |
| 32727 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 32728 | # A "../" for each directory in $ac_dir_suffix. |
| 32729 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 32730 | else |
| 32731 | ac_dir_suffix= ac_top_builddir= |
| 32732 | fi |
| 32733 | |
| 32734 | case $srcdir in |
| 32735 | .) # No --srcdir option. We are building in place. |
| 32736 | ac_srcdir=. |
| 32737 | if test -z "$ac_top_builddir"; then |
| 32738 | ac_top_srcdir=. |
| 32739 | else |
| 32740 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 32741 | fi ;; |
| 32742 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 32743 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32744 | ac_top_srcdir=$srcdir ;; |
| 32745 | *) # Relative path. |
| 32746 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 32747 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 32748 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32749 | |
| 32750 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 32751 | # the directories may not exist. |
| 32752 | case `pwd` in |
| 32753 | .) ac_abs_builddir="$ac_dir";; |
| 32754 | *) |
| 32755 | case "$ac_dir" in |
| 32756 | .) ac_abs_builddir=`pwd`;; |
| 32757 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 32758 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 32759 | esac;; |
| 32760 | esac |
| 32761 | case $ac_abs_builddir in |
| 32762 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32763 | *) |
| 32764 | case ${ac_top_builddir}. in |
| 32765 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 32766 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32767 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 32768 | esac;; |
| 32769 | esac |
| 32770 | case $ac_abs_builddir in |
| 32771 | .) ac_abs_srcdir=$ac_srcdir;; |
| 32772 | *) |
| 32773 | case $ac_srcdir in |
| 32774 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 32775 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 32776 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 32777 | esac;; |
| 32778 | esac |
| 32779 | case $ac_abs_builddir in |
| 32780 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32781 | *) |
| 32782 | case $ac_top_srcdir in |
| 32783 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 32784 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32785 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 32786 | esac;; |
| 32787 | esac |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32788 | |
| 32789 | |
| 32790 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 32791 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 32792 | case $ac_dest in |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 32793 | Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 32794 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 32795 | Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 32796 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 32797 | examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 32798 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 32799 | lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 32800 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 32801 | runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 32802 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
| 32803 | test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 32804 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 32805 | test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 32806 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 32807 | tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 32808 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 32809 | utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 32810 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 32811 | projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 32812 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32813 | esac |
| 32814 | done |
| 32815 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32816 | |
| 32817 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32818 | |
| 32819 | { (exit 0); exit 0; } |
| 32820 | _ACEOF |
| 32821 | chmod +x $CONFIG_STATUS |
| 32822 | ac_clean_files=$ac_clean_files_save |
| 32823 | |
| 32824 | |
| 32825 | # configure is writing to config.log, and then calls config.status. |
| 32826 | # config.status does its own redirection, appending to config.log. |
| 32827 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 32828 | # by configure, so config.status won't be able to write to it; its |
| 32829 | # output is simply discarded. So we exec the FD to /dev/null, |
| 32830 | # effectively closing config.log, so it can be properly (re)opened and |
| 32831 | # appended to by config.status. When coming back to configure, we |
| 32832 | # need to make the FD available again. |
| 32833 | if test "$no_create" != yes; then |
| 32834 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32835 | ac_config_status_args= |
| 32836 | test "$silent" = yes && |
| 32837 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32838 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32839 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32840 | exec 5>>config.log |
| 32841 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 32842 | # would make configure fail if this is the last instruction. |
| 32843 | $ac_cs_success || { (exit 1); exit 1; } |
| 32844 | fi |
| 32845 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32846 | # |
| 32847 | # CONFIG_SUBDIRS section. |
| 32848 | # |
| 32849 | if test "$no_recursion" != yes; then |
| 32850 | |
| 32851 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 32852 | ac_sub_configure_args= |
| 32853 | ac_prev= |
| 32854 | for ac_arg in $ac_configure_args; do |
| 32855 | if test -n "$ac_prev"; then |
| 32856 | ac_prev= |
| 32857 | continue |
| 32858 | fi |
| 32859 | case $ac_arg in |
| 32860 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 32861 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 32862 | ac_prev=cache_file ;; |
| 32863 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 32864 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 32865 | | --c=*) |
| 32866 | ;; |
| 32867 | --config-cache | -C) |
| 32868 | ;; |
| 32869 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 32870 | ac_prev=srcdir ;; |
| 32871 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 32872 | ;; |
| 32873 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 32874 | ac_prev=prefix ;; |
| 32875 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 32876 | ;; |
| 32877 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 32878 | esac |
| 32879 | done |
| 32880 | |
| 32881 | # Always prepend --prefix to ensure using the same prefix |
| 32882 | # in subdir configurations. |
| 32883 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 32884 | |
| 32885 | ac_popdir=`pwd` |
| 32886 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 32887 | |
| 32888 | # Do not complain, so a configure script can configure whichever |
| 32889 | # parts of a large source tree are present. |
| 32890 | test -d $srcdir/$ac_dir || continue |
| 32891 | |
| 32892 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 32893 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 32894 | { if $as_mkdir_p; then |
| 32895 | mkdir -p "$ac_dir" |
| 32896 | else |
| 32897 | as_dir="$ac_dir" |
| 32898 | as_dirs= |
| 32899 | while test ! -d "$as_dir"; do |
| 32900 | as_dirs="$as_dir $as_dirs" |
| 32901 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 32902 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32903 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 32904 | X"$as_dir" : 'X\(//\)$' \| \ |
| 32905 | X"$as_dir" : 'X\(/\)' \| \ |
| 32906 | . : '\(.\)' 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32907 | echo X"$as_dir" | |
| 32908 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32909 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32910 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32911 | /^X\(\/\).*/{ s//\1/; q; } |
| 32912 | s/.*/./; q'` |
| 32913 | done |
| 32914 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 32915 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 32916 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 32917 | { (exit 1); exit 1; }; }; } |
| 32918 | |
| 32919 | ac_builddir=. |
| 32920 | |
| 32921 | if test "$ac_dir" != .; then |
| 32922 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 32923 | # A "../" for each directory in $ac_dir_suffix. |
| 32924 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 32925 | else |
| 32926 | ac_dir_suffix= ac_top_builddir= |
| 32927 | fi |
| 32928 | |
| 32929 | case $srcdir in |
| 32930 | .) # No --srcdir option. We are building in place. |
| 32931 | ac_srcdir=. |
| 32932 | if test -z "$ac_top_builddir"; then |
| 32933 | ac_top_srcdir=. |
| 32934 | else |
| 32935 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 32936 | fi ;; |
| 32937 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 32938 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32939 | ac_top_srcdir=$srcdir ;; |
| 32940 | *) # Relative path. |
| 32941 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 32942 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 32943 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32944 | |
| 32945 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 32946 | # the directories may not exist. |
| 32947 | case `pwd` in |
| 32948 | .) ac_abs_builddir="$ac_dir";; |
| 32949 | *) |
| 32950 | case "$ac_dir" in |
| 32951 | .) ac_abs_builddir=`pwd`;; |
| 32952 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 32953 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 32954 | esac;; |
| 32955 | esac |
| 32956 | case $ac_abs_builddir in |
| 32957 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32958 | *) |
| 32959 | case ${ac_top_builddir}. in |
| 32960 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 32961 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32962 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 32963 | esac;; |
| 32964 | esac |
| 32965 | case $ac_abs_builddir in |
| 32966 | .) ac_abs_srcdir=$ac_srcdir;; |
| 32967 | *) |
| 32968 | case $ac_srcdir in |
| 32969 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 32970 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 32971 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 32972 | esac;; |
| 32973 | esac |
| 32974 | case $ac_abs_builddir in |
| 32975 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32976 | *) |
| 32977 | case $ac_top_srcdir in |
| 32978 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 32979 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32980 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 32981 | esac;; |
| 32982 | esac |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32983 | |
| 32984 | |
| 32985 | cd $ac_dir |
| 32986 | |
| 32987 | # Check for guested configure; otherwise get Cygnus style configure. |
| 32988 | if test -f $ac_srcdir/configure.gnu; then |
| 32989 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 32990 | elif test -f $ac_srcdir/configure; then |
| 32991 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 32992 | elif test -f $ac_srcdir/configure.in; then |
| 32993 | ac_sub_configure=$ac_configure |
| 32994 | else |
| 32995 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 32996 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 32997 | ac_sub_configure= |
| 32998 | fi |
| 32999 | |
| 33000 | # The recursion is here. |
| 33001 | if test -n "$ac_sub_configure"; then |
| 33002 | # Make the cache file name correct relative to the subdirectory. |
| 33003 | case $cache_file in |
| 33004 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 33005 | *) # Relative path. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33006 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33007 | esac |
| 33008 | |
| 33009 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 33010 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 33011 | # The eval makes quoting arguments work. |
| 33012 | eval $ac_sub_configure $ac_sub_configure_args \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33013 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 33014 | { { 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] | 33015 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 33016 | { (exit 1); exit 1; }; } |
| 33017 | fi |
| 33018 | |
| 33019 | cd $ac_popdir |
| 33020 | done |
| 33021 | fi |
| 33022 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33023 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33024 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 33025 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 |
| 33026 | 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] | 33027 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 |
| 33028 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} |
| 33029 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 |
| 33030 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} |
| 33031 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 |
| 33032 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} |
| 33033 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 |
| 33034 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33035 | fi |