| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
|  | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.4. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
|  | 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. | 
|  | 6 | # | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 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 | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10 | # | 
|  | 11 | # $LLVM_COPYRIGHT | 
| John Criswell | 3eaf0b4 | 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 | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 |  | 
|  | 28 | # Support unset when possible. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 3eaf0b4 | 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 | f184a86 | 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 | 3eaf0b4 | 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 | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 225 | test -d ./-p && rmdir ./-p | 
| John Criswell | 3eaf0b4 | 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 | f184a86 | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 233 |  | 
|  | 234 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3eaf0b4 | 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 | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 247 |  | 
| John Criswell | 3ef61af | 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 | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 266 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 
| John Criswell | 3ef61af | 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 | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 278 | $* | 
| John Criswell | 3ef61af | 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 | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 3ef61af | 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 | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 | for dir in $PATH /usr/ucb; do | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 314 | IFS="$lt_save_ifs" | 
| John Criswell | 3ef61af | 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 | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 323 | IFS="$lt_save_ifs" | 
| John Criswell | 3ef61af | 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 | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 397 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 398 | tagnames=${tagnames+${tagnames},}CXX | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 400 | tagnames=${tagnames+${tagnames},}F77 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 401 |  | 
| John Criswell | 3ef61af | 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 | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. | 
| John Criswell | 3ef61af | 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 | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 426 | PACKAGE_NAME='llvm' | 
| Reid Spencer | a0e01ae | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 427 | PACKAGE_TARNAME='-llvm-' | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.4' | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 429 | PACKAGE_STRING='llvm 1.4' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
|  | 431 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 432 | ac_unique_file="lib/VMCore/Module.cpp" | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 433 | ac_subdirs_all="$ac_subdirs_all projects/sample" | 
|  | 434 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" | 
|  | 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" | 
|  | 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" | 
|  | 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" | 
| Reid Spencer | efbe0ce | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 438 | ac_subdirs_all="$ac_subdirs_all projects/Java" | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" | 
|  | 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" | 
| John Criswell | 033d215 | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 441 | ac_subdirs_all="$ac_subdirs_all projects/poolalloc" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 442 | # Factoring default headers for most tests. | 
|  | 443 | ac_includes_default="\ | 
|  | 444 | #include <stdio.h> | 
|  | 445 | #if HAVE_SYS_TYPES_H | 
|  | 446 | # include <sys/types.h> | 
|  | 447 | #endif | 
|  | 448 | #if HAVE_SYS_STAT_H | 
|  | 449 | # include <sys/stat.h> | 
|  | 450 | #endif | 
|  | 451 | #if STDC_HEADERS | 
|  | 452 | # include <stdlib.h> | 
|  | 453 | # include <stddef.h> | 
|  | 454 | #else | 
|  | 455 | # if HAVE_STDLIB_H | 
|  | 456 | #  include <stdlib.h> | 
|  | 457 | # endif | 
|  | 458 | #endif | 
|  | 459 | #if HAVE_STRING_H | 
|  | 460 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
|  | 461 | #  include <memory.h> | 
|  | 462 | # endif | 
|  | 463 | # include <string.h> | 
|  | 464 | #endif | 
|  | 465 | #if HAVE_STRINGS_H | 
|  | 466 | # include <strings.h> | 
|  | 467 | #endif | 
|  | 468 | #if HAVE_INTTYPES_H | 
|  | 469 | # include <inttypes.h> | 
|  | 470 | #else | 
|  | 471 | # if HAVE_STDINT_H | 
|  | 472 | #  include <stdint.h> | 
|  | 473 | # endif | 
|  | 474 | #endif | 
|  | 475 | #if HAVE_UNISTD_H | 
|  | 476 | # include <unistd.h> | 
|  | 477 | #endif" | 
|  | 478 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 479 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ifGNUmake FIND GREP MKDIR MV RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DOT ETAGS PYTHON QMTEST RUNTEST ETAGSFLAGS HAVE_ZLIB HAVE_BZIP2 ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 480 | ac_subst_files='' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 481 |  | 
|  | 482 | # Initialize some variables set by options. | 
|  | 483 | ac_init_help= | 
|  | 484 | ac_init_version=false | 
|  | 485 | # The variables have the same names as the options, with | 
|  | 486 | # dashes changed to underlines. | 
|  | 487 | cache_file=/dev/null | 
|  | 488 | exec_prefix=NONE | 
|  | 489 | no_create= | 
|  | 490 | no_recursion= | 
|  | 491 | prefix=NONE | 
|  | 492 | program_prefix=NONE | 
|  | 493 | program_suffix=NONE | 
|  | 494 | program_transform_name=s,x,x, | 
|  | 495 | silent= | 
|  | 496 | site= | 
|  | 497 | srcdir= | 
|  | 498 | verbose= | 
|  | 499 | x_includes=NONE | 
|  | 500 | x_libraries=NONE | 
|  | 501 |  | 
|  | 502 | # Installation directory options. | 
|  | 503 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 504 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 505 | # by default will actually change. | 
|  | 506 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
|  | 507 | bindir='${exec_prefix}/bin' | 
|  | 508 | sbindir='${exec_prefix}/sbin' | 
|  | 509 | libexecdir='${exec_prefix}/libexec' | 
|  | 510 | datadir='${prefix}/share' | 
|  | 511 | sysconfdir='${prefix}/etc' | 
|  | 512 | sharedstatedir='${prefix}/com' | 
|  | 513 | localstatedir='${prefix}/var' | 
|  | 514 | libdir='${exec_prefix}/lib' | 
|  | 515 | includedir='${prefix}/include' | 
|  | 516 | oldincludedir='/usr/include' | 
|  | 517 | infodir='${prefix}/info' | 
|  | 518 | mandir='${prefix}/man' | 
|  | 519 |  | 
|  | 520 | ac_prev= | 
|  | 521 | for ac_option | 
|  | 522 | do | 
|  | 523 | # If the previous option needs an argument, assign it. | 
|  | 524 | if test -n "$ac_prev"; then | 
|  | 525 | eval "$ac_prev=\$ac_option" | 
|  | 526 | ac_prev= | 
|  | 527 | continue | 
|  | 528 | fi | 
|  | 529 |  | 
|  | 530 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
|  | 531 |  | 
|  | 532 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 533 |  | 
|  | 534 | case $ac_option in | 
|  | 535 |  | 
|  | 536 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 537 | ac_prev=bindir ;; | 
|  | 538 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|  | 539 | bindir=$ac_optarg ;; | 
|  | 540 |  | 
|  | 541 | -build | --build | --buil | --bui | --bu) | 
|  | 542 | ac_prev=build_alias ;; | 
|  | 543 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|  | 544 | build_alias=$ac_optarg ;; | 
|  | 545 |  | 
|  | 546 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 547 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 548 | ac_prev=cache_file ;; | 
|  | 549 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 550 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|  | 551 | cache_file=$ac_optarg ;; | 
|  | 552 |  | 
|  | 553 | --config-cache | -C) | 
|  | 554 | cache_file=config.cache ;; | 
|  | 555 |  | 
|  | 556 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
|  | 557 | ac_prev=datadir ;; | 
|  | 558 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
|  | 559 | | --da=*) | 
|  | 560 | datadir=$ac_optarg ;; | 
|  | 561 |  | 
|  | 562 | -disable-* | --disable-*) | 
|  | 563 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
|  | 564 | # Reject names that are not valid shell variable names. | 
|  | 565 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 566 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 567 | { (exit 1); exit 1; }; } | 
|  | 568 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 569 | eval "enable_$ac_feature=no" ;; | 
|  | 570 |  | 
|  | 571 | -enable-* | --enable-*) | 
|  | 572 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
|  | 573 | # Reject names that are not valid shell variable names. | 
|  | 574 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 575 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 576 | { (exit 1); exit 1; }; } | 
|  | 577 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 578 | case $ac_option in | 
|  | 579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
|  | 580 | *) ac_optarg=yes ;; | 
|  | 581 | esac | 
|  | 582 | eval "enable_$ac_feature='$ac_optarg'" ;; | 
|  | 583 |  | 
|  | 584 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 585 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 586 | | --exec | --exe | --ex) | 
|  | 587 | ac_prev=exec_prefix ;; | 
|  | 588 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 589 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 590 | | --exec=* | --exe=* | --ex=*) | 
|  | 591 | exec_prefix=$ac_optarg ;; | 
|  | 592 |  | 
|  | 593 | -gas | --gas | --ga | --g) | 
|  | 594 | # Obsolete; use --with-gas. | 
|  | 595 | with_gas=yes ;; | 
|  | 596 |  | 
|  | 597 | -help | --help | --hel | --he | -h) | 
|  | 598 | ac_init_help=long ;; | 
|  | 599 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 600 | ac_init_help=recursive ;; | 
|  | 601 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 602 | ac_init_help=short ;; | 
|  | 603 |  | 
|  | 604 | -host | --host | --hos | --ho) | 
|  | 605 | ac_prev=host_alias ;; | 
|  | 606 | -host=* | --host=* | --hos=* | --ho=*) | 
|  | 607 | host_alias=$ac_optarg ;; | 
|  | 608 |  | 
|  | 609 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 610 | | --includ | --inclu | --incl | --inc) | 
|  | 611 | ac_prev=includedir ;; | 
|  | 612 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 613 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|  | 614 | includedir=$ac_optarg ;; | 
|  | 615 |  | 
|  | 616 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 617 | ac_prev=infodir ;; | 
|  | 618 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|  | 619 | infodir=$ac_optarg ;; | 
|  | 620 |  | 
|  | 621 | -libdir | --libdir | --libdi | --libd) | 
|  | 622 | ac_prev=libdir ;; | 
|  | 623 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|  | 624 | libdir=$ac_optarg ;; | 
|  | 625 |  | 
|  | 626 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 627 | | --libexe | --libex | --libe) | 
|  | 628 | ac_prev=libexecdir ;; | 
|  | 629 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 630 | | --libexe=* | --libex=* | --libe=*) | 
|  | 631 | libexecdir=$ac_optarg ;; | 
|  | 632 |  | 
|  | 633 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|  | 634 | | --localstate | --localstat | --localsta | --localst \ | 
|  | 635 | | --locals | --local | --loca | --loc | --lo) | 
|  | 636 | ac_prev=localstatedir ;; | 
|  | 637 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|  | 638 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
|  | 639 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
|  | 640 | localstatedir=$ac_optarg ;; | 
|  | 641 |  | 
|  | 642 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 643 | ac_prev=mandir ;; | 
|  | 644 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|  | 645 | mandir=$ac_optarg ;; | 
|  | 646 |  | 
|  | 647 | -nfp | --nfp | --nf) | 
|  | 648 | # Obsolete; use --without-fp. | 
|  | 649 | with_fp=no ;; | 
|  | 650 |  | 
|  | 651 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 652 | | --no-cr | --no-c | -n) | 
|  | 653 | no_create=yes ;; | 
|  | 654 |  | 
|  | 655 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 656 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 657 | no_recursion=yes ;; | 
|  | 658 |  | 
|  | 659 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 660 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 661 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 662 | ac_prev=oldincludedir ;; | 
|  | 663 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 664 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 665 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|  | 666 | oldincludedir=$ac_optarg ;; | 
|  | 667 |  | 
|  | 668 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 669 | ac_prev=prefix ;; | 
|  | 670 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 671 | prefix=$ac_optarg ;; | 
|  | 672 |  | 
|  | 673 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 674 | | --program-pre | --program-pr | --program-p) | 
|  | 675 | ac_prev=program_prefix ;; | 
|  | 676 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 677 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|  | 678 | program_prefix=$ac_optarg ;; | 
|  | 679 |  | 
|  | 680 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 681 | | --program-suf | --program-su | --program-s) | 
|  | 682 | ac_prev=program_suffix ;; | 
|  | 683 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 684 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|  | 685 | program_suffix=$ac_optarg ;; | 
|  | 686 |  | 
|  | 687 | -program-transform-name | --program-transform-name \ | 
|  | 688 | | --program-transform-nam | --program-transform-na \ | 
|  | 689 | | --program-transform-n | --program-transform- \ | 
|  | 690 | | --program-transform | --program-transfor \ | 
|  | 691 | | --program-transfo | --program-transf \ | 
|  | 692 | | --program-trans | --program-tran \ | 
|  | 693 | | --progr-tra | --program-tr | --program-t) | 
|  | 694 | ac_prev=program_transform_name ;; | 
|  | 695 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 696 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 697 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 698 | | --program-transform=* | --program-transfor=* \ | 
|  | 699 | | --program-transfo=* | --program-transf=* \ | 
|  | 700 | | --program-trans=* | --program-tran=* \ | 
|  | 701 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|  | 702 | program_transform_name=$ac_optarg ;; | 
|  | 703 |  | 
|  | 704 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 705 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 706 | silent=yes ;; | 
|  | 707 |  | 
|  | 708 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 709 | ac_prev=sbindir ;; | 
|  | 710 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 711 | | --sbi=* | --sb=*) | 
|  | 712 | sbindir=$ac_optarg ;; | 
|  | 713 |  | 
|  | 714 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 715 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 716 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 717 | | --sha | --sh) | 
|  | 718 | ac_prev=sharedstatedir ;; | 
|  | 719 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 720 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 721 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 722 | | --sha=* | --sh=*) | 
|  | 723 | sharedstatedir=$ac_optarg ;; | 
|  | 724 |  | 
|  | 725 | -site | --site | --sit) | 
|  | 726 | ac_prev=site ;; | 
|  | 727 | -site=* | --site=* | --sit=*) | 
|  | 728 | site=$ac_optarg ;; | 
|  | 729 |  | 
|  | 730 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 731 | ac_prev=srcdir ;; | 
|  | 732 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 733 | srcdir=$ac_optarg ;; | 
|  | 734 |  | 
|  | 735 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 736 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 737 | ac_prev=sysconfdir ;; | 
|  | 738 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 739 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|  | 740 | sysconfdir=$ac_optarg ;; | 
|  | 741 |  | 
|  | 742 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|  | 743 | ac_prev=target_alias ;; | 
|  | 744 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|  | 745 | target_alias=$ac_optarg ;; | 
|  | 746 |  | 
|  | 747 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 748 | verbose=yes ;; | 
|  | 749 |  | 
|  | 750 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 751 | ac_init_version=: ;; | 
|  | 752 |  | 
|  | 753 | -with-* | --with-*) | 
|  | 754 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
|  | 755 | # Reject names that are not valid shell variable names. | 
|  | 756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 757 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 758 | { (exit 1); exit 1; }; } | 
|  | 759 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|  | 760 | case $ac_option in | 
|  | 761 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
|  | 762 | *) ac_optarg=yes ;; | 
|  | 763 | esac | 
|  | 764 | eval "with_$ac_package='$ac_optarg'" ;; | 
|  | 765 |  | 
|  | 766 | -without-* | --without-*) | 
|  | 767 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
|  | 768 | # Reject names that are not valid shell variable names. | 
|  | 769 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 770 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 771 | { (exit 1); exit 1; }; } | 
|  | 772 | ac_package=`echo $ac_package | sed 's/-/_/g'` | 
|  | 773 | eval "with_$ac_package=no" ;; | 
|  | 774 |  | 
|  | 775 | --x) | 
|  | 776 | # Obsolete; use --with-x. | 
|  | 777 | with_x=yes ;; | 
|  | 778 |  | 
|  | 779 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 780 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 781 | ac_prev=x_includes ;; | 
|  | 782 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 783 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|  | 784 | x_includes=$ac_optarg ;; | 
|  | 785 |  | 
|  | 786 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 787 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 788 | ac_prev=x_libraries ;; | 
|  | 789 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 790 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|  | 791 | x_libraries=$ac_optarg ;; | 
|  | 792 |  | 
|  | 793 | -*) { echo "$as_me: error: unrecognized option: $ac_option | 
|  | 794 | Try \`$0 --help' for more information." >&2 | 
|  | 795 | { (exit 1); exit 1; }; } | 
|  | 796 | ;; | 
|  | 797 |  | 
|  | 798 | *=*) | 
|  | 799 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 800 | # Reject names that are not valid shell variable names. | 
|  | 801 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
|  | 802 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
|  | 803 | { (exit 1); exit 1; }; } | 
|  | 804 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
|  | 805 | eval "$ac_envvar='$ac_optarg'" | 
|  | 806 | export $ac_envvar ;; | 
|  | 807 |  | 
|  | 808 | *) | 
|  | 809 | # FIXME: should be removed in autoconf 3.0. | 
|  | 810 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
|  | 811 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
|  | 812 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
|  | 813 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
|  | 814 | ;; | 
|  | 815 |  | 
|  | 816 | esac | 
|  | 817 | done | 
|  | 818 |  | 
|  | 819 | if test -n "$ac_prev"; then | 
|  | 820 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
|  | 821 | { echo "$as_me: error: missing argument to $ac_option" >&2 | 
|  | 822 | { (exit 1); exit 1; }; } | 
|  | 823 | fi | 
|  | 824 |  | 
|  | 825 | # Be sure to have absolute paths. | 
|  | 826 | for ac_var in exec_prefix prefix | 
|  | 827 | do | 
|  | 828 | eval ac_val=$`echo $ac_var` | 
|  | 829 | case $ac_val in | 
|  | 830 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
|  | 831 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
|  | 832 | { (exit 1); exit 1; }; };; | 
|  | 833 | esac | 
|  | 834 | done | 
|  | 835 |  | 
|  | 836 | # Be sure to have absolute paths. | 
|  | 837 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 838 | localstatedir libdir includedir oldincludedir infodir mandir | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 839 | do | 
|  | 840 | eval ac_val=$`echo $ac_var` | 
|  | 841 | case $ac_val in | 
|  | 842 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 843 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
|  | 844 | { (exit 1); exit 1; }; };; | 
|  | 845 | esac | 
|  | 846 | done | 
|  | 847 |  | 
|  | 848 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 849 | # used to hold the argument of --host etc. | 
|  | 850 | # FIXME: To remove some day. | 
|  | 851 | build=$build_alias | 
|  | 852 | host=$host_alias | 
|  | 853 | target=$target_alias | 
|  | 854 |  | 
|  | 855 | # FIXME: To remove some day. | 
|  | 856 | if test "x$host_alias" != x; then | 
|  | 857 | if test "x$build_alias" = x; then | 
|  | 858 | cross_compiling=maybe | 
|  | 859 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
|  | 860 | If a cross compiler is detected then cross compile mode will be used." >&2 | 
|  | 861 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 862 | cross_compiling=yes | 
|  | 863 | fi | 
|  | 864 | fi | 
|  | 865 |  | 
|  | 866 | ac_tool_prefix= | 
|  | 867 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 868 |  | 
|  | 869 | test "$silent" = yes && exec 6>/dev/null | 
|  | 870 |  | 
|  | 871 |  | 
|  | 872 | # Find the source files, if location was not specified. | 
|  | 873 | if test -z "$srcdir"; then | 
|  | 874 | ac_srcdir_defaulted=yes | 
|  | 875 | # Try the directory containing this script, then its parent. | 
|  | 876 | ac_confdir=`(dirname "$0") 2>/dev/null || | 
|  | 877 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 878 | X"$0" : 'X\(//\)[^/]' \| \ | 
|  | 879 | X"$0" : 'X\(//\)$' \| \ | 
|  | 880 | X"$0" : 'X\(/\)' \| \ | 
|  | 881 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | echo X"$0" | | 
|  | 883 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 884 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 885 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 886 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 887 | s/.*/./; q'` | 
|  | 888 | srcdir=$ac_confdir | 
|  | 889 | if test ! -r $srcdir/$ac_unique_file; then | 
|  | 890 | srcdir=.. | 
|  | 891 | fi | 
|  | 892 | else | 
|  | 893 | ac_srcdir_defaulted=no | 
|  | 894 | fi | 
|  | 895 | if test ! -r $srcdir/$ac_unique_file; then | 
|  | 896 | if test "$ac_srcdir_defaulted" = yes; then | 
|  | 897 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
|  | 898 | { (exit 1); exit 1; }; } | 
|  | 899 | else | 
|  | 900 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
|  | 901 | { (exit 1); exit 1; }; } | 
|  | 902 | fi | 
|  | 903 | fi | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 904 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
|  | 905 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
|  | 906 | { (exit 1); exit 1; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 907 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
|  | 908 | ac_env_build_alias_set=${build_alias+set} | 
|  | 909 | ac_env_build_alias_value=$build_alias | 
|  | 910 | ac_cv_env_build_alias_set=${build_alias+set} | 
|  | 911 | ac_cv_env_build_alias_value=$build_alias | 
|  | 912 | ac_env_host_alias_set=${host_alias+set} | 
|  | 913 | ac_env_host_alias_value=$host_alias | 
|  | 914 | ac_cv_env_host_alias_set=${host_alias+set} | 
|  | 915 | ac_cv_env_host_alias_value=$host_alias | 
|  | 916 | ac_env_target_alias_set=${target_alias+set} | 
|  | 917 | ac_env_target_alias_value=$target_alias | 
|  | 918 | ac_cv_env_target_alias_set=${target_alias+set} | 
|  | 919 | ac_cv_env_target_alias_value=$target_alias | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | ac_env_CC_set=${CC+set} | 
|  | 921 | ac_env_CC_value=$CC | 
|  | 922 | ac_cv_env_CC_set=${CC+set} | 
|  | 923 | ac_cv_env_CC_value=$CC | 
|  | 924 | ac_env_CFLAGS_set=${CFLAGS+set} | 
|  | 925 | ac_env_CFLAGS_value=$CFLAGS | 
|  | 926 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
|  | 927 | ac_cv_env_CFLAGS_value=$CFLAGS | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 928 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
|  | 929 | ac_env_LDFLAGS_value=$LDFLAGS | 
|  | 930 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
|  | 931 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
|  | 932 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
|  | 933 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
|  | 934 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
|  | 935 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 936 | ac_env_CPP_set=${CPP+set} | 
|  | 937 | ac_env_CPP_value=$CPP | 
|  | 938 | ac_cv_env_CPP_set=${CPP+set} | 
|  | 939 | ac_cv_env_CPP_value=$CPP | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 940 | ac_env_CXX_set=${CXX+set} | 
|  | 941 | ac_env_CXX_value=$CXX | 
|  | 942 | ac_cv_env_CXX_set=${CXX+set} | 
|  | 943 | ac_cv_env_CXX_value=$CXX | 
|  | 944 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
|  | 945 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
|  | 946 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
|  | 947 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 948 | ac_env_CXXCPP_set=${CXXCPP+set} | 
|  | 949 | ac_env_CXXCPP_value=$CXXCPP | 
|  | 950 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
|  | 951 | ac_cv_env_CXXCPP_value=$CXXCPP | 
|  | 952 | ac_env_F77_set=${F77+set} | 
|  | 953 | ac_env_F77_value=$F77 | 
|  | 954 | ac_cv_env_F77_set=${F77+set} | 
|  | 955 | ac_cv_env_F77_value=$F77 | 
|  | 956 | ac_env_FFLAGS_set=${FFLAGS+set} | 
|  | 957 | ac_env_FFLAGS_value=$FFLAGS | 
|  | 958 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
|  | 959 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 960 |  | 
|  | 961 | # | 
|  | 962 | # Report the --help message. | 
|  | 963 | # | 
|  | 964 | if test "$ac_init_help" = "long"; then | 
|  | 965 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 966 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 967 | cat <<_ACEOF | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 968 | \`configure' configures llvm 1.4 to adapt to many kinds of systems. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 969 |  | 
|  | 970 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 971 |  | 
|  | 972 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 973 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 974 |  | 
|  | 975 | Defaults for the options are specified in brackets. | 
|  | 976 |  | 
|  | 977 | Configuration: | 
|  | 978 | -h, --help              display this help and exit | 
|  | 979 | --help=short        display options specific to this package | 
|  | 980 | --help=recursive    display the short help of all the included packages | 
|  | 981 | -V, --version           display version information and exit | 
|  | 982 | -q, --quiet, --silent   do not print \`checking...' messages | 
|  | 983 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 984 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 985 | -n, --no-create         do not create output files | 
|  | 986 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 987 |  | 
|  | 988 | _ACEOF | 
|  | 989 |  | 
|  | 990 | cat <<_ACEOF | 
|  | 991 | Installation directories: | 
|  | 992 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | [$ac_default_prefix] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 995 | [PREFIX] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 996 |  | 
|  | 997 | By default, \`make install' will install all the files in | 
|  | 998 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 999 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1000 | for instance \`--prefix=\$HOME'. | 
|  | 1001 |  | 
|  | 1002 | For better control, use the options below. | 
|  | 1003 |  | 
|  | 1004 | Fine tuning of the installation directories: | 
|  | 1005 | --bindir=DIR           user executables [EPREFIX/bin] | 
|  | 1006 | --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
|  | 1007 | --libexecdir=DIR       program executables [EPREFIX/libexec] | 
|  | 1008 | --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
|  | 1009 | --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
|  | 1010 | --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
|  | 1011 | --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
|  | 1012 | --libdir=DIR           object code libraries [EPREFIX/lib] | 
|  | 1013 | --includedir=DIR       C header files [PREFIX/include] | 
|  | 1014 | --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
|  | 1015 | --infodir=DIR          info documentation [PREFIX/info] | 
|  | 1016 | --mandir=DIR           man documentation [PREFIX/man] | 
|  | 1017 | _ACEOF | 
|  | 1018 |  | 
|  | 1019 | cat <<\_ACEOF | 
|  | 1020 |  | 
|  | 1021 | System types: | 
|  | 1022 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1023 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
|  | 1024 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
|  | 1025 | _ACEOF | 
|  | 1026 | fi | 
|  | 1027 |  | 
|  | 1028 | if test -n "$ac_init_help"; then | 
|  | 1029 | case $ac_init_help in | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1030 | short | recursive ) echo "Configuration of llvm 1.4:";; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 | esac | 
|  | 1032 | cat <<\_ACEOF | 
|  | 1033 |  | 
|  | 1034 | Optional Features: | 
|  | 1035 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1036 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1037 | --enable-optimized | 
|  | 1038 | --enable-jit            Enable Just In Time Compiling (default is YES) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1039 | --enable-shared[=PKGS] | 
|  | 1040 | build shared libraries [default=yes] | 
|  | 1041 | --enable-static[=PKGS] | 
|  | 1042 | build static libraries [default=yes] | 
|  | 1043 | --enable-fast-install[=PKGS] | 
|  | 1044 | optimize for fast installation [default=yes] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1045 | --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1046 |  | 
|  | 1047 | Optional Packages: | 
|  | 1048 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1049 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1050 | --with-llvmgccdir       Location of LLVM GCC front-end | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1051 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
|  | 1052 | --with-pic              try to use only PIC/non-PIC objects [default=use | 
|  | 1053 | both] | 
|  | 1054 | --with-tags[=TAGS] | 
|  | 1055 | include additional configurations [automatic] | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1056 |  | 
|  | 1057 | Some influential environment variables: | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1058 | CC          C compiler command | 
|  | 1059 | CFLAGS      C compiler flags | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1060 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1061 | nonstandard directory <lib dir> | 
|  | 1062 | CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
|  | 1063 | headers in a nonstandard directory <include dir> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1064 | CPP         C preprocessor | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1065 | CXX         C++ compiler command | 
|  | 1066 | CXXFLAGS    C++ compiler flags | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1067 | CXXCPP      C++ preprocessor | 
|  | 1068 | F77         Fortran 77 compiler command | 
|  | 1069 | FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1070 |  | 
|  | 1071 | Use these variables to override the choices made by `configure' or to help | 
|  | 1072 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1073 |  | 
|  | 1074 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
|  | 1075 | _ACEOF | 
|  | 1076 | fi | 
|  | 1077 |  | 
|  | 1078 | if test "$ac_init_help" = "recursive"; then | 
|  | 1079 | # If there are subdirs, report their specific --help. | 
|  | 1080 | ac_popdir=`pwd` | 
|  | 1081 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
|  | 1082 | test -d $ac_dir || continue | 
|  | 1083 | ac_builddir=. | 
|  | 1084 |  | 
|  | 1085 | if test "$ac_dir" != .; then | 
|  | 1086 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 1087 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 1088 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 1089 | else | 
|  | 1090 | ac_dir_suffix= ac_top_builddir= | 
|  | 1091 | fi | 
|  | 1092 |  | 
|  | 1093 | case $srcdir in | 
|  | 1094 | .)  # No --srcdir option.  We are building in place. | 
|  | 1095 | ac_srcdir=. | 
|  | 1096 | if test -z "$ac_top_builddir"; then | 
|  | 1097 | ac_top_srcdir=. | 
|  | 1098 | else | 
|  | 1099 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 1100 | fi ;; | 
|  | 1101 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 1102 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 1103 | ac_top_srcdir=$srcdir ;; | 
|  | 1104 | *) # Relative path. | 
|  | 1105 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 1106 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 1107 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1108 |  | 
|  | 1109 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 1110 | # the directories may not exist. | 
|  | 1111 | case `pwd` in | 
|  | 1112 | .) ac_abs_builddir="$ac_dir";; | 
|  | 1113 | *) | 
|  | 1114 | case "$ac_dir" in | 
|  | 1115 | .) ac_abs_builddir=`pwd`;; | 
|  | 1116 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 1117 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 1118 | esac;; | 
|  | 1119 | esac | 
|  | 1120 | case $ac_abs_builddir in | 
|  | 1121 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 1122 | *) | 
|  | 1123 | case ${ac_top_builddir}. in | 
|  | 1124 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 1125 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 1126 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 1127 | esac;; | 
|  | 1128 | esac | 
|  | 1129 | case $ac_abs_builddir in | 
|  | 1130 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 1131 | *) | 
|  | 1132 | case $ac_srcdir in | 
|  | 1133 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 1134 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 1135 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 1136 | esac;; | 
|  | 1137 | esac | 
|  | 1138 | case $ac_abs_builddir in | 
|  | 1139 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 1140 | *) | 
|  | 1141 | case $ac_top_srcdir in | 
|  | 1142 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 1143 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 1144 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 1145 | esac;; | 
|  | 1146 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1147 |  | 
|  | 1148 | cd $ac_dir | 
|  | 1149 | # Check for guested configure; otherwise get Cygnus style configure. | 
|  | 1150 | if test -f $ac_srcdir/configure.gnu; then | 
|  | 1151 | echo | 
|  | 1152 | $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
|  | 1153 | elif test -f $ac_srcdir/configure; then | 
|  | 1154 | echo | 
|  | 1155 | $SHELL $ac_srcdir/configure  --help=recursive | 
|  | 1156 | elif test -f $ac_srcdir/configure.ac || | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1157 | test -f $ac_srcdir/configure.in; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1158 | echo | 
|  | 1159 | $ac_configure --help | 
|  | 1160 | else | 
|  | 1161 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
|  | 1162 | fi | 
|  | 1163 | cd $ac_popdir | 
|  | 1164 | done | 
|  | 1165 | fi | 
|  | 1166 |  | 
|  | 1167 | test -n "$ac_init_help" && exit 0 | 
|  | 1168 | if $ac_init_version; then | 
|  | 1169 | cat <<\_ACEOF | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1170 | llvm configure 1.4 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1171 | generated by GNU Autoconf 2.59 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1173 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1174 | This configure script is free software; the Free Software Foundation | 
|  | 1175 | gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1176 |  | 
|  | 1177 | $LLVM_COPYRIGHT | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1178 | _ACEOF | 
|  | 1179 | exit 0 | 
|  | 1180 | fi | 
|  | 1181 | exec 5>config.log | 
|  | 1182 | cat >&5 <<_ACEOF | 
|  | 1183 | This file contains any messages produced by compilers while | 
|  | 1184 | running configure, to aid debugging if configure makes a mistake. | 
|  | 1185 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1186 | It was created by llvm $as_me 1.4, which was | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1187 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1188 |  | 
|  | 1189 | $ $0 $@ | 
|  | 1190 |  | 
|  | 1191 | _ACEOF | 
|  | 1192 | { | 
|  | 1193 | cat <<_ASUNAME | 
|  | 1194 | ## --------- ## | 
|  | 1195 | ## Platform. ## | 
|  | 1196 | ## --------- ## | 
|  | 1197 |  | 
|  | 1198 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 1199 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 1200 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 1201 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 1202 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 1203 |  | 
|  | 1204 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 1205 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 1206 |  | 
|  | 1207 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 1208 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 1209 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
|  | 1210 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
|  | 1211 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 1212 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 1213 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 1214 |  | 
|  | 1215 | _ASUNAME | 
|  | 1216 |  | 
|  | 1217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1218 | for as_dir in $PATH | 
|  | 1219 | do | 
|  | 1220 | IFS=$as_save_IFS | 
|  | 1221 | test -z "$as_dir" && as_dir=. | 
|  | 1222 | echo "PATH: $as_dir" | 
|  | 1223 | done | 
|  | 1224 |  | 
|  | 1225 | } >&5 | 
|  | 1226 |  | 
|  | 1227 | cat >&5 <<_ACEOF | 
|  | 1228 |  | 
|  | 1229 |  | 
|  | 1230 | ## ----------- ## | 
|  | 1231 | ## Core tests. ## | 
|  | 1232 | ## ----------- ## | 
|  | 1233 |  | 
|  | 1234 | _ACEOF | 
|  | 1235 |  | 
|  | 1236 |  | 
|  | 1237 | # Keep a trace of the command line. | 
|  | 1238 | # Strip out --no-create and --no-recursion so they do not pile up. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1239 | # Strip out --silent because we don't want to record it for future runs. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1240 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1241 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1242 | ac_configure_args= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1243 | ac_configure_args0= | 
|  | 1244 | ac_configure_args1= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1245 | ac_sep= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1246 | ac_must_keep_next=false | 
|  | 1247 | for ac_pass in 1 2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1248 | do | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1249 | for ac_arg | 
|  | 1250 | do | 
|  | 1251 | case $ac_arg in | 
|  | 1252 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 1253 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1254 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1255 | continue ;; | 
|  | 1256 | *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
|  | 1257 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 1258 | esac | 
|  | 1259 | case $ac_pass in | 
|  | 1260 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
|  | 1261 | 2) | 
|  | 1262 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
|  | 1263 | if test $ac_must_keep_next = true; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1264 | ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1265 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1266 | case $ac_arg in | 
|  | 1267 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 1268 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 1269 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 1270 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 1271 | case "$ac_configure_args0 " in | 
|  | 1272 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 1273 | esac | 
|  | 1274 | ;; | 
|  | 1275 | -* ) ac_must_keep_next=true ;; | 
|  | 1276 | esac | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1277 | fi | 
|  | 1278 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
|  | 1279 | # Get rid of the leading space. | 
|  | 1280 | ac_sep=" " | 
|  | 1281 | ;; | 
|  | 1282 | esac | 
|  | 1283 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1284 | done | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1285 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
|  | 1286 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1287 |  | 
|  | 1288 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 1289 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 1290 | # would cause problems or look ugly. | 
|  | 1291 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
|  | 1292 | # such as our DU 5.0 friend, will then `close' the trap. | 
|  | 1293 | trap 'exit_status=$? | 
|  | 1294 | # Save into config.log some information that might help in debugging. | 
|  | 1295 | { | 
|  | 1296 | echo | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1297 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1298 | cat <<\_ASBOX | 
|  | 1299 | ## ---------------- ## | 
|  | 1300 | ## Cache variables. ## | 
|  | 1301 | ## ---------------- ## | 
|  | 1302 | _ASBOX | 
|  | 1303 | echo | 
|  | 1304 | # The following way of writing the cache mishandles newlines in values, | 
|  | 1305 | { | 
|  | 1306 | (set) 2>&1 | | 
|  | 1307 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
|  | 1308 | *ac_space=\ *) | 
|  | 1309 | sed -n \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1310 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
|  | 1311 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1312 | ;; | 
|  | 1313 | *) | 
|  | 1314 | sed -n \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1315 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1316 | ;; | 
|  | 1317 | esac; | 
|  | 1318 | } | 
|  | 1319 | echo | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1320 |  | 
|  | 1321 | cat <<\_ASBOX | 
|  | 1322 | ## ----------------- ## | 
|  | 1323 | ## Output variables. ## | 
|  | 1324 | ## ----------------- ## | 
|  | 1325 | _ASBOX | 
|  | 1326 | echo | 
|  | 1327 | for ac_var in $ac_subst_vars | 
|  | 1328 | do | 
|  | 1329 | eval ac_val=$`echo $ac_var` | 
|  | 1330 | echo "$ac_var='"'"'$ac_val'"'"'" | 
|  | 1331 | done | sort | 
|  | 1332 | echo | 
|  | 1333 |  | 
|  | 1334 | if test -n "$ac_subst_files"; then | 
|  | 1335 | cat <<\_ASBOX | 
|  | 1336 | ## ------------- ## | 
|  | 1337 | ## Output files. ## | 
|  | 1338 | ## ------------- ## | 
|  | 1339 | _ASBOX | 
|  | 1340 | echo | 
|  | 1341 | for ac_var in $ac_subst_files | 
|  | 1342 | do | 
|  | 1343 | eval ac_val=$`echo $ac_var` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1344 | echo "$ac_var='"'"'$ac_val'"'"'" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1345 | done | sort | 
|  | 1346 | echo | 
|  | 1347 | fi | 
|  | 1348 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1349 | if test -s confdefs.h; then | 
|  | 1350 | cat <<\_ASBOX | 
|  | 1351 | ## ----------- ## | 
|  | 1352 | ## confdefs.h. ## | 
|  | 1353 | ## ----------- ## | 
|  | 1354 | _ASBOX | 
|  | 1355 | echo | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1356 | sed "/^$/d" confdefs.h | sort | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1357 | echo | 
|  | 1358 | fi | 
|  | 1359 | test "$ac_signal" != 0 && | 
|  | 1360 | echo "$as_me: caught signal $ac_signal" | 
|  | 1361 | echo "$as_me: exit $exit_status" | 
|  | 1362 | } >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1363 | rm -f core *.core && | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1364 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
|  | 1365 | exit $exit_status | 
|  | 1366 | ' 0 | 
|  | 1367 | for ac_signal in 1 2 13 15; do | 
|  | 1368 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
|  | 1369 | done | 
|  | 1370 | ac_signal=0 | 
|  | 1371 |  | 
|  | 1372 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|  | 1373 | rm -rf conftest* confdefs.h | 
|  | 1374 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
|  | 1375 | echo >confdefs.h | 
|  | 1376 |  | 
|  | 1377 | # Predefined preprocessor variables. | 
|  | 1378 |  | 
|  | 1379 | cat >>confdefs.h <<_ACEOF | 
|  | 1380 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 1381 | _ACEOF | 
|  | 1382 |  | 
|  | 1383 |  | 
|  | 1384 | cat >>confdefs.h <<_ACEOF | 
|  | 1385 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 1386 | _ACEOF | 
|  | 1387 |  | 
|  | 1388 |  | 
|  | 1389 | cat >>confdefs.h <<_ACEOF | 
|  | 1390 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 1391 | _ACEOF | 
|  | 1392 |  | 
|  | 1393 |  | 
|  | 1394 | cat >>confdefs.h <<_ACEOF | 
|  | 1395 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 1396 | _ACEOF | 
|  | 1397 |  | 
|  | 1398 |  | 
|  | 1399 | cat >>confdefs.h <<_ACEOF | 
|  | 1400 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 1401 | _ACEOF | 
|  | 1402 |  | 
|  | 1403 |  | 
|  | 1404 | # Let the site file select an alternate cache file if it wants to. | 
|  | 1405 | # Prefer explicitly selected file to automatically selected ones. | 
|  | 1406 | if test -z "$CONFIG_SITE"; then | 
|  | 1407 | if test "x$prefix" != xNONE; then | 
|  | 1408 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
|  | 1409 | else | 
|  | 1410 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
|  | 1411 | fi | 
|  | 1412 | fi | 
|  | 1413 | for ac_site_file in $CONFIG_SITE; do | 
|  | 1414 | if test -r "$ac_site_file"; then | 
|  | 1415 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
|  | 1416 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
|  | 1417 | sed 's/^/| /' "$ac_site_file" >&5 | 
|  | 1418 | . "$ac_site_file" | 
|  | 1419 | fi | 
|  | 1420 | done | 
|  | 1421 |  | 
|  | 1422 | if test -r "$cache_file"; then | 
|  | 1423 | # Some versions of bash will fail to source /dev/null (special | 
|  | 1424 | # files actually), so we avoid doing that. | 
|  | 1425 | if test -f "$cache_file"; then | 
|  | 1426 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
|  | 1427 | echo "$as_me: loading cache $cache_file" >&6;} | 
|  | 1428 | case $cache_file in | 
|  | 1429 | [\\/]* | ?:[\\/]* ) . $cache_file;; | 
|  | 1430 | *)                      . ./$cache_file;; | 
|  | 1431 | esac | 
|  | 1432 | fi | 
|  | 1433 | else | 
|  | 1434 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
|  | 1435 | echo "$as_me: creating cache $cache_file" >&6;} | 
|  | 1436 | >$cache_file | 
|  | 1437 | fi | 
|  | 1438 |  | 
|  | 1439 | # Check that the precious variables saved in the cache have kept the same | 
|  | 1440 | # value. | 
|  | 1441 | ac_cache_corrupted=false | 
|  | 1442 | for ac_var in `(set) 2>&1 | | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1443 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1444 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 1445 | eval ac_new_set=\$ac_env_${ac_var}_set | 
|  | 1446 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
|  | 1447 | eval ac_new_val="\$ac_env_${ac_var}_value" | 
|  | 1448 | case $ac_old_set,$ac_new_set in | 
|  | 1449 | set,) | 
|  | 1450 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 1451 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
|  | 1452 | ac_cache_corrupted=: ;; | 
|  | 1453 | ,set) | 
|  | 1454 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 1455 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
|  | 1456 | ac_cache_corrupted=: ;; | 
|  | 1457 | ,);; | 
|  | 1458 | *) | 
|  | 1459 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1460 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1461 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1462 | { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1464 | { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1465 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1466 | ac_cache_corrupted=: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | fi;; | 
|  | 1468 | esac | 
|  | 1469 | # Pass precious variables to config.status. | 
|  | 1470 | if test "$ac_new_set" = set; then | 
|  | 1471 | case $ac_new_val in | 
|  | 1472 | *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
|  | 1473 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 1474 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 1475 | esac | 
|  | 1476 | case " $ac_configure_args " in | 
|  | 1477 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
|  | 1478 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
|  | 1479 | esac | 
|  | 1480 | fi | 
|  | 1481 | done | 
|  | 1482 | if $ac_cache_corrupted; then | 
|  | 1483 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
|  | 1484 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
|  | 1485 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
|  | 1486 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
|  | 1487 | { (exit 1); exit 1; }; } | 
|  | 1488 | fi | 
|  | 1489 |  | 
|  | 1490 | ac_ext=c | 
|  | 1491 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 1495 |  | 
|  | 1496 |  | 
|  | 1497 |  | 
|  | 1498 |  | 
|  | 1499 |  | 
|  | 1500 |  | 
|  | 1501 |  | 
|  | 1502 |  | 
|  | 1503 |  | 
|  | 1504 |  | 
|  | 1505 |  | 
|  | 1506 |  | 
|  | 1507 |  | 
|  | 1508 |  | 
|  | 1509 |  | 
|  | 1510 |  | 
|  | 1511 |  | 
|  | 1512 |  | 
|  | 1513 |  | 
|  | 1514 |  | 
|  | 1515 |  | 
|  | 1516 |  | 
|  | 1517 |  | 
|  | 1518 |  | 
|  | 1519 |  | 
|  | 1520 |  | 
|  | 1521 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1522 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1523 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign." | 
|  | 1524 |  | 
|  | 1525 |  | 
|  | 1526 |  | 
|  | 1527 |  | 
|  | 1528 |  | 
|  | 1529 |  | 
|  | 1530 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1531 | ac_aux_dir= | 
| John Criswell | c933eeb | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1532 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | if test -f $ac_dir/install-sh; then | 
|  | 1534 | ac_aux_dir=$ac_dir | 
|  | 1535 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 1536 | break | 
|  | 1537 | elif test -f $ac_dir/install.sh; then | 
|  | 1538 | ac_aux_dir=$ac_dir | 
|  | 1539 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 1540 | break | 
|  | 1541 | elif test -f $ac_dir/shtool; then | 
|  | 1542 | ac_aux_dir=$ac_dir | 
|  | 1543 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 1544 | break | 
|  | 1545 | fi | 
|  | 1546 | done | 
|  | 1547 | if test -z "$ac_aux_dir"; then | 
| John Criswell | c933eeb | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1548 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
|  | 1549 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1550 | { (exit 1); exit 1; }; } | 
|  | 1551 | fi | 
|  | 1552 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
|  | 1553 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
|  | 1554 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
|  | 1555 |  | 
| John Criswell | c933eeb | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1556 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1557 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1558 | if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
|  | 1559 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 22107a7 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1560 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
|  | 1561 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1562 | fi | 
| John Criswell | 22107a7 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1563 | fi | 
|  | 1564 |  | 
| John Criswell | 297baed | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1565 | for i in `ls ${srcdir}/projects` | 
|  | 1566 | do | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1567 | if test -d ${srcdir}/projects/${i} ; then | 
|  | 1568 | case ${i} in | 
|  | 1569 | "CVS") ;; | 
|  | 1570 | "sample") | 
| John Criswell | fa322d1 | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1571 |  | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1572 | subdirs="$subdirs projects/sample" | 
|  | 1573 | ;; | 
|  | 1574 | "Stacker") | 
| John Criswell | fa322d1 | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1575 |  | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1576 | subdirs="$subdirs projects/Stacker" | 
|  | 1577 | ;; | 
|  | 1578 | "llvm-test") | 
| John Criswell | fa322d1 | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1579 |  | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1580 | subdirs="$subdirs projects/llvm-test" | 
|  | 1581 | ;; | 
|  | 1582 | "llvm-reopt") | 
|  | 1583 |  | 
|  | 1584 | subdirs="$subdirs projects/llvm-reopt" | 
|  | 1585 | ;; | 
|  | 1586 | "llvm-gcc") | 
|  | 1587 |  | 
|  | 1588 | subdirs="$subdirs projects/llvm-gcc" | 
|  | 1589 | ;; | 
| Reid Spencer | efbe0ce | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1590 | "Java") | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1591 |  | 
| Reid Spencer | efbe0ce | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1592 | subdirs="$subdirs projects/Java" | 
|  | 1593 | ;; | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1594 | "llvm-tv") | 
|  | 1595 |  | 
|  | 1596 | subdirs="$subdirs projects/llvm-tv" | 
|  | 1597 | ;; | 
|  | 1598 | "llvm-fefw") | 
|  | 1599 |  | 
|  | 1600 | subdirs="$subdirs projects/llvm-fefw" | 
|  | 1601 | ;; | 
| John Criswell | 033d215 | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1602 | "poolalloc") | 
|  | 1603 |  | 
|  | 1604 | subdirs="$subdirs projects/poolalloc" | 
|  | 1605 | ;; | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1606 | *) | 
| Alkis Evlogimenos | 2622728 | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1607 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
|  | 1608 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 1609 | ;; | 
| Reid Spencer | ee0a2be | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1610 | esac | 
| John Criswell | 297baed | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1611 | fi | 
|  | 1612 | done | 
| John Criswell | ee7ebdc | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1613 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1614 |  | 
|  | 1615 | # Make sure we can run config.sub. | 
|  | 1616 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
|  | 1617 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
|  | 1618 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
|  | 1619 | { (exit 1); exit 1; }; } | 
|  | 1620 |  | 
|  | 1621 | echo "$as_me:$LINENO: checking build system type" >&5 | 
|  | 1622 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
|  | 1623 | if test "${ac_cv_build+set}" = set; then | 
|  | 1624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1625 | else | 
|  | 1626 | ac_cv_build_alias=$build_alias | 
|  | 1627 | test -z "$ac_cv_build_alias" && | 
|  | 1628 | ac_cv_build_alias=`$ac_config_guess` | 
|  | 1629 | test -z "$ac_cv_build_alias" && | 
|  | 1630 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
|  | 1631 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
|  | 1632 | { (exit 1); exit 1; }; } | 
|  | 1633 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
|  | 1634 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
|  | 1635 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
|  | 1636 | { (exit 1); exit 1; }; } | 
|  | 1637 |  | 
|  | 1638 | fi | 
|  | 1639 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
|  | 1640 | echo "${ECHO_T}$ac_cv_build" >&6 | 
|  | 1641 | build=$ac_cv_build | 
|  | 1642 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1643 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1644 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1645 |  | 
|  | 1646 |  | 
|  | 1647 | echo "$as_me:$LINENO: checking host system type" >&5 | 
|  | 1648 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
|  | 1649 | if test "${ac_cv_host+set}" = set; then | 
|  | 1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1651 | else | 
|  | 1652 | ac_cv_host_alias=$host_alias | 
|  | 1653 | test -z "$ac_cv_host_alias" && | 
|  | 1654 | ac_cv_host_alias=$ac_cv_build_alias | 
|  | 1655 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
|  | 1656 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
|  | 1657 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
|  | 1658 | { (exit 1); exit 1; }; } | 
|  | 1659 |  | 
|  | 1660 | fi | 
|  | 1661 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
|  | 1662 | echo "${ECHO_T}$ac_cv_host" >&6 | 
|  | 1663 | host=$ac_cv_host | 
|  | 1664 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1665 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1666 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1667 |  | 
|  | 1668 |  | 
|  | 1669 | echo "$as_me:$LINENO: checking target system type" >&5 | 
|  | 1670 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
|  | 1671 | if test "${ac_cv_target+set}" = set; then | 
|  | 1672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1673 | else | 
|  | 1674 | ac_cv_target_alias=$target_alias | 
|  | 1675 | test "x$ac_cv_target_alias" = "x" && | 
|  | 1676 | ac_cv_target_alias=$ac_cv_host_alias | 
|  | 1677 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
|  | 1678 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
|  | 1679 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
|  | 1680 | { (exit 1); exit 1; }; } | 
|  | 1681 |  | 
|  | 1682 | fi | 
|  | 1683 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
|  | 1684 | echo "${ECHO_T}$ac_cv_target" >&6 | 
|  | 1685 | target=$ac_cv_target | 
|  | 1686 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1687 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1688 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1689 |  | 
|  | 1690 |  | 
|  | 1691 | # The aliases save the names the user supplied, while $host etc. | 
|  | 1692 | # will get canonicalized. | 
|  | 1693 | test -n "$target_alias" && | 
|  | 1694 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 1695 | NONENONEs,x,x, && | 
|  | 1696 | program_prefix=${target_alias}- | 
|  | 1697 |  | 
| Reid Spencer | 67be17a | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1698 | echo "$as_me:$LINENO: checking support for generic build operating system" >&5 | 
|  | 1699 | echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1700 | if test "${llvm_cv_platform_type+set}" = set; then | 
|  | 1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1702 | else | 
|  | 1703 | case $build in | 
|  | 1704 | *-*-aix*) llvm_cv_platform_type="AIX" ;; | 
|  | 1705 | *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;; | 
|  | 1706 | *-*-darwin*) llvm_cv_platform_type="Darwin" ;; | 
|  | 1707 | *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;; | 
|  | 1708 | *-*-interix*) llvm_cv_platform_type="Interix" ;; | 
|  | 1709 | *-*-linux*) llvm_cv_platform_type="Linux" ;; | 
|  | 1710 | *-*-solaris*) llvm_cv_platform_type="SunOS" ;; | 
|  | 1711 | *-*-win32*) llvm_cv_platform_type="Win32" ;; | 
|  | 1712 | *-*-mingw*) llvm_cv_platform_type="Win32" ;; | 
|  | 1713 | *) llvm_cv_platform_type="Unknown" ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1714 | esac | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1715 | fi | 
|  | 1716 | echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5 | 
|  | 1717 | echo "${ECHO_T}$llvm_cv_platform_type" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1718 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1719 | if test "$llvm_cv_platform_type" = "Unknown" ; then | 
|  | 1720 | { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5 | 
|  | 1721 | echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;} | 
| Reid Spencer | 1daffa5 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1722 | { (exit 1); exit 1; }; } | 
|  | 1723 | fi | 
|  | 1724 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1725 | OS=$llvm_cv_platform_type | 
|  | 1726 |  | 
|  | 1727 |  | 
| Reid Spencer | 3d50017 | 2004-11-25 06:03:14 +0000 | [diff] [blame^] | 1728 | ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type" | 
| Reid Spencer | efc94f5 | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1729 |  | 
|  | 1730 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1731 | case $target in | 
|  | 1732 | sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8 | 
|  | 1733 |  | 
|  | 1734 | ;; | 
|  | 1735 | esac | 
| Reid Spencer | 67be17a | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1736 |  | 
|  | 1737 | echo "$as_me:$LINENO: checking target architecture" >&5 | 
|  | 1738 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1739 | if test "${llvm_cv_target_arch+set}" = set; then | 
|  | 1740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1741 | else | 
|  | 1742 | case $target in | 
|  | 1743 | i*86-*)      llvm_cv_target_arch="x86" ;; | 
|  | 1744 | sparc*-*)    llvm_cv_target_arch="Sparc" ;; | 
|  | 1745 | powerpc*-*)  llvm_cv_target_arch="PowerPC" ;; | 
|  | 1746 | *)           llvm_cv_target_arch="Unknown" ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | esac | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1748 | fi | 
|  | 1749 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
|  | 1750 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1751 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1752 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
|  | 1753 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
|  | 1754 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
|  | 1755 | fi | 
| John Criswell | 29eafac | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1756 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1757 | ARCH=$llvm_cv_target_arch | 
| Brian Gaeke | 3589140 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1758 |  | 
| Brian Gaeke | 3589140 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1759 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1760 | ac_ext=c | 
|  | 1761 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1765 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1766 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 1767 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
|  | 1768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1770 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1772 | else | 
|  | 1773 | if test -n "$CC"; then | 
|  | 1774 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 1775 | else | 
|  | 1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1777 | for as_dir in $PATH | 
|  | 1778 | do | 
|  | 1779 | IFS=$as_save_IFS | 
|  | 1780 | test -z "$as_dir" && as_dir=. | 
|  | 1781 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1783 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
|  | 1784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1785 | break 2 | 
|  | 1786 | fi | 
|  | 1787 | done | 
|  | 1788 | done | 
|  | 1789 |  | 
|  | 1790 | fi | 
|  | 1791 | fi | 
|  | 1792 | CC=$ac_cv_prog_CC | 
|  | 1793 | if test -n "$CC"; then | 
|  | 1794 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 1795 | echo "${ECHO_T}$CC" >&6 | 
|  | 1796 | else | 
|  | 1797 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1798 | echo "${ECHO_T}no" >&6 | 
|  | 1799 | fi | 
|  | 1800 |  | 
|  | 1801 | fi | 
|  | 1802 | if test -z "$ac_cv_prog_CC"; then | 
|  | 1803 | ac_ct_CC=$CC | 
|  | 1804 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 1805 | set dummy gcc; ac_word=$2 | 
|  | 1806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1808 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1810 | else | 
|  | 1811 | if test -n "$ac_ct_CC"; then | 
|  | 1812 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 1813 | else | 
|  | 1814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1815 | for as_dir in $PATH | 
|  | 1816 | do | 
|  | 1817 | IFS=$as_save_IFS | 
|  | 1818 | test -z "$as_dir" && as_dir=. | 
|  | 1819 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1821 | ac_cv_prog_ac_ct_CC="gcc" | 
|  | 1822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1823 | break 2 | 
|  | 1824 | fi | 
|  | 1825 | done | 
|  | 1826 | done | 
|  | 1827 |  | 
|  | 1828 | fi | 
|  | 1829 | fi | 
|  | 1830 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 1831 | if test -n "$ac_ct_CC"; then | 
|  | 1832 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 1833 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
|  | 1834 | else | 
|  | 1835 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1836 | echo "${ECHO_T}no" >&6 | 
|  | 1837 | fi | 
|  | 1838 |  | 
|  | 1839 | CC=$ac_ct_CC | 
|  | 1840 | else | 
|  | 1841 | CC="$ac_cv_prog_CC" | 
|  | 1842 | fi | 
|  | 1843 |  | 
|  | 1844 | if test -z "$CC"; then | 
|  | 1845 | if test -n "$ac_tool_prefix"; then | 
|  | 1846 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
|  | 1847 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
|  | 1848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1850 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1852 | else | 
|  | 1853 | if test -n "$CC"; then | 
|  | 1854 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 1855 | else | 
|  | 1856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1857 | for as_dir in $PATH | 
|  | 1858 | do | 
|  | 1859 | IFS=$as_save_IFS | 
|  | 1860 | test -z "$as_dir" && as_dir=. | 
|  | 1861 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1863 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
|  | 1864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1865 | break 2 | 
|  | 1866 | fi | 
|  | 1867 | done | 
|  | 1868 | done | 
|  | 1869 |  | 
|  | 1870 | fi | 
|  | 1871 | fi | 
|  | 1872 | CC=$ac_cv_prog_CC | 
|  | 1873 | if test -n "$CC"; then | 
|  | 1874 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 1875 | echo "${ECHO_T}$CC" >&6 | 
|  | 1876 | else | 
|  | 1877 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1878 | echo "${ECHO_T}no" >&6 | 
|  | 1879 | fi | 
|  | 1880 |  | 
|  | 1881 | fi | 
|  | 1882 | if test -z "$ac_cv_prog_CC"; then | 
|  | 1883 | ac_ct_CC=$CC | 
|  | 1884 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 1885 | set dummy cc; ac_word=$2 | 
|  | 1886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1888 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 1889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1890 | else | 
|  | 1891 | if test -n "$ac_ct_CC"; then | 
|  | 1892 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 1893 | else | 
|  | 1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1895 | for as_dir in $PATH | 
|  | 1896 | do | 
|  | 1897 | IFS=$as_save_IFS | 
|  | 1898 | test -z "$as_dir" && as_dir=. | 
|  | 1899 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1901 | ac_cv_prog_ac_ct_CC="cc" | 
|  | 1902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1903 | break 2 | 
|  | 1904 | fi | 
|  | 1905 | done | 
|  | 1906 | done | 
|  | 1907 |  | 
|  | 1908 | fi | 
|  | 1909 | fi | 
|  | 1910 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 1911 | if test -n "$ac_ct_CC"; then | 
|  | 1912 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 1913 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
|  | 1914 | else | 
|  | 1915 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1916 | echo "${ECHO_T}no" >&6 | 
|  | 1917 | fi | 
|  | 1918 |  | 
|  | 1919 | CC=$ac_ct_CC | 
|  | 1920 | else | 
|  | 1921 | CC="$ac_cv_prog_CC" | 
|  | 1922 | fi | 
|  | 1923 |  | 
|  | 1924 | fi | 
|  | 1925 | if test -z "$CC"; then | 
|  | 1926 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 1927 | set dummy cc; ac_word=$2 | 
|  | 1928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1930 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1932 | else | 
|  | 1933 | if test -n "$CC"; then | 
|  | 1934 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 1935 | else | 
|  | 1936 | ac_prog_rejected=no | 
|  | 1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1938 | for as_dir in $PATH | 
|  | 1939 | do | 
|  | 1940 | IFS=$as_save_IFS | 
|  | 1941 | test -z "$as_dir" && as_dir=. | 
|  | 1942 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1943 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1944 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 1945 | ac_prog_rejected=yes | 
|  | 1946 | continue | 
|  | 1947 | fi | 
|  | 1948 | ac_cv_prog_CC="cc" | 
|  | 1949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1950 | break 2 | 
|  | 1951 | fi | 
|  | 1952 | done | 
|  | 1953 | done | 
|  | 1954 |  | 
|  | 1955 | if test $ac_prog_rejected = yes; then | 
|  | 1956 | # We found a bogon in the path, so make sure we never use it. | 
|  | 1957 | set dummy $ac_cv_prog_CC | 
|  | 1958 | shift | 
|  | 1959 | if test $# != 0; then | 
|  | 1960 | # We chose a different compiler from the bogus one. | 
|  | 1961 | # However, it has the same basename, so the bogon will be chosen | 
|  | 1962 | # first if we set CC to just the basename; use the full file name. | 
|  | 1963 | shift | 
|  | 1964 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 1965 | fi | 
|  | 1966 | fi | 
|  | 1967 | fi | 
|  | 1968 | fi | 
|  | 1969 | CC=$ac_cv_prog_CC | 
|  | 1970 | if test -n "$CC"; then | 
|  | 1971 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 1972 | echo "${ECHO_T}$CC" >&6 | 
|  | 1973 | else | 
|  | 1974 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1975 | echo "${ECHO_T}no" >&6 | 
|  | 1976 | fi | 
|  | 1977 |  | 
|  | 1978 | fi | 
|  | 1979 | if test -z "$CC"; then | 
|  | 1980 | if test -n "$ac_tool_prefix"; then | 
|  | 1981 | for ac_prog in cl | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1982 | do | 
|  | 1983 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 1984 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 1985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1987 | if test "${ac_cv_prog_CC+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1989 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1990 | if test -n "$CC"; then | 
|  | 1991 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1992 | else | 
|  | 1993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1994 | for as_dir in $PATH | 
|  | 1995 | do | 
|  | 1996 | IFS=$as_save_IFS | 
|  | 1997 | test -z "$as_dir" && as_dir=. | 
|  | 1998 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2000 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2002 | break 2 | 
|  | 2003 | fi | 
|  | 2004 | done | 
|  | 2005 | done | 
|  | 2006 |  | 
|  | 2007 | fi | 
|  | 2008 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2009 | CC=$ac_cv_prog_CC | 
|  | 2010 | if test -n "$CC"; then | 
|  | 2011 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 2012 | echo "${ECHO_T}$CC" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2013 | else | 
|  | 2014 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2015 | echo "${ECHO_T}no" >&6 | 
|  | 2016 | fi | 
|  | 2017 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2018 | test -n "$CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2019 | done | 
|  | 2020 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2021 | if test -z "$CC"; then | 
|  | 2022 | ac_ct_CC=$CC | 
|  | 2023 | for ac_prog in cl | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2024 | do | 
|  | 2025 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2026 | set dummy $ac_prog; ac_word=$2 | 
|  | 2027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2029 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2031 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2032 | if test -n "$ac_ct_CC"; then | 
|  | 2033 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2034 | else | 
|  | 2035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2036 | for as_dir in $PATH | 
|  | 2037 | do | 
|  | 2038 | IFS=$as_save_IFS | 
|  | 2039 | test -z "$as_dir" && as_dir=. | 
|  | 2040 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2042 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2044 | break 2 | 
|  | 2045 | fi | 
|  | 2046 | done | 
|  | 2047 | done | 
|  | 2048 |  | 
|  | 2049 | fi | 
|  | 2050 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2051 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 2052 | if test -n "$ac_ct_CC"; then | 
|  | 2053 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 2054 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2055 | else | 
|  | 2056 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2057 | echo "${ECHO_T}no" >&6 | 
|  | 2058 | fi | 
|  | 2059 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2060 | test -n "$ac_ct_CC" && break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2061 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2062 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2063 | CC=$ac_ct_CC | 
|  | 2064 | fi | 
|  | 2065 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2066 | fi | 
|  | 2067 |  | 
|  | 2068 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
|  | 2070 | See \`config.log' for more details." >&5 | 
|  | 2071 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
|  | 2072 | See \`config.log' for more details." >&2;} | 
|  | 2073 | { (exit 1); exit 1; }; } | 
|  | 2074 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2075 | # Provide some information about the compiler. | 
|  | 2076 | echo "$as_me:$LINENO:" \ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2077 | "checking for C compiler version" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2078 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 2079 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 2080 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 2081 | ac_status=$? | 
|  | 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2083 | (exit $ac_status); } | 
|  | 2084 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 2085 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 2086 | ac_status=$? | 
|  | 2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2088 | (exit $ac_status); } | 
|  | 2089 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 2090 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 2091 | ac_status=$? | 
|  | 2092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2093 | (exit $ac_status); } | 
|  | 2094 |  | 
|  | 2095 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2096 | /* confdefs.h.  */ | 
|  | 2097 | _ACEOF | 
|  | 2098 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2099 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2100 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2101 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2102 | int | 
|  | 2103 | main () | 
|  | 2104 | { | 
|  | 2105 |  | 
|  | 2106 | ; | 
|  | 2107 | return 0; | 
|  | 2108 | } | 
|  | 2109 | _ACEOF | 
|  | 2110 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2111 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 | # Try to create an executable without -o first, disregard a.out. | 
|  | 2113 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 2114 | # of exeext. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2115 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 
|  | 2116 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 2118 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
|  | 2119 | (eval $ac_link_default) 2>&5 | 
|  | 2120 | ac_status=$? | 
|  | 2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2122 | (exit $ac_status); }; then | 
|  | 2123 | # Find the output, starting from the most likely.  This scheme is | 
|  | 2124 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
|  | 2125 | # resort. | 
|  | 2126 |  | 
|  | 2127 | # Be careful to initialize this variable, since it used to be cached. | 
|  | 2128 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
|  | 2129 | ac_cv_exeext= | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2130 | # b.out is created by i960 compilers. | 
|  | 2131 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
|  | 2132 | do | 
|  | 2133 | test -f "$ac_file" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2134 | case $ac_file in | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2135 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2136 | ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2137 | conftest.$ac_ext ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2138 | # This is the source file. | 
|  | 2139 | ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2140 | [ab].out ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2141 | # We found the default executable, but exeext='' is most | 
|  | 2142 | # certainly right. | 
|  | 2143 | break;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2144 | *.* ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2145 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 2146 | # FIXME: I believe we export ac_cv_exeext for Libtool, | 
|  | 2147 | # but it would be cool to find out if it's true.  Does anybody | 
|  | 2148 | # maintain Libtool? --akim. | 
|  | 2149 | export ac_cv_exeext | 
|  | 2150 | break;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2151 | * ) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2152 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2153 | esac | 
|  | 2154 | done | 
|  | 2155 | else | 
|  | 2156 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2157 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2158 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2159 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2160 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2161 | echo "$as_me: error: C compiler cannot create executables | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2162 | See \`config.log' for more details." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2163 | { (exit 77); exit 77; }; } | 
|  | 2164 | fi | 
|  | 2165 |  | 
|  | 2166 | ac_exeext=$ac_cv_exeext | 
|  | 2167 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
|  | 2168 | echo "${ECHO_T}$ac_file" >&6 | 
|  | 2169 |  | 
|  | 2170 | # Check the compiler produces executables we can run.  If not, either | 
|  | 2171 | # the compiler is broken, or we cross compile. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2172 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
|  | 2173 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2174 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
|  | 2175 | # If not cross compiling, check that we can run a simple program. | 
|  | 2176 | if test "$cross_compiling" != yes; then | 
|  | 2177 | if { ac_try='./$ac_file' | 
|  | 2178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2179 | (eval $ac_try) 2>&5 | 
|  | 2180 | ac_status=$? | 
|  | 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2182 | (exit $ac_status); }; }; then | 
|  | 2183 | cross_compiling=no | 
|  | 2184 | else | 
|  | 2185 | if test "$cross_compiling" = maybe; then | 
|  | 2186 | cross_compiling=yes | 
|  | 2187 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2188 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2189 | If you meant to cross compile, use \`--host'. | 
|  | 2190 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2191 | echo "$as_me: error: cannot run C compiled programs. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2192 | If you meant to cross compile, use \`--host'. | 
|  | 2193 | See \`config.log' for more details." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2194 | { (exit 1); exit 1; }; } | 
|  | 2195 | fi | 
|  | 2196 | fi | 
|  | 2197 | fi | 
|  | 2198 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 2199 | echo "${ECHO_T}yes" >&6 | 
|  | 2200 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2201 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2202 | ac_clean_files=$ac_clean_files_save | 
|  | 2203 | # Check the compiler produces executables we can run.  If not, either | 
|  | 2204 | # the compiler is broken, or we cross compile. | 
|  | 2205 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
|  | 2206 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
|  | 2207 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
|  | 2208 | echo "${ECHO_T}$cross_compiling" >&6 | 
|  | 2209 |  | 
|  | 2210 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
|  | 2211 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
|  | 2212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 2213 | (eval $ac_link) 2>&5 | 
|  | 2214 | ac_status=$? | 
|  | 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2216 | (exit $ac_status); }; then | 
|  | 2217 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 2218 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 2219 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 2220 | # `rm'. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2221 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 2222 | test -f "$ac_file" || continue | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2223 | case $ac_file in | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2224 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2225 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2226 | export ac_cv_exeext | 
|  | 2227 | break;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2228 | * ) break;; | 
|  | 2229 | esac | 
|  | 2230 | done | 
|  | 2231 | else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2232 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2233 | See \`config.log' for more details." >&5 | 
|  | 2234 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2235 | See \`config.log' for more details." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2236 | { (exit 1); exit 1; }; } | 
|  | 2237 | fi | 
|  | 2238 |  | 
|  | 2239 | rm -f conftest$ac_cv_exeext | 
|  | 2240 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
|  | 2241 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
|  | 2242 |  | 
|  | 2243 | rm -f conftest.$ac_ext | 
|  | 2244 | EXEEXT=$ac_cv_exeext | 
|  | 2245 | ac_exeext=$EXEEXT | 
|  | 2246 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
|  | 2247 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
|  | 2248 | if test "${ac_cv_objext+set}" = set; then | 
|  | 2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2250 | else | 
|  | 2251 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2252 | /* confdefs.h.  */ | 
|  | 2253 | _ACEOF | 
|  | 2254 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2255 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2256 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2257 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2258 | int | 
|  | 2259 | main () | 
|  | 2260 | { | 
|  | 2261 |  | 
|  | 2262 | ; | 
|  | 2263 | return 0; | 
|  | 2264 | } | 
|  | 2265 | _ACEOF | 
|  | 2266 | rm -f conftest.o conftest.obj | 
|  | 2267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2268 | (eval $ac_compile) 2>&5 | 
|  | 2269 | ac_status=$? | 
|  | 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2271 | (exit $ac_status); }; then | 
|  | 2272 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
|  | 2273 | case $ac_file in | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2274 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2275 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 2276 | break;; | 
|  | 2277 | esac | 
|  | 2278 | done | 
|  | 2279 | else | 
|  | 2280 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2281 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2282 |  | 
|  | 2283 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
|  | 2284 | See \`config.log' for more details." >&5 | 
|  | 2285 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
|  | 2286 | See \`config.log' for more details." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2287 | { (exit 1); exit 1; }; } | 
|  | 2288 | fi | 
|  | 2289 |  | 
|  | 2290 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 2291 | fi | 
|  | 2292 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
|  | 2293 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
|  | 2294 | OBJEXT=$ac_cv_objext | 
|  | 2295 | ac_objext=$OBJEXT | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2296 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
|  | 2297 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
|  | 2298 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2300 | else | 
|  | 2301 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2302 | /* confdefs.h.  */ | 
|  | 2303 | _ACEOF | 
|  | 2304 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2305 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2306 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2307 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2308 | int | 
|  | 2309 | main () | 
|  | 2310 | { | 
|  | 2311 | #ifndef __GNUC__ | 
|  | 2312 | choke me | 
|  | 2313 | #endif | 
|  | 2314 |  | 
|  | 2315 | ; | 
|  | 2316 | return 0; | 
|  | 2317 | } | 
|  | 2318 | _ACEOF | 
|  | 2319 | rm -f conftest.$ac_objext | 
|  | 2320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2321 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2322 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2323 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2324 | rm -f conftest.er1 | 
|  | 2325 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2327 | (exit $ac_status); } && | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2328 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2329 | || test ! -s conftest.err' | 
|  | 2330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2331 | (eval $ac_try) 2>&5 | 
|  | 2332 | ac_status=$? | 
|  | 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2334 | (exit $ac_status); }; } && | 
|  | 2335 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2337 | (eval $ac_try) 2>&5 | 
|  | 2338 | ac_status=$? | 
|  | 2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2340 | (exit $ac_status); }; }; then | 
|  | 2341 | ac_compiler_gnu=yes | 
|  | 2342 | else | 
|  | 2343 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2344 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2345 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2346 | ac_compiler_gnu=no | 
|  | 2347 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 |  | 
|  | 2351 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2352 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 2353 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
|  | 2354 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 2355 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 2356 | ac_save_CFLAGS=$CFLAGS | 
|  | 2357 | CFLAGS="-g" | 
|  | 2358 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
|  | 2359 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
|  | 2360 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2362 | else | 
|  | 2363 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2364 | /* confdefs.h.  */ | 
|  | 2365 | _ACEOF | 
|  | 2366 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2367 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2368 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2369 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2370 | int | 
|  | 2371 | main () | 
|  | 2372 | { | 
|  | 2373 |  | 
|  | 2374 | ; | 
|  | 2375 | return 0; | 
|  | 2376 | } | 
|  | 2377 | _ACEOF | 
|  | 2378 | rm -f conftest.$ac_objext | 
|  | 2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2380 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2381 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2382 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2383 | rm -f conftest.er1 | 
|  | 2384 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2386 | (exit $ac_status); } && | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2387 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2388 | || test ! -s conftest.err' | 
|  | 2389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2390 | (eval $ac_try) 2>&5 | 
|  | 2391 | ac_status=$? | 
|  | 2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2393 | (exit $ac_status); }; } && | 
|  | 2394 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2396 | (eval $ac_try) 2>&5 | 
|  | 2397 | ac_status=$? | 
|  | 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2399 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2400 | ac_cv_prog_cc_g=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2401 | else | 
|  | 2402 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2403 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2404 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2405 | ac_cv_prog_cc_g=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2406 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2408 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
|  | 2410 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
|  | 2411 | if test "$ac_test_CFLAGS" = set; then | 
|  | 2412 | CFLAGS=$ac_save_CFLAGS | 
|  | 2413 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 2414 | if test "$GCC" = yes; then | 
|  | 2415 | CFLAGS="-g -O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2416 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2417 | CFLAGS="-g" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2418 | fi | 
|  | 2419 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2420 | if test "$GCC" = yes; then | 
|  | 2421 | CFLAGS="-O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2422 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | CFLAGS= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2424 | fi | 
|  | 2425 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2426 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
|  | 2427 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
|  | 2428 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
|  | 2429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2430 | else | 
|  | 2431 | ac_cv_prog_cc_stdc=no | 
|  | 2432 | ac_save_CC=$CC | 
|  | 2433 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2434 | /* confdefs.h.  */ | 
|  | 2435 | _ACEOF | 
|  | 2436 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2437 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2438 | /* end confdefs.h.  */ | 
|  | 2439 | #include <stdarg.h> | 
|  | 2440 | #include <stdio.h> | 
|  | 2441 | #include <sys/types.h> | 
|  | 2442 | #include <sys/stat.h> | 
|  | 2443 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 2444 | struct buf { int x; }; | 
|  | 2445 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 2446 | static char *e (p, i) | 
|  | 2447 | char **p; | 
|  | 2448 | int i; | 
|  | 2449 | { | 
|  | 2450 | return p[i]; | 
|  | 2451 | } | 
|  | 2452 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 2453 | { | 
|  | 2454 | char *s; | 
|  | 2455 | va_list v; | 
|  | 2456 | va_start (v,p); | 
|  | 2457 | s = g (p, va_arg (v,int)); | 
|  | 2458 | va_end (v); | 
|  | 2459 | return s; | 
|  | 2460 | } | 
|  | 2461 |  | 
|  | 2462 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 2463 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 2464 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 2465 | as 'x'.  The following induces an error, until -std1 is added to get | 
|  | 2466 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 2467 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 2468 | that's true only with -std1.  */ | 
|  | 2469 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 2470 |  | 
|  | 2471 | int test (int i, double x); | 
|  | 2472 | struct s1 {int (*f) (int a);}; | 
|  | 2473 | struct s2 {int (*f) (double a);}; | 
|  | 2474 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 2475 | int argc; | 
|  | 2476 | char **argv; | 
|  | 2477 | int | 
|  | 2478 | main () | 
|  | 2479 | { | 
|  | 2480 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 2481 | ; | 
|  | 2482 | return 0; | 
|  | 2483 | } | 
|  | 2484 | _ACEOF | 
|  | 2485 | # Don't try gcc -ansi; that turns off useful extensions and | 
|  | 2486 | # breaks some systems' header files. | 
|  | 2487 | # AIX			-qlanglvl=ansi | 
|  | 2488 | # Ultrix and OSF/1	-std1 | 
|  | 2489 | # HP-UX 10.20 and later	-Ae | 
|  | 2490 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
|  | 2491 | # SVR4			-Xc -D__EXTENSIONS__ | 
|  | 2492 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 2493 | do | 
|  | 2494 | CC="$ac_save_CC $ac_arg" | 
|  | 2495 | rm -f conftest.$ac_objext | 
|  | 2496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2497 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2498 | ac_status=$? | 
|  | 2499 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2500 | rm -f conftest.er1 | 
|  | 2501 | cat conftest.err >&5 | 
|  | 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2503 | (exit $ac_status); } && | 
|  | 2504 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2505 | || test ! -s conftest.err' | 
|  | 2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2507 | (eval $ac_try) 2>&5 | 
|  | 2508 | ac_status=$? | 
|  | 2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2510 | (exit $ac_status); }; } && | 
|  | 2511 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2513 | (eval $ac_try) 2>&5 | 
|  | 2514 | ac_status=$? | 
|  | 2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2516 | (exit $ac_status); }; }; then | 
|  | 2517 | ac_cv_prog_cc_stdc=$ac_arg | 
|  | 2518 | break | 
|  | 2519 | else | 
|  | 2520 | echo "$as_me: failed program was:" >&5 | 
|  | 2521 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2522 |  | 
|  | 2523 | fi | 
|  | 2524 | rm -f conftest.err conftest.$ac_objext | 
|  | 2525 | done | 
|  | 2526 | rm -f conftest.$ac_ext conftest.$ac_objext | 
|  | 2527 | CC=$ac_save_CC | 
|  | 2528 |  | 
|  | 2529 | fi | 
|  | 2530 |  | 
|  | 2531 | case "x$ac_cv_prog_cc_stdc" in | 
|  | 2532 | x|xno) | 
|  | 2533 | echo "$as_me:$LINENO: result: none needed" >&5 | 
|  | 2534 | echo "${ECHO_T}none needed" >&6 ;; | 
|  | 2535 | *) | 
|  | 2536 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
|  | 2537 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
|  | 2538 | CC="$CC $ac_cv_prog_cc_stdc" ;; | 
|  | 2539 | esac | 
|  | 2540 |  | 
|  | 2541 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
|  | 2542 | # in C++ we need to declare it.  In case someone uses the same compiler | 
|  | 2543 | # for both compiling C and C++ we need to have the C++ compiler decide | 
|  | 2544 | # the declaration of exit, since it's the most demanding environment. | 
|  | 2545 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2546 | #ifndef __cplusplus | 
|  | 2547 | choke me | 
|  | 2548 | #endif | 
|  | 2549 | _ACEOF | 
|  | 2550 | rm -f conftest.$ac_objext | 
|  | 2551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2552 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2553 | ac_status=$? | 
|  | 2554 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2555 | rm -f conftest.er1 | 
|  | 2556 | cat conftest.err >&5 | 
|  | 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2558 | (exit $ac_status); } && | 
|  | 2559 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2560 | || test ! -s conftest.err' | 
|  | 2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2562 | (eval $ac_try) 2>&5 | 
|  | 2563 | ac_status=$? | 
|  | 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2565 | (exit $ac_status); }; } && | 
|  | 2566 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2568 | (eval $ac_try) 2>&5 | 
|  | 2569 | ac_status=$? | 
|  | 2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2571 | (exit $ac_status); }; }; then | 
|  | 2572 | for ac_declaration in \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2573 | '' \ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2574 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 2575 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 2576 | 'extern "C" void exit (int) throw ();' \ | 
|  | 2577 | 'extern "C" void exit (int);' \ | 
|  | 2578 | 'void exit (int);' | 
|  | 2579 | do | 
|  | 2580 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2581 | /* confdefs.h.  */ | 
|  | 2582 | _ACEOF | 
|  | 2583 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2584 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2585 | /* end confdefs.h.  */ | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2586 | $ac_declaration | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2587 | #include <stdlib.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2588 | int | 
|  | 2589 | main () | 
|  | 2590 | { | 
|  | 2591 | exit (42); | 
|  | 2592 | ; | 
|  | 2593 | return 0; | 
|  | 2594 | } | 
|  | 2595 | _ACEOF | 
|  | 2596 | rm -f conftest.$ac_objext | 
|  | 2597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2598 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2599 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2600 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2601 | rm -f conftest.er1 | 
|  | 2602 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2604 | (exit $ac_status); } && | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2606 | || test ! -s conftest.err' | 
|  | 2607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2608 | (eval $ac_try) 2>&5 | 
|  | 2609 | ac_status=$? | 
|  | 2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2611 | (exit $ac_status); }; } && | 
|  | 2612 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2614 | (eval $ac_try) 2>&5 | 
|  | 2615 | ac_status=$? | 
|  | 2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2617 | (exit $ac_status); }; }; then | 
|  | 2618 | : | 
|  | 2619 | else | 
|  | 2620 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2621 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2622 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2623 | continue | 
|  | 2624 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2626 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2627 | /* confdefs.h.  */ | 
|  | 2628 | _ACEOF | 
|  | 2629 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2630 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2631 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | $ac_declaration | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | int | 
|  | 2634 | main () | 
|  | 2635 | { | 
|  | 2636 | exit (42); | 
|  | 2637 | ; | 
|  | 2638 | return 0; | 
|  | 2639 | } | 
|  | 2640 | _ACEOF | 
|  | 2641 | rm -f conftest.$ac_objext | 
|  | 2642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2643 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2644 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2645 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2646 | rm -f conftest.er1 | 
|  | 2647 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2649 | (exit $ac_status); } && | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2650 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2651 | || test ! -s conftest.err' | 
|  | 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2653 | (eval $ac_try) 2>&5 | 
|  | 2654 | ac_status=$? | 
|  | 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2656 | (exit $ac_status); }; } && | 
|  | 2657 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2659 | (eval $ac_try) 2>&5 | 
|  | 2660 | ac_status=$? | 
|  | 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2662 | (exit $ac_status); }; }; then | 
|  | 2663 | break | 
|  | 2664 | else | 
|  | 2665 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2666 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2667 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2668 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | done | 
|  | 2671 | rm -f conftest* | 
|  | 2672 | if test -n "$ac_declaration"; then | 
|  | 2673 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 2674 | echo $ac_declaration      >>confdefs.h | 
|  | 2675 | echo '#endif'             >>confdefs.h | 
|  | 2676 | fi | 
|  | 2677 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2678 | else | 
|  | 2679 | echo "$as_me: failed program was:" >&5 | 
|  | 2680 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2681 |  | 
|  | 2682 | fi | 
|  | 2683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2684 | ac_ext=c | 
|  | 2685 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2689 |  | 
|  | 2690 |  | 
|  | 2691 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
|  | 2692 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | 
|  | 2693 | if test "${ac_cv_c_bigendian+set}" = set; then | 
|  | 2694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2695 | else | 
|  | 2696 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 2697 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2698 | /* confdefs.h.  */ | 
|  | 2699 | _ACEOF | 
|  | 2700 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2701 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2702 | /* end confdefs.h.  */ | 
|  | 2703 | #include <sys/types.h> | 
|  | 2704 | #include <sys/param.h> | 
|  | 2705 |  | 
|  | 2706 | int | 
|  | 2707 | main () | 
|  | 2708 | { | 
|  | 2709 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
|  | 2710 | bogus endian macros | 
|  | 2711 | #endif | 
|  | 2712 |  | 
|  | 2713 | ; | 
|  | 2714 | return 0; | 
|  | 2715 | } | 
|  | 2716 | _ACEOF | 
|  | 2717 | rm -f conftest.$ac_objext | 
|  | 2718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2719 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2720 | ac_status=$? | 
|  | 2721 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2722 | rm -f conftest.er1 | 
|  | 2723 | cat conftest.err >&5 | 
|  | 2724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2725 | (exit $ac_status); } && | 
|  | 2726 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2727 | || test ! -s conftest.err' | 
|  | 2728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2729 | (eval $ac_try) 2>&5 | 
|  | 2730 | ac_status=$? | 
|  | 2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2732 | (exit $ac_status); }; } && | 
|  | 2733 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2735 | (eval $ac_try) 2>&5 | 
|  | 2736 | ac_status=$? | 
|  | 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2738 | (exit $ac_status); }; }; then | 
|  | 2739 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
|  | 2740 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2741 | /* confdefs.h.  */ | 
|  | 2742 | _ACEOF | 
|  | 2743 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2744 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2745 | /* end confdefs.h.  */ | 
|  | 2746 | #include <sys/types.h> | 
|  | 2747 | #include <sys/param.h> | 
|  | 2748 |  | 
|  | 2749 | int | 
|  | 2750 | main () | 
|  | 2751 | { | 
|  | 2752 | #if BYTE_ORDER != BIG_ENDIAN | 
|  | 2753 | not big endian | 
|  | 2754 | #endif | 
|  | 2755 |  | 
|  | 2756 | ; | 
|  | 2757 | return 0; | 
|  | 2758 | } | 
|  | 2759 | _ACEOF | 
|  | 2760 | rm -f conftest.$ac_objext | 
|  | 2761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2762 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2763 | ac_status=$? | 
|  | 2764 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2765 | rm -f conftest.er1 | 
|  | 2766 | cat conftest.err >&5 | 
|  | 2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2768 | (exit $ac_status); } && | 
|  | 2769 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2770 | || test ! -s conftest.err' | 
|  | 2771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2772 | (eval $ac_try) 2>&5 | 
|  | 2773 | ac_status=$? | 
|  | 2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2775 | (exit $ac_status); }; } && | 
|  | 2776 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2778 | (eval $ac_try) 2>&5 | 
|  | 2779 | ac_status=$? | 
|  | 2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2781 | (exit $ac_status); }; }; then | 
|  | 2782 | ac_cv_c_bigendian=yes | 
|  | 2783 | else | 
|  | 2784 | echo "$as_me: failed program was:" >&5 | 
|  | 2785 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2786 |  | 
|  | 2787 | ac_cv_c_bigendian=no | 
|  | 2788 | fi | 
|  | 2789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2790 | else | 
|  | 2791 | echo "$as_me: failed program was:" >&5 | 
|  | 2792 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2793 |  | 
|  | 2794 | # It does not; compile a test program. | 
|  | 2795 | if test "$cross_compiling" = yes; then | 
|  | 2796 | # try to guess the endianness by grepping values into an object file | 
|  | 2797 | ac_cv_c_bigendian=unknown | 
|  | 2798 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2799 | /* confdefs.h.  */ | 
|  | 2800 | _ACEOF | 
|  | 2801 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2802 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2803 | /* end confdefs.h.  */ | 
|  | 2804 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 2805 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 2806 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
|  | 2807 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 2808 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 2809 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
|  | 2810 | int | 
|  | 2811 | main () | 
|  | 2812 | { | 
|  | 2813 | _ascii (); _ebcdic (); | 
|  | 2814 | ; | 
|  | 2815 | return 0; | 
|  | 2816 | } | 
|  | 2817 | _ACEOF | 
|  | 2818 | rm -f conftest.$ac_objext | 
|  | 2819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2820 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2821 | ac_status=$? | 
|  | 2822 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2823 | rm -f conftest.er1 | 
|  | 2824 | cat conftest.err >&5 | 
|  | 2825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2826 | (exit $ac_status); } && | 
|  | 2827 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2828 | || test ! -s conftest.err' | 
|  | 2829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2830 | (eval $ac_try) 2>&5 | 
|  | 2831 | ac_status=$? | 
|  | 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2833 | (exit $ac_status); }; } && | 
|  | 2834 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2836 | (eval $ac_try) 2>&5 | 
|  | 2837 | ac_status=$? | 
|  | 2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2839 | (exit $ac_status); }; }; then | 
|  | 2840 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
|  | 2841 | ac_cv_c_bigendian=yes | 
|  | 2842 | fi | 
|  | 2843 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 2844 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 2845 | ac_cv_c_bigendian=no | 
|  | 2846 | else | 
|  | 2847 | # finding both strings is unlikely to happen, but who knows? | 
|  | 2848 | ac_cv_c_bigendian=unknown | 
|  | 2849 | fi | 
|  | 2850 | fi | 
|  | 2851 | else | 
|  | 2852 | echo "$as_me: failed program was:" >&5 | 
|  | 2853 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2854 |  | 
|  | 2855 | fi | 
|  | 2856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2857 | else | 
|  | 2858 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2859 | /* confdefs.h.  */ | 
|  | 2860 | _ACEOF | 
|  | 2861 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2862 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2863 | /* end confdefs.h.  */ | 
|  | 2864 | int | 
|  | 2865 | main () | 
|  | 2866 | { | 
|  | 2867 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 2868 | union | 
|  | 2869 | { | 
|  | 2870 | long l; | 
|  | 2871 | char c[sizeof (long)]; | 
|  | 2872 | } u; | 
|  | 2873 | u.l = 1; | 
|  | 2874 | exit (u.c[sizeof (long) - 1] == 1); | 
|  | 2875 | } | 
|  | 2876 | _ACEOF | 
|  | 2877 | rm -f conftest$ac_exeext | 
|  | 2878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 2879 | (eval $ac_link) 2>&5 | 
|  | 2880 | ac_status=$? | 
|  | 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2882 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 2883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2884 | (eval $ac_try) 2>&5 | 
|  | 2885 | ac_status=$? | 
|  | 2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2887 | (exit $ac_status); }; }; then | 
|  | 2888 | ac_cv_c_bigendian=no | 
|  | 2889 | else | 
|  | 2890 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 2891 | echo "$as_me: failed program was:" >&5 | 
|  | 2892 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2893 |  | 
|  | 2894 | ( exit $ac_status ) | 
|  | 2895 | ac_cv_c_bigendian=yes | 
|  | 2896 | fi | 
|  | 2897 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
|  | 2898 | fi | 
|  | 2899 | fi | 
|  | 2900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2901 | fi | 
|  | 2902 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
|  | 2903 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | 
|  | 2904 | case $ac_cv_c_bigendian in | 
|  | 2905 | yes) | 
|  | 2906 | ENDIAN=big | 
|  | 2907 | ;; | 
|  | 2908 | no) | 
|  | 2909 | ENDIAN=little | 
|  | 2910 | ;; | 
|  | 2911 | *) | 
|  | 2912 | { { echo "$as_me:$LINENO: error: unknown endianness | 
|  | 2913 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
|  | 2914 | echo "$as_me: error: unknown endianness | 
|  | 2915 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
|  | 2916 | { (exit 1); exit 1; }; } ;; | 
|  | 2917 | esac | 
|  | 2918 |  | 
|  | 2919 |  | 
|  | 2920 |  | 
|  | 2921 | # Check whether --enable-optimized or --disable-optimized was given. | 
|  | 2922 | if test "${enable_optimized+set}" = set; then | 
|  | 2923 | enableval="$enable_optimized" | 
|  | 2924 |  | 
|  | 2925 | else | 
|  | 2926 | enableval=no | 
|  | 2927 | fi; | 
|  | 2928 | if test ${enableval} = "no" ; then | 
|  | 2929 | ENABLE_OPTIMIZED= | 
|  | 2930 |  | 
|  | 2931 | else | 
|  | 2932 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
|  | 2933 |  | 
|  | 2934 | fi | 
|  | 2935 |  | 
|  | 2936 | # Check whether --enable-jit or --disable-jit was given. | 
|  | 2937 | if test "${enable_jit+set}" = set; then | 
|  | 2938 | enableval="$enable_jit" | 
|  | 2939 |  | 
|  | 2940 | else | 
|  | 2941 | enableval=default | 
|  | 2942 | fi; | 
|  | 2943 | if test ${enableval} = "no" | 
|  | 2944 | then | 
|  | 2945 | JIT= | 
|  | 2946 |  | 
|  | 2947 | else | 
|  | 2948 | case "$llvm_cv_target_architecture" in | 
|  | 2949 | x86)     JIT=TARGET_HAS_JIT=1 | 
|  | 2950 | ;; | 
|  | 2951 | Sparc)   JIT=TARGET_HAS_JIT=1 | 
|  | 2952 | ;; | 
|  | 2953 | PowerPC) JIT=TARGET_HAS_JIT=1 | 
|  | 2954 | ;; | 
|  | 2955 | *)       JIT= | 
|  | 2956 | ;; | 
|  | 2957 | esac | 
|  | 2958 | fi | 
|  | 2959 |  | 
|  | 2960 |  | 
|  | 2961 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. | 
|  | 2962 | if test "${with_llvmgccdir+set}" = set; then | 
|  | 2963 | withval="$with_llvmgccdir" | 
|  | 2964 | LLVMGCCDIR=$withval | 
|  | 2965 |  | 
|  | 2966 | fi; | 
|  | 2967 |  | 
|  | 2968 | if test "x$LLVMGCCDIR" = x ; then | 
|  | 2969 | case "$llvm_cv_platform_type" in | 
|  | 2970 | Linux) | 
|  | 2971 | if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then | 
|  | 2972 | LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ | 
|  | 2973 |  | 
|  | 2974 | fi | 
|  | 2975 | ;; | 
|  | 2976 | SunOS) | 
|  | 2977 | if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then | 
|  | 2978 | LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ | 
|  | 2979 |  | 
|  | 2980 | fi | 
|  | 2981 | ;; | 
|  | 2982 | esac | 
|  | 2983 | fi | 
|  | 2984 |  | 
|  | 2985 |  | 
|  | 2986 | ac_ext=c | 
|  | 2987 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2991 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
|  | 2992 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
|  | 2993 | # On Suns, sometimes $CPP names a directory. | 
|  | 2994 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 2995 | CPP= | 
|  | 2996 | fi | 
|  | 2997 | if test -z "$CPP"; then | 
|  | 2998 | if test "${ac_cv_prog_CPP+set}" = set; then | 
|  | 2999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3000 | else | 
|  | 3001 | # Double quotes because CPP needs to be expanded | 
|  | 3002 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 3003 | do | 
|  | 3004 | ac_preproc_ok=false | 
|  | 3005 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3006 | do | 
|  | 3007 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3008 | # with a fresh cross-compiler works. | 
|  | 3009 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3010 | # <limits.h> exists even on freestanding compilers. | 
|  | 3011 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3012 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 3013 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3014 | /* confdefs.h.  */ | 
|  | 3015 | _ACEOF | 
|  | 3016 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3017 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3018 | /* end confdefs.h.  */ | 
|  | 3019 | #ifdef __STDC__ | 
|  | 3020 | # include <limits.h> | 
|  | 3021 | #else | 
|  | 3022 | # include <assert.h> | 
|  | 3023 | #endif | 
|  | 3024 | Syntax error | 
|  | 3025 | _ACEOF | 
|  | 3026 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3028 | ac_status=$? | 
|  | 3029 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3030 | rm -f conftest.er1 | 
|  | 3031 | cat conftest.err >&5 | 
|  | 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3033 | (exit $ac_status); } >/dev/null; then | 
|  | 3034 | if test -s conftest.err; then | 
|  | 3035 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3036 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3037 | else | 
|  | 3038 | ac_cpp_err= | 
|  | 3039 | fi | 
|  | 3040 | else | 
|  | 3041 | ac_cpp_err=yes | 
|  | 3042 | fi | 
|  | 3043 | if test -z "$ac_cpp_err"; then | 
|  | 3044 | : | 
|  | 3045 | else | 
|  | 3046 | echo "$as_me: failed program was:" >&5 | 
|  | 3047 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3048 |  | 
|  | 3049 | # Broken: fails on valid input. | 
|  | 3050 | continue | 
|  | 3051 | fi | 
|  | 3052 | rm -f conftest.err conftest.$ac_ext | 
|  | 3053 |  | 
|  | 3054 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 3055 | # can be detected and how. | 
|  | 3056 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3057 | /* confdefs.h.  */ | 
|  | 3058 | _ACEOF | 
|  | 3059 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3060 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3061 | /* end confdefs.h.  */ | 
|  | 3062 | #include <ac_nonexistent.h> | 
|  | 3063 | _ACEOF | 
|  | 3064 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3065 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3066 | ac_status=$? | 
|  | 3067 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3068 | rm -f conftest.er1 | 
|  | 3069 | cat conftest.err >&5 | 
|  | 3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3071 | (exit $ac_status); } >/dev/null; then | 
|  | 3072 | if test -s conftest.err; then | 
|  | 3073 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3074 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3075 | else | 
|  | 3076 | ac_cpp_err= | 
|  | 3077 | fi | 
|  | 3078 | else | 
|  | 3079 | ac_cpp_err=yes | 
|  | 3080 | fi | 
|  | 3081 | if test -z "$ac_cpp_err"; then | 
|  | 3082 | # Broken: success on invalid input. | 
|  | 3083 | continue | 
|  | 3084 | else | 
|  | 3085 | echo "$as_me: failed program was:" >&5 | 
|  | 3086 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3087 |  | 
|  | 3088 | # Passes both tests. | 
|  | 3089 | ac_preproc_ok=: | 
|  | 3090 | break | 
|  | 3091 | fi | 
|  | 3092 | rm -f conftest.err conftest.$ac_ext | 
|  | 3093 |  | 
|  | 3094 | done | 
|  | 3095 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3096 | rm -f conftest.err conftest.$ac_ext | 
|  | 3097 | if $ac_preproc_ok; then | 
|  | 3098 | break | 
|  | 3099 | fi | 
|  | 3100 |  | 
|  | 3101 | done | 
|  | 3102 | ac_cv_prog_CPP=$CPP | 
|  | 3103 |  | 
|  | 3104 | fi | 
|  | 3105 | CPP=$ac_cv_prog_CPP | 
|  | 3106 | else | 
|  | 3107 | ac_cv_prog_CPP=$CPP | 
|  | 3108 | fi | 
|  | 3109 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
|  | 3110 | echo "${ECHO_T}$CPP" >&6 | 
|  | 3111 | ac_preproc_ok=false | 
|  | 3112 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3113 | do | 
|  | 3114 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3115 | # with a fresh cross-compiler works. | 
|  | 3116 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3117 | # <limits.h> exists even on freestanding compilers. | 
|  | 3118 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3119 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 3120 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3121 | /* confdefs.h.  */ | 
|  | 3122 | _ACEOF | 
|  | 3123 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3124 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3125 | /* end confdefs.h.  */ | 
|  | 3126 | #ifdef __STDC__ | 
|  | 3127 | # include <limits.h> | 
|  | 3128 | #else | 
|  | 3129 | # include <assert.h> | 
|  | 3130 | #endif | 
|  | 3131 | Syntax error | 
|  | 3132 | _ACEOF | 
|  | 3133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3135 | ac_status=$? | 
|  | 3136 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3137 | rm -f conftest.er1 | 
|  | 3138 | cat conftest.err >&5 | 
|  | 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3140 | (exit $ac_status); } >/dev/null; then | 
|  | 3141 | if test -s conftest.err; then | 
|  | 3142 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3144 | else | 
|  | 3145 | ac_cpp_err= | 
|  | 3146 | fi | 
|  | 3147 | else | 
|  | 3148 | ac_cpp_err=yes | 
|  | 3149 | fi | 
|  | 3150 | if test -z "$ac_cpp_err"; then | 
|  | 3151 | : | 
|  | 3152 | else | 
|  | 3153 | echo "$as_me: failed program was:" >&5 | 
|  | 3154 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3155 |  | 
|  | 3156 | # Broken: fails on valid input. | 
|  | 3157 | continue | 
|  | 3158 | fi | 
|  | 3159 | rm -f conftest.err conftest.$ac_ext | 
|  | 3160 |  | 
|  | 3161 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 3162 | # can be detected and how. | 
|  | 3163 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3164 | /* confdefs.h.  */ | 
|  | 3165 | _ACEOF | 
|  | 3166 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3167 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3168 | /* end confdefs.h.  */ | 
|  | 3169 | #include <ac_nonexistent.h> | 
|  | 3170 | _ACEOF | 
|  | 3171 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3172 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3173 | ac_status=$? | 
|  | 3174 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3175 | rm -f conftest.er1 | 
|  | 3176 | cat conftest.err >&5 | 
|  | 3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3178 | (exit $ac_status); } >/dev/null; then | 
|  | 3179 | if test -s conftest.err; then | 
|  | 3180 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3181 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3182 | else | 
|  | 3183 | ac_cpp_err= | 
|  | 3184 | fi | 
|  | 3185 | else | 
|  | 3186 | ac_cpp_err=yes | 
|  | 3187 | fi | 
|  | 3188 | if test -z "$ac_cpp_err"; then | 
|  | 3189 | # Broken: success on invalid input. | 
|  | 3190 | continue | 
|  | 3191 | else | 
|  | 3192 | echo "$as_me: failed program was:" >&5 | 
|  | 3193 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3194 |  | 
|  | 3195 | # Passes both tests. | 
|  | 3196 | ac_preproc_ok=: | 
|  | 3197 | break | 
|  | 3198 | fi | 
|  | 3199 | rm -f conftest.err conftest.$ac_ext | 
|  | 3200 |  | 
|  | 3201 | done | 
|  | 3202 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3203 | rm -f conftest.err conftest.$ac_ext | 
|  | 3204 | if $ac_preproc_ok; then | 
|  | 3205 | : | 
|  | 3206 | else | 
|  | 3207 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3208 | See \`config.log' for more details." >&5 | 
|  | 3209 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3210 | See \`config.log' for more details." >&2;} | 
|  | 3211 | { (exit 1); exit 1; }; } | 
|  | 3212 | fi | 
|  | 3213 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3214 | ac_ext=c | 
|  | 3215 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3219 |  | 
|  | 3220 | ac_ext=c | 
|  | 3221 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3225 | if test -n "$ac_tool_prefix"; then | 
|  | 3226 | for ac_prog in gcc | 
|  | 3227 | do | 
|  | 3228 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3229 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 3230 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3232 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3234 | else | 
|  | 3235 | if test -n "$CC"; then | 
|  | 3236 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3237 | else | 
|  | 3238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3239 | for as_dir in $PATH | 
|  | 3240 | do | 
|  | 3241 | IFS=$as_save_IFS | 
|  | 3242 | test -z "$as_dir" && as_dir=. | 
|  | 3243 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3244 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3245 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
|  | 3246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3247 | break 2 | 
|  | 3248 | fi | 
|  | 3249 | done | 
|  | 3250 | done | 
|  | 3251 |  | 
|  | 3252 | fi | 
|  | 3253 | fi | 
|  | 3254 | CC=$ac_cv_prog_CC | 
|  | 3255 | if test -n "$CC"; then | 
|  | 3256 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 3257 | echo "${ECHO_T}$CC" >&6 | 
|  | 3258 | else | 
|  | 3259 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3260 | echo "${ECHO_T}no" >&6 | 
|  | 3261 | fi | 
|  | 3262 |  | 
|  | 3263 | test -n "$CC" && break | 
|  | 3264 | done | 
|  | 3265 | fi | 
|  | 3266 | if test -z "$CC"; then | 
|  | 3267 | ac_ct_CC=$CC | 
|  | 3268 | for ac_prog in gcc | 
|  | 3269 | do | 
|  | 3270 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3271 | set dummy $ac_prog; ac_word=$2 | 
|  | 3272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3274 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 3275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3276 | else | 
|  | 3277 | if test -n "$ac_ct_CC"; then | 
|  | 3278 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3279 | else | 
|  | 3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3281 | for as_dir in $PATH | 
|  | 3282 | do | 
|  | 3283 | IFS=$as_save_IFS | 
|  | 3284 | test -z "$as_dir" && as_dir=. | 
|  | 3285 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3286 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3287 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
|  | 3288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3289 | break 2 | 
|  | 3290 | fi | 
|  | 3291 | done | 
|  | 3292 | done | 
|  | 3293 |  | 
|  | 3294 | fi | 
|  | 3295 | fi | 
|  | 3296 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3297 | if test -n "$ac_ct_CC"; then | 
|  | 3298 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 3299 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
|  | 3300 | else | 
|  | 3301 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3302 | echo "${ECHO_T}no" >&6 | 
|  | 3303 | fi | 
|  | 3304 |  | 
|  | 3305 | test -n "$ac_ct_CC" && break | 
|  | 3306 | done | 
|  | 3307 |  | 
|  | 3308 | CC=$ac_ct_CC | 
|  | 3309 | fi | 
|  | 3310 |  | 
|  | 3311 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3312 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
|  | 3313 | See \`config.log' for more details." >&5 | 
|  | 3314 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
|  | 3315 | See \`config.log' for more details." >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3316 | { (exit 1); exit 1; }; } | 
|  | 3317 |  | 
|  | 3318 | # Provide some information about the compiler. | 
|  | 3319 | echo "$as_me:$LINENO:" \ | 
|  | 3320 | "checking for C compiler version" >&5 | 
|  | 3321 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 3322 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 3323 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 3324 | ac_status=$? | 
|  | 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3326 | (exit $ac_status); } | 
|  | 3327 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 3328 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 3329 | ac_status=$? | 
|  | 3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3331 | (exit $ac_status); } | 
|  | 3332 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 3333 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 3334 | ac_status=$? | 
|  | 3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3336 | (exit $ac_status); } | 
|  | 3337 |  | 
|  | 3338 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
|  | 3339 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
|  | 3340 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
|  | 3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3342 | else | 
|  | 3343 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3344 | /* confdefs.h.  */ | 
|  | 3345 | _ACEOF | 
|  | 3346 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3347 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3348 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3349 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3350 | int | 
|  | 3351 | main () | 
|  | 3352 | { | 
|  | 3353 | #ifndef __GNUC__ | 
|  | 3354 | choke me | 
|  | 3355 | #endif | 
|  | 3356 |  | 
|  | 3357 | ; | 
|  | 3358 | return 0; | 
|  | 3359 | } | 
|  | 3360 | _ACEOF | 
|  | 3361 | rm -f conftest.$ac_objext | 
|  | 3362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3363 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3364 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3365 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3366 | rm -f conftest.er1 | 
|  | 3367 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3369 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3370 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3371 | || test ! -s conftest.err' | 
|  | 3372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3373 | (eval $ac_try) 2>&5 | 
|  | 3374 | ac_status=$? | 
|  | 3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3376 | (exit $ac_status); }; } && | 
|  | 3377 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3379 | (eval $ac_try) 2>&5 | 
|  | 3380 | ac_status=$? | 
|  | 3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3382 | (exit $ac_status); }; }; then | 
|  | 3383 | ac_compiler_gnu=yes | 
|  | 3384 | else | 
|  | 3385 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3386 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3387 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3388 | ac_compiler_gnu=no | 
|  | 3389 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3391 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 3392 |  | 
|  | 3393 | fi | 
|  | 3394 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 3395 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
|  | 3396 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 3397 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 3398 | ac_save_CFLAGS=$CFLAGS | 
|  | 3399 | CFLAGS="-g" | 
|  | 3400 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
|  | 3401 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
|  | 3402 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
|  | 3403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3404 | else | 
|  | 3405 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3406 | /* confdefs.h.  */ | 
|  | 3407 | _ACEOF | 
|  | 3408 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3409 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3410 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3411 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3412 | int | 
|  | 3413 | main () | 
|  | 3414 | { | 
|  | 3415 |  | 
|  | 3416 | ; | 
|  | 3417 | return 0; | 
|  | 3418 | } | 
|  | 3419 | _ACEOF | 
|  | 3420 | rm -f conftest.$ac_objext | 
|  | 3421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3422 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3423 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3424 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3425 | rm -f conftest.er1 | 
|  | 3426 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3428 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3429 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3430 | || test ! -s conftest.err' | 
|  | 3431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3432 | (eval $ac_try) 2>&5 | 
|  | 3433 | ac_status=$? | 
|  | 3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3435 | (exit $ac_status); }; } && | 
|  | 3436 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3438 | (eval $ac_try) 2>&5 | 
|  | 3439 | ac_status=$? | 
|  | 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3441 | (exit $ac_status); }; }; then | 
|  | 3442 | ac_cv_prog_cc_g=yes | 
|  | 3443 | else | 
|  | 3444 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3445 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3446 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3447 | ac_cv_prog_cc_g=no | 
|  | 3448 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3450 | fi | 
|  | 3451 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
|  | 3452 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
|  | 3453 | if test "$ac_test_CFLAGS" = set; then | 
|  | 3454 | CFLAGS=$ac_save_CFLAGS | 
|  | 3455 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 3456 | if test "$GCC" = yes; then | 
|  | 3457 | CFLAGS="-g -O2" | 
|  | 3458 | else | 
|  | 3459 | CFLAGS="-g" | 
|  | 3460 | fi | 
|  | 3461 | else | 
|  | 3462 | if test "$GCC" = yes; then | 
|  | 3463 | CFLAGS="-O2" | 
|  | 3464 | else | 
|  | 3465 | CFLAGS= | 
|  | 3466 | fi | 
|  | 3467 | fi | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3468 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
|  | 3469 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
|  | 3470 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
|  | 3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3472 | else | 
|  | 3473 | ac_cv_prog_cc_stdc=no | 
|  | 3474 | ac_save_CC=$CC | 
|  | 3475 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3476 | /* confdefs.h.  */ | 
|  | 3477 | _ACEOF | 
|  | 3478 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3479 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3480 | /* end confdefs.h.  */ | 
|  | 3481 | #include <stdarg.h> | 
|  | 3482 | #include <stdio.h> | 
|  | 3483 | #include <sys/types.h> | 
|  | 3484 | #include <sys/stat.h> | 
|  | 3485 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 3486 | struct buf { int x; }; | 
|  | 3487 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 3488 | static char *e (p, i) | 
|  | 3489 | char **p; | 
|  | 3490 | int i; | 
|  | 3491 | { | 
|  | 3492 | return p[i]; | 
|  | 3493 | } | 
|  | 3494 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 3495 | { | 
|  | 3496 | char *s; | 
|  | 3497 | va_list v; | 
|  | 3498 | va_start (v,p); | 
|  | 3499 | s = g (p, va_arg (v,int)); | 
|  | 3500 | va_end (v); | 
|  | 3501 | return s; | 
|  | 3502 | } | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3503 |  | 
|  | 3504 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 3505 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 3506 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 3507 | as 'x'.  The following induces an error, until -std1 is added to get | 
|  | 3508 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 3509 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 3510 | that's true only with -std1.  */ | 
|  | 3511 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 3512 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3513 | int test (int i, double x); | 
|  | 3514 | struct s1 {int (*f) (int a);}; | 
|  | 3515 | struct s2 {int (*f) (double a);}; | 
|  | 3516 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 3517 | int argc; | 
|  | 3518 | char **argv; | 
|  | 3519 | int | 
|  | 3520 | main () | 
|  | 3521 | { | 
|  | 3522 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 3523 | ; | 
|  | 3524 | return 0; | 
|  | 3525 | } | 
|  | 3526 | _ACEOF | 
|  | 3527 | # Don't try gcc -ansi; that turns off useful extensions and | 
|  | 3528 | # breaks some systems' header files. | 
|  | 3529 | # AIX			-qlanglvl=ansi | 
|  | 3530 | # Ultrix and OSF/1	-std1 | 
|  | 3531 | # HP-UX 10.20 and later	-Ae | 
|  | 3532 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
|  | 3533 | # SVR4			-Xc -D__EXTENSIONS__ | 
|  | 3534 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 3535 | do | 
|  | 3536 | CC="$ac_save_CC $ac_arg" | 
|  | 3537 | rm -f conftest.$ac_objext | 
|  | 3538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3539 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3540 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3541 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3542 | rm -f conftest.er1 | 
|  | 3543 | cat conftest.err >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3545 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3546 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3547 | || test ! -s conftest.err' | 
|  | 3548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3549 | (eval $ac_try) 2>&5 | 
|  | 3550 | ac_status=$? | 
|  | 3551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3552 | (exit $ac_status); }; } && | 
|  | 3553 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3555 | (eval $ac_try) 2>&5 | 
|  | 3556 | ac_status=$? | 
|  | 3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3558 | (exit $ac_status); }; }; then | 
|  | 3559 | ac_cv_prog_cc_stdc=$ac_arg | 
|  | 3560 | break | 
|  | 3561 | else | 
|  | 3562 | echo "$as_me: failed program was:" >&5 | 
|  | 3563 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3564 |  | 
|  | 3565 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3566 | rm -f conftest.err conftest.$ac_objext | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3567 | done | 
|  | 3568 | rm -f conftest.$ac_ext conftest.$ac_objext | 
|  | 3569 | CC=$ac_save_CC | 
|  | 3570 |  | 
|  | 3571 | fi | 
|  | 3572 |  | 
|  | 3573 | case "x$ac_cv_prog_cc_stdc" in | 
|  | 3574 | x|xno) | 
|  | 3575 | echo "$as_me:$LINENO: result: none needed" >&5 | 
|  | 3576 | echo "${ECHO_T}none needed" >&6 ;; | 
|  | 3577 | *) | 
|  | 3578 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
|  | 3579 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
|  | 3580 | CC="$CC $ac_cv_prog_cc_stdc" ;; | 
|  | 3581 | esac | 
|  | 3582 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3583 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
|  | 3584 | # in C++ we need to declare it.  In case someone uses the same compiler | 
|  | 3585 | # for both compiling C and C++ we need to have the C++ compiler decide | 
|  | 3586 | # the declaration of exit, since it's the most demanding environment. | 
|  | 3587 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3588 | #ifndef __cplusplus | 
|  | 3589 | choke me | 
|  | 3590 | #endif | 
|  | 3591 | _ACEOF | 
|  | 3592 | rm -f conftest.$ac_objext | 
|  | 3593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3594 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3595 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3596 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3597 | rm -f conftest.er1 | 
|  | 3598 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3600 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3601 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3602 | || test ! -s conftest.err' | 
|  | 3603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3604 | (eval $ac_try) 2>&5 | 
|  | 3605 | ac_status=$? | 
|  | 3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3607 | (exit $ac_status); }; } && | 
|  | 3608 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3610 | (eval $ac_try) 2>&5 | 
|  | 3611 | ac_status=$? | 
|  | 3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3613 | (exit $ac_status); }; }; then | 
|  | 3614 | for ac_declaration in \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3615 | '' \ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3616 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 3617 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 3618 | 'extern "C" void exit (int) throw ();' \ | 
|  | 3619 | 'extern "C" void exit (int);' \ | 
|  | 3620 | 'void exit (int);' | 
|  | 3621 | do | 
|  | 3622 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3623 | /* confdefs.h.  */ | 
|  | 3624 | _ACEOF | 
|  | 3625 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3626 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3627 | /* end confdefs.h.  */ | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3628 | $ac_declaration | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3629 | #include <stdlib.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3630 | int | 
|  | 3631 | main () | 
|  | 3632 | { | 
|  | 3633 | exit (42); | 
|  | 3634 | ; | 
|  | 3635 | return 0; | 
|  | 3636 | } | 
|  | 3637 | _ACEOF | 
|  | 3638 | rm -f conftest.$ac_objext | 
|  | 3639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3640 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3641 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3642 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3643 | rm -f conftest.er1 | 
|  | 3644 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3646 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3647 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3648 | || test ! -s conftest.err' | 
|  | 3649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3650 | (eval $ac_try) 2>&5 | 
|  | 3651 | ac_status=$? | 
|  | 3652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3653 | (exit $ac_status); }; } && | 
|  | 3654 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3656 | (eval $ac_try) 2>&5 | 
|  | 3657 | ac_status=$? | 
|  | 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3659 | (exit $ac_status); }; }; then | 
|  | 3660 | : | 
|  | 3661 | else | 
|  | 3662 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3663 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3664 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3665 | continue | 
|  | 3666 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3668 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3669 | /* confdefs.h.  */ | 
|  | 3670 | _ACEOF | 
|  | 3671 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3672 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3673 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3674 | $ac_declaration | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3675 | int | 
|  | 3676 | main () | 
|  | 3677 | { | 
|  | 3678 | exit (42); | 
|  | 3679 | ; | 
|  | 3680 | return 0; | 
|  | 3681 | } | 
|  | 3682 | _ACEOF | 
|  | 3683 | rm -f conftest.$ac_objext | 
|  | 3684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3685 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3686 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3687 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3688 | rm -f conftest.er1 | 
|  | 3689 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3691 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3692 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3693 | || test ! -s conftest.err' | 
|  | 3694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3695 | (eval $ac_try) 2>&5 | 
|  | 3696 | ac_status=$? | 
|  | 3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3698 | (exit $ac_status); }; } && | 
|  | 3699 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3701 | (eval $ac_try) 2>&5 | 
|  | 3702 | ac_status=$? | 
|  | 3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3704 | (exit $ac_status); }; }; then | 
|  | 3705 | break | 
|  | 3706 | else | 
|  | 3707 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3708 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3709 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3710 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3712 | done | 
|  | 3713 | rm -f conftest* | 
|  | 3714 | if test -n "$ac_declaration"; then | 
|  | 3715 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 3716 | echo $ac_declaration      >>confdefs.h | 
|  | 3717 | echo '#endif'             >>confdefs.h | 
|  | 3718 | fi | 
|  | 3719 |  | 
|  | 3720 | else | 
|  | 3721 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3722 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3723 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3724 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3726 | ac_ext=c | 
|  | 3727 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3731 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3732 | ac_ext=cc | 
|  | 3733 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 3734 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3735 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3736 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 3737 | if test -n "$ac_tool_prefix"; then | 
|  | 3738 | for ac_prog in $CCC g++ | 
|  | 3739 | do | 
|  | 3740 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3741 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 3742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3744 | if test "${ac_cv_prog_CXX+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3746 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3747 | if test -n "$CXX"; then | 
|  | 3748 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 3749 | else | 
|  | 3750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3751 | for as_dir in $PATH | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3752 | do | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3753 | IFS=$as_save_IFS | 
|  | 3754 | test -z "$as_dir" && as_dir=. | 
|  | 3755 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3757 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
|  | 3758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3759 | break 2 | 
|  | 3760 | fi | 
|  | 3761 | done | 
|  | 3762 | done | 
|  | 3763 |  | 
|  | 3764 | fi | 
|  | 3765 | fi | 
|  | 3766 | CXX=$ac_cv_prog_CXX | 
|  | 3767 | if test -n "$CXX"; then | 
|  | 3768 | echo "$as_me:$LINENO: result: $CXX" >&5 | 
|  | 3769 | echo "${ECHO_T}$CXX" >&6 | 
|  | 3770 | else | 
|  | 3771 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3772 | echo "${ECHO_T}no" >&6 | 
|  | 3773 | fi | 
|  | 3774 |  | 
|  | 3775 | test -n "$CXX" && break | 
|  | 3776 | done | 
|  | 3777 | fi | 
|  | 3778 | if test -z "$CXX"; then | 
|  | 3779 | ac_ct_CXX=$CXX | 
|  | 3780 | for ac_prog in $CCC g++ | 
|  | 3781 | do | 
|  | 3782 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3783 | set dummy $ac_prog; ac_word=$2 | 
|  | 3784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3786 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
|  | 3787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3788 | else | 
|  | 3789 | if test -n "$ac_ct_CXX"; then | 
|  | 3790 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 3791 | else | 
|  | 3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3793 | for as_dir in $PATH | 
|  | 3794 | do | 
|  | 3795 | IFS=$as_save_IFS | 
|  | 3796 | test -z "$as_dir" && as_dir=. | 
|  | 3797 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3799 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 3800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3801 | break 2 | 
|  | 3802 | fi | 
|  | 3803 | done | 
|  | 3804 | done | 
|  | 3805 |  | 
|  | 3806 | fi | 
|  | 3807 | fi | 
|  | 3808 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 3809 | if test -n "$ac_ct_CXX"; then | 
|  | 3810 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
|  | 3811 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
|  | 3812 | else | 
|  | 3813 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3814 | echo "${ECHO_T}no" >&6 | 
|  | 3815 | fi | 
|  | 3816 |  | 
|  | 3817 | test -n "$ac_ct_CXX" && break | 
|  | 3818 | done | 
|  | 3819 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
|  | 3820 |  | 
|  | 3821 | CXX=$ac_ct_CXX | 
|  | 3822 | fi | 
|  | 3823 |  | 
|  | 3824 |  | 
|  | 3825 | # Provide some information about the compiler. | 
|  | 3826 | echo "$as_me:$LINENO:" \ | 
|  | 3827 | "checking for C++ compiler version" >&5 | 
|  | 3828 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 3829 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 3830 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 3831 | ac_status=$? | 
|  | 3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3833 | (exit $ac_status); } | 
|  | 3834 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 3835 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 3836 | ac_status=$? | 
|  | 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3838 | (exit $ac_status); } | 
|  | 3839 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 3840 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 3841 | ac_status=$? | 
|  | 3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3843 | (exit $ac_status); } | 
|  | 3844 |  | 
|  | 3845 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
|  | 3846 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
|  | 3847 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
|  | 3848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3849 | else | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3850 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3851 | /* confdefs.h.  */ | 
|  | 3852 | _ACEOF | 
|  | 3853 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3854 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3855 | /* end confdefs.h.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3856 |  | 
|  | 3857 | int | 
|  | 3858 | main () | 
|  | 3859 | { | 
|  | 3860 | #ifndef __GNUC__ | 
|  | 3861 | choke me | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3862 | #endif | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3863 |  | 
|  | 3864 | ; | 
|  | 3865 | return 0; | 
|  | 3866 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3867 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3868 | rm -f conftest.$ac_objext | 
|  | 3869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 3870 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3872 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3873 | rm -f conftest.er1 | 
|  | 3874 | cat conftest.err >&5 | 
|  | 3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3876 | (exit $ac_status); } && | 
|  | 3877 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 3878 | || test ! -s conftest.err' | 
|  | 3879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3880 | (eval $ac_try) 2>&5 | 
|  | 3881 | ac_status=$? | 
|  | 3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3883 | (exit $ac_status); }; } && | 
|  | 3884 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3886 | (eval $ac_try) 2>&5 | 
|  | 3887 | ac_status=$? | 
|  | 3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3889 | (exit $ac_status); }; }; then | 
|  | 3890 | ac_compiler_gnu=yes | 
|  | 3891 | else | 
|  | 3892 | echo "$as_me: failed program was:" >&5 | 
|  | 3893 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3894 |  | 
|  | 3895 | ac_compiler_gnu=no | 
|  | 3896 | fi | 
|  | 3897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3898 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 3899 |  | 
|  | 3900 | fi | 
|  | 3901 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
|  | 3902 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
|  | 3903 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 3904 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 3905 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 3906 | CXXFLAGS="-g" | 
|  | 3907 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
|  | 3908 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
|  | 3909 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
|  | 3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3911 | else | 
|  | 3912 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3913 | /* confdefs.h.  */ | 
|  | 3914 | _ACEOF | 
|  | 3915 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3916 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3917 | /* end confdefs.h.  */ | 
|  | 3918 |  | 
|  | 3919 | int | 
|  | 3920 | main () | 
|  | 3921 | { | 
|  | 3922 |  | 
|  | 3923 | ; | 
|  | 3924 | return 0; | 
|  | 3925 | } | 
|  | 3926 | _ACEOF | 
|  | 3927 | rm -f conftest.$ac_objext | 
|  | 3928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 3929 | (eval $ac_compile) 2>conftest.er1 | 
|  | 3930 | ac_status=$? | 
|  | 3931 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3932 | rm -f conftest.er1 | 
|  | 3933 | cat conftest.err >&5 | 
|  | 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3935 | (exit $ac_status); } && | 
|  | 3936 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 3937 | || test ! -s conftest.err' | 
|  | 3938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3939 | (eval $ac_try) 2>&5 | 
|  | 3940 | ac_status=$? | 
|  | 3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3942 | (exit $ac_status); }; } && | 
|  | 3943 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3945 | (eval $ac_try) 2>&5 | 
|  | 3946 | ac_status=$? | 
|  | 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3948 | (exit $ac_status); }; }; then | 
|  | 3949 | ac_cv_prog_cxx_g=yes | 
|  | 3950 | else | 
|  | 3951 | echo "$as_me: failed program was:" >&5 | 
|  | 3952 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3953 |  | 
|  | 3954 | ac_cv_prog_cxx_g=no | 
|  | 3955 | fi | 
|  | 3956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 3957 | fi | 
|  | 3958 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
|  | 3959 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
|  | 3960 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 3961 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 3962 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 3963 | if test "$GXX" = yes; then | 
|  | 3964 | CXXFLAGS="-g -O2" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3965 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3966 | CXXFLAGS="-g" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3967 | fi | 
|  | 3968 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3969 | if test "$GXX" = yes; then | 
|  | 3970 | CXXFLAGS="-O2" | 
|  | 3971 | else | 
|  | 3972 | CXXFLAGS= | 
|  | 3973 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3975 | for ac_declaration in \ | 
|  | 3976 | '' \ | 
|  | 3977 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 3978 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 3979 | 'extern "C" void exit (int) throw ();' \ | 
|  | 3980 | 'extern "C" void exit (int);' \ | 
|  | 3981 | 'void exit (int);' | 
|  | 3982 | do | 
|  | 3983 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3984 | /* confdefs.h.  */ | 
|  | 3985 | _ACEOF | 
|  | 3986 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3987 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3988 | /* end confdefs.h.  */ | 
|  | 3989 | $ac_declaration | 
|  | 3990 | #include <stdlib.h> | 
|  | 3991 | int | 
|  | 3992 | main () | 
|  | 3993 | { | 
|  | 3994 | exit (42); | 
|  | 3995 | ; | 
|  | 3996 | return 0; | 
|  | 3997 | } | 
|  | 3998 | _ACEOF | 
|  | 3999 | rm -f conftest.$ac_objext | 
|  | 4000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4001 | (eval $ac_compile) 2>conftest.er1 | 
|  | 4002 | ac_status=$? | 
|  | 4003 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4004 | rm -f conftest.er1 | 
|  | 4005 | cat conftest.err >&5 | 
|  | 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4007 | (exit $ac_status); } && | 
|  | 4008 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 4009 | || test ! -s conftest.err' | 
|  | 4010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4011 | (eval $ac_try) 2>&5 | 
|  | 4012 | ac_status=$? | 
|  | 4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4014 | (exit $ac_status); }; } && | 
|  | 4015 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4017 | (eval $ac_try) 2>&5 | 
|  | 4018 | ac_status=$? | 
|  | 4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4020 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4021 | : | 
|  | 4022 | else | 
|  | 4023 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4024 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4025 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4026 | continue | 
|  | 4027 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4029 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4030 | /* confdefs.h.  */ | 
|  | 4031 | _ACEOF | 
|  | 4032 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4033 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4034 | /* end confdefs.h.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4035 | $ac_declaration | 
|  | 4036 | int | 
|  | 4037 | main () | 
|  | 4038 | { | 
|  | 4039 | exit (42); | 
|  | 4040 | ; | 
|  | 4041 | return 0; | 
|  | 4042 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4043 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4044 | rm -f conftest.$ac_objext | 
|  | 4045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4046 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4047 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4048 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4049 | rm -f conftest.er1 | 
|  | 4050 | cat conftest.err >&5 | 
|  | 4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4052 | (exit $ac_status); } && | 
|  | 4053 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 4054 | || test ! -s conftest.err' | 
|  | 4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4056 | (eval $ac_try) 2>&5 | 
|  | 4057 | ac_status=$? | 
|  | 4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4059 | (exit $ac_status); }; } && | 
|  | 4060 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4062 | (eval $ac_try) 2>&5 | 
|  | 4063 | ac_status=$? | 
|  | 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4065 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4066 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4067 | else | 
|  | 4068 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4069 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4070 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4071 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4073 | done | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4074 | rm -f conftest* | 
|  | 4075 | if test -n "$ac_declaration"; then | 
|  | 4076 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 4077 | echo $ac_declaration      >>confdefs.h | 
|  | 4078 | echo '#endif'             >>confdefs.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4079 | fi | 
|  | 4080 |  | 
|  | 4081 | ac_ext=c | 
|  | 4082 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4086 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4087 | echo "$as_me:$LINENO: checking " >&5 | 
|  | 4088 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
|  | 4089 | if test "${ac_cv_has_flex+set}" = set; then | 
|  | 4090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4091 | else | 
|  | 4092 | for ac_prog in flex lex | 
|  | 4093 | do | 
|  | 4094 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4095 | set dummy $ac_prog; ac_word=$2 | 
|  | 4096 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4098 | if test "${ac_cv_prog_LEX+set}" = set; then | 
|  | 4099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4100 | else | 
|  | 4101 | if test -n "$LEX"; then | 
|  | 4102 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
|  | 4103 | else | 
|  | 4104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4105 | for as_dir in $PATH | 
|  | 4106 | do | 
|  | 4107 | IFS=$as_save_IFS | 
|  | 4108 | test -z "$as_dir" && as_dir=. | 
|  | 4109 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4110 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4111 | ac_cv_prog_LEX="$ac_prog" | 
|  | 4112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4113 | break 2 | 
|  | 4114 | fi | 
|  | 4115 | done | 
|  | 4116 | done | 
|  | 4117 |  | 
|  | 4118 | fi | 
|  | 4119 | fi | 
|  | 4120 | LEX=$ac_cv_prog_LEX | 
|  | 4121 | if test -n "$LEX"; then | 
|  | 4122 | echo "$as_me:$LINENO: result: $LEX" >&5 | 
|  | 4123 | echo "${ECHO_T}$LEX" >&6 | 
|  | 4124 | else | 
|  | 4125 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4126 | echo "${ECHO_T}no" >&6 | 
|  | 4127 | fi | 
|  | 4128 |  | 
|  | 4129 | test -n "$LEX" && break | 
|  | 4130 | done | 
|  | 4131 | test -n "$LEX" || LEX=":" | 
|  | 4132 |  | 
|  | 4133 | if test -z "$LEXLIB" | 
|  | 4134 | then | 
|  | 4135 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
|  | 4136 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
|  | 4137 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
|  | 4138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4139 | else | 
|  | 4140 | ac_check_lib_save_LIBS=$LIBS | 
|  | 4141 | LIBS="-lfl  $LIBS" | 
|  | 4142 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4143 | /* confdefs.h.  */ | 
|  | 4144 | _ACEOF | 
|  | 4145 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4146 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4147 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4148 |  | 
|  | 4149 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4150 | #ifdef __cplusplus | 
|  | 4151 | extern "C" | 
|  | 4152 | #endif | 
|  | 4153 | /* We use char because int might match the return type of a gcc2 | 
|  | 4154 | builtin and then its argument prototype would still apply.  */ | 
|  | 4155 | char yywrap (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4156 | int | 
|  | 4157 | main () | 
|  | 4158 | { | 
|  | 4159 | yywrap (); | 
|  | 4160 | ; | 
|  | 4161 | return 0; | 
|  | 4162 | } | 
|  | 4163 | _ACEOF | 
|  | 4164 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 4165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4166 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4167 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4168 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4169 | rm -f conftest.er1 | 
|  | 4170 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4172 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4173 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 4174 | || test ! -s conftest.err' | 
|  | 4175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4176 | (eval $ac_try) 2>&5 | 
|  | 4177 | ac_status=$? | 
|  | 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4179 | (exit $ac_status); }; } && | 
|  | 4180 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4182 | (eval $ac_try) 2>&5 | 
|  | 4183 | ac_status=$? | 
|  | 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4185 | (exit $ac_status); }; }; then | 
|  | 4186 | ac_cv_lib_fl_yywrap=yes | 
|  | 4187 | else | 
|  | 4188 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4189 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4190 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4191 | ac_cv_lib_fl_yywrap=no | 
|  | 4192 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4193 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 4194 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4195 | LIBS=$ac_check_lib_save_LIBS | 
|  | 4196 | fi | 
|  | 4197 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
|  | 4198 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
|  | 4199 | if test $ac_cv_lib_fl_yywrap = yes; then | 
|  | 4200 | LEXLIB="-lfl" | 
|  | 4201 | else | 
|  | 4202 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
|  | 4203 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
|  | 4204 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
|  | 4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4206 | else | 
|  | 4207 | ac_check_lib_save_LIBS=$LIBS | 
|  | 4208 | LIBS="-ll  $LIBS" | 
|  | 4209 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4210 | /* confdefs.h.  */ | 
|  | 4211 | _ACEOF | 
|  | 4212 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4213 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4214 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4215 |  | 
|  | 4216 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4217 | #ifdef __cplusplus | 
|  | 4218 | extern "C" | 
|  | 4219 | #endif | 
|  | 4220 | /* We use char because int might match the return type of a gcc2 | 
|  | 4221 | builtin and then its argument prototype would still apply.  */ | 
|  | 4222 | char yywrap (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4223 | int | 
|  | 4224 | main () | 
|  | 4225 | { | 
|  | 4226 | yywrap (); | 
|  | 4227 | ; | 
|  | 4228 | return 0; | 
|  | 4229 | } | 
|  | 4230 | _ACEOF | 
|  | 4231 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 4232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4233 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4234 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4235 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4236 | rm -f conftest.er1 | 
|  | 4237 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4239 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4240 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 4241 | || test ! -s conftest.err' | 
|  | 4242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4243 | (eval $ac_try) 2>&5 | 
|  | 4244 | ac_status=$? | 
|  | 4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4246 | (exit $ac_status); }; } && | 
|  | 4247 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4249 | (eval $ac_try) 2>&5 | 
|  | 4250 | ac_status=$? | 
|  | 4251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4252 | (exit $ac_status); }; }; then | 
|  | 4253 | ac_cv_lib_l_yywrap=yes | 
|  | 4254 | else | 
|  | 4255 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4256 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4257 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4258 | ac_cv_lib_l_yywrap=no | 
|  | 4259 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4260 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 4261 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4262 | LIBS=$ac_check_lib_save_LIBS | 
|  | 4263 | fi | 
|  | 4264 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
|  | 4265 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
|  | 4266 | if test $ac_cv_lib_l_yywrap = yes; then | 
|  | 4267 | LEXLIB="-ll" | 
|  | 4268 | fi | 
|  | 4269 |  | 
|  | 4270 | fi | 
|  | 4271 |  | 
|  | 4272 | fi | 
|  | 4273 |  | 
|  | 4274 | if test "x$LEX" != "x:"; then | 
|  | 4275 | echo "$as_me:$LINENO: checking lex output file root" >&5 | 
|  | 4276 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
|  | 4277 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
|  | 4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4279 | else | 
|  | 4280 | # The minimal lex program is just a single line: %%.  But some broken lexes | 
|  | 4281 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
|  | 4282 | cat >conftest.l <<_ACEOF | 
|  | 4283 | %% | 
|  | 4284 | %% | 
|  | 4285 | _ACEOF | 
|  | 4286 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
|  | 4287 | (eval $LEX conftest.l) 2>&5 | 
|  | 4288 | ac_status=$? | 
|  | 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4290 | (exit $ac_status); } | 
|  | 4291 | if test -f lex.yy.c; then | 
|  | 4292 | ac_cv_prog_lex_root=lex.yy | 
|  | 4293 | elif test -f lexyy.c; then | 
|  | 4294 | ac_cv_prog_lex_root=lexyy | 
|  | 4295 | else | 
|  | 4296 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
|  | 4297 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
|  | 4298 | { (exit 1); exit 1; }; } | 
|  | 4299 | fi | 
|  | 4300 | fi | 
|  | 4301 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
|  | 4302 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
|  | 4303 | rm -f conftest.l | 
|  | 4304 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
|  | 4305 |  | 
|  | 4306 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
|  | 4307 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
|  | 4308 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
|  | 4309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4310 | else | 
|  | 4311 | # POSIX says lex can declare yytext either as a pointer or an array; the | 
|  | 4312 | # default is implementation-dependent. Figure out which it is, since | 
|  | 4313 | # not all implementations provide the %pointer and %array declarations. | 
|  | 4314 | ac_cv_prog_lex_yytext_pointer=no | 
|  | 4315 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
|  | 4316 | ac_save_LIBS=$LIBS | 
|  | 4317 | LIBS="$LIBS $LEXLIB" | 
|  | 4318 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4319 | `cat $LEX_OUTPUT_ROOT.c` | 
|  | 4320 | _ACEOF | 
|  | 4321 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 4322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4323 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4324 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4325 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4326 | rm -f conftest.er1 | 
|  | 4327 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4329 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4330 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 4331 | || test ! -s conftest.err' | 
|  | 4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4333 | (eval $ac_try) 2>&5 | 
|  | 4334 | ac_status=$? | 
|  | 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4336 | (exit $ac_status); }; } && | 
|  | 4337 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4339 | (eval $ac_try) 2>&5 | 
|  | 4340 | ac_status=$? | 
|  | 4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4342 | (exit $ac_status); }; }; then | 
|  | 4343 | ac_cv_prog_lex_yytext_pointer=yes | 
|  | 4344 | else | 
|  | 4345 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4346 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4347 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4348 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4349 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 4350 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4351 | LIBS=$ac_save_LIBS | 
|  | 4352 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
|  | 4353 |  | 
|  | 4354 | fi | 
|  | 4355 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
|  | 4356 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
|  | 4357 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
|  | 4358 |  | 
|  | 4359 | cat >>confdefs.h <<\_ACEOF | 
|  | 4360 | #define YYTEXT_POINTER 1 | 
|  | 4361 | _ACEOF | 
|  | 4362 |  | 
|  | 4363 | fi | 
|  | 4364 |  | 
|  | 4365 | fi | 
|  | 4366 |  | 
|  | 4367 | fi | 
|  | 4368 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
|  | 4369 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
|  | 4370 | if test "$LEX" != "flex"; then | 
|  | 4371 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
|  | 4372 | echo "$as_me: error: flex not found but required" >&2;} | 
|  | 4373 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 1a2f043 | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4374 | else | 
|  | 4375 | FLEX=flex | 
|  | 4376 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4377 | fi | 
|  | 4378 |  | 
|  | 4379 | echo "$as_me:$LINENO: checking " >&5 | 
|  | 4380 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4381 | if test "${llvm_cv_has_bison+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4383 | else | 
|  | 4384 | for ac_prog in 'bison -y' byacc | 
|  | 4385 | do | 
|  | 4386 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4387 | set dummy $ac_prog; ac_word=$2 | 
|  | 4388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4390 | if test "${ac_cv_prog_YACC+set}" = set; then | 
|  | 4391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4392 | else | 
|  | 4393 | if test -n "$YACC"; then | 
|  | 4394 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
|  | 4395 | else | 
|  | 4396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4397 | for as_dir in $PATH | 
|  | 4398 | do | 
|  | 4399 | IFS=$as_save_IFS | 
|  | 4400 | test -z "$as_dir" && as_dir=. | 
|  | 4401 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4402 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4403 | ac_cv_prog_YACC="$ac_prog" | 
|  | 4404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4405 | break 2 | 
|  | 4406 | fi | 
|  | 4407 | done | 
|  | 4408 | done | 
|  | 4409 |  | 
|  | 4410 | fi | 
|  | 4411 | fi | 
|  | 4412 | YACC=$ac_cv_prog_YACC | 
|  | 4413 | if test -n "$YACC"; then | 
|  | 4414 | echo "$as_me:$LINENO: result: $YACC" >&5 | 
|  | 4415 | echo "${ECHO_T}$YACC" >&6 | 
|  | 4416 | else | 
|  | 4417 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4418 | echo "${ECHO_T}no" >&6 | 
|  | 4419 | fi | 
|  | 4420 |  | 
|  | 4421 | test -n "$YACC" && break | 
|  | 4422 | done | 
|  | 4423 | test -n "$YACC" || YACC="yacc" | 
|  | 4424 |  | 
|  | 4425 |  | 
|  | 4426 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4427 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 | 
|  | 4428 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4429 | if test "$YACC" != "bison -y"; then | 
|  | 4430 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
|  | 4431 | echo "$as_me: error: bison not found but required" >&2;} | 
|  | 4432 | { (exit 1); exit 1; }; } | 
|  | 4433 | else | 
| Brian Gaeke | 07e4621 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4434 | BISON=bison | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4435 |  | 
|  | 4436 | fi | 
|  | 4437 |  | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 4438 |  | 
|  | 4439 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4440 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4441 | # Check whether --enable-shared or --disable-shared was given. | 
|  | 4442 | if test "${enable_shared+set}" = set; then | 
|  | 4443 | enableval="$enable_shared" | 
|  | 4444 | p=${PACKAGE-default} | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4445 | case $enableval in | 
|  | 4446 | yes) enable_shared=yes ;; | 
|  | 4447 | no) enable_shared=no ;; | 
|  | 4448 | *) | 
|  | 4449 | enable_shared=no | 
|  | 4450 | # Look at the argument we got.  We use all the common list separators. | 
|  | 4451 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 4452 | for pkg in $enableval; do | 
|  | 4453 | IFS="$lt_save_ifs" | 
|  | 4454 | if test "X$pkg" = "X$p"; then | 
|  | 4455 | enable_shared=yes | 
|  | 4456 | fi | 
|  | 4457 | done | 
|  | 4458 | IFS="$lt_save_ifs" | 
|  | 4459 | ;; | 
|  | 4460 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4461 | else | 
|  | 4462 | enable_shared=yes | 
|  | 4463 | fi; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4464 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4465 | # Check whether --enable-static or --disable-static was given. | 
|  | 4466 | if test "${enable_static+set}" = set; then | 
|  | 4467 | enableval="$enable_static" | 
|  | 4468 | p=${PACKAGE-default} | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4469 | case $enableval in | 
|  | 4470 | yes) enable_static=yes ;; | 
|  | 4471 | no) enable_static=no ;; | 
|  | 4472 | *) | 
|  | 4473 | enable_static=no | 
|  | 4474 | # Look at the argument we got.  We use all the common list separators. | 
|  | 4475 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 4476 | for pkg in $enableval; do | 
|  | 4477 | IFS="$lt_save_ifs" | 
|  | 4478 | if test "X$pkg" = "X$p"; then | 
|  | 4479 | enable_static=yes | 
|  | 4480 | fi | 
|  | 4481 | done | 
|  | 4482 | IFS="$lt_save_ifs" | 
|  | 4483 | ;; | 
|  | 4484 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4485 | else | 
|  | 4486 | enable_static=yes | 
|  | 4487 | fi; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4488 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4489 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
|  | 4490 | if test "${enable_fast_install+set}" = set; then | 
|  | 4491 | enableval="$enable_fast_install" | 
|  | 4492 | p=${PACKAGE-default} | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4493 | case $enableval in | 
|  | 4494 | yes) enable_fast_install=yes ;; | 
|  | 4495 | no) enable_fast_install=no ;; | 
|  | 4496 | *) | 
|  | 4497 | enable_fast_install=no | 
|  | 4498 | # Look at the argument we got.  We use all the common list separators. | 
|  | 4499 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 4500 | for pkg in $enableval; do | 
|  | 4501 | IFS="$lt_save_ifs" | 
|  | 4502 | if test "X$pkg" = "X$p"; then | 
|  | 4503 | enable_fast_install=yes | 
|  | 4504 | fi | 
|  | 4505 | done | 
|  | 4506 | IFS="$lt_save_ifs" | 
|  | 4507 | ;; | 
|  | 4508 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4509 | else | 
|  | 4510 | enable_fast_install=yes | 
|  | 4511 | fi; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4512 |  | 
|  | 4513 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
|  | 4514 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
|  | 4515 | if test "${lt_cv_path_SED+set}" = set; then | 
|  | 4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4517 | else | 
|  | 4518 | # Loop through the user's path and test for sed and gsed. | 
|  | 4519 | # Then use that list of sed's as ones to test for truncation. | 
|  | 4520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4521 | for as_dir in $PATH | 
|  | 4522 | do | 
|  | 4523 | IFS=$as_save_IFS | 
|  | 4524 | test -z "$as_dir" && as_dir=. | 
|  | 4525 | for lt_ac_prog in sed gsed; do | 
|  | 4526 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4527 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
|  | 4528 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
|  | 4529 | fi | 
|  | 4530 | done | 
|  | 4531 | done | 
|  | 4532 | done | 
|  | 4533 | lt_ac_max=0 | 
|  | 4534 | lt_ac_count=0 | 
|  | 4535 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
|  | 4536 | # along with /bin/sed that truncates output. | 
|  | 4537 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
|  | 4538 | test ! -f $lt_ac_sed && break | 
|  | 4539 | cat /dev/null > conftest.in | 
|  | 4540 | lt_ac_count=0 | 
|  | 4541 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
|  | 4542 | # Check for GNU sed and select it if it is found. | 
|  | 4543 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
|  | 4544 | lt_cv_path_SED=$lt_ac_sed | 
|  | 4545 | break | 
|  | 4546 | fi | 
|  | 4547 | while true; do | 
|  | 4548 | cat conftest.in conftest.in >conftest.tmp | 
|  | 4549 | mv conftest.tmp conftest.in | 
|  | 4550 | cp conftest.in conftest.nl | 
|  | 4551 | echo >>conftest.nl | 
|  | 4552 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
|  | 4553 | cmp -s conftest.out conftest.nl || break | 
|  | 4554 | # 10000 chars as input seems more than enough | 
|  | 4555 | test $lt_ac_count -gt 10 && break | 
|  | 4556 | lt_ac_count=`expr $lt_ac_count + 1` | 
|  | 4557 | if test $lt_ac_count -gt $lt_ac_max; then | 
|  | 4558 | lt_ac_max=$lt_ac_count | 
|  | 4559 | lt_cv_path_SED=$lt_ac_sed | 
|  | 4560 | fi | 
|  | 4561 | done | 
|  | 4562 | done | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4563 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4564 | fi | 
|  | 4565 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4566 | SED=$lt_cv_path_SED | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4567 | echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 4568 | echo "${ECHO_T}$SED" >&6 | 
|  | 4569 |  | 
|  | 4570 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
|  | 4571 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
|  | 4572 | if test "${ac_cv_prog_egrep+set}" = set; then | 
|  | 4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4574 | else | 
|  | 4575 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
|  | 4576 | then ac_cv_prog_egrep='grep -E' | 
|  | 4577 | else ac_cv_prog_egrep='egrep' | 
|  | 4578 | fi | 
|  | 4579 | fi | 
|  | 4580 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
|  | 4581 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
|  | 4582 | EGREP=$ac_cv_prog_egrep | 
|  | 4583 |  | 
|  | 4584 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4585 |  | 
|  | 4586 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|  | 4587 | if test "${with_gnu_ld+set}" = set; then | 
|  | 4588 | withval="$with_gnu_ld" | 
|  | 4589 | test "$withval" = no || with_gnu_ld=yes | 
|  | 4590 | else | 
|  | 4591 | with_gnu_ld=no | 
|  | 4592 | fi; | 
|  | 4593 | ac_prog=ld | 
|  | 4594 | if test "$GCC" = yes; then | 
|  | 4595 | # Check if gcc -print-prog-name=ld gives a path. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4596 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
|  | 4597 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4598 | case $host in | 
|  | 4599 | *-*-mingw*) | 
|  | 4600 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 4601 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 4602 | *) | 
|  | 4603 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 4604 | esac | 
|  | 4605 | case $ac_prog in | 
|  | 4606 | # Accept absolute paths. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4607 | [\\/]* | ?:[\\/]*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4608 | re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4609 | # Canonicalize the pathname of ld | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4610 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4611 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4612 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4613 | done | 
|  | 4614 | test -z "$LD" && LD="$ac_prog" | 
|  | 4615 | ;; | 
|  | 4616 | "") | 
|  | 4617 | # If it fails, then pretend we aren't using GCC. | 
|  | 4618 | ac_prog=ld | 
|  | 4619 | ;; | 
|  | 4620 | *) | 
|  | 4621 | # If it is relative, then search for the first ld in PATH. | 
|  | 4622 | with_gnu_ld=unknown | 
|  | 4623 | ;; | 
|  | 4624 | esac | 
|  | 4625 | elif test "$with_gnu_ld" = yes; then | 
|  | 4626 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
|  | 4627 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
|  | 4628 | else | 
|  | 4629 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
|  | 4630 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
|  | 4631 | fi | 
|  | 4632 | if test "${lt_cv_path_LD+set}" = set; then | 
|  | 4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4634 | else | 
|  | 4635 | if test -z "$LD"; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4636 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4637 | for ac_dir in $PATH; do | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4638 | IFS="$lt_save_ifs" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4639 | test -z "$ac_dir" && ac_dir=. | 
|  | 4640 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 4641 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 4642 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 4643 | # but apparently some GNU ld's only accept -v. | 
|  | 4644 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4645 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 4646 | *GNU* | *'with BFD'*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4647 | test "$with_gnu_ld" != no && break | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4648 | ;; | 
|  | 4649 | *) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4650 | test "$with_gnu_ld" != yes && break | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4651 | ;; | 
|  | 4652 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4653 | fi | 
|  | 4654 | done | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4655 | IFS="$lt_save_ifs" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4656 | else | 
|  | 4657 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 4658 | fi | 
|  | 4659 | fi | 
|  | 4660 |  | 
|  | 4661 | LD="$lt_cv_path_LD" | 
|  | 4662 | if test -n "$LD"; then | 
|  | 4663 | echo "$as_me:$LINENO: result: $LD" >&5 | 
|  | 4664 | echo "${ECHO_T}$LD" >&6 | 
|  | 4665 | else | 
|  | 4666 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4667 | echo "${ECHO_T}no" >&6 | 
|  | 4668 | fi | 
|  | 4669 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
|  | 4670 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
|  | 4671 | { (exit 1); exit 1; }; } | 
|  | 4672 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 4673 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
|  | 4674 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
|  | 4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4676 | else | 
|  | 4677 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4678 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4679 | *GNU* | *'with BFD'*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4680 | lt_cv_prog_gnu_ld=yes | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4681 | ;; | 
|  | 4682 | *) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4683 | lt_cv_prog_gnu_ld=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4684 | ;; | 
|  | 4685 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4686 | fi | 
|  | 4687 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 4688 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
|  | 4689 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 4690 |  | 
|  | 4691 |  | 
|  | 4692 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
|  | 4693 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
|  | 4694 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
|  | 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4696 | else | 
|  | 4697 | lt_cv_ld_reload_flag='-r' | 
|  | 4698 | fi | 
|  | 4699 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
|  | 4700 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
|  | 4701 | reload_flag=$lt_cv_ld_reload_flag | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4702 | case $reload_flag in | 
|  | 4703 | "" | " "*) ;; | 
|  | 4704 | *) reload_flag=" $reload_flag" ;; | 
|  | 4705 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4706 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 4707 | case $host_os in | 
|  | 4708 | darwin*) | 
|  | 4709 | if test "$GCC" = yes; then | 
|  | 4710 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | 
|  | 4711 | else | 
|  | 4712 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 4713 | fi | 
|  | 4714 | ;; | 
|  | 4715 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4716 |  | 
|  | 4717 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
|  | 4718 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
|  | 4719 | if test "${lt_cv_path_NM+set}" = set; then | 
|  | 4720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4721 | else | 
|  | 4722 | if test -n "$NM"; then | 
|  | 4723 | # Let the user override the test. | 
|  | 4724 | lt_cv_path_NM="$NM" | 
|  | 4725 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4726 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4727 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4728 | IFS="$lt_save_ifs" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4729 | test -z "$ac_dir" && ac_dir=. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4730 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
|  | 4731 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4732 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 4733 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 4734 | #   nm: unknown option "B" ignored | 
|  | 4735 | # Tru64's nm complains that /dev/null is an invalid object file | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4736 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 4737 | */dev/null* | *'Invalid file or object type'*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4738 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 4739 | break | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4740 | ;; | 
|  | 4741 | *) | 
|  | 4742 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 4743 | */dev/null*) | 
|  | 4744 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 4745 | break | 
|  | 4746 | ;; | 
|  | 4747 | *) | 
|  | 4748 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 4749 | continue # so that we can try to find one that supports BSD flags | 
|  | 4750 | ;; | 
|  | 4751 | esac | 
|  | 4752 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4753 | fi | 
|  | 4754 | done | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4755 | IFS="$lt_save_ifs" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4756 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|  | 4757 | fi | 
|  | 4758 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4759 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
|  | 4760 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4761 | NM="$lt_cv_path_NM" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4762 |  | 
|  | 4763 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
|  | 4764 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
|  | 4765 | LN_S=$as_ln_s | 
|  | 4766 | if test "$LN_S" = "ln -s"; then | 
|  | 4767 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 4768 | echo "${ECHO_T}yes" >&6 | 
|  | 4769 | else | 
|  | 4770 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
|  | 4771 | echo "${ECHO_T}no, using $LN_S" >&6 | 
|  | 4772 | fi | 
|  | 4773 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4774 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
|  | 4775 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4776 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
|  | 4777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4778 | else | 
|  | 4779 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|  | 4780 | lt_cv_file_magic_test_file= | 
|  | 4781 | lt_cv_deplibs_check_method='unknown' | 
|  | 4782 | # Need to set the preceding variable on all platforms that support | 
|  | 4783 | # interlibrary dependencies. | 
|  | 4784 | # 'none' -- dependencies not supported. | 
|  | 4785 | # `unknown' -- same as none, but documents that we really don't know. | 
|  | 4786 | # 'pass_all' -- all dependencies passed with no checks. | 
|  | 4787 | # 'test_compile' -- check by making test program. | 
|  | 4788 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4789 | # which responds to the $file_magic_cmd with a given extended regex. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4790 | # If you have `file' or equivalent on your system and you're not sure | 
|  | 4791 | # whether `pass_all' will *always* work, you probably want this one. | 
|  | 4792 |  | 
|  | 4793 | case $host_os in | 
|  | 4794 | aix4* | aix5*) | 
|  | 4795 | lt_cv_deplibs_check_method=pass_all | 
|  | 4796 | ;; | 
|  | 4797 |  | 
|  | 4798 | beos*) | 
|  | 4799 | lt_cv_deplibs_check_method=pass_all | 
|  | 4800 | ;; | 
|  | 4801 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4802 | bsdi[45]*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4803 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|  | 4804 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|  | 4805 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|  | 4806 | ;; | 
|  | 4807 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4808 | cygwin*) | 
|  | 4809 | # func_win32_libid is a shell function defined in ltmain.sh | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4810 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4811 | lt_cv_file_magic_cmd='func_win32_libid' | 
|  | 4812 | ;; | 
|  | 4813 |  | 
|  | 4814 | mingw* | pw32*) | 
|  | 4815 | # Base MSYS/MinGW do not provide the 'file' command needed by | 
|  | 4816 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 
|  | 4817 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
|  | 4818 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4819 | ;; | 
|  | 4820 |  | 
|  | 4821 | darwin* | rhapsody*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4822 | lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4823 | ;; | 
|  | 4824 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4825 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4826 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|  | 4827 | case $host_cpu in | 
|  | 4828 | i*86 ) | 
|  | 4829 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|  | 4830 | # Let's accept both of them until this is cleared up. | 
|  | 4831 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
|  | 4832 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 4833 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|  | 4834 | ;; | 
|  | 4835 | esac | 
|  | 4836 | else | 
|  | 4837 | lt_cv_deplibs_check_method=pass_all | 
|  | 4838 | fi | 
|  | 4839 | ;; | 
|  | 4840 |  | 
|  | 4841 | gnu*) | 
|  | 4842 | lt_cv_deplibs_check_method=pass_all | 
|  | 4843 | ;; | 
|  | 4844 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4845 | hpux10.20* | hpux11*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4846 | lt_cv_file_magic_cmd=/usr/bin/file | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4847 | case "$host_cpu" in | 
|  | 4848 | ia64*) | 
|  | 4849 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|  | 4850 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|  | 4851 | ;; | 
|  | 4852 | hppa*64*) | 
|  | 4853 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | 
|  | 4854 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
|  | 4855 | ;; | 
|  | 4856 | *) | 
|  | 4857 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
|  | 4858 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|  | 4859 | ;; | 
|  | 4860 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4861 | ;; | 
|  | 4862 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4863 | irix5* | irix6* | nonstopux*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4864 | case $LD in | 
|  | 4865 | *-32|*"-32 ") libmagic=32-bit;; | 
|  | 4866 | *-n32|*"-n32 ") libmagic=N32;; | 
|  | 4867 | *-64|*"-64 ") libmagic=64-bit;; | 
|  | 4868 | *) libmagic=never-match;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4869 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4870 | lt_cv_deplibs_check_method=pass_all | 
|  | 4871 | ;; | 
|  | 4872 |  | 
|  | 4873 | # This must be Linux ELF. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4874 | linux*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4875 | lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4876 | ;; | 
|  | 4877 |  | 
|  | 4878 | netbsd*) | 
|  | 4879 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4880 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4881 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4882 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4883 | fi | 
|  | 4884 | ;; | 
|  | 4885 |  | 
|  | 4886 | newos6*) | 
|  | 4887 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|  | 4888 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 4889 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|  | 4890 | ;; | 
|  | 4891 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4892 | nto-qnx*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4893 | lt_cv_deplibs_check_method=unknown | 
|  | 4894 | ;; | 
|  | 4895 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4896 | openbsd*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4897 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4898 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4899 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4900 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4901 | fi | 
|  | 4902 | ;; | 
|  | 4903 |  | 
|  | 4904 | osf3* | osf4* | osf5*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4905 | lt_cv_deplibs_check_method=pass_all | 
|  | 4906 | ;; | 
|  | 4907 |  | 
|  | 4908 | sco3.2v5*) | 
|  | 4909 | lt_cv_deplibs_check_method=pass_all | 
|  | 4910 | ;; | 
|  | 4911 |  | 
|  | 4912 | solaris*) | 
|  | 4913 | lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4914 | ;; | 
|  | 4915 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4916 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 4917 | case $host_vendor in | 
|  | 4918 | motorola) | 
|  | 4919 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | 
|  | 4920 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|  | 4921 | ;; | 
|  | 4922 | ncr) | 
|  | 4923 | lt_cv_deplibs_check_method=pass_all | 
|  | 4924 | ;; | 
|  | 4925 | sequent) | 
|  | 4926 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 4927 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
|  | 4928 | ;; | 
|  | 4929 | sni) | 
|  | 4930 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 4931 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
|  | 4932 | lt_cv_file_magic_test_file=/lib/libc.so | 
|  | 4933 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4934 | siemens) | 
|  | 4935 | lt_cv_deplibs_check_method=pass_all | 
|  | 4936 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4937 | esac | 
|  | 4938 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4939 |  | 
|  | 4940 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
|  | 4941 | lt_cv_deplibs_check_method=pass_all | 
|  | 4942 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4943 | esac | 
|  | 4944 |  | 
|  | 4945 | fi | 
|  | 4946 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
|  | 4947 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
|  | 4948 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|  | 4949 | deplibs_check_method=$lt_cv_deplibs_check_method | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4950 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4951 |  | 
|  | 4952 |  | 
|  | 4953 |  | 
|  | 4954 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4955 | # If no C compiler was specified, use CC. | 
|  | 4956 | LTCC=${LTCC-"$CC"} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4957 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4958 | # Allow CC to be a program name with arguments. | 
|  | 4959 | compiler=$CC | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4960 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4961 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|  | 4962 | if test "${enable_libtool_lock+set}" = set; then | 
|  | 4963 | enableval="$enable_libtool_lock" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4964 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4965 | fi; | 
|  | 4966 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4967 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4968 | # Some flags need to be propagated to the compiler or linker for good | 
|  | 4969 | # libtool support. | 
|  | 4970 | case $host in | 
|  | 4971 | ia64-*-hpux*) | 
|  | 4972 | # Find out which ABI we are using. | 
|  | 4973 | echo 'int i;' > conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4975 | (eval $ac_compile) 2>&5 | 
|  | 4976 | ac_status=$? | 
|  | 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4978 | (exit $ac_status); }; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4979 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 4980 | *ELF-32*) | 
|  | 4981 | HPUX_IA64_MODE="32" | 
|  | 4982 | ;; | 
|  | 4983 | *ELF-64*) | 
|  | 4984 | HPUX_IA64_MODE="64" | 
|  | 4985 | ;; | 
|  | 4986 | esac | 
|  | 4987 | fi | 
|  | 4988 | rm -rf conftest* | 
|  | 4989 | ;; | 
|  | 4990 | *-*-irix6*) | 
|  | 4991 | # Find out which ABI we are using. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4992 | echo '#line 4992 "configure"' > conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4994 | (eval $ac_compile) 2>&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4995 | ac_status=$? | 
|  | 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4997 | (exit $ac_status); }; then | 
|  | 4998 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 4999 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 5000 | *32-bit*) | 
|  | 5001 | LD="${LD-ld} -melf32bsmip" | 
|  | 5002 | ;; | 
|  | 5003 | *N32*) | 
|  | 5004 | LD="${LD-ld} -melf32bmipn32" | 
|  | 5005 | ;; | 
|  | 5006 | *64-bit*) | 
|  | 5007 | LD="${LD-ld} -melf64bmip" | 
|  | 5008 | ;; | 
|  | 5009 | esac | 
|  | 5010 | else | 
|  | 5011 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 5012 | *32-bit*) | 
|  | 5013 | LD="${LD-ld} -32" | 
|  | 5014 | ;; | 
|  | 5015 | *N32*) | 
|  | 5016 | LD="${LD-ld} -n32" | 
|  | 5017 | ;; | 
|  | 5018 | *64-bit*) | 
|  | 5019 | LD="${LD-ld} -64" | 
|  | 5020 | ;; | 
|  | 5021 | esac | 
|  | 5022 | fi | 
|  | 5023 | fi | 
|  | 5024 | rm -rf conftest* | 
|  | 5025 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5026 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5027 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
|  | 5028 | # Find out which ABI we are using. | 
|  | 5029 | echo 'int i;' > conftest.$ac_ext | 
|  | 5030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 5031 | (eval $ac_compile) 2>&5 | 
|  | 5032 | ac_status=$? | 
|  | 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5034 | (exit $ac_status); }; then | 
|  | 5035 | case "`/usr/bin/file conftest.o`" in | 
|  | 5036 | *32-bit*) | 
|  | 5037 | case $host in | 
|  | 5038 | x86_64-*linux*) | 
|  | 5039 | LD="${LD-ld} -m elf_i386" | 
|  | 5040 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5041 | ppc64-*linux*|powerpc64-*linux*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5042 | LD="${LD-ld} -m elf32ppclinux" | 
|  | 5043 | ;; | 
|  | 5044 | s390x-*linux*) | 
|  | 5045 | LD="${LD-ld} -m elf_s390" | 
|  | 5046 | ;; | 
|  | 5047 | sparc64-*linux*) | 
|  | 5048 | LD="${LD-ld} -m elf32_sparc" | 
|  | 5049 | ;; | 
|  | 5050 | esac | 
|  | 5051 | ;; | 
|  | 5052 | *64-bit*) | 
|  | 5053 | case $host in | 
|  | 5054 | x86_64-*linux*) | 
|  | 5055 | LD="${LD-ld} -m elf_x86_64" | 
|  | 5056 | ;; | 
|  | 5057 | ppc*-*linux*|powerpc*-*linux*) | 
|  | 5058 | LD="${LD-ld} -m elf64ppc" | 
|  | 5059 | ;; | 
|  | 5060 | s390*-*linux*) | 
|  | 5061 | LD="${LD-ld} -m elf64_s390" | 
|  | 5062 | ;; | 
|  | 5063 | sparc*-*linux*) | 
|  | 5064 | LD="${LD-ld} -m elf64_sparc" | 
|  | 5065 | ;; | 
|  | 5066 | esac | 
|  | 5067 | ;; | 
|  | 5068 | esac | 
|  | 5069 | fi | 
|  | 5070 | rm -rf conftest* | 
|  | 5071 | ;; | 
|  | 5072 |  | 
|  | 5073 | *-*-sco3.2v5*) | 
|  | 5074 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|  | 5075 | SAVE_CFLAGS="$CFLAGS" | 
|  | 5076 | CFLAGS="$CFLAGS -belf" | 
|  | 5077 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
|  | 5078 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
|  | 5079 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
|  | 5080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5081 | else | 
|  | 5082 | ac_ext=c | 
|  | 5083 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5087 |  | 
|  | 5088 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5089 | /* confdefs.h.  */ | 
|  | 5090 | _ACEOF | 
|  | 5091 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5092 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5093 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5094 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5095 | _ACEOF | 
|  | 5096 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5098 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5099 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5100 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5101 | rm -f conftest.er1 | 
|  | 5102 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5104 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5105 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 5106 | || test ! -s conftest.err' | 
|  | 5107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5108 | (eval $ac_try) 2>&5 | 
|  | 5109 | ac_status=$? | 
|  | 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5111 | (exit $ac_status); }; } && | 
|  | 5112 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5114 | (eval $ac_try) 2>&5 | 
|  | 5115 | ac_status=$? | 
|  | 5116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5117 | (exit $ac_status); }; }; then | 
|  | 5118 | lt_cv_cc_needs_belf=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5119 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5120 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5121 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5122 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5123 | lt_cv_cc_needs_belf=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5124 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5125 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 5126 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5127 | ac_ext=c | 
|  | 5128 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5132 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5133 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5134 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
|  | 5135 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
|  | 5136 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|  | 5137 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|  | 5138 | CFLAGS="$SAVE_CFLAGS" | 
|  | 5139 | fi | 
|  | 5140 | ;; | 
|  | 5141 |  | 
|  | 5142 | esac | 
|  | 5143 |  | 
|  | 5144 | need_locks="$enable_libtool_lock" | 
|  | 5145 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5146 |  | 
|  | 5147 |  | 
|  | 5148 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 5149 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
|  | 5150 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5152 | else | 
|  | 5153 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5154 | /* confdefs.h.  */ | 
|  | 5155 | _ACEOF | 
|  | 5156 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5157 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5158 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5159 | #include <stdlib.h> | 
|  | 5160 | #include <stdarg.h> | 
|  | 5161 | #include <string.h> | 
|  | 5162 | #include <float.h> | 
|  | 5163 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5164 | int | 
|  | 5165 | main () | 
|  | 5166 | { | 
|  | 5167 |  | 
|  | 5168 | ; | 
|  | 5169 | return 0; | 
|  | 5170 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5171 | _ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5172 | rm -f conftest.$ac_objext | 
|  | 5173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5174 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5175 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5176 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5177 | rm -f conftest.er1 | 
|  | 5178 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5180 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5181 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 5182 | || test ! -s conftest.err' | 
|  | 5183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5184 | (eval $ac_try) 2>&5 | 
|  | 5185 | ac_status=$? | 
|  | 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5187 | (exit $ac_status); }; } && | 
|  | 5188 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5190 | (eval $ac_try) 2>&5 | 
|  | 5191 | ac_status=$? | 
|  | 5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5193 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5194 | ac_cv_header_stdc=yes | 
|  | 5195 | else | 
|  | 5196 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5197 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5198 |  | 
|  | 5199 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5200 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5202 |  | 
|  | 5203 | if test $ac_cv_header_stdc = yes; then | 
|  | 5204 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5205 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5206 | /* confdefs.h.  */ | 
|  | 5207 | _ACEOF | 
|  | 5208 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5209 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5210 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5211 | #include <string.h> | 
|  | 5212 |  | 
|  | 5213 | _ACEOF | 
|  | 5214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5215 | $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5216 | : | 
|  | 5217 | else | 
|  | 5218 | ac_cv_header_stdc=no | 
|  | 5219 | fi | 
|  | 5220 | rm -f conftest* | 
|  | 5221 |  | 
|  | 5222 | fi | 
|  | 5223 |  | 
|  | 5224 | if test $ac_cv_header_stdc = yes; then | 
|  | 5225 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5226 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5227 | /* confdefs.h.  */ | 
|  | 5228 | _ACEOF | 
|  | 5229 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5230 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5231 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5232 | #include <stdlib.h> | 
|  | 5233 |  | 
|  | 5234 | _ACEOF | 
|  | 5235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5236 | $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5237 | : | 
|  | 5238 | else | 
|  | 5239 | ac_cv_header_stdc=no | 
|  | 5240 | fi | 
|  | 5241 | rm -f conftest* | 
|  | 5242 |  | 
|  | 5243 | fi | 
|  | 5244 |  | 
|  | 5245 | if test $ac_cv_header_stdc = yes; then | 
|  | 5246 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5247 | if test "$cross_compiling" = yes; then | 
|  | 5248 | : | 
|  | 5249 | else | 
|  | 5250 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5251 | /* confdefs.h.  */ | 
|  | 5252 | _ACEOF | 
|  | 5253 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5254 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5255 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5256 | #include <ctype.h> | 
|  | 5257 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5258 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5259 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5260 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5261 | # define ISLOWER(c) \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5262 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5263 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5264 | || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5265 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5266 | #endif | 
|  | 5267 |  | 
|  | 5268 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5269 | int | 
|  | 5270 | main () | 
|  | 5271 | { | 
|  | 5272 | int i; | 
|  | 5273 | for (i = 0; i < 256; i++) | 
|  | 5274 | if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5275 | || toupper (i) != TOUPPER (i)) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5276 | exit(2); | 
|  | 5277 | exit (0); | 
|  | 5278 | } | 
|  | 5279 | _ACEOF | 
|  | 5280 | rm -f conftest$ac_exeext | 
|  | 5281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 5282 | (eval $ac_link) 2>&5 | 
|  | 5283 | ac_status=$? | 
|  | 5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 5286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5287 | (eval $ac_try) 2>&5 | 
|  | 5288 | ac_status=$? | 
|  | 5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5290 | (exit $ac_status); }; }; then | 
|  | 5291 | : | 
|  | 5292 | else | 
|  | 5293 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 5294 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5295 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5296 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5297 | ( exit $ac_status ) | 
|  | 5298 | ac_cv_header_stdc=no | 
|  | 5299 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5300 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5301 | fi | 
|  | 5302 | fi | 
|  | 5303 | fi | 
|  | 5304 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 5305 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
|  | 5306 | if test $ac_cv_header_stdc = yes; then | 
|  | 5307 |  | 
|  | 5308 | cat >>confdefs.h <<\_ACEOF | 
|  | 5309 | #define STDC_HEADERS 1 | 
|  | 5310 | _ACEOF | 
|  | 5311 |  | 
|  | 5312 | fi | 
|  | 5313 |  | 
|  | 5314 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5315 |  | 
|  | 5316 |  | 
|  | 5317 |  | 
|  | 5318 |  | 
|  | 5319 |  | 
|  | 5320 |  | 
|  | 5321 |  | 
|  | 5322 |  | 
|  | 5323 |  | 
|  | 5324 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5325 | inttypes.h stdint.h unistd.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5326 | do | 
|  | 5327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 5329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 5330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5332 | else | 
|  | 5333 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5334 | /* confdefs.h.  */ | 
|  | 5335 | _ACEOF | 
|  | 5336 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5337 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5338 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5339 | $ac_includes_default | 
|  | 5340 |  | 
|  | 5341 | #include <$ac_header> | 
|  | 5342 | _ACEOF | 
|  | 5343 | rm -f conftest.$ac_objext | 
|  | 5344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5345 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5346 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5347 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5348 | rm -f conftest.er1 | 
|  | 5349 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5351 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5352 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 5353 | || test ! -s conftest.err' | 
|  | 5354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5355 | (eval $ac_try) 2>&5 | 
|  | 5356 | ac_status=$? | 
|  | 5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5358 | (exit $ac_status); }; } && | 
|  | 5359 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5361 | (eval $ac_try) 2>&5 | 
|  | 5362 | ac_status=$? | 
|  | 5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5364 | (exit $ac_status); }; }; then | 
|  | 5365 | eval "$as_ac_Header=yes" | 
|  | 5366 | else | 
|  | 5367 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5368 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5369 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5370 | eval "$as_ac_Header=no" | 
|  | 5371 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5373 | fi | 
|  | 5374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 5375 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 5376 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 5377 | cat >>confdefs.h <<_ACEOF | 
|  | 5378 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5379 | _ACEOF | 
|  | 5380 |  | 
|  | 5381 | fi | 
|  | 5382 |  | 
|  | 5383 | done | 
|  | 5384 |  | 
|  | 5385 |  | 
|  | 5386 |  | 
|  | 5387 | for ac_header in dlfcn.h | 
|  | 5388 | do | 
|  | 5389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 5391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 5393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 5394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5395 | fi | 
|  | 5396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 5397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5398 | else | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5399 | # Is the header compilable? | 
|  | 5400 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 5401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 5402 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5403 | /* confdefs.h.  */ | 
|  | 5404 | _ACEOF | 
|  | 5405 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5406 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5407 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5408 | $ac_includes_default | 
|  | 5409 | #include <$ac_header> | 
|  | 5410 | _ACEOF | 
|  | 5411 | rm -f conftest.$ac_objext | 
|  | 5412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5413 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5414 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5415 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5416 | rm -f conftest.er1 | 
|  | 5417 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5419 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5420 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 5421 | || test ! -s conftest.err' | 
|  | 5422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5423 | (eval $ac_try) 2>&5 | 
|  | 5424 | ac_status=$? | 
|  | 5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5426 | (exit $ac_status); }; } && | 
|  | 5427 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5429 | (eval $ac_try) 2>&5 | 
|  | 5430 | ac_status=$? | 
|  | 5431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5432 | (exit $ac_status); }; }; then | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5433 | ac_header_compiler=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5434 | else | 
|  | 5435 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5436 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5437 |  | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5438 | ac_header_compiler=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5439 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5441 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 5442 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 5443 |  | 
|  | 5444 | # Is the header present? | 
|  | 5445 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 5446 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 5447 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5448 | /* confdefs.h.  */ | 
|  | 5449 | _ACEOF | 
|  | 5450 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5451 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5452 | /* end confdefs.h.  */ | 
|  | 5453 | #include <$ac_header> | 
|  | 5454 | _ACEOF | 
|  | 5455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 5456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 5457 | ac_status=$? | 
|  | 5458 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5459 | rm -f conftest.er1 | 
|  | 5460 | cat conftest.err >&5 | 
|  | 5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5462 | (exit $ac_status); } >/dev/null; then | 
|  | 5463 | if test -s conftest.err; then | 
|  | 5464 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5465 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5466 | else | 
|  | 5467 | ac_cpp_err= | 
|  | 5468 | fi | 
|  | 5469 | else | 
|  | 5470 | ac_cpp_err=yes | 
|  | 5471 | fi | 
|  | 5472 | if test -z "$ac_cpp_err"; then | 
|  | 5473 | ac_header_preproc=yes | 
|  | 5474 | else | 
|  | 5475 | echo "$as_me: failed program was:" >&5 | 
|  | 5476 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5477 |  | 
|  | 5478 | ac_header_preproc=no | 
|  | 5479 | fi | 
|  | 5480 | rm -f conftest.err conftest.$ac_ext | 
|  | 5481 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 5482 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 5483 |  | 
|  | 5484 | # So?  What about this header? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5485 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 5486 | yes:no: ) | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5487 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 5488 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5489 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 5490 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 5491 | ac_header_preproc=yes | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5492 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5493 | no:yes:* ) | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5494 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 5495 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5496 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 5497 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 5498 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 5499 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 5500 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 5501 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 5503 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5504 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 5505 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5506 | ( | 
|  | 5507 | cat <<\_ASBOX | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5508 | ## ----------------------------------- ## | 
|  | 5509 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 5510 | ## ----------------------------------- ## | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5511 | _ASBOX | 
|  | 5512 | ) | | 
|  | 5513 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 5514 | ;; | 
|  | 5515 | esac | 
|  | 5516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 5517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 5518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 5519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5520 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5521 | eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5522 | fi | 
|  | 5523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 5524 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 5525 |  | 
|  | 5526 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5527 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 5528 | cat >>confdefs.h <<_ACEOF | 
|  | 5529 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5530 | _ACEOF | 
|  | 5531 |  | 
|  | 5532 | fi | 
|  | 5533 |  | 
|  | 5534 | done | 
|  | 5535 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5536 |  | 
|  | 5537 |  | 
|  | 5538 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
|  | 5539 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
|  | 5540 | (test "X$CXX" != "Xg++"))) ; then | 
|  | 5541 | ac_ext=cc | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5542 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 5543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 5546 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
|  | 5547 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
|  | 5548 | if test -z "$CXXCPP"; then | 
|  | 5549 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5551 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5552 | # Double quotes because CXXCPP needs to be expanded | 
|  | 5553 | for CXXCPP in "$CXX -E" "/lib/cpp" | 
|  | 5554 | do | 
|  | 5555 | ac_preproc_ok=false | 
|  | 5556 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 5557 | do | 
|  | 5558 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 5559 | # with a fresh cross-compiler works. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5560 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 5561 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5562 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 5563 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 5564 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5565 | /* confdefs.h.  */ | 
|  | 5566 | _ACEOF | 
|  | 5567 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5568 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5569 | /* end confdefs.h.  */ | 
|  | 5570 | #ifdef __STDC__ | 
|  | 5571 | # include <limits.h> | 
|  | 5572 | #else | 
|  | 5573 | # include <assert.h> | 
|  | 5574 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5575 | Syntax error | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5576 | _ACEOF | 
|  | 5577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 5578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 5579 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5580 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5581 | rm -f conftest.er1 | 
|  | 5582 | cat conftest.err >&5 | 
|  | 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5584 | (exit $ac_status); } >/dev/null; then | 
|  | 5585 | if test -s conftest.err; then | 
|  | 5586 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5587 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5588 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5589 | ac_cpp_err= | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5590 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5591 | else | 
|  | 5592 | ac_cpp_err=yes | 
|  | 5593 | fi | 
|  | 5594 | if test -z "$ac_cpp_err"; then | 
|  | 5595 | : | 
|  | 5596 | else | 
|  | 5597 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5599 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5600 | # Broken: fails on valid input. | 
|  | 5601 | continue | 
|  | 5602 | fi | 
|  | 5603 | rm -f conftest.err conftest.$ac_ext | 
|  | 5604 |  | 
|  | 5605 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 5606 | # can be detected and how. | 
|  | 5607 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5608 | /* confdefs.h.  */ | 
|  | 5609 | _ACEOF | 
|  | 5610 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5611 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5612 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5613 | #include <ac_nonexistent.h> | 
|  | 5614 | _ACEOF | 
|  | 5615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 5616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 5617 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5618 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5619 | rm -f conftest.er1 | 
|  | 5620 | cat conftest.err >&5 | 
|  | 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5622 | (exit $ac_status); } >/dev/null; then | 
|  | 5623 | if test -s conftest.err; then | 
|  | 5624 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5625 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5626 | else | 
|  | 5627 | ac_cpp_err= | 
|  | 5628 | fi | 
|  | 5629 | else | 
|  | 5630 | ac_cpp_err=yes | 
|  | 5631 | fi | 
|  | 5632 | if test -z "$ac_cpp_err"; then | 
|  | 5633 | # Broken: success on invalid input. | 
|  | 5634 | continue | 
|  | 5635 | else | 
|  | 5636 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5637 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5638 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5639 | # Passes both tests. | 
|  | 5640 | ac_preproc_ok=: | 
|  | 5641 | break | 
|  | 5642 | fi | 
|  | 5643 | rm -f conftest.err conftest.$ac_ext | 
|  | 5644 |  | 
|  | 5645 | done | 
|  | 5646 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 5647 | rm -f conftest.err conftest.$ac_ext | 
|  | 5648 | if $ac_preproc_ok; then | 
|  | 5649 | break | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5650 | fi | 
|  | 5651 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5652 | done | 
|  | 5653 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 5654 |  | 
|  | 5655 | fi | 
|  | 5656 | CXXCPP=$ac_cv_prog_CXXCPP | 
|  | 5657 | else | 
|  | 5658 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 5659 | fi | 
|  | 5660 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
|  | 5661 | echo "${ECHO_T}$CXXCPP" >&6 | 
|  | 5662 | ac_preproc_ok=false | 
|  | 5663 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 5664 | do | 
|  | 5665 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 5666 | # with a fresh cross-compiler works. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5667 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 5668 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5669 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 5670 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 5671 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5672 | /* confdefs.h.  */ | 
|  | 5673 | _ACEOF | 
|  | 5674 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5675 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5676 | /* end confdefs.h.  */ | 
|  | 5677 | #ifdef __STDC__ | 
|  | 5678 | # include <limits.h> | 
|  | 5679 | #else | 
|  | 5680 | # include <assert.h> | 
|  | 5681 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5682 | Syntax error | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5683 | _ACEOF | 
|  | 5684 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 5685 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 5686 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5687 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5688 | rm -f conftest.er1 | 
|  | 5689 | cat conftest.err >&5 | 
|  | 5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5691 | (exit $ac_status); } >/dev/null; then | 
|  | 5692 | if test -s conftest.err; then | 
|  | 5693 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5694 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5695 | else | 
|  | 5696 | ac_cpp_err= | 
|  | 5697 | fi | 
|  | 5698 | else | 
|  | 5699 | ac_cpp_err=yes | 
|  | 5700 | fi | 
|  | 5701 | if test -z "$ac_cpp_err"; then | 
|  | 5702 | : | 
|  | 5703 | else | 
|  | 5704 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5705 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5706 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5707 | # Broken: fails on valid input. | 
|  | 5708 | continue | 
|  | 5709 | fi | 
|  | 5710 | rm -f conftest.err conftest.$ac_ext | 
|  | 5711 |  | 
|  | 5712 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 5713 | # can be detected and how. | 
|  | 5714 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5715 | /* confdefs.h.  */ | 
|  | 5716 | _ACEOF | 
|  | 5717 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5718 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5719 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5720 | #include <ac_nonexistent.h> | 
|  | 5721 | _ACEOF | 
|  | 5722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 5723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 5724 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5725 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5726 | rm -f conftest.er1 | 
|  | 5727 | cat conftest.err >&5 | 
|  | 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5729 | (exit $ac_status); } >/dev/null; then | 
|  | 5730 | if test -s conftest.err; then | 
|  | 5731 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5732 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5733 | else | 
|  | 5734 | ac_cpp_err= | 
|  | 5735 | fi | 
|  | 5736 | else | 
|  | 5737 | ac_cpp_err=yes | 
|  | 5738 | fi | 
|  | 5739 | if test -z "$ac_cpp_err"; then | 
|  | 5740 | # Broken: success on invalid input. | 
|  | 5741 | continue | 
|  | 5742 | else | 
|  | 5743 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5744 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5745 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5746 | # Passes both tests. | 
|  | 5747 | ac_preproc_ok=: | 
|  | 5748 | break | 
|  | 5749 | fi | 
|  | 5750 | rm -f conftest.err conftest.$ac_ext | 
|  | 5751 |  | 
|  | 5752 | done | 
|  | 5753 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 5754 | rm -f conftest.err conftest.$ac_ext | 
|  | 5755 | if $ac_preproc_ok; then | 
|  | 5756 | : | 
|  | 5757 | else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5758 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 5759 | See \`config.log' for more details." >&5 | 
|  | 5760 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 5761 | See \`config.log' for more details." >&2;} | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5762 | { (exit 1); exit 1; }; } | 
|  | 5763 | fi | 
|  | 5764 |  | 
|  | 5765 | ac_ext=cc | 
|  | 5766 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 5767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 5770 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5771 | fi | 
|  | 5772 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5773 |  | 
|  | 5774 | ac_ext=f | 
|  | 5775 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
|  | 5776 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5777 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
|  | 5778 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5779 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5780 | do | 
|  | 5781 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5782 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 5783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5785 | if test "${ac_cv_prog_F77+set}" = set; then | 
|  | 5786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5787 | else | 
|  | 5788 | if test -n "$F77"; then | 
|  | 5789 | ac_cv_prog_F77="$F77" # Let the user override the test. | 
|  | 5790 | else | 
|  | 5791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5792 | for as_dir in $PATH | 
|  | 5793 | do | 
|  | 5794 | IFS=$as_save_IFS | 
|  | 5795 | test -z "$as_dir" && as_dir=. | 
|  | 5796 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5798 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
|  | 5799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5800 | break 2 | 
|  | 5801 | fi | 
|  | 5802 | done | 
|  | 5803 | done | 
|  | 5804 |  | 
|  | 5805 | fi | 
|  | 5806 | fi | 
|  | 5807 | F77=$ac_cv_prog_F77 | 
|  | 5808 | if test -n "$F77"; then | 
|  | 5809 | echo "$as_me:$LINENO: result: $F77" >&5 | 
|  | 5810 | echo "${ECHO_T}$F77" >&6 | 
|  | 5811 | else | 
|  | 5812 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5813 | echo "${ECHO_T}no" >&6 | 
|  | 5814 | fi | 
|  | 5815 |  | 
|  | 5816 | test -n "$F77" && break | 
|  | 5817 | done | 
|  | 5818 | fi | 
|  | 5819 | if test -z "$F77"; then | 
|  | 5820 | ac_ct_F77=$F77 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5821 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5822 | do | 
|  | 5823 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5824 | set dummy $ac_prog; ac_word=$2 | 
|  | 5825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5827 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
|  | 5828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5829 | else | 
|  | 5830 | if test -n "$ac_ct_F77"; then | 
|  | 5831 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
|  | 5832 | else | 
|  | 5833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5834 | for as_dir in $PATH | 
|  | 5835 | do | 
|  | 5836 | IFS=$as_save_IFS | 
|  | 5837 | test -z "$as_dir" && as_dir=. | 
|  | 5838 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5840 | ac_cv_prog_ac_ct_F77="$ac_prog" | 
|  | 5841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5842 | break 2 | 
|  | 5843 | fi | 
|  | 5844 | done | 
|  | 5845 | done | 
|  | 5846 |  | 
|  | 5847 | fi | 
|  | 5848 | fi | 
|  | 5849 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
|  | 5850 | if test -n "$ac_ct_F77"; then | 
|  | 5851 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
|  | 5852 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
|  | 5853 | else | 
|  | 5854 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5855 | echo "${ECHO_T}no" >&6 | 
|  | 5856 | fi | 
|  | 5857 |  | 
|  | 5858 | test -n "$ac_ct_F77" && break | 
|  | 5859 | done | 
|  | 5860 |  | 
|  | 5861 | F77=$ac_ct_F77 | 
|  | 5862 | fi | 
|  | 5863 |  | 
|  | 5864 |  | 
|  | 5865 | # Provide some information about the compiler. | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 5866 | echo "$as_me:5866:" \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5867 | "checking for Fortran 77 compiler version" >&5 | 
|  | 5868 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 5869 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 5870 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 5871 | ac_status=$? | 
|  | 5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5873 | (exit $ac_status); } | 
|  | 5874 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 5875 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 5876 | ac_status=$? | 
|  | 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5878 | (exit $ac_status); } | 
|  | 5879 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 5880 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 5881 | ac_status=$? | 
|  | 5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5883 | (exit $ac_status); } | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5884 | rm -f a.out | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5885 |  | 
|  | 5886 | # If we don't use `.F' as extension, the preprocessor is not run on the | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5887 | # input file.  (Note that this only needs to work for GNU compilers.) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5888 | ac_save_ext=$ac_ext | 
|  | 5889 | ac_ext=F | 
|  | 5890 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
|  | 5891 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
|  | 5892 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
|  | 5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5894 | else | 
|  | 5895 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 5896 | program main | 
|  | 5897 | #ifndef __GNUC__ | 
|  | 5898 | choke me | 
|  | 5899 | #endif | 
|  | 5900 |  | 
|  | 5901 | end | 
|  | 5902 | _ACEOF | 
|  | 5903 | rm -f conftest.$ac_objext | 
|  | 5904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5905 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5906 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5907 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5908 | rm -f conftest.er1 | 
|  | 5909 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5911 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5912 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 5913 | || test ! -s conftest.err' | 
|  | 5914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5915 | (eval $ac_try) 2>&5 | 
|  | 5916 | ac_status=$? | 
|  | 5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5918 | (exit $ac_status); }; } && | 
|  | 5919 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5921 | (eval $ac_try) 2>&5 | 
|  | 5922 | ac_status=$? | 
|  | 5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5924 | (exit $ac_status); }; }; then | 
|  | 5925 | ac_compiler_gnu=yes | 
|  | 5926 | else | 
|  | 5927 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5928 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5929 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5930 | ac_compiler_gnu=no | 
|  | 5931 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5933 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
|  | 5934 |  | 
|  | 5935 | fi | 
|  | 5936 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
|  | 5937 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
|  | 5938 | ac_ext=$ac_save_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5939 | ac_test_FFLAGS=${FFLAGS+set} | 
|  | 5940 | ac_save_FFLAGS=$FFLAGS | 
|  | 5941 | FFLAGS= | 
|  | 5942 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
|  | 5943 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
|  | 5944 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
|  | 5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5946 | else | 
|  | 5947 | FFLAGS=-g | 
|  | 5948 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 5949 | program main | 
|  | 5950 |  | 
|  | 5951 | end | 
|  | 5952 | _ACEOF | 
|  | 5953 | rm -f conftest.$ac_objext | 
|  | 5954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5955 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5956 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5957 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5958 | rm -f conftest.er1 | 
|  | 5959 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5961 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5962 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 5963 | || test ! -s conftest.err' | 
|  | 5964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5965 | (eval $ac_try) 2>&5 | 
|  | 5966 | ac_status=$? | 
|  | 5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5968 | (exit $ac_status); }; } && | 
|  | 5969 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5971 | (eval $ac_try) 2>&5 | 
|  | 5972 | ac_status=$? | 
|  | 5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5974 | (exit $ac_status); }; }; then | 
|  | 5975 | ac_cv_prog_f77_g=yes | 
|  | 5976 | else | 
|  | 5977 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5978 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5979 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5980 | ac_cv_prog_f77_g=no | 
|  | 5981 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5983 |  | 
|  | 5984 | fi | 
|  | 5985 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
|  | 5986 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
|  | 5987 | if test "$ac_test_FFLAGS" = set; then | 
|  | 5988 | FFLAGS=$ac_save_FFLAGS | 
|  | 5989 | elif test $ac_cv_prog_f77_g = yes; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5990 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5991 | FFLAGS="-g -O2" | 
|  | 5992 | else | 
|  | 5993 | FFLAGS="-g" | 
|  | 5994 | fi | 
|  | 5995 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5996 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5997 | FFLAGS="-O2" | 
|  | 5998 | else | 
|  | 5999 | FFLAGS= | 
|  | 6000 | fi | 
|  | 6001 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6002 |  | 
|  | 6003 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6004 | ac_ext=c | 
|  | 6005 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6009 |  | 
|  | 6010 |  | 
|  | 6011 |  | 
|  | 6012 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
|  | 6013 |  | 
|  | 6014 | # find the maximum length of command line arguments | 
|  | 6015 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
|  | 6016 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
|  | 6017 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
|  | 6018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6019 | else | 
|  | 6020 | i=0 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6021 | teststring="ABCD" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6022 |  | 
|  | 6023 | case $build_os in | 
|  | 6024 | msdosdjgpp*) | 
|  | 6025 | # On DJGPP, this test can blow up pretty badly due to problems in libc | 
|  | 6026 | # (any single argument exceeding 2000 bytes causes a buffer overrun | 
|  | 6027 | # during glob expansion).  Even if it were fixed, the result of this | 
|  | 6028 | # check would be larger than it should be. | 
|  | 6029 | lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
|  | 6030 | ;; | 
|  | 6031 |  | 
|  | 6032 | gnu*) | 
|  | 6033 | # Under GNU Hurd, this test is not required because there is | 
|  | 6034 | # no limit to the length of command line arguments. | 
|  | 6035 | # Libtool will interpret -1 as no limit whatsoever | 
|  | 6036 | lt_cv_sys_max_cmd_len=-1; | 
|  | 6037 | ;; | 
|  | 6038 |  | 
|  | 6039 | cygwin* | mingw*) | 
|  | 6040 | # On Win9x/ME, this test blows up -- it succeeds, but takes | 
|  | 6041 | # about 5 minutes as the teststring grows exponentially. | 
|  | 6042 | # Worse, since 9x/ME are not pre-emptively multitasking, | 
|  | 6043 | # you end up with a "frozen" computer, even though with patience | 
|  | 6044 | # the test eventually succeeds (with a max line length of 256k). | 
|  | 6045 | # Instead, let's just punt: use the minimum linelength reported by | 
|  | 6046 | # all of the supported platforms: 8192 (on NT/2K/XP). | 
|  | 6047 | lt_cv_sys_max_cmd_len=8192; | 
|  | 6048 | ;; | 
|  | 6049 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6050 | amigaos*) | 
|  | 6051 | # On AmigaOS with pdksh, this test takes hours, literally. | 
|  | 6052 | # So we just punt and use a minimum line length of 8192. | 
|  | 6053 | lt_cv_sys_max_cmd_len=8192; | 
|  | 6054 | ;; | 
|  | 6055 |  | 
|  | 6056 | netbsd* | freebsd* | openbsd* | darwin* ) | 
|  | 6057 | # This has been around since 386BSD, at least.  Likely further. | 
|  | 6058 | if test -x /sbin/sysctl; then | 
|  | 6059 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
|  | 6060 | elif test -x /usr/sbin/sysctl; then | 
|  | 6061 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
|  | 6062 | else | 
|  | 6063 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | 
|  | 6064 | fi | 
|  | 6065 | # And add a safety zone | 
|  | 6066 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
|  | 6067 | ;; | 
|  | 6068 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6069 | *) | 
|  | 6070 | # If test is not a shell built-in, we'll probably end up computing a | 
|  | 6071 | # maximum length that is only half of the actual maximum length, but | 
|  | 6072 | # we can't tell. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6073 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
|  | 6074 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | 
|  | 6075 | = "XX$teststring") >/dev/null 2>&1 && | 
|  | 6076 | new_result=`expr "X$teststring" : ".*" 2>&1` && | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6077 | lt_cv_sys_max_cmd_len=$new_result && | 
|  | 6078 | test $i != 17 # 1/2 MB should be enough | 
|  | 6079 | do | 
|  | 6080 | i=`expr $i + 1` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6081 | teststring=$teststring$teststring | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6082 | done | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6083 | teststring= | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6084 | # Add a significant safety factor because C++ compilers can tack on massive | 
|  | 6085 | # amounts of additional arguments before passing them to the linker. | 
|  | 6086 | # It appears as though 1/2 is a usable value. | 
|  | 6087 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
|  | 6088 | ;; | 
|  | 6089 | esac | 
|  | 6090 |  | 
|  | 6091 | fi | 
|  | 6092 |  | 
|  | 6093 | if test -n $lt_cv_sys_max_cmd_len ; then | 
|  | 6094 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
|  | 6095 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
|  | 6096 | else | 
|  | 6097 | echo "$as_me:$LINENO: result: none" >&5 | 
|  | 6098 | echo "${ECHO_T}none" >&6 | 
|  | 6099 | fi | 
|  | 6100 |  | 
|  | 6101 |  | 
|  | 6102 |  | 
|  | 6103 |  | 
|  | 6104 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
|  | 6105 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
|  | 6106 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
|  | 6107 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
|  | 6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6109 | else | 
|  | 6110 |  | 
|  | 6111 | # These are sane defaults that work on at least a few old systems. | 
|  | 6112 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 6113 |  | 
|  | 6114 | # Character class describing NM global symbol codes. | 
|  | 6115 | symcode='[BCDEGRST]' | 
|  | 6116 |  | 
|  | 6117 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 6118 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 6119 |  | 
|  | 6120 | # Transform the above into a raw symbol and a C symbol. | 
|  | 6121 | symxfrm='\1 \2\3 \3' | 
|  | 6122 |  | 
|  | 6123 | # Transform an extracted symbol line into a proper C declaration | 
|  | 6124 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
|  | 6125 |  | 
|  | 6126 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 6127 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'" | 
|  | 6128 |  | 
|  | 6129 | # Define system-specific variables. | 
|  | 6130 | case $host_os in | 
|  | 6131 | aix*) | 
|  | 6132 | symcode='[BCDT]' | 
|  | 6133 | ;; | 
|  | 6134 | cygwin* | mingw* | pw32*) | 
|  | 6135 | symcode='[ABCDGISTW]' | 
|  | 6136 | ;; | 
|  | 6137 | hpux*) # Its linker distinguishes data from code symbols | 
|  | 6138 | if test "$host_cpu" = ia64; then | 
|  | 6139 | symcode='[ABCDEGRST]' | 
|  | 6140 | fi | 
|  | 6141 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 6142 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'" | 
|  | 6143 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6144 | linux*) | 
|  | 6145 | if test "$host_cpu" = ia64; then | 
|  | 6146 | symcode='[ABCDGIRSTW]' | 
|  | 6147 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 6148 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'" | 
|  | 6149 | fi | 
|  | 6150 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6151 | irix* | nonstopux*) | 
|  | 6152 | symcode='[BCDEGRST]' | 
|  | 6153 | ;; | 
|  | 6154 | osf*) | 
|  | 6155 | symcode='[BCDEGQRST]' | 
|  | 6156 | ;; | 
|  | 6157 | solaris* | sysv5*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6158 | symcode='[BDRT]' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6159 | ;; | 
|  | 6160 | sysv4) | 
|  | 6161 | symcode='[DFNSTU]' | 
|  | 6162 | ;; | 
|  | 6163 | esac | 
|  | 6164 |  | 
|  | 6165 | # Handle CRLF in mingw tool chain | 
|  | 6166 | opt_cr= | 
|  | 6167 | case $build_os in | 
|  | 6168 | mingw*) | 
|  | 6169 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 6170 | ;; | 
|  | 6171 | esac | 
|  | 6172 |  | 
|  | 6173 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 6174 | case `$NM -V 2>&1` in | 
|  | 6175 | *GNU* | *'with BFD'*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6176 | symcode='[ABCDGIRSTW]' ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6177 | esac | 
|  | 6178 |  | 
|  | 6179 | # Try without a prefix undercore, then with it. | 
|  | 6180 | for ac_symprfx in "" "_"; do | 
|  | 6181 |  | 
|  | 6182 | # Write the raw and C identifiers. | 
|  | 6183 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
|  | 6184 |  | 
|  | 6185 | # Check to see that the pipe works correctly. | 
|  | 6186 | pipe_works=no | 
|  | 6187 |  | 
|  | 6188 | rm -f conftest* | 
|  | 6189 | cat > conftest.$ac_ext <<EOF | 
|  | 6190 | #ifdef __cplusplus | 
|  | 6191 | extern "C" { | 
|  | 6192 | #endif | 
|  | 6193 | char nm_test_var; | 
|  | 6194 | void nm_test_func(){} | 
|  | 6195 | #ifdef __cplusplus | 
|  | 6196 | } | 
|  | 6197 | #endif | 
|  | 6198 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 6199 | EOF | 
|  | 6200 |  | 
|  | 6201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 6202 | (eval $ac_compile) 2>&5 | 
|  | 6203 | ac_status=$? | 
|  | 6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6205 | (exit $ac_status); }; then | 
|  | 6206 | # Now try to grab the symbols. | 
|  | 6207 | nlist=conftest.nm | 
|  | 6208 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
|  | 6209 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
|  | 6210 | ac_status=$? | 
|  | 6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6212 | (exit $ac_status); } && test -s "$nlist"; then | 
|  | 6213 | # Try sorting and uniquifying the output. | 
|  | 6214 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 6215 | mv -f "$nlist"T "$nlist" | 
|  | 6216 | else | 
|  | 6217 | rm -f "$nlist"T | 
|  | 6218 | fi | 
|  | 6219 |  | 
|  | 6220 | # Make sure that we snagged all the symbols we need. | 
|  | 6221 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 6222 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 6223 | cat <<EOF > conftest.$ac_ext | 
|  | 6224 | #ifdef __cplusplus | 
|  | 6225 | extern "C" { | 
|  | 6226 | #endif | 
|  | 6227 |  | 
|  | 6228 | EOF | 
|  | 6229 | # Now generate the symbol file. | 
|  | 6230 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
|  | 6231 |  | 
|  | 6232 | cat <<EOF >> conftest.$ac_ext | 
|  | 6233 | #if defined (__STDC__) && __STDC__ | 
|  | 6234 | # define lt_ptr_t void * | 
|  | 6235 | #else | 
|  | 6236 | # define lt_ptr_t char * | 
|  | 6237 | # define const | 
|  | 6238 | #endif | 
|  | 6239 |  | 
|  | 6240 | /* The mapping between symbol names and symbols. */ | 
|  | 6241 | const struct { | 
|  | 6242 | const char *name; | 
|  | 6243 | lt_ptr_t address; | 
|  | 6244 | } | 
|  | 6245 | lt_preloaded_symbols[] = | 
|  | 6246 | { | 
|  | 6247 | EOF | 
|  | 6248 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
|  | 6249 | cat <<\EOF >> conftest.$ac_ext | 
|  | 6250 | {0, (lt_ptr_t) 0} | 
|  | 6251 | }; | 
|  | 6252 |  | 
|  | 6253 | #ifdef __cplusplus | 
|  | 6254 | } | 
|  | 6255 | #endif | 
|  | 6256 | EOF | 
|  | 6257 | # Now try linking the two files. | 
|  | 6258 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 6259 | lt_save_LIBS="$LIBS" | 
|  | 6260 | lt_save_CFLAGS="$CFLAGS" | 
|  | 6261 | LIBS="conftstm.$ac_objext" | 
|  | 6262 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
|  | 6263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 6264 | (eval $ac_link) 2>&5 | 
|  | 6265 | ac_status=$? | 
|  | 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6267 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
|  | 6268 | pipe_works=yes | 
|  | 6269 | fi | 
|  | 6270 | LIBS="$lt_save_LIBS" | 
|  | 6271 | CFLAGS="$lt_save_CFLAGS" | 
|  | 6272 | else | 
|  | 6273 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 6274 | fi | 
|  | 6275 | else | 
|  | 6276 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 6277 | fi | 
|  | 6278 | else | 
|  | 6279 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 6280 | fi | 
|  | 6281 | else | 
|  | 6282 | echo "$progname: failed program was:" >&5 | 
|  | 6283 | cat conftest.$ac_ext >&5 | 
|  | 6284 | fi | 
|  | 6285 | rm -f conftest* conftst* | 
|  | 6286 |  | 
|  | 6287 | # Do not use the global_symbol_pipe unless it works. | 
|  | 6288 | if test "$pipe_works" = yes; then | 
|  | 6289 | break | 
|  | 6290 | else | 
|  | 6291 | lt_cv_sys_global_symbol_pipe= | 
|  | 6292 | fi | 
|  | 6293 | done | 
|  | 6294 |  | 
|  | 6295 | fi | 
|  | 6296 |  | 
|  | 6297 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 6298 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 6299 | fi | 
|  | 6300 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
|  | 6301 | echo "$as_me:$LINENO: result: failed" >&5 | 
|  | 6302 | echo "${ECHO_T}failed" >&6 | 
|  | 6303 | else | 
|  | 6304 | echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 6305 | echo "${ECHO_T}ok" >&6 | 
|  | 6306 | fi | 
|  | 6307 |  | 
|  | 6308 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
|  | 6309 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
|  | 6310 | if test "${lt_cv_objdir+set}" = set; then | 
|  | 6311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6312 | else | 
|  | 6313 | rm -f .libs 2>/dev/null | 
|  | 6314 | mkdir .libs 2>/dev/null | 
|  | 6315 | if test -d .libs; then | 
|  | 6316 | lt_cv_objdir=.libs | 
|  | 6317 | else | 
|  | 6318 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 6319 | lt_cv_objdir=_libs | 
|  | 6320 | fi | 
|  | 6321 | rmdir .libs 2>/dev/null | 
|  | 6322 | fi | 
|  | 6323 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
|  | 6324 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
|  | 6325 | objdir=$lt_cv_objdir | 
|  | 6326 |  | 
|  | 6327 |  | 
|  | 6328 |  | 
|  | 6329 |  | 
|  | 6330 |  | 
|  | 6331 | case $host_os in | 
|  | 6332 | aix3*) | 
|  | 6333 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 6334 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 6335 | # vanish in a puff of smoke. | 
|  | 6336 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 6337 | COLLECT_NAMES= | 
|  | 6338 | export COLLECT_NAMES | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6339 | fi | 
|  | 6340 | ;; | 
|  | 6341 | esac | 
|  | 6342 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6343 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
|  | 6344 | # metacharacters that are still active within double-quoted strings. | 
|  | 6345 | Xsed='sed -e s/^X//' | 
|  | 6346 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
|  | 6347 |  | 
|  | 6348 | # Same as above, but do not quote variable references. | 
|  | 6349 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
|  | 6350 |  | 
|  | 6351 | # Sed substitution to delay expansion of an escaped shell variable in a | 
|  | 6352 | # double_quote_subst'ed string. | 
|  | 6353 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
|  | 6354 |  | 
|  | 6355 | # Sed substitution to avoid accidental globbing in evaled expressions | 
|  | 6356 | no_glob_subst='s/\*/\\\*/g' | 
|  | 6357 |  | 
|  | 6358 | # Constants: | 
|  | 6359 | rm="rm -f" | 
|  | 6360 |  | 
|  | 6361 | # Global variables: | 
| Reid Spencer | 7bf145c | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 6362 | default_ofile=mklib | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6363 | can_build_shared=yes | 
|  | 6364 |  | 
|  | 6365 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
|  | 6366 | # which needs '.lib'). | 
|  | 6367 | libext=a | 
|  | 6368 | ltmain="$ac_aux_dir/ltmain.sh" | 
|  | 6369 | ofile="$default_ofile" | 
|  | 6370 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
|  | 6371 |  | 
|  | 6372 | if test -n "$ac_tool_prefix"; then | 
|  | 6373 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|  | 6374 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
|  | 6375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 6377 | if test "${ac_cv_prog_AR+set}" = set; then | 
|  | 6378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6379 | else | 
|  | 6380 | if test -n "$AR"; then | 
|  | 6381 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 6382 | else | 
|  | 6383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6384 | for as_dir in $PATH | 
|  | 6385 | do | 
|  | 6386 | IFS=$as_save_IFS | 
|  | 6387 | test -z "$as_dir" && as_dir=. | 
|  | 6388 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6390 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
|  | 6391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6392 | break 2 | 
|  | 6393 | fi | 
|  | 6394 | done | 
|  | 6395 | done | 
|  | 6396 |  | 
|  | 6397 | fi | 
|  | 6398 | fi | 
|  | 6399 | AR=$ac_cv_prog_AR | 
|  | 6400 | if test -n "$AR"; then | 
|  | 6401 | echo "$as_me:$LINENO: result: $AR" >&5 | 
|  | 6402 | echo "${ECHO_T}$AR" >&6 | 
|  | 6403 | else | 
|  | 6404 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6405 | echo "${ECHO_T}no" >&6 | 
|  | 6406 | fi | 
|  | 6407 |  | 
|  | 6408 | fi | 
|  | 6409 | if test -z "$ac_cv_prog_AR"; then | 
|  | 6410 | ac_ct_AR=$AR | 
|  | 6411 | # Extract the first word of "ar", so it can be a program name with args. | 
|  | 6412 | set dummy ar; ac_word=$2 | 
|  | 6413 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 6415 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
|  | 6416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6417 | else | 
|  | 6418 | if test -n "$ac_ct_AR"; then | 
|  | 6419 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 6420 | else | 
|  | 6421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6422 | for as_dir in $PATH | 
|  | 6423 | do | 
|  | 6424 | IFS=$as_save_IFS | 
|  | 6425 | test -z "$as_dir" && as_dir=. | 
|  | 6426 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6427 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6428 | ac_cv_prog_ac_ct_AR="ar" | 
|  | 6429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6430 | break 2 | 
|  | 6431 | fi | 
|  | 6432 | done | 
|  | 6433 | done | 
|  | 6434 |  | 
|  | 6435 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
|  | 6436 | fi | 
|  | 6437 | fi | 
|  | 6438 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 6439 | if test -n "$ac_ct_AR"; then | 
|  | 6440 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
|  | 6441 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
|  | 6442 | else | 
|  | 6443 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6444 | echo "${ECHO_T}no" >&6 | 
|  | 6445 | fi | 
|  | 6446 |  | 
|  | 6447 | AR=$ac_ct_AR | 
|  | 6448 | else | 
|  | 6449 | AR="$ac_cv_prog_AR" | 
|  | 6450 | fi | 
|  | 6451 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6452 | if test -n "$ac_tool_prefix"; then | 
|  | 6453 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 6454 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|  | 6455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 6457 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 6458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6459 | else | 
|  | 6460 | if test -n "$RANLIB"; then | 
|  | 6461 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 6462 | else | 
|  | 6463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6464 | for as_dir in $PATH | 
|  | 6465 | do | 
|  | 6466 | IFS=$as_save_IFS | 
|  | 6467 | test -z "$as_dir" && as_dir=. | 
|  | 6468 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6470 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|  | 6471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6472 | break 2 | 
|  | 6473 | fi | 
|  | 6474 | done | 
|  | 6475 | done | 
|  | 6476 |  | 
|  | 6477 | fi | 
|  | 6478 | fi | 
|  | 6479 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 6480 | if test -n "$RANLIB"; then | 
|  | 6481 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 6482 | echo "${ECHO_T}$RANLIB" >&6 | 
|  | 6483 | else | 
|  | 6484 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6485 | echo "${ECHO_T}no" >&6 | 
|  | 6486 | fi | 
|  | 6487 |  | 
|  | 6488 | fi | 
|  | 6489 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 6490 | ac_ct_RANLIB=$RANLIB | 
|  | 6491 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 6492 | set dummy ranlib; ac_word=$2 | 
|  | 6493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 6495 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 6496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6497 | else | 
|  | 6498 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6499 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 6500 | else | 
|  | 6501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6502 | for as_dir in $PATH | 
|  | 6503 | do | 
|  | 6504 | IFS=$as_save_IFS | 
|  | 6505 | test -z "$as_dir" && as_dir=. | 
|  | 6506 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6508 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
|  | 6509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6510 | break 2 | 
|  | 6511 | fi | 
|  | 6512 | done | 
|  | 6513 | done | 
|  | 6514 |  | 
|  | 6515 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
|  | 6516 | fi | 
|  | 6517 | fi | 
|  | 6518 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 6519 | if test -n "$ac_ct_RANLIB"; then | 
|  | 6520 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 6521 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
|  | 6522 | else | 
|  | 6523 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6524 | echo "${ECHO_T}no" >&6 | 
|  | 6525 | fi | 
|  | 6526 |  | 
|  | 6527 | RANLIB=$ac_ct_RANLIB | 
|  | 6528 | else | 
|  | 6529 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 6530 | fi | 
|  | 6531 |  | 
|  | 6532 | if test -n "$ac_tool_prefix"; then | 
|  | 6533 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|  | 6534 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|  | 6535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 6537 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
|  | 6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6539 | else | 
|  | 6540 | if test -n "$STRIP"; then | 
|  | 6541 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|  | 6542 | else | 
|  | 6543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6544 | for as_dir in $PATH | 
|  | 6545 | do | 
|  | 6546 | IFS=$as_save_IFS | 
|  | 6547 | test -z "$as_dir" && as_dir=. | 
|  | 6548 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6550 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|  | 6551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6552 | break 2 | 
|  | 6553 | fi | 
|  | 6554 | done | 
|  | 6555 | done | 
|  | 6556 |  | 
|  | 6557 | fi | 
|  | 6558 | fi | 
|  | 6559 | STRIP=$ac_cv_prog_STRIP | 
|  | 6560 | if test -n "$STRIP"; then | 
|  | 6561 | echo "$as_me:$LINENO: result: $STRIP" >&5 | 
|  | 6562 | echo "${ECHO_T}$STRIP" >&6 | 
|  | 6563 | else | 
|  | 6564 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6565 | echo "${ECHO_T}no" >&6 | 
|  | 6566 | fi | 
|  | 6567 |  | 
|  | 6568 | fi | 
|  | 6569 | if test -z "$ac_cv_prog_STRIP"; then | 
|  | 6570 | ac_ct_STRIP=$STRIP | 
|  | 6571 | # Extract the first word of "strip", so it can be a program name with args. | 
|  | 6572 | set dummy strip; ac_word=$2 | 
|  | 6573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 6574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 6575 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
|  | 6576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6577 | else | 
|  | 6578 | if test -n "$ac_ct_STRIP"; then | 
|  | 6579 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
|  | 6580 | else | 
|  | 6581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6582 | for as_dir in $PATH | 
|  | 6583 | do | 
|  | 6584 | IFS=$as_save_IFS | 
|  | 6585 | test -z "$as_dir" && as_dir=. | 
|  | 6586 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 6588 | ac_cv_prog_ac_ct_STRIP="strip" | 
|  | 6589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6590 | break 2 | 
|  | 6591 | fi | 
|  | 6592 | done | 
|  | 6593 | done | 
|  | 6594 |  | 
|  | 6595 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
|  | 6596 | fi | 
|  | 6597 | fi | 
|  | 6598 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
|  | 6599 | if test -n "$ac_ct_STRIP"; then | 
|  | 6600 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
|  | 6601 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
|  | 6602 | else | 
|  | 6603 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6604 | echo "${ECHO_T}no" >&6 | 
|  | 6605 | fi | 
|  | 6606 |  | 
|  | 6607 | STRIP=$ac_ct_STRIP | 
|  | 6608 | else | 
|  | 6609 | STRIP="$ac_cv_prog_STRIP" | 
|  | 6610 | fi | 
|  | 6611 |  | 
|  | 6612 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6613 | old_CC="$CC" | 
|  | 6614 | old_CFLAGS="$CFLAGS" | 
|  | 6615 |  | 
|  | 6616 | # Set sane defaults for various variables | 
|  | 6617 | test -z "$AR" && AR=ar | 
|  | 6618 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
|  | 6619 | test -z "$AS" && AS=as | 
|  | 6620 | test -z "$CC" && CC=cc | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6621 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6622 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
|  | 6623 | test -z "$LD" && LD=ld | 
|  | 6624 | test -z "$LN_S" && LN_S="ln -s" | 
|  | 6625 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
|  | 6626 | test -z "$NM" && NM=nm | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6627 | test -z "$SED" && SED=sed | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6628 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|  | 6629 | test -z "$RANLIB" && RANLIB=: | 
|  | 6630 | test -z "$STRIP" && STRIP=: | 
|  | 6631 | test -z "$ac_objext" && ac_objext=o | 
|  | 6632 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6633 | # Determine commands to create old-style static archives. | 
|  | 6634 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
|  | 6635 | old_postinstall_cmds='chmod 644 $oldlib' | 
|  | 6636 | old_postuninstall_cmds= | 
|  | 6637 |  | 
|  | 6638 | if test -n "$RANLIB"; then | 
|  | 6639 | case $host_os in | 
|  | 6640 | openbsd*) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6641 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6642 | ;; | 
|  | 6643 | *) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6644 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6645 | ;; | 
|  | 6646 | esac | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6647 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6648 | fi | 
|  | 6649 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6650 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 6651 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6652 | # Only perform the check for file, if the check method requires it | 
|  | 6653 | case $deplibs_check_method in | 
|  | 6654 | file_magic*) | 
|  | 6655 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|  | 6656 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
|  | 6657 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
|  | 6658 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
|  | 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6660 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6661 | case $MAGIC_CMD in | 
|  | 6662 | [\\/*] |  ?:[\\/]*) | 
|  | 6663 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 6664 | ;; | 
|  | 6665 | *) | 
|  | 6666 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 6667 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 6668 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 6669 | for ac_dir in $ac_dummy; do | 
|  | 6670 | IFS="$lt_save_ifs" | 
|  | 6671 | test -z "$ac_dir" && ac_dir=. | 
|  | 6672 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|  | 6673 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|  | 6674 | if test -n "$file_magic_test_file"; then | 
|  | 6675 | case $deplibs_check_method in | 
|  | 6676 | "file_magic "*) | 
|  | 6677 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|  | 6678 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 6679 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 6680 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 6681 | : | 
|  | 6682 | else | 
|  | 6683 | cat <<EOF 1>&2 | 
|  | 6684 |  | 
|  | 6685 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 6686 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 6687 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 6688 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 6689 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 6690 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 6691 | *** may want to report the problem to your system manager and/or to | 
|  | 6692 | *** bug-libtool@gnu.org | 
|  | 6693 |  | 
|  | 6694 | EOF | 
|  | 6695 | fi ;; | 
|  | 6696 | esac | 
|  | 6697 | fi | 
|  | 6698 | break | 
|  | 6699 | fi | 
|  | 6700 | done | 
|  | 6701 | IFS="$lt_save_ifs" | 
|  | 6702 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 6703 | ;; | 
|  | 6704 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6705 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6706 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6707 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 6708 | if test -n "$MAGIC_CMD"; then | 
|  | 6709 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
|  | 6710 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
|  | 6711 | else | 
|  | 6712 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6713 | echo "${ECHO_T}no" >&6 | 
|  | 6714 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6715 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6716 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|  | 6717 | if test -n "$ac_tool_prefix"; then | 
|  | 6718 | echo "$as_me:$LINENO: checking for file" >&5 | 
|  | 6719 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
|  | 6720 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
|  | 6721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6722 | else | 
|  | 6723 | case $MAGIC_CMD in | 
|  | 6724 | [\\/*] |  ?:[\\/]*) | 
|  | 6725 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 6726 | ;; | 
|  | 6727 | *) | 
|  | 6728 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 6729 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 6730 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 6731 | for ac_dir in $ac_dummy; do | 
|  | 6732 | IFS="$lt_save_ifs" | 
|  | 6733 | test -z "$ac_dir" && ac_dir=. | 
|  | 6734 | if test -f $ac_dir/file; then | 
|  | 6735 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|  | 6736 | if test -n "$file_magic_test_file"; then | 
|  | 6737 | case $deplibs_check_method in | 
|  | 6738 | "file_magic "*) | 
|  | 6739 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|  | 6740 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 6741 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 6742 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 6743 | : | 
|  | 6744 | else | 
|  | 6745 | cat <<EOF 1>&2 | 
|  | 6746 |  | 
|  | 6747 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 6748 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 6749 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 6750 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 6751 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 6752 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 6753 | *** may want to report the problem to your system manager and/or to | 
|  | 6754 | *** bug-libtool@gnu.org | 
|  | 6755 |  | 
|  | 6756 | EOF | 
|  | 6757 | fi ;; | 
|  | 6758 | esac | 
|  | 6759 | fi | 
|  | 6760 | break | 
|  | 6761 | fi | 
|  | 6762 | done | 
|  | 6763 | IFS="$lt_save_ifs" | 
|  | 6764 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 6765 | ;; | 
|  | 6766 | esac | 
|  | 6767 | fi | 
|  | 6768 |  | 
|  | 6769 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 6770 | if test -n "$MAGIC_CMD"; then | 
|  | 6771 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
|  | 6772 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
|  | 6773 | else | 
|  | 6774 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 6775 | echo "${ECHO_T}no" >&6 | 
|  | 6776 | fi | 
|  | 6777 |  | 
|  | 6778 | else | 
|  | 6779 | MAGIC_CMD=: | 
|  | 6780 | fi | 
|  | 6781 | fi | 
|  | 6782 |  | 
|  | 6783 | fi | 
|  | 6784 | ;; | 
|  | 6785 | esac | 
|  | 6786 |  | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6787 | enable_dlopen=yes | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6788 | enable_win32_dll=no | 
|  | 6789 |  | 
|  | 6790 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|  | 6791 | if test "${enable_libtool_lock+set}" = set; then | 
|  | 6792 | enableval="$enable_libtool_lock" | 
|  | 6793 |  | 
|  | 6794 | fi; | 
|  | 6795 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
|  | 6796 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6797 |  | 
|  | 6798 | # Check whether --with-pic or --without-pic was given. | 
|  | 6799 | if test "${with_pic+set}" = set; then | 
|  | 6800 | withval="$with_pic" | 
|  | 6801 | pic_mode="$withval" | 
|  | 6802 | else | 
|  | 6803 | pic_mode=default | 
|  | 6804 | fi; | 
|  | 6805 | test -z "$pic_mode" && pic_mode=default | 
|  | 6806 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6807 | # Use C for the default configuration in the libtool script | 
|  | 6808 | tagname= | 
|  | 6809 | lt_save_CC="$CC" | 
|  | 6810 | ac_ext=c | 
|  | 6811 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6815 |  | 
|  | 6816 |  | 
|  | 6817 | # Source file extension for C test sources. | 
|  | 6818 | ac_ext=c | 
|  | 6819 |  | 
|  | 6820 | # Object file extension for compiled C test sources. | 
|  | 6821 | objext=o | 
|  | 6822 | objext=$objext | 
|  | 6823 |  | 
|  | 6824 | # Code to be used in simple compile tests | 
|  | 6825 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
|  | 6826 |  | 
|  | 6827 | # Code to be used in simple link tests | 
|  | 6828 | lt_simple_link_test_code='int main(){return(0);}\n' | 
|  | 6829 |  | 
|  | 6830 |  | 
|  | 6831 | # If no C compiler was specified, use CC. | 
|  | 6832 | LTCC=${LTCC-"$CC"} | 
|  | 6833 |  | 
|  | 6834 | # Allow CC to be a program name with arguments. | 
|  | 6835 | compiler=$CC | 
|  | 6836 |  | 
|  | 6837 |  | 
|  | 6838 | # | 
|  | 6839 | # Check for any special shared library compilation flags. | 
|  | 6840 | # | 
|  | 6841 | lt_prog_cc_shlib= | 
|  | 6842 | if test "$GCC" = no; then | 
|  | 6843 | case $host_os in | 
|  | 6844 | sco3.2v5*) | 
|  | 6845 | lt_prog_cc_shlib='-belf' | 
|  | 6846 | ;; | 
|  | 6847 | esac | 
|  | 6848 | fi | 
|  | 6849 | if test -n "$lt_prog_cc_shlib"; then | 
|  | 6850 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
|  | 6851 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
|  | 6852 | if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
|  | 6853 | else | 
|  | 6854 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
|  | 6855 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
|  | 6856 | lt_cv_prog_cc_can_build_shared=no | 
|  | 6857 | fi | 
|  | 6858 | fi | 
|  | 6859 |  | 
|  | 6860 |  | 
|  | 6861 | # | 
|  | 6862 | # Check to make sure the static flag actually works. | 
|  | 6863 | # | 
|  | 6864 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
|  | 6865 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
|  | 6866 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6868 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6869 | lt_prog_compiler_static_works=no | 
|  | 6870 | save_LDFLAGS="$LDFLAGS" | 
|  | 6871 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
|  | 6872 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 6873 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 6874 | # The compiler can only warn and ignore the option if not recognized | 
|  | 6875 | # So say no if there are warnings | 
|  | 6876 | if test -s conftest.err; then | 
|  | 6877 | # Append any errors to the config.log. | 
|  | 6878 | cat conftest.err 1>&5 | 
|  | 6879 | else | 
|  | 6880 | lt_prog_compiler_static_works=yes | 
|  | 6881 | fi | 
|  | 6882 | fi | 
|  | 6883 | $rm conftest* | 
|  | 6884 | LDFLAGS="$save_LDFLAGS" | 
|  | 6885 |  | 
|  | 6886 | fi | 
|  | 6887 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
|  | 6888 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
|  | 6889 |  | 
|  | 6890 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
|  | 6891 | : | 
|  | 6892 | else | 
|  | 6893 | lt_prog_compiler_static= | 
|  | 6894 | fi | 
|  | 6895 |  | 
|  | 6896 |  | 
|  | 6897 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6898 |  | 
|  | 6899 | lt_prog_compiler_no_builtin_flag= | 
|  | 6900 |  | 
|  | 6901 | if test "$GCC" = yes; then | 
|  | 6902 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
|  | 6903 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6904 |  | 
|  | 6905 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6906 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
|  | 6907 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
|  | 6908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6909 | else | 
|  | 6910 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 6911 | ac_outfile=conftest.$ac_objext | 
|  | 6912 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 6913 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 6914 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 6915 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 6916 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 6917 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 6918 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 6919 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 6920 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 6921 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 6922 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 6923 | (eval echo "\"\$as_me:6923: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6924 | (eval "$lt_compile" 2>conftest.err) | 
|  | 6925 | ac_status=$? | 
|  | 6926 | cat conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 6927 | echo "$as_me:6927: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6928 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 6929 | # The compiler can only warn and ignore the option if not recognized | 
|  | 6930 | # So say no if there are warnings | 
|  | 6931 | if test ! -s conftest.err; then | 
|  | 6932 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 6933 | fi | 
|  | 6934 | fi | 
|  | 6935 | $rm conftest* | 
|  | 6936 |  | 
|  | 6937 | fi | 
|  | 6938 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
|  | 6939 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
|  | 6940 |  | 
|  | 6941 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 6942 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
|  | 6943 | else | 
|  | 6944 | : | 
|  | 6945 | fi | 
|  | 6946 |  | 
|  | 6947 | fi | 
|  | 6948 |  | 
|  | 6949 | lt_prog_compiler_wl= | 
|  | 6950 | lt_prog_compiler_pic= | 
|  | 6951 | lt_prog_compiler_static= | 
|  | 6952 |  | 
|  | 6953 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 6954 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6955 |  | 
|  | 6956 | if test "$GCC" = yes; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6957 | lt_prog_compiler_wl='-Wl,' | 
|  | 6958 | lt_prog_compiler_static='-static' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6959 |  | 
|  | 6960 | case $host_os in | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6961 | aix*) | 
|  | 6962 | # All AIX code is PIC. | 
|  | 6963 | if test "$host_cpu" = ia64; then | 
|  | 6964 | # AIX 5 now supports IA64 processor | 
|  | 6965 | lt_prog_compiler_static='-Bstatic' | 
|  | 6966 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6967 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6968 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6969 | amigaos*) | 
|  | 6970 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 6971 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 6972 | # like `-m68040'. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6973 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6974 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6975 |  | 
|  | 6976 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6977 | # PIC is the default for these OSes. | 
|  | 6978 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6979 |  | 
|  | 6980 | mingw* | pw32* | os2*) | 
|  | 6981 | # This hack is so that the source file can tell whether it is being | 
|  | 6982 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 6983 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 6984 | ;; | 
|  | 6985 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6986 | darwin* | rhapsody*) | 
|  | 6987 | # PIC is the default on this platform | 
|  | 6988 | # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6989 | lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6990 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6991 |  | 
|  | 6992 | msdosdjgpp*) | 
|  | 6993 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 6994 | # on systems that don't support them. | 
|  | 6995 | lt_prog_compiler_can_build_shared=no | 
|  | 6996 | enable_shared=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6997 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6998 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6999 | sysv4*MP*) | 
|  | 7000 | if test -d /usr/nec; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7001 | lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7002 | fi | 
|  | 7003 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7004 |  | 
|  | 7005 | hpux*) | 
|  | 7006 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 7007 | # not for PA HP-UX. | 
|  | 7008 | case "$host_cpu" in | 
|  | 7009 | hppa*64*|ia64*) | 
|  | 7010 | # +Z the default | 
|  | 7011 | ;; | 
|  | 7012 | *) | 
|  | 7013 | lt_prog_compiler_pic='-fPIC' | 
|  | 7014 | ;; | 
|  | 7015 | esac | 
|  | 7016 | ;; | 
|  | 7017 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7018 | *) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7019 | lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7020 | ;; | 
|  | 7021 | esac | 
|  | 7022 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7023 | # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7024 | case $host_os in | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7025 | aix*) | 
|  | 7026 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7027 | if test "$host_cpu" = ia64; then | 
|  | 7028 | # AIX 5 now supports IA64 processor | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7029 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7030 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7031 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7032 | fi | 
|  | 7033 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7034 | darwin*) | 
|  | 7035 | # PIC is the default on this platform | 
|  | 7036 | # Common symbols not allowed in MH_DYLIB files | 
|  | 7037 | case "$cc_basename" in | 
|  | 7038 | xlc*) | 
|  | 7039 | lt_prog_compiler_pic='-qnocommon' | 
|  | 7040 | lt_prog_compiler_wl='-Wl,' | 
|  | 7041 | ;; | 
|  | 7042 | esac | 
|  | 7043 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7044 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7045 | mingw* | pw32* | os2*) | 
|  | 7046 | # This hack is so that the source file can tell whether it is being | 
|  | 7047 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 7048 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 7049 | ;; | 
|  | 7050 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7051 | hpux9* | hpux10* | hpux11*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7052 | lt_prog_compiler_wl='-Wl,' | 
|  | 7053 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 7054 | # not for PA HP-UX. | 
|  | 7055 | case "$host_cpu" in | 
|  | 7056 | hppa*64*|ia64*) | 
|  | 7057 | # +Z the default | 
|  | 7058 | ;; | 
|  | 7059 | *) | 
|  | 7060 | lt_prog_compiler_pic='+Z' | 
|  | 7061 | ;; | 
|  | 7062 | esac | 
|  | 7063 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 7064 | lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7065 | ;; | 
|  | 7066 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7067 | irix5* | irix6* | nonstopux*) | 
|  | 7068 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7069 | # PIC (with -KPIC) is the default. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7070 | lt_prog_compiler_static='-non_shared' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7071 | ;; | 
|  | 7072 |  | 
|  | 7073 | newsos6) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7074 | lt_prog_compiler_pic='-KPIC' | 
|  | 7075 | lt_prog_compiler_static='-Bstatic' | 
|  | 7076 | ;; | 
|  | 7077 |  | 
|  | 7078 | linux*) | 
|  | 7079 | case $CC in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7080 | icc* | ecc*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7081 | lt_prog_compiler_wl='-Wl,' | 
|  | 7082 | lt_prog_compiler_pic='-KPIC' | 
|  | 7083 | lt_prog_compiler_static='-static' | 
|  | 7084 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7085 | ccc*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7086 | lt_prog_compiler_wl='-Wl,' | 
|  | 7087 | # All Alpha code is PIC. | 
|  | 7088 | lt_prog_compiler_static='-non_shared' | 
|  | 7089 | ;; | 
|  | 7090 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7091 | ;; | 
|  | 7092 |  | 
|  | 7093 | osf3* | osf4* | osf5*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7094 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7095 | # All OSF/1 code is PIC. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7096 | lt_prog_compiler_static='-non_shared' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7097 | ;; | 
|  | 7098 |  | 
|  | 7099 | sco3.2v5*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7100 | lt_prog_compiler_pic='-Kpic' | 
|  | 7101 | lt_prog_compiler_static='-dn' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7102 | ;; | 
|  | 7103 |  | 
|  | 7104 | solaris*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7105 | lt_prog_compiler_wl='-Wl,' | 
|  | 7106 | lt_prog_compiler_pic='-KPIC' | 
|  | 7107 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7108 | ;; | 
|  | 7109 |  | 
|  | 7110 | sunos4*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7111 | lt_prog_compiler_wl='-Qoption ld ' | 
|  | 7112 | lt_prog_compiler_pic='-PIC' | 
|  | 7113 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7114 | ;; | 
|  | 7115 |  | 
|  | 7116 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7117 | lt_prog_compiler_wl='-Wl,' | 
|  | 7118 | lt_prog_compiler_pic='-KPIC' | 
|  | 7119 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7120 | ;; | 
|  | 7121 |  | 
|  | 7122 | sysv4*MP*) | 
|  | 7123 | if test -d /usr/nec ;then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7124 | lt_prog_compiler_pic='-Kconform_pic' | 
|  | 7125 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7126 | fi | 
|  | 7127 | ;; | 
|  | 7128 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7129 | uts4*) | 
|  | 7130 | lt_prog_compiler_pic='-pic' | 
|  | 7131 | lt_prog_compiler_static='-Bstatic' | 
|  | 7132 | ;; | 
|  | 7133 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7134 | *) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7135 | lt_prog_compiler_can_build_shared=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7136 | ;; | 
|  | 7137 | esac | 
|  | 7138 | fi | 
|  | 7139 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7140 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
|  | 7141 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7142 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7143 | # | 
|  | 7144 | # Check to make sure the PIC flag actually works. | 
|  | 7145 | # | 
|  | 7146 | if test -n "$lt_prog_compiler_pic"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7147 |  | 
|  | 7148 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7149 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
|  | 7150 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7152 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7153 | lt_prog_compiler_pic_works=no | 
|  | 7154 | ac_outfile=conftest.$ac_objext | 
|  | 7155 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 7156 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
|  | 7157 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 7158 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 7159 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 7160 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 7161 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 7162 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 7163 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 7164 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 7165 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7166 | (eval echo "\"\$as_me:7166: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7167 | (eval "$lt_compile" 2>conftest.err) | 
|  | 7168 | ac_status=$? | 
|  | 7169 | cat conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7170 | echo "$as_me:7170: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7171 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 7172 | # The compiler can only warn and ignore the option if not recognized | 
|  | 7173 | # So say no if there are warnings | 
|  | 7174 | if test ! -s conftest.err; then | 
|  | 7175 | lt_prog_compiler_pic_works=yes | 
|  | 7176 | fi | 
|  | 7177 | fi | 
|  | 7178 | $rm conftest* | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7179 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7180 | fi | 
|  | 7181 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
|  | 7182 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7183 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7184 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
|  | 7185 | case $lt_prog_compiler_pic in | 
|  | 7186 | "" | " "*) ;; | 
|  | 7187 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
|  | 7188 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7189 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7190 | lt_prog_compiler_pic= | 
|  | 7191 | lt_prog_compiler_can_build_shared=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7192 | fi | 
|  | 7193 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7194 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7195 | case "$host_os" in | 
|  | 7196 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 7197 | *djgpp*) | 
|  | 7198 | lt_prog_compiler_pic= | 
|  | 7199 | ;; | 
|  | 7200 | *) | 
|  | 7201 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
|  | 7202 | ;; | 
|  | 7203 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7204 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7205 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 7206 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7207 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7209 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7210 | lt_cv_prog_compiler_c_o=no | 
|  | 7211 | $rm -r conftest 2>/dev/null | 
|  | 7212 | mkdir conftest | 
|  | 7213 | cd conftest | 
|  | 7214 | mkdir out | 
|  | 7215 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7216 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7217 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 7218 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 7219 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 7220 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 7221 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 7222 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 7223 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 7224 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 7225 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7226 | (eval echo "\"\$as_me:7226: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7227 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 7228 | ac_status=$? | 
|  | 7229 | cat out/conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 7230 | echo "$as_me:7230: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7231 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 7232 | then | 
|  | 7233 | # The compiler can only warn and ignore the option if not recognized | 
|  | 7234 | # So say no if there are warnings | 
|  | 7235 | if test ! -s out/conftest.err; then | 
|  | 7236 | lt_cv_prog_compiler_c_o=yes | 
|  | 7237 | fi | 
|  | 7238 | fi | 
|  | 7239 | chmod u+w . | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7240 | $rm conftest* | 
|  | 7241 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 7242 | # template instantiation | 
|  | 7243 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 7244 | $rm out/* && rmdir out | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7245 | cd .. | 
|  | 7246 | rmdir conftest | 
|  | 7247 | $rm conftest* | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7248 |  | 
|  | 7249 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7250 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
|  | 7251 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7252 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7253 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7254 | hard_links="nottested" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7255 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7256 | # do not overwrite the value of need_locks provided by the user | 
|  | 7257 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 7258 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 7259 | hard_links=yes | 
|  | 7260 | $rm conftest* | 
|  | 7261 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 7262 | touch conftest.a | 
|  | 7263 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 7264 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 7265 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 7266 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 7267 | if test "$hard_links" = no; then | 
|  | 7268 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 7269 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 7270 | need_locks=warn | 
|  | 7271 | fi | 
|  | 7272 | else | 
|  | 7273 | need_locks=no | 
|  | 7274 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7275 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7276 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 7277 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 7278 |  | 
|  | 7279 | runpath_var= | 
|  | 7280 | allow_undefined_flag= | 
|  | 7281 | enable_shared_with_static_runtimes=no | 
|  | 7282 | archive_cmds= | 
|  | 7283 | archive_expsym_cmds= | 
|  | 7284 | old_archive_From_new_cmds= | 
|  | 7285 | old_archive_from_expsyms_cmds= | 
|  | 7286 | export_dynamic_flag_spec= | 
|  | 7287 | whole_archive_flag_spec= | 
|  | 7288 | thread_safe_flag_spec= | 
|  | 7289 | hardcode_libdir_flag_spec= | 
|  | 7290 | hardcode_libdir_flag_spec_ld= | 
|  | 7291 | hardcode_libdir_separator= | 
|  | 7292 | hardcode_direct=no | 
|  | 7293 | hardcode_minus_L=no | 
|  | 7294 | hardcode_shlibpath_var=unsupported | 
|  | 7295 | link_all_deplibs=unknown | 
|  | 7296 | hardcode_automatic=no | 
|  | 7297 | module_cmds= | 
|  | 7298 | module_expsym_cmds= | 
|  | 7299 | always_export_symbols=no | 
|  | 7300 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 7301 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 7302 | # included in the symbol list | 
|  | 7303 | include_expsyms= | 
|  | 7304 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 7305 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 7306 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 7307 | # as well as any symbol that contains `d'. | 
|  | 7308 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
|  | 7309 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 7310 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 7311 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 7312 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 7313 | # preloaded symbol tables. | 
|  | 7314 | extract_expsyms_cmds= | 
|  | 7315 |  | 
|  | 7316 | case $host_os in | 
|  | 7317 | cygwin* | mingw* | pw32*) | 
|  | 7318 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 7319 | # When not using gcc, we currently assume that we are using | 
|  | 7320 | # Microsoft Visual C++. | 
|  | 7321 | if test "$GCC" != yes; then | 
|  | 7322 | with_gnu_ld=no | 
|  | 7323 | fi | 
|  | 7324 | ;; | 
|  | 7325 | openbsd*) | 
|  | 7326 | with_gnu_ld=no | 
|  | 7327 | ;; | 
|  | 7328 | esac | 
|  | 7329 |  | 
|  | 7330 | ld_shlibs=yes | 
|  | 7331 | if test "$with_gnu_ld" = yes; then | 
|  | 7332 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 7333 | wlarc='${wl}' | 
|  | 7334 |  | 
|  | 7335 | # See if GNU ld supports shared libraries. | 
|  | 7336 | case $host_os in | 
|  | 7337 | aix3* | aix4* | aix5*) | 
|  | 7338 | # On AIX/PPC, the GNU linker is very broken | 
|  | 7339 | if test "$host_cpu" != ia64; then | 
|  | 7340 | ld_shlibs=no | 
|  | 7341 | cat <<EOF 1>&2 | 
|  | 7342 |  | 
|  | 7343 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 7344 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 7345 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 7346 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 7347 | *** so that a non-GNU linker is found, and then restart. | 
|  | 7348 |  | 
|  | 7349 | EOF | 
|  | 7350 | fi | 
|  | 7351 | ;; | 
|  | 7352 |  | 
|  | 7353 | amigaos*) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7354 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7355 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7356 | hardcode_minus_L=yes | 
|  | 7357 |  | 
|  | 7358 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 7359 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 7360 | # to version 4, is to share data among multiple programs linked | 
|  | 7361 | # with the same dynamic library.  Since this doesn't match the | 
|  | 7362 | # behavior of shared libraries on other platforms, we can't use | 
|  | 7363 | # them. | 
|  | 7364 | ld_shlibs=no | 
|  | 7365 | ;; | 
|  | 7366 |  | 
|  | 7367 | beos*) | 
|  | 7368 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 7369 | allow_undefined_flag=unsupported | 
|  | 7370 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 7371 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 7372 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 7373 | else | 
|  | 7374 | ld_shlibs=no | 
|  | 7375 | fi | 
|  | 7376 | ;; | 
|  | 7377 |  | 
|  | 7378 | cygwin* | mingw* | pw32*) | 
|  | 7379 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
|  | 7380 | # as there is no search path for DLLs. | 
|  | 7381 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7382 | allow_undefined_flag=unsupported | 
|  | 7383 | always_export_symbols=no | 
|  | 7384 | enable_shared_with_static_runtimes=yes | 
|  | 7385 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 7386 |  | 
|  | 7387 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 7388 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 7389 | # If the export-symbols file already is a .def file (1st line | 
|  | 7390 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 7391 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 7392 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 7393 | else | 
|  | 7394 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 7395 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7396 | fi~ | 
|  | 7397 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7398 | else | 
|  | 7399 | ld_shlibs=no | 
|  | 7400 | fi | 
|  | 7401 | ;; | 
|  | 7402 |  | 
|  | 7403 | netbsd*) | 
|  | 7404 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 7405 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 7406 | wlarc= | 
|  | 7407 | else | 
|  | 7408 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 7409 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 7410 | fi | 
|  | 7411 | ;; | 
|  | 7412 |  | 
|  | 7413 | solaris* | sysv5*) | 
|  | 7414 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 7415 | ld_shlibs=no | 
|  | 7416 | cat <<EOF 1>&2 | 
|  | 7417 |  | 
|  | 7418 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 7419 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 7420 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 7421 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 7422 | *** your PATH or compiler configuration so that the native linker is | 
|  | 7423 | *** used, and then restart. | 
|  | 7424 |  | 
|  | 7425 | EOF | 
|  | 7426 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 7427 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 7428 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 7429 | else | 
|  | 7430 | ld_shlibs=no | 
|  | 7431 | fi | 
|  | 7432 | ;; | 
|  | 7433 |  | 
|  | 7434 | sunos4*) | 
|  | 7435 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7436 | wlarc= | 
|  | 7437 | hardcode_direct=yes | 
|  | 7438 | hardcode_shlibpath_var=no | 
|  | 7439 | ;; | 
|  | 7440 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7441 | linux*) | 
|  | 7442 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 7443 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 7444 | archive_cmds="$tmp_archive_cmds" | 
|  | 7445 | supports_anon_versioning=no | 
|  | 7446 | case `$LD -v 2>/dev/null` in | 
|  | 7447 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 7448 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 7449 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 7450 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 7451 | *) supports_anon_versioning=yes ;; | 
|  | 7452 | esac | 
|  | 7453 | if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7454 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 7455 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 7456 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7457 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 7458 | else | 
|  | 7459 | archive_expsym_cmds="$tmp_archive_cmds" | 
|  | 7460 | fi | 
|  | 7461 | else | 
|  | 7462 | ld_shlibs=no | 
|  | 7463 | fi | 
|  | 7464 | ;; | 
|  | 7465 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7466 | *) | 
|  | 7467 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 7468 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 7469 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 7470 | else | 
|  | 7471 | ld_shlibs=no | 
|  | 7472 | fi | 
|  | 7473 | ;; | 
|  | 7474 | esac | 
|  | 7475 |  | 
|  | 7476 | if test "$ld_shlibs" = yes; then | 
|  | 7477 | runpath_var=LD_RUN_PATH | 
|  | 7478 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
|  | 7479 | export_dynamic_flag_spec='${wl}--export-dynamic' | 
|  | 7480 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 7481 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 7482 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 7483 | else | 
|  | 7484 | whole_archive_flag_spec= | 
|  | 7485 | fi | 
|  | 7486 | fi | 
|  | 7487 | else | 
|  | 7488 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 7489 | case $host_os in | 
|  | 7490 | aix3*) | 
|  | 7491 | allow_undefined_flag=unsupported | 
|  | 7492 | always_export_symbols=yes | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7493 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7494 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 7495 | # are no directories specified by -L. | 
|  | 7496 | hardcode_minus_L=yes | 
|  | 7497 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 7498 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 7499 | # broken collect2. | 
|  | 7500 | hardcode_direct=unsupported | 
|  | 7501 | fi | 
|  | 7502 | ;; | 
|  | 7503 |  | 
|  | 7504 | aix4* | aix5*) | 
|  | 7505 | if test "$host_cpu" = ia64; then | 
|  | 7506 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 7507 | # have to do anything special. | 
|  | 7508 | aix_use_runtimelinking=no | 
|  | 7509 | exp_sym_flag='-Bexport' | 
|  | 7510 | no_entry_flag="" | 
|  | 7511 | else | 
|  | 7512 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 7513 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 7514 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 7515 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 7516 | else | 
|  | 7517 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 7518 | fi | 
|  | 7519 | aix_use_runtimelinking=no | 
|  | 7520 |  | 
|  | 7521 | # Test if we are trying to use run time linking or normal | 
|  | 7522 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 7523 | # need to do runtime linking. | 
|  | 7524 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 7525 | for ld_flag in $LDFLAGS; do | 
|  | 7526 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 7527 | aix_use_runtimelinking=yes | 
|  | 7528 | break | 
|  | 7529 | fi | 
|  | 7530 | done | 
|  | 7531 | esac | 
|  | 7532 |  | 
|  | 7533 | exp_sym_flag='-bexport' | 
|  | 7534 | no_entry_flag='-bnoentry' | 
|  | 7535 | fi | 
|  | 7536 |  | 
|  | 7537 | # When large executables or shared objects are built, AIX ld can | 
|  | 7538 | # have problems creating the table of contents.  If linking a library | 
|  | 7539 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 7540 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 7541 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 7542 |  | 
|  | 7543 | archive_cmds='' | 
|  | 7544 | hardcode_direct=yes | 
|  | 7545 | hardcode_libdir_separator=':' | 
|  | 7546 | link_all_deplibs=yes | 
|  | 7547 |  | 
|  | 7548 | if test "$GCC" = yes; then | 
|  | 7549 | case $host_os in aix4.012|aix4.012.*) | 
|  | 7550 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 7551 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 7552 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 7553 | if test -f "$collect2name" && \ | 
|  | 7554 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 7555 | then | 
|  | 7556 | # We have reworked collect2 | 
|  | 7557 | hardcode_direct=yes | 
|  | 7558 | else | 
|  | 7559 | # We have old collect2 | 
|  | 7560 | hardcode_direct=unsupported | 
|  | 7561 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 7562 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 7563 | # to unsupported forces relinking | 
|  | 7564 | hardcode_minus_L=yes | 
|  | 7565 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7566 | hardcode_libdir_separator= | 
|  | 7567 | fi | 
|  | 7568 | esac | 
|  | 7569 | shared_flag='-shared' | 
|  | 7570 | else | 
|  | 7571 | # not using gcc | 
|  | 7572 | if test "$host_cpu" = ia64; then | 
|  | 7573 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 7574 | # chokes on -Wl,-G. The following line is correct: | 
|  | 7575 | shared_flag='-G' | 
|  | 7576 | else | 
|  | 7577 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 7578 | shared_flag='${wl}-G' | 
|  | 7579 | else | 
|  | 7580 | shared_flag='${wl}-bM:SRE' | 
|  | 7581 | fi | 
|  | 7582 | fi | 
|  | 7583 | fi | 
|  | 7584 |  | 
|  | 7585 | # It seems that -bexpall does not export symbols beginning with | 
|  | 7586 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 7587 | always_export_symbols=yes | 
|  | 7588 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 7589 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 7590 | # -berok will link without error, but may produce a broken library. | 
|  | 7591 | allow_undefined_flag='-berok' | 
|  | 7592 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 7593 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7594 | /* confdefs.h.  */ | 
|  | 7595 | _ACEOF | 
|  | 7596 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7597 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7598 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7599 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7600 | int | 
|  | 7601 | main () | 
|  | 7602 | { | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7603 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7604 | ; | 
|  | 7605 | return 0; | 
|  | 7606 | } | 
|  | 7607 | _ACEOF | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7608 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7610 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7611 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7612 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7613 | rm -f conftest.er1 | 
|  | 7614 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7616 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7617 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7618 | || test ! -s conftest.err' | 
|  | 7619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7620 | (eval $ac_try) 2>&5 | 
|  | 7621 | ac_status=$? | 
|  | 7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7623 | (exit $ac_status); }; } && | 
|  | 7624 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7626 | (eval $ac_try) 2>&5 | 
|  | 7627 | ac_status=$? | 
|  | 7628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7629 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7630 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7631 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 7632 | }'` | 
|  | 7633 | # Check for a 64-bit object if we didn't find anything. | 
|  | 7634 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 7635 | }'`; fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7636 | else | 
|  | 7637 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7638 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7639 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7640 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7641 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 7642 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7643 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7644 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7645 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 7646 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
|  | 7647 | else | 
|  | 7648 | if test "$host_cpu" = ia64; then | 
|  | 7649 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 7650 | allow_undefined_flag="-z nodefs" | 
|  | 7651 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 
|  | 7652 | else | 
|  | 7653 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 7654 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7655 | /* confdefs.h.  */ | 
|  | 7656 | _ACEOF | 
|  | 7657 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7658 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7659 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7660 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7661 | int | 
|  | 7662 | main () | 
|  | 7663 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7664 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7665 | ; | 
|  | 7666 | return 0; | 
|  | 7667 | } | 
|  | 7668 | _ACEOF | 
|  | 7669 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7671 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7672 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7673 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7674 | rm -f conftest.er1 | 
|  | 7675 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7677 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7678 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7679 | || test ! -s conftest.err' | 
|  | 7680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7681 | (eval $ac_try) 2>&5 | 
|  | 7682 | ac_status=$? | 
|  | 7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7684 | (exit $ac_status); }; } && | 
|  | 7685 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7687 | (eval $ac_try) 2>&5 | 
|  | 7688 | ac_status=$? | 
|  | 7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7690 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7691 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7692 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 7693 | }'` | 
|  | 7694 | # Check for a 64-bit object if we didn't find anything. | 
|  | 7695 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 7696 | }'`; fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7697 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7698 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7699 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7700 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7701 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7702 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 7703 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7704 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7705 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7706 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 7707 | # Warning - without using the other run time loading flags, | 
|  | 7708 | # -berok will link without error, but may produce a broken library. | 
|  | 7709 | no_undefined_flag=' ${wl}-bernotok' | 
|  | 7710 | allow_undefined_flag=' ${wl}-berok' | 
|  | 7711 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 7712 | always_export_symbols=yes | 
|  | 7713 | # Exported symbols can be pulled into shared objects from archives | 
|  | 7714 | whole_archive_flag_spec=' ' | 
|  | 7715 | archive_cmds_need_lc=yes | 
|  | 7716 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7717 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7718 | fi | 
|  | 7719 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7720 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7721 |  | 
|  | 7722 | amigaos*) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7723 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7724 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7725 | hardcode_minus_L=yes | 
|  | 7726 | # see comment about different semantics on the GNU ld section | 
|  | 7727 | ld_shlibs=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7728 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7729 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7730 | bsdi[45]*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7731 | export_dynamic_flag_spec=-rdynamic | 
|  | 7732 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7733 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7734 | cygwin* | mingw* | pw32*) | 
|  | 7735 | # When not using gcc, we currently assume that we are using | 
|  | 7736 | # Microsoft Visual C++. | 
|  | 7737 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 7738 | # no search path for DLLs. | 
|  | 7739 | hardcode_libdir_flag_spec=' ' | 
|  | 7740 | allow_undefined_flag=unsupported | 
|  | 7741 | # Tell ltmain to make .lib files, not .a files. | 
|  | 7742 | libext=lib | 
|  | 7743 | # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7744 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7745 | # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7746 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7747 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 7748 | old_archive_From_new_cmds='true' | 
|  | 7749 | # FIXME: Should let the user specify the lib program. | 
|  | 7750 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 7751 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 7752 | enable_shared_with_static_runtimes=yes | 
|  | 7753 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7754 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7755 | darwin* | rhapsody*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7756 | case "$host_os" in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7757 | rhapsody* | darwin1.[012]) | 
|  | 7758 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | 
|  | 7759 | ;; | 
|  | 7760 | *) # Darwin 1.3 on | 
|  | 7761 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 7762 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 7763 | else | 
|  | 7764 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 7765 | 10.[012]) | 
|  | 7766 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 7767 | ;; | 
|  | 7768 | 10.*) | 
|  | 7769 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 7770 | ;; | 
|  | 7771 | esac | 
|  | 7772 | fi | 
|  | 7773 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7774 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7775 | archive_cmds_need_lc=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7776 | hardcode_direct=no | 
|  | 7777 | hardcode_automatic=yes | 
|  | 7778 | hardcode_shlibpath_var=unsupported | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7779 | whole_archive_flag_spec='' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7780 | link_all_deplibs=yes | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7781 | if test "$GCC" = yes ; then | 
|  | 7782 | output_verbose_link_cmd='echo' | 
|  | 7783 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 7784 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 7785 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7786 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 7787 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7788 | else | 
|  | 7789 | case "$cc_basename" in | 
|  | 7790 | xlc*) | 
|  | 7791 | output_verbose_link_cmd='echo' | 
|  | 7792 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
|  | 7793 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 7794 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7795 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 7796 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7797 | ;; | 
|  | 7798 | *) | 
|  | 7799 | ld_shlibs=no | 
|  | 7800 | ;; | 
|  | 7801 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7802 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7803 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7804 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7805 | dgux*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7806 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7807 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7808 | hardcode_shlibpath_var=no | 
|  | 7809 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7810 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7811 | freebsd1*) | 
|  | 7812 | ld_shlibs=no | 
|  | 7813 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7814 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7815 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 7816 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 7817 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 7818 | # extra space). | 
|  | 7819 | freebsd2.2*) | 
|  | 7820 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 7821 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 7822 | hardcode_direct=yes | 
|  | 7823 | hardcode_shlibpath_var=no | 
|  | 7824 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7825 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7826 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 7827 | freebsd2*) | 
|  | 7828 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7829 | hardcode_direct=yes | 
|  | 7830 | hardcode_minus_L=yes | 
|  | 7831 | hardcode_shlibpath_var=no | 
|  | 7832 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7833 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7834 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7835 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7836 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 7837 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 7838 | hardcode_direct=yes | 
|  | 7839 | hardcode_shlibpath_var=no | 
|  | 7840 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7841 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7842 | hpux9*) | 
|  | 7843 | if test "$GCC" = yes; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7844 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7845 | else | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7846 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7847 | fi | 
|  | 7848 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 7849 | hardcode_libdir_separator=: | 
|  | 7850 | hardcode_direct=yes | 
|  | 7851 |  | 
|  | 7852 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 7853 | # but as the default location of the library. | 
|  | 7854 | hardcode_minus_L=yes | 
|  | 7855 | export_dynamic_flag_spec='${wl}-E' | 
|  | 7856 | ;; | 
|  | 7857 |  | 
|  | 7858 | hpux10* | hpux11*) | 
|  | 7859 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 7860 | case "$host_cpu" in | 
|  | 7861 | hppa*64*|ia64*) | 
|  | 7862 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 7863 | ;; | 
|  | 7864 | *) | 
|  | 7865 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 7866 | ;; | 
|  | 7867 | esac | 
|  | 7868 | else | 
|  | 7869 | case "$host_cpu" in | 
|  | 7870 | hppa*64*|ia64*) | 
|  | 7871 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7872 | ;; | 
|  | 7873 | *) | 
|  | 7874 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7875 | ;; | 
|  | 7876 | esac | 
|  | 7877 | fi | 
|  | 7878 | if test "$with_gnu_ld" = no; then | 
|  | 7879 | case "$host_cpu" in | 
|  | 7880 | hppa*64*) | 
|  | 7881 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 7882 | hardcode_libdir_flag_spec_ld='+b $libdir' | 
|  | 7883 | hardcode_libdir_separator=: | 
|  | 7884 | hardcode_direct=no | 
|  | 7885 | hardcode_shlibpath_var=no | 
|  | 7886 | ;; | 
|  | 7887 | ia64*) | 
|  | 7888 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7889 | hardcode_direct=no | 
|  | 7890 | hardcode_shlibpath_var=no | 
|  | 7891 |  | 
|  | 7892 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 7893 | # but as the default location of the library. | 
|  | 7894 | hardcode_minus_L=yes | 
|  | 7895 | ;; | 
|  | 7896 | *) | 
|  | 7897 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 7898 | hardcode_libdir_separator=: | 
|  | 7899 | hardcode_direct=yes | 
|  | 7900 | export_dynamic_flag_spec='${wl}-E' | 
|  | 7901 |  | 
|  | 7902 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 7903 | # but as the default location of the library. | 
|  | 7904 | hardcode_minus_L=yes | 
|  | 7905 | ;; | 
|  | 7906 | esac | 
|  | 7907 | fi | 
|  | 7908 | ;; | 
|  | 7909 |  | 
|  | 7910 | irix5* | irix6* | nonstopux*) | 
|  | 7911 | if test "$GCC" = yes; then | 
|  | 7912 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 7913 | else | 
|  | 7914 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|  | 7915 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
|  | 7916 | fi | 
|  | 7917 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 7918 | hardcode_libdir_separator=: | 
|  | 7919 | link_all_deplibs=yes | 
|  | 7920 | ;; | 
|  | 7921 |  | 
|  | 7922 | netbsd*) | 
|  | 7923 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 7924 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 7925 | else | 
|  | 7926 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 7927 | fi | 
|  | 7928 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 7929 | hardcode_direct=yes | 
|  | 7930 | hardcode_shlibpath_var=no | 
|  | 7931 | ;; | 
|  | 7932 |  | 
|  | 7933 | newsos6) | 
|  | 7934 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7935 | hardcode_direct=yes | 
|  | 7936 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 7937 | hardcode_libdir_separator=: | 
|  | 7938 | hardcode_shlibpath_var=no | 
|  | 7939 | ;; | 
|  | 7940 |  | 
|  | 7941 | openbsd*) | 
|  | 7942 | hardcode_direct=yes | 
|  | 7943 | hardcode_shlibpath_var=no | 
|  | 7944 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 7945 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7946 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7947 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 7948 | export_dynamic_flag_spec='${wl}-E' | 
|  | 7949 | else | 
|  | 7950 | case $host_os in | 
|  | 7951 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 7952 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 7953 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 7954 | ;; | 
|  | 7955 | *) | 
|  | 7956 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 7957 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 7958 | ;; | 
|  | 7959 | esac | 
|  | 7960 | fi | 
|  | 7961 | ;; | 
|  | 7962 |  | 
|  | 7963 | os2*) | 
|  | 7964 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 7965 | hardcode_minus_L=yes | 
|  | 7966 | allow_undefined_flag=unsupported | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7967 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7968 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 7969 | ;; | 
|  | 7970 |  | 
|  | 7971 | osf3*) | 
|  | 7972 | if test "$GCC" = yes; then | 
|  | 7973 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 7974 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 7975 | else | 
|  | 7976 | allow_undefined_flag=' -expect_unresolved \*' | 
|  | 7977 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|  | 7978 | fi | 
|  | 7979 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 7980 | hardcode_libdir_separator=: | 
|  | 7981 | ;; | 
|  | 7982 |  | 
|  | 7983 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 7984 | if test "$GCC" = yes; then | 
|  | 7985 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 7986 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 7987 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 7988 | else | 
|  | 7989 | allow_undefined_flag=' -expect_unresolved \*' | 
|  | 7990 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7991 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
|  | 7992 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | 
|  | 7993 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7994 | # Both c and cxx compiler support -rpath directly | 
|  | 7995 | hardcode_libdir_flag_spec='-rpath $libdir' | 
|  | 7996 | fi | 
|  | 7997 | hardcode_libdir_separator=: | 
|  | 7998 | ;; | 
|  | 7999 |  | 
|  | 8000 | sco3.2v5*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8001 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8002 | hardcode_shlibpath_var=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8003 | export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8004 | runpath_var=LD_RUN_PATH | 
|  | 8005 | hardcode_runpath_var=yes | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8006 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8007 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8008 | solaris*) | 
|  | 8009 | no_undefined_flag=' -z text' | 
|  | 8010 | if test "$GCC" = yes; then | 
|  | 8011 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8012 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 8013 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8014 | else | 
|  | 8015 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8016 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 8017 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8018 | fi | 
|  | 8019 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 8020 | hardcode_shlibpath_var=no | 
|  | 8021 | case $host_os in | 
|  | 8022 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 8023 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 8024 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
|  | 8025 | esac | 
|  | 8026 | link_all_deplibs=yes | 
|  | 8027 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8028 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8029 | sunos4*) | 
|  | 8030 | if test "x$host_vendor" = xsequent; then | 
|  | 8031 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 8032 | # files that make .init and .fini sections work. | 
|  | 8033 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 8034 | else | 
|  | 8035 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8036 | fi | 
|  | 8037 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 8038 | hardcode_direct=yes | 
|  | 8039 | hardcode_minus_L=yes | 
|  | 8040 | hardcode_shlibpath_var=no | 
|  | 8041 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8042 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8043 | sysv4) | 
|  | 8044 | case $host_vendor in | 
|  | 8045 | sni) | 
|  | 8046 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8047 | hardcode_direct=yes # is this really true??? | 
|  | 8048 | ;; | 
|  | 8049 | siemens) | 
|  | 8050 | ## LD is ld it makes a PLAMLIB | 
|  | 8051 | ## CC just makes a GrossModule. | 
|  | 8052 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8053 | reload_cmds='$CC -r -o $output$reload_objs' | 
|  | 8054 | hardcode_direct=no | 
|  | 8055 | ;; | 
|  | 8056 | motorola) | 
|  | 8057 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8058 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
|  | 8059 | ;; | 
|  | 8060 | esac | 
|  | 8061 | runpath_var='LD_RUN_PATH' | 
|  | 8062 | hardcode_shlibpath_var=no | 
|  | 8063 | ;; | 
|  | 8064 |  | 
|  | 8065 | sysv4.3*) | 
|  | 8066 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8067 | hardcode_shlibpath_var=no | 
|  | 8068 | export_dynamic_flag_spec='-Bexport' | 
|  | 8069 | ;; | 
|  | 8070 |  | 
|  | 8071 | sysv4*MP*) | 
|  | 8072 | if test -d /usr/nec; then | 
|  | 8073 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8074 | hardcode_shlibpath_var=no | 
|  | 8075 | runpath_var=LD_RUN_PATH | 
|  | 8076 | hardcode_runpath_var=yes | 
|  | 8077 | ld_shlibs=yes | 
|  | 8078 | fi | 
|  | 8079 | ;; | 
|  | 8080 |  | 
|  | 8081 | sysv4.2uw2*) | 
|  | 8082 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8083 | hardcode_direct=yes | 
|  | 8084 | hardcode_minus_L=no | 
|  | 8085 | hardcode_shlibpath_var=no | 
|  | 8086 | hardcode_runpath_var=yes | 
|  | 8087 | runpath_var=LD_RUN_PATH | 
|  | 8088 | ;; | 
|  | 8089 |  | 
|  | 8090 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 8091 | no_undefined_flag='${wl}-z ${wl}text' | 
|  | 8092 | if test "$GCC" = yes; then | 
|  | 8093 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 8094 | else | 
|  | 8095 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 8096 | fi | 
|  | 8097 | runpath_var='LD_RUN_PATH' | 
|  | 8098 | hardcode_shlibpath_var=no | 
|  | 8099 | ;; | 
|  | 8100 |  | 
|  | 8101 | sysv5*) | 
|  | 8102 | no_undefined_flag=' -z text' | 
|  | 8103 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 8104 | # object files and a static libstdc++, better avoid it by now | 
|  | 8105 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8106 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 8107 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8108 | hardcode_libdir_flag_spec= | 
|  | 8109 | hardcode_shlibpath_var=no | 
|  | 8110 | runpath_var='LD_RUN_PATH' | 
|  | 8111 | ;; | 
|  | 8112 |  | 
|  | 8113 | uts4*) | 
|  | 8114 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 8115 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 8116 | hardcode_shlibpath_var=no | 
|  | 8117 | ;; | 
|  | 8118 |  | 
|  | 8119 | *) | 
|  | 8120 | ld_shlibs=no | 
|  | 8121 | ;; | 
|  | 8122 | esac | 
|  | 8123 | fi | 
|  | 8124 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8125 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
|  | 8126 | echo "${ECHO_T}$ld_shlibs" >&6 | 
|  | 8127 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8128 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8129 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 8130 | if test "$GCC" = yes; then | 
|  | 8131 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 8132 | fi | 
|  | 8133 |  | 
|  | 8134 | # | 
|  | 8135 | # Do we need to explicitly link libc? | 
|  | 8136 | # | 
|  | 8137 | case "x$archive_cmds_need_lc" in | 
|  | 8138 | x|xyes) | 
|  | 8139 | # Assume -lc should be added | 
|  | 8140 | archive_cmds_need_lc=yes | 
|  | 8141 |  | 
|  | 8142 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 8143 | case $archive_cmds in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8144 | *'~'*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8145 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 8146 | ;; | 
|  | 8147 | '$CC '*) | 
|  | 8148 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 8149 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 8150 | # to ld, don't add -lc before -lgcc. | 
|  | 8151 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 8152 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 8153 | $rm conftest* | 
|  | 8154 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 8155 |  | 
|  | 8156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 8157 | (eval $ac_compile) 2>&5 | 
|  | 8158 | ac_status=$? | 
|  | 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8160 | (exit $ac_status); } 2>conftest.err; then | 
|  | 8161 | soname=conftest | 
|  | 8162 | lib=conftest | 
|  | 8163 | libobjs=conftest.$ac_objext | 
|  | 8164 | deplibs= | 
|  | 8165 | wl=$lt_prog_compiler_wl | 
|  | 8166 | compiler_flags=-v | 
|  | 8167 | linker_flags=-v | 
|  | 8168 | verstring= | 
|  | 8169 | output_objdir=. | 
|  | 8170 | libname=conftest | 
|  | 8171 | lt_save_allow_undefined_flag=$allow_undefined_flag | 
|  | 8172 | allow_undefined_flag= | 
|  | 8173 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 8174 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 8175 | ac_status=$? | 
|  | 8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8177 | (exit $ac_status); } | 
|  | 8178 | then | 
|  | 8179 | archive_cmds_need_lc=no | 
|  | 8180 | else | 
|  | 8181 | archive_cmds_need_lc=yes | 
|  | 8182 | fi | 
|  | 8183 | allow_undefined_flag=$lt_save_allow_undefined_flag | 
|  | 8184 | else | 
|  | 8185 | cat conftest.err 1>&5 | 
|  | 8186 | fi | 
|  | 8187 | $rm conftest* | 
|  | 8188 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
|  | 8189 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
|  | 8190 | ;; | 
|  | 8191 | esac | 
|  | 8192 | fi | 
|  | 8193 | ;; | 
|  | 8194 | esac | 
|  | 8195 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8196 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 8197 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 8198 | library_names_spec= | 
|  | 8199 | libname_spec='lib$name' | 
|  | 8200 | soname_spec= | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8201 | shrext_cmds=".so" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8202 | postinstall_cmds= | 
|  | 8203 | postuninstall_cmds= | 
|  | 8204 | finish_cmds= | 
|  | 8205 | finish_eval= | 
|  | 8206 | shlibpath_var= | 
|  | 8207 | shlibpath_overrides_runpath=unknown | 
|  | 8208 | version_type=none | 
|  | 8209 | dynamic_linker="$host_os ld.so" | 
|  | 8210 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8211 | if test "$GCC" = yes; then | 
|  | 8212 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8213 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 8214 | # if the path contains ";" then we assume it to be the separator | 
|  | 8215 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 8216 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 8217 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 8218 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8219 | else | 
|  | 8220 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8221 | fi | 
|  | 8222 | else | 
|  | 8223 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 8224 | fi | 
|  | 8225 | need_lib_prefix=unknown | 
|  | 8226 | hardcode_into_libs=no | 
|  | 8227 |  | 
|  | 8228 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 8229 | # flags to be left without arguments | 
|  | 8230 | need_version=unknown | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8231 |  | 
|  | 8232 | case $host_os in | 
|  | 8233 | aix3*) | 
|  | 8234 | version_type=linux | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8235 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8236 | shlibpath_var=LIBPATH | 
|  | 8237 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8238 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 8239 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8240 | ;; | 
|  | 8241 |  | 
|  | 8242 | aix4* | aix5*) | 
|  | 8243 | version_type=linux | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8244 | need_lib_prefix=no | 
|  | 8245 | need_version=no | 
|  | 8246 | hardcode_into_libs=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8247 | if test "$host_cpu" = ia64; then | 
|  | 8248 | # AIX 5 supports IA64 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8249 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8250 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8251 | else | 
|  | 8252 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 8253 | # for dependence libraries.  The import file would start with | 
|  | 8254 | # the line `#! .'.  This would cause the generated library to | 
|  | 8255 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 8256 | # development snapshots of GCC prior to 3.0. | 
|  | 8257 | case $host_os in | 
|  | 8258 | aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8259 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 8260 | echo ' yes ' | 
|  | 8261 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 8262 | : | 
|  | 8263 | else | 
|  | 8264 | can_build_shared=no | 
|  | 8265 | fi | 
|  | 8266 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8267 | esac | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8268 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 8269 | # soname into executable. Probably we can add versioning support to | 
|  | 8270 | # collect2, so additional links can be useful in future. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8271 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 8272 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 8273 | # instead of lib<name>.a to let people know that these are not | 
|  | 8274 | # typical AIX shared libraries. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8276 | else | 
|  | 8277 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 8278 | # and later when we are not doing run time linking. | 
|  | 8279 | library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8280 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8281 | fi | 
|  | 8282 | shlibpath_var=LIBPATH | 
|  | 8283 | fi | 
|  | 8284 | ;; | 
|  | 8285 |  | 
|  | 8286 | amigaos*) | 
|  | 8287 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 8288 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8289 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8290 | ;; | 
|  | 8291 |  | 
|  | 8292 | beos*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8293 | library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8294 | dynamic_linker="$host_os ld.so" | 
|  | 8295 | shlibpath_var=LIBRARY_PATH | 
|  | 8296 | ;; | 
|  | 8297 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8298 | bsdi[45]*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8299 | version_type=linux | 
|  | 8300 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8302 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8303 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 8304 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8305 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 8306 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8307 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 8308 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 8309 | # libtool to hard-code these into programs | 
|  | 8310 | ;; | 
|  | 8311 |  | 
|  | 8312 | cygwin* | mingw* | pw32*) | 
|  | 8313 | version_type=windows | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8314 | shrext_cmds=".dll" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8315 | need_version=no | 
|  | 8316 | need_lib_prefix=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8317 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8318 | case $GCC,$host_os in | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8319 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8320 | library_names_spec='$libname.dll.a' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8321 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8322 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 8323 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 8324 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 8325 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8326 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8327 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 8328 | dlpath=$dir/\$dldll~ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8329 | $rm \$dlpath' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8330 | shlibpath_overrides_runpath=yes | 
|  | 8331 |  | 
|  | 8332 | case $host_os in | 
|  | 8333 | cygwin*) | 
|  | 8334 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 8335 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8336 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8337 | ;; | 
|  | 8338 | mingw*) | 
|  | 8339 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 8340 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 8341 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 8342 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 8343 | # It is most probably a Windows format PATH printed by | 
|  | 8344 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 8345 | # path with ; separators, and with drive letters. We can handle the | 
|  | 8346 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 8347 | # especially as we might pass files found there to a mingw objdump, | 
|  | 8348 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 8349 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 8350 | else | 
|  | 8351 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 8352 | fi | 
|  | 8353 | ;; | 
|  | 8354 | pw32*) | 
|  | 8355 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 8356 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 8357 | ;; | 
|  | 8358 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8359 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8360 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8361 | *) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8362 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8363 | ;; | 
|  | 8364 | esac | 
|  | 8365 | dynamic_linker='Win32 ld.exe' | 
|  | 8366 | # FIXME: first we should search . and the directory the executable is in | 
|  | 8367 | shlibpath_var=PATH | 
|  | 8368 | ;; | 
|  | 8369 |  | 
|  | 8370 | darwin* | rhapsody*) | 
|  | 8371 | dynamic_linker="$host_os dyld" | 
|  | 8372 | version_type=darwin | 
|  | 8373 | need_lib_prefix=no | 
|  | 8374 | need_version=no | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8375 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8376 | soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8377 | shlibpath_overrides_runpath=yes | 
|  | 8378 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8379 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8380 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8381 | if test "$GCC" = yes; then | 
|  | 8382 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | 
|  | 8383 | else | 
|  | 8384 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8385 | fi | 
|  | 8386 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 8387 | ;; | 
|  | 8388 |  | 
|  | 8389 | dgux*) | 
|  | 8390 | version_type=linux | 
|  | 8391 | need_lib_prefix=no | 
|  | 8392 | need_version=no | 
|  | 8393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 8394 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8395 | shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8396 | ;; | 
|  | 8397 |  | 
|  | 8398 | freebsd1*) | 
|  | 8399 | dynamic_linker=no | 
|  | 8400 | ;; | 
|  | 8401 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8402 | kfreebsd*-gnu) | 
|  | 8403 | version_type=linux | 
|  | 8404 | need_lib_prefix=no | 
|  | 8405 | need_version=no | 
|  | 8406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 8407 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8408 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8409 | shlibpath_overrides_runpath=no | 
|  | 8410 | hardcode_into_libs=yes | 
|  | 8411 | dynamic_linker='GNU ld.so' | 
|  | 8412 | ;; | 
|  | 8413 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8414 | freebsd*) | 
|  | 8415 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 8416 | version_type=freebsd-$objformat | 
|  | 8417 | case $version_type in | 
|  | 8418 | freebsd-elf*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8420 | need_version=no | 
|  | 8421 | need_lib_prefix=no | 
|  | 8422 | ;; | 
|  | 8423 | freebsd-*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8424 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8425 | need_version=yes | 
|  | 8426 | ;; | 
|  | 8427 | esac | 
|  | 8428 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8429 | case $host_os in | 
|  | 8430 | freebsd2*) | 
|  | 8431 | shlibpath_overrides_runpath=yes | 
|  | 8432 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8433 | freebsd3.01* | freebsdelf3.01*) | 
|  | 8434 | shlibpath_overrides_runpath=yes | 
|  | 8435 | hardcode_into_libs=yes | 
|  | 8436 | ;; | 
|  | 8437 | *) # from 3.2 on | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8438 | shlibpath_overrides_runpath=no | 
|  | 8439 | hardcode_into_libs=yes | 
|  | 8440 | ;; | 
|  | 8441 | esac | 
|  | 8442 | ;; | 
|  | 8443 |  | 
|  | 8444 | gnu*) | 
|  | 8445 | version_type=linux | 
|  | 8446 | need_lib_prefix=no | 
|  | 8447 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 8449 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8450 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8451 | hardcode_into_libs=yes | 
|  | 8452 | ;; | 
|  | 8453 |  | 
|  | 8454 | hpux9* | hpux10* | hpux11*) | 
|  | 8455 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 8456 | # link against other versions. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8457 | version_type=sunos | 
|  | 8458 | need_lib_prefix=no | 
|  | 8459 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8460 | case "$host_cpu" in | 
|  | 8461 | ia64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8462 | shrext_cmds='.so' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8463 | hardcode_into_libs=yes | 
|  | 8464 | dynamic_linker="$host_os dld.so" | 
|  | 8465 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8466 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 8467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8468 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8469 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 8470 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 8471 | else | 
|  | 8472 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 8473 | fi | 
|  | 8474 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 8475 | ;; | 
|  | 8476 | hppa*64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8477 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8478 | hardcode_into_libs=yes | 
|  | 8479 | dynamic_linker="$host_os dld.sl" | 
|  | 8480 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 8481 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 8482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8483 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8484 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 8485 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 8486 | ;; | 
|  | 8487 | *) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8488 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8489 | dynamic_linker="$host_os dld.sl" | 
|  | 8490 | shlibpath_var=SHLIB_PATH | 
|  | 8491 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 8492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8493 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8494 | ;; | 
|  | 8495 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8496 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 8497 | postinstall_cmds='chmod 555 $lib' | 
|  | 8498 | ;; | 
|  | 8499 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8500 | irix5* | irix6* | nonstopux*) | 
|  | 8501 | case $host_os in | 
|  | 8502 | nonstopux*) version_type=nonstopux ;; | 
|  | 8503 | *) | 
|  | 8504 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 8505 | version_type=linux | 
|  | 8506 | else | 
|  | 8507 | version_type=irix | 
|  | 8508 | fi ;; | 
|  | 8509 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8510 | need_lib_prefix=no | 
|  | 8511 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8512 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8514 | case $host_os in | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8515 | irix5* | nonstopux*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8516 | libsuff= shlibsuff= | 
|  | 8517 | ;; | 
|  | 8518 | *) | 
|  | 8519 | case $LD in # libtool.m4 will add one of these switches to LD | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8520 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 8521 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 8522 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 8523 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 8524 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 8525 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8526 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 8527 | esac | 
|  | 8528 | ;; | 
|  | 8529 | esac | 
|  | 8530 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 8531 | shlibpath_overrides_runpath=no | 
|  | 8532 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 8533 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8534 | hardcode_into_libs=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8535 | ;; | 
|  | 8536 |  | 
|  | 8537 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8538 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8539 | dynamic_linker=no | 
|  | 8540 | ;; | 
|  | 8541 |  | 
|  | 8542 | # This must be Linux ELF. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8543 | linux*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8544 | version_type=linux | 
|  | 8545 | need_lib_prefix=no | 
|  | 8546 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8548 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8549 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 8550 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8551 | shlibpath_overrides_runpath=no | 
|  | 8552 | # This implies no fast_install, which is unacceptable. | 
|  | 8553 | # Some rework will be needed to allow for fast_install | 
|  | 8554 | # before this can be enabled. | 
|  | 8555 | hardcode_into_libs=yes | 
|  | 8556 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8557 | # Append ld.so.conf contents to the search path | 
|  | 8558 | if test -f /etc/ld.so.conf; then | 
|  | 8559 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 8560 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 8561 | fi | 
|  | 8562 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8563 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 8564 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 8565 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 8566 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 8567 | # people can always --disable-shared, the test was removed, and we | 
|  | 8568 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 8569 | dynamic_linker='GNU/Linux ld.so' | 
|  | 8570 | ;; | 
|  | 8571 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8572 | knetbsd*-gnu) | 
|  | 8573 | version_type=linux | 
|  | 8574 | need_lib_prefix=no | 
|  | 8575 | need_version=no | 
|  | 8576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 8577 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8578 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8579 | shlibpath_overrides_runpath=no | 
|  | 8580 | hardcode_into_libs=yes | 
|  | 8581 | dynamic_linker='GNU ld.so' | 
|  | 8582 | ;; | 
|  | 8583 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8584 | netbsd*) | 
|  | 8585 | version_type=sunos | 
|  | 8586 | need_lib_prefix=no | 
|  | 8587 | need_version=no | 
|  | 8588 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8590 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 8591 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 8592 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8594 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8595 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 8596 | fi | 
|  | 8597 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8598 | shlibpath_overrides_runpath=yes | 
|  | 8599 | hardcode_into_libs=yes | 
|  | 8600 | ;; | 
|  | 8601 |  | 
|  | 8602 | newsos6) | 
|  | 8603 | version_type=linux | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8605 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8606 | shlibpath_overrides_runpath=yes | 
|  | 8607 | ;; | 
|  | 8608 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8609 | nto-qnx*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8610 | version_type=linux | 
|  | 8611 | need_lib_prefix=no | 
|  | 8612 | need_version=no | 
|  | 8613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8614 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8615 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8616 | shlibpath_overrides_runpath=yes | 
|  | 8617 | ;; | 
|  | 8618 |  | 
|  | 8619 | openbsd*) | 
|  | 8620 | version_type=sunos | 
|  | 8621 | need_lib_prefix=no | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8622 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 8624 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 8625 | shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8626 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8627 | case $host_os in | 
|  | 8628 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 8629 | shlibpath_overrides_runpath=no | 
|  | 8630 | ;; | 
|  | 8631 | *) | 
|  | 8632 | shlibpath_overrides_runpath=yes | 
|  | 8633 | ;; | 
|  | 8634 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8635 | else | 
|  | 8636 | shlibpath_overrides_runpath=yes | 
|  | 8637 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8638 | ;; | 
|  | 8639 |  | 
|  | 8640 | os2*) | 
|  | 8641 | libname_spec='$name' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8642 | shrext_cmds=".dll" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8643 | need_lib_prefix=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8644 | library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8645 | dynamic_linker='OS/2 ld.exe' | 
|  | 8646 | shlibpath_var=LIBPATH | 
|  | 8647 | ;; | 
|  | 8648 |  | 
|  | 8649 | osf3* | osf4* | osf5*) | 
|  | 8650 | version_type=osf | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8651 | need_lib_prefix=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8652 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8653 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8655 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8656 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 8657 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 8658 | ;; | 
|  | 8659 |  | 
|  | 8660 | sco3.2v5*) | 
|  | 8661 | version_type=osf | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8662 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8664 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8665 | ;; | 
|  | 8666 |  | 
|  | 8667 | solaris*) | 
|  | 8668 | version_type=linux | 
|  | 8669 | need_lib_prefix=no | 
|  | 8670 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8672 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8673 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8674 | shlibpath_overrides_runpath=yes | 
|  | 8675 | hardcode_into_libs=yes | 
|  | 8676 | # ldd complains unless libraries are executable | 
|  | 8677 | postinstall_cmds='chmod +x $lib' | 
|  | 8678 | ;; | 
|  | 8679 |  | 
|  | 8680 | sunos4*) | 
|  | 8681 | version_type=sunos | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8683 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 8684 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8685 | shlibpath_overrides_runpath=yes | 
|  | 8686 | if test "$with_gnu_ld" = yes; then | 
|  | 8687 | need_lib_prefix=no | 
|  | 8688 | fi | 
|  | 8689 | need_version=yes | 
|  | 8690 | ;; | 
|  | 8691 |  | 
|  | 8692 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 8693 | version_type=linux | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8695 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8696 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8697 | case $host_vendor in | 
|  | 8698 | sni) | 
|  | 8699 | shlibpath_overrides_runpath=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8700 | need_lib_prefix=no | 
|  | 8701 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 8702 | runpath_var=LD_RUN_PATH | 
|  | 8703 | ;; | 
|  | 8704 | siemens) | 
|  | 8705 | need_lib_prefix=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8706 | ;; | 
|  | 8707 | motorola) | 
|  | 8708 | need_lib_prefix=no | 
|  | 8709 | need_version=no | 
|  | 8710 | shlibpath_overrides_runpath=no | 
|  | 8711 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 8712 | ;; | 
|  | 8713 | esac | 
|  | 8714 | ;; | 
|  | 8715 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8716 | sysv4*MP*) | 
|  | 8717 | if test -d /usr/nec ;then | 
|  | 8718 | version_type=linux | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8719 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 8720 | soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8721 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8722 | fi | 
|  | 8723 | ;; | 
|  | 8724 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8725 | uts4*) | 
|  | 8726 | version_type=linux | 
|  | 8727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 8728 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 8729 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 8730 | ;; | 
|  | 8731 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8732 | *) | 
|  | 8733 | dynamic_linker=no | 
|  | 8734 | ;; | 
|  | 8735 | esac | 
|  | 8736 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 8737 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 8738 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8739 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8740 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 8741 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 8742 | hardcode_action= | 
|  | 8743 | if test -n "$hardcode_libdir_flag_spec" || \ | 
|  | 8744 | test -n "$runpath_var" || \ | 
|  | 8745 | test "X$hardcode_automatic" = "Xyes" ; then | 
|  | 8746 |  | 
|  | 8747 | # We can hardcode non-existant directories. | 
|  | 8748 | if test "$hardcode_direct" != no && | 
|  | 8749 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 8750 | # have to relink, otherwise we might link with an installed library | 
|  | 8751 | # when we should be linking with a yet-to-be-installed one | 
|  | 8752 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
|  | 8753 | test "$hardcode_minus_L" != no; then | 
|  | 8754 | # Linking always hardcodes the temporary library directory. | 
|  | 8755 | hardcode_action=relink | 
|  | 8756 | else | 
|  | 8757 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 8758 | hardcode_action=immediate | 
|  | 8759 | fi | 
|  | 8760 | else | 
|  | 8761 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 8762 | # directories. | 
|  | 8763 | hardcode_action=unsupported | 
|  | 8764 | fi | 
|  | 8765 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
|  | 8766 | echo "${ECHO_T}$hardcode_action" >&6 | 
|  | 8767 |  | 
|  | 8768 | if test "$hardcode_action" = relink; then | 
|  | 8769 | # Fast installation is not supported | 
|  | 8770 | enable_fast_install=no | 
|  | 8771 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 8772 | test "$enable_shared" = no; then | 
|  | 8773 | # Fast installation is not necessary | 
|  | 8774 | enable_fast_install=needless | 
|  | 8775 | fi | 
|  | 8776 |  | 
|  | 8777 | striplib= | 
|  | 8778 | old_striplib= | 
|  | 8779 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 8780 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 8781 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 8782 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 8783 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 8784 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 8785 | echo "${ECHO_T}yes" >&6 | 
|  | 8786 | else | 
|  | 8787 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 8788 | case $host_os in | 
|  | 8789 | darwin*) | 
|  | 8790 | if test -n "$STRIP" ; then | 
|  | 8791 | striplib="$STRIP -x" | 
|  | 8792 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 8793 | echo "${ECHO_T}yes" >&6 | 
|  | 8794 | else | 
|  | 8795 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 8796 | echo "${ECHO_T}no" >&6 | 
|  | 8797 | fi | 
|  | 8798 | ;; | 
|  | 8799 | *) | 
|  | 8800 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 8801 | echo "${ECHO_T}no" >&6 | 
|  | 8802 | ;; | 
|  | 8803 | esac | 
|  | 8804 | fi | 
|  | 8805 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8806 | if test "x$enable_dlopen" != xyes; then | 
|  | 8807 | enable_dlopen=unknown | 
|  | 8808 | enable_dlopen_self=unknown | 
|  | 8809 | enable_dlopen_self_static=unknown | 
|  | 8810 | else | 
|  | 8811 | lt_cv_dlopen=no | 
|  | 8812 | lt_cv_dlopen_libs= | 
|  | 8813 |  | 
|  | 8814 | case $host_os in | 
|  | 8815 | beos*) | 
|  | 8816 | lt_cv_dlopen="load_add_on" | 
|  | 8817 | lt_cv_dlopen_libs= | 
|  | 8818 | lt_cv_dlopen_self=yes | 
|  | 8819 | ;; | 
|  | 8820 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8821 | mingw* | pw32*) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8822 | lt_cv_dlopen="LoadLibrary" | 
|  | 8823 | lt_cv_dlopen_libs= | 
|  | 8824 | ;; | 
|  | 8825 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8826 | cygwin*) | 
|  | 8827 | lt_cv_dlopen="dlopen" | 
|  | 8828 | lt_cv_dlopen_libs= | 
|  | 8829 | ;; | 
|  | 8830 |  | 
|  | 8831 | darwin*) | 
|  | 8832 | # if libdl is installed we need to link against it | 
|  | 8833 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 8834 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 8835 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 8836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8837 | else | 
|  | 8838 | ac_check_lib_save_LIBS=$LIBS | 
|  | 8839 | LIBS="-ldl  $LIBS" | 
|  | 8840 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8841 | /* confdefs.h.  */ | 
|  | 8842 | _ACEOF | 
|  | 8843 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8844 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8845 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8846 |  | 
|  | 8847 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 8848 | #ifdef __cplusplus | 
|  | 8849 | extern "C" | 
|  | 8850 | #endif | 
|  | 8851 | /* We use char because int might match the return type of a gcc2 | 
|  | 8852 | builtin and then its argument prototype would still apply.  */ | 
|  | 8853 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8854 | int | 
|  | 8855 | main () | 
|  | 8856 | { | 
|  | 8857 | dlopen (); | 
|  | 8858 | ; | 
|  | 8859 | return 0; | 
|  | 8860 | } | 
|  | 8861 | _ACEOF | 
|  | 8862 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8864 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8865 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8866 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8867 | rm -f conftest.er1 | 
|  | 8868 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8870 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8871 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8872 | || test ! -s conftest.err' | 
|  | 8873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8874 | (eval $ac_try) 2>&5 | 
|  | 8875 | ac_status=$? | 
|  | 8876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8877 | (exit $ac_status); }; } && | 
|  | 8878 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8880 | (eval $ac_try) 2>&5 | 
|  | 8881 | ac_status=$? | 
|  | 8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8883 | (exit $ac_status); }; }; then | 
|  | 8884 | ac_cv_lib_dl_dlopen=yes | 
|  | 8885 | else | 
|  | 8886 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8887 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8888 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8889 | ac_cv_lib_dl_dlopen=no | 
|  | 8890 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8891 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 8892 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8893 | LIBS=$ac_check_lib_save_LIBS | 
|  | 8894 | fi | 
|  | 8895 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 8896 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 8897 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 8898 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 8899 | else | 
|  | 8900 |  | 
|  | 8901 | lt_cv_dlopen="dyld" | 
|  | 8902 | lt_cv_dlopen_libs= | 
|  | 8903 | lt_cv_dlopen_self=yes | 
|  | 8904 |  | 
|  | 8905 | fi | 
|  | 8906 |  | 
|  | 8907 | ;; | 
|  | 8908 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8909 | *) | 
|  | 8910 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 8911 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 8912 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 8913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8914 | else | 
|  | 8915 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8916 | /* confdefs.h.  */ | 
|  | 8917 | _ACEOF | 
|  | 8918 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8919 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8920 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8921 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 8922 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 8923 | #define shl_load innocuous_shl_load | 
|  | 8924 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8925 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8926 | which can conflict with char shl_load (); below. | 
|  | 8927 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 8928 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8929 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8930 | #ifdef __STDC__ | 
|  | 8931 | # include <limits.h> | 
|  | 8932 | #else | 
|  | 8933 | # include <assert.h> | 
|  | 8934 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8935 |  | 
|  | 8936 | #undef shl_load | 
|  | 8937 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8938 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 8939 | #ifdef __cplusplus | 
|  | 8940 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8941 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8942 | #endif | 
|  | 8943 | /* We use char because int might match the return type of a gcc2 | 
|  | 8944 | builtin and then its argument prototype would still apply.  */ | 
|  | 8945 | char shl_load (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8946 | /* The GNU C library defines this for functions which it implements | 
|  | 8947 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 8948 | something starting with __ and the normal name is an alias.  */ | 
|  | 8949 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 8950 | choke me | 
|  | 8951 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8952 | char (*f) () = shl_load; | 
|  | 8953 | #endif | 
|  | 8954 | #ifdef __cplusplus | 
|  | 8955 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8956 | #endif | 
|  | 8957 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8958 | int | 
|  | 8959 | main () | 
|  | 8960 | { | 
|  | 8961 | return f != shl_load; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8962 | ; | 
|  | 8963 | return 0; | 
|  | 8964 | } | 
|  | 8965 | _ACEOF | 
|  | 8966 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8968 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8969 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8970 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8971 | rm -f conftest.er1 | 
|  | 8972 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8974 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8975 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8976 | || test ! -s conftest.err' | 
|  | 8977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8978 | (eval $ac_try) 2>&5 | 
|  | 8979 | ac_status=$? | 
|  | 8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8981 | (exit $ac_status); }; } && | 
|  | 8982 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8984 | (eval $ac_try) 2>&5 | 
|  | 8985 | ac_status=$? | 
|  | 8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8987 | (exit $ac_status); }; }; then | 
|  | 8988 | ac_cv_func_shl_load=yes | 
|  | 8989 | else | 
|  | 8990 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8991 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8992 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8993 | ac_cv_func_shl_load=no | 
|  | 8994 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8995 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 8996 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8997 | fi | 
|  | 8998 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 8999 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 9000 | if test $ac_cv_func_shl_load = yes; then | 
|  | 9001 | lt_cv_dlopen="shl_load" | 
|  | 9002 | else | 
|  | 9003 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 9004 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 9005 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 9006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9007 | else | 
|  | 9008 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9009 | LIBS="-ldld  $LIBS" | 
|  | 9010 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9011 | /* confdefs.h.  */ | 
|  | 9012 | _ACEOF | 
|  | 9013 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9014 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9015 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9016 |  | 
|  | 9017 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9018 | #ifdef __cplusplus | 
|  | 9019 | extern "C" | 
|  | 9020 | #endif | 
|  | 9021 | /* We use char because int might match the return type of a gcc2 | 
|  | 9022 | builtin and then its argument prototype would still apply.  */ | 
|  | 9023 | char shl_load (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9024 | int | 
|  | 9025 | main () | 
|  | 9026 | { | 
|  | 9027 | shl_load (); | 
|  | 9028 | ; | 
|  | 9029 | return 0; | 
|  | 9030 | } | 
|  | 9031 | _ACEOF | 
|  | 9032 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9034 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9035 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9036 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9037 | rm -f conftest.er1 | 
|  | 9038 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9040 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9041 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9042 | || test ! -s conftest.err' | 
|  | 9043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9044 | (eval $ac_try) 2>&5 | 
|  | 9045 | ac_status=$? | 
|  | 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9047 | (exit $ac_status); }; } && | 
|  | 9048 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9050 | (eval $ac_try) 2>&5 | 
|  | 9051 | ac_status=$? | 
|  | 9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9053 | (exit $ac_status); }; }; then | 
|  | 9054 | ac_cv_lib_dld_shl_load=yes | 
|  | 9055 | else | 
|  | 9056 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9057 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9058 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9059 | ac_cv_lib_dld_shl_load=no | 
|  | 9060 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9061 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9062 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9063 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9064 | fi | 
|  | 9065 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 9066 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 9067 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 9068 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 9069 | else | 
|  | 9070 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 9071 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 9072 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 9073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9074 | else | 
|  | 9075 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9076 | /* confdefs.h.  */ | 
|  | 9077 | _ACEOF | 
|  | 9078 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9079 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9080 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9081 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
|  | 9082 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9083 | #define dlopen innocuous_dlopen | 
|  | 9084 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9085 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9086 | which can conflict with char dlopen (); below. | 
|  | 9087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9088 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9089 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9090 | #ifdef __STDC__ | 
|  | 9091 | # include <limits.h> | 
|  | 9092 | #else | 
|  | 9093 | # include <assert.h> | 
|  | 9094 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9095 |  | 
|  | 9096 | #undef dlopen | 
|  | 9097 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9098 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9099 | #ifdef __cplusplus | 
|  | 9100 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9101 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9102 | #endif | 
|  | 9103 | /* We use char because int might match the return type of a gcc2 | 
|  | 9104 | builtin and then its argument prototype would still apply.  */ | 
|  | 9105 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9106 | /* The GNU C library defines this for functions which it implements | 
|  | 9107 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9108 | something starting with __ and the normal name is an alias.  */ | 
|  | 9109 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 9110 | choke me | 
|  | 9111 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9112 | char (*f) () = dlopen; | 
|  | 9113 | #endif | 
|  | 9114 | #ifdef __cplusplus | 
|  | 9115 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9116 | #endif | 
|  | 9117 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9118 | int | 
|  | 9119 | main () | 
|  | 9120 | { | 
|  | 9121 | return f != dlopen; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9122 | ; | 
|  | 9123 | return 0; | 
|  | 9124 | } | 
|  | 9125 | _ACEOF | 
|  | 9126 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9128 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9129 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9130 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9131 | rm -f conftest.er1 | 
|  | 9132 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9134 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9135 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9136 | || test ! -s conftest.err' | 
|  | 9137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9138 | (eval $ac_try) 2>&5 | 
|  | 9139 | ac_status=$? | 
|  | 9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9141 | (exit $ac_status); }; } && | 
|  | 9142 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9144 | (eval $ac_try) 2>&5 | 
|  | 9145 | ac_status=$? | 
|  | 9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9147 | (exit $ac_status); }; }; then | 
|  | 9148 | ac_cv_func_dlopen=yes | 
|  | 9149 | else | 
|  | 9150 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9151 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9152 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9153 | ac_cv_func_dlopen=no | 
|  | 9154 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9155 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9156 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9157 | fi | 
|  | 9158 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 9159 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 9160 | if test $ac_cv_func_dlopen = yes; then | 
|  | 9161 | lt_cv_dlopen="dlopen" | 
|  | 9162 | else | 
|  | 9163 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 9164 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 9165 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 9166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9167 | else | 
|  | 9168 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9169 | LIBS="-ldl  $LIBS" | 
|  | 9170 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9171 | /* confdefs.h.  */ | 
|  | 9172 | _ACEOF | 
|  | 9173 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9174 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9175 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9176 |  | 
|  | 9177 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9178 | #ifdef __cplusplus | 
|  | 9179 | extern "C" | 
|  | 9180 | #endif | 
|  | 9181 | /* We use char because int might match the return type of a gcc2 | 
|  | 9182 | builtin and then its argument prototype would still apply.  */ | 
|  | 9183 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9184 | int | 
|  | 9185 | main () | 
|  | 9186 | { | 
|  | 9187 | dlopen (); | 
|  | 9188 | ; | 
|  | 9189 | return 0; | 
|  | 9190 | } | 
|  | 9191 | _ACEOF | 
|  | 9192 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9194 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9195 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9196 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9197 | rm -f conftest.er1 | 
|  | 9198 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9200 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9201 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9202 | || test ! -s conftest.err' | 
|  | 9203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9204 | (eval $ac_try) 2>&5 | 
|  | 9205 | ac_status=$? | 
|  | 9206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9207 | (exit $ac_status); }; } && | 
|  | 9208 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9210 | (eval $ac_try) 2>&5 | 
|  | 9211 | ac_status=$? | 
|  | 9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9213 | (exit $ac_status); }; }; then | 
|  | 9214 | ac_cv_lib_dl_dlopen=yes | 
|  | 9215 | else | 
|  | 9216 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9217 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9218 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9219 | ac_cv_lib_dl_dlopen=no | 
|  | 9220 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9221 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9222 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9223 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9224 | fi | 
|  | 9225 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 9226 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 9227 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 9228 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 9229 | else | 
|  | 9230 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 9231 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 9232 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 9233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9234 | else | 
|  | 9235 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9236 | LIBS="-lsvld  $LIBS" | 
|  | 9237 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9238 | /* confdefs.h.  */ | 
|  | 9239 | _ACEOF | 
|  | 9240 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9241 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9242 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9243 |  | 
|  | 9244 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9245 | #ifdef __cplusplus | 
|  | 9246 | extern "C" | 
|  | 9247 | #endif | 
|  | 9248 | /* We use char because int might match the return type of a gcc2 | 
|  | 9249 | builtin and then its argument prototype would still apply.  */ | 
|  | 9250 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9251 | int | 
|  | 9252 | main () | 
|  | 9253 | { | 
|  | 9254 | dlopen (); | 
|  | 9255 | ; | 
|  | 9256 | return 0; | 
|  | 9257 | } | 
|  | 9258 | _ACEOF | 
|  | 9259 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9261 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9262 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9263 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9264 | rm -f conftest.er1 | 
|  | 9265 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9267 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9268 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9269 | || test ! -s conftest.err' | 
|  | 9270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9271 | (eval $ac_try) 2>&5 | 
|  | 9272 | ac_status=$? | 
|  | 9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9274 | (exit $ac_status); }; } && | 
|  | 9275 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9277 | (eval $ac_try) 2>&5 | 
|  | 9278 | ac_status=$? | 
|  | 9279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9280 | (exit $ac_status); }; }; then | 
|  | 9281 | ac_cv_lib_svld_dlopen=yes | 
|  | 9282 | else | 
|  | 9283 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9284 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9285 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9286 | ac_cv_lib_svld_dlopen=no | 
|  | 9287 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9288 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9289 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9290 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9291 | fi | 
|  | 9292 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 9293 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 9294 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 9295 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 9296 | else | 
|  | 9297 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 9298 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 9299 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 9300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9301 | else | 
|  | 9302 | ac_check_lib_save_LIBS=$LIBS | 
|  | 9303 | LIBS="-ldld  $LIBS" | 
|  | 9304 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9305 | /* confdefs.h.  */ | 
|  | 9306 | _ACEOF | 
|  | 9307 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9308 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9309 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9310 |  | 
|  | 9311 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9312 | #ifdef __cplusplus | 
|  | 9313 | extern "C" | 
|  | 9314 | #endif | 
|  | 9315 | /* We use char because int might match the return type of a gcc2 | 
|  | 9316 | builtin and then its argument prototype would still apply.  */ | 
|  | 9317 | char dld_link (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9318 | int | 
|  | 9319 | main () | 
|  | 9320 | { | 
|  | 9321 | dld_link (); | 
|  | 9322 | ; | 
|  | 9323 | return 0; | 
|  | 9324 | } | 
|  | 9325 | _ACEOF | 
|  | 9326 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9328 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9329 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9330 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9331 | rm -f conftest.er1 | 
|  | 9332 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9334 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9335 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9336 | || test ! -s conftest.err' | 
|  | 9337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9338 | (eval $ac_try) 2>&5 | 
|  | 9339 | ac_status=$? | 
|  | 9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9341 | (exit $ac_status); }; } && | 
|  | 9342 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9344 | (eval $ac_try) 2>&5 | 
|  | 9345 | ac_status=$? | 
|  | 9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9347 | (exit $ac_status); }; }; then | 
|  | 9348 | ac_cv_lib_dld_dld_link=yes | 
|  | 9349 | else | 
|  | 9350 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9351 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9352 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9353 | ac_cv_lib_dld_dld_link=no | 
|  | 9354 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9355 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9356 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9357 | LIBS=$ac_check_lib_save_LIBS | 
|  | 9358 | fi | 
|  | 9359 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 9360 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 9361 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 9362 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 9363 | fi | 
|  | 9364 |  | 
|  | 9365 |  | 
|  | 9366 | fi | 
|  | 9367 |  | 
|  | 9368 |  | 
|  | 9369 | fi | 
|  | 9370 |  | 
|  | 9371 |  | 
|  | 9372 | fi | 
|  | 9373 |  | 
|  | 9374 |  | 
|  | 9375 | fi | 
|  | 9376 |  | 
|  | 9377 |  | 
|  | 9378 | fi | 
|  | 9379 |  | 
|  | 9380 | ;; | 
|  | 9381 | esac | 
|  | 9382 |  | 
|  | 9383 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 9384 | enable_dlopen=yes | 
|  | 9385 | else | 
|  | 9386 | enable_dlopen=no | 
|  | 9387 | fi | 
|  | 9388 |  | 
|  | 9389 | case $lt_cv_dlopen in | 
|  | 9390 | dlopen) | 
|  | 9391 | save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9392 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9393 |  | 
|  | 9394 | save_LDFLAGS="$LDFLAGS" | 
|  | 9395 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 9396 |  | 
|  | 9397 | save_LIBS="$LIBS" | 
|  | 9398 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 9399 |  | 
|  | 9400 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 9401 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 9402 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 9403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9404 | else | 
|  | 9405 | if test "$cross_compiling" = yes; then : | 
|  | 9406 | lt_cv_dlopen_self=cross | 
|  | 9407 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9408 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9409 | lt_status=$lt_dlunknown | 
|  | 9410 | cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 9411 | #line 9411 "configure" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9412 | #include "confdefs.h" | 
|  | 9413 |  | 
|  | 9414 | #if HAVE_DLFCN_H | 
|  | 9415 | #include <dlfcn.h> | 
|  | 9416 | #endif | 
|  | 9417 |  | 
|  | 9418 | #include <stdio.h> | 
|  | 9419 |  | 
|  | 9420 | #ifdef RTLD_GLOBAL | 
|  | 9421 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 9422 | #else | 
|  | 9423 | #  ifdef DL_GLOBAL | 
|  | 9424 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 9425 | #  else | 
|  | 9426 | #    define LT_DLGLOBAL		0 | 
|  | 9427 | #  endif | 
|  | 9428 | #endif | 
|  | 9429 |  | 
|  | 9430 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 9431 | find out it does not work in some platform. */ | 
|  | 9432 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 9433 | #  ifdef RTLD_LAZY | 
|  | 9434 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 9435 | #  else | 
|  | 9436 | #    ifdef DL_LAZY | 
|  | 9437 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 9438 | #    else | 
|  | 9439 | #      ifdef RTLD_NOW | 
|  | 9440 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 9441 | #      else | 
|  | 9442 | #        ifdef DL_NOW | 
|  | 9443 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 9444 | #        else | 
|  | 9445 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 9446 | #        endif | 
|  | 9447 | #      endif | 
|  | 9448 | #    endif | 
|  | 9449 | #  endif | 
|  | 9450 | #endif | 
|  | 9451 |  | 
|  | 9452 | #ifdef __cplusplus | 
|  | 9453 | extern "C" void exit (int); | 
|  | 9454 | #endif | 
|  | 9455 |  | 
|  | 9456 | void fnord() { int i=42;} | 
|  | 9457 | int main () | 
|  | 9458 | { | 
|  | 9459 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 9460 | int status = $lt_dlunknown; | 
|  | 9461 |  | 
|  | 9462 | if (self) | 
|  | 9463 | { | 
|  | 9464 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 9465 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 9466 | /* dlclose (self); */ | 
|  | 9467 | } | 
|  | 9468 |  | 
|  | 9469 | exit (status); | 
|  | 9470 | } | 
|  | 9471 | EOF | 
|  | 9472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9473 | (eval $ac_link) 2>&5 | 
|  | 9474 | ac_status=$? | 
|  | 9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9476 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 9477 | (./conftest; exit; ) 2>/dev/null | 
|  | 9478 | lt_status=$? | 
|  | 9479 | case x$lt_status in | 
|  | 9480 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 9481 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 9482 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 9483 | esac | 
|  | 9484 | else : | 
|  | 9485 | # compilation failed | 
|  | 9486 | lt_cv_dlopen_self=no | 
|  | 9487 | fi | 
|  | 9488 | fi | 
|  | 9489 | rm -fr conftest* | 
|  | 9490 |  | 
|  | 9491 |  | 
|  | 9492 | fi | 
|  | 9493 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 9494 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 9495 |  | 
|  | 9496 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 9497 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 9498 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 9499 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 9500 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 9501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9502 | else | 
|  | 9503 | if test "$cross_compiling" = yes; then : | 
|  | 9504 | lt_cv_dlopen_self_static=cross | 
|  | 9505 | else | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9506 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9507 | lt_status=$lt_dlunknown | 
|  | 9508 | cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 9509 | #line 9509 "configure" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9510 | #include "confdefs.h" | 
|  | 9511 |  | 
|  | 9512 | #if HAVE_DLFCN_H | 
|  | 9513 | #include <dlfcn.h> | 
|  | 9514 | #endif | 
|  | 9515 |  | 
|  | 9516 | #include <stdio.h> | 
|  | 9517 |  | 
|  | 9518 | #ifdef RTLD_GLOBAL | 
|  | 9519 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 9520 | #else | 
|  | 9521 | #  ifdef DL_GLOBAL | 
|  | 9522 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 9523 | #  else | 
|  | 9524 | #    define LT_DLGLOBAL		0 | 
|  | 9525 | #  endif | 
|  | 9526 | #endif | 
|  | 9527 |  | 
|  | 9528 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 9529 | find out it does not work in some platform. */ | 
|  | 9530 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 9531 | #  ifdef RTLD_LAZY | 
|  | 9532 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 9533 | #  else | 
|  | 9534 | #    ifdef DL_LAZY | 
|  | 9535 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 9536 | #    else | 
|  | 9537 | #      ifdef RTLD_NOW | 
|  | 9538 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 9539 | #      else | 
|  | 9540 | #        ifdef DL_NOW | 
|  | 9541 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 9542 | #        else | 
|  | 9543 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 9544 | #        endif | 
|  | 9545 | #      endif | 
|  | 9546 | #    endif | 
|  | 9547 | #  endif | 
|  | 9548 | #endif | 
|  | 9549 |  | 
|  | 9550 | #ifdef __cplusplus | 
|  | 9551 | extern "C" void exit (int); | 
|  | 9552 | #endif | 
|  | 9553 |  | 
|  | 9554 | void fnord() { int i=42;} | 
|  | 9555 | int main () | 
|  | 9556 | { | 
|  | 9557 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 9558 | int status = $lt_dlunknown; | 
|  | 9559 |  | 
|  | 9560 | if (self) | 
|  | 9561 | { | 
|  | 9562 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 9563 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 9564 | /* dlclose (self); */ | 
|  | 9565 | } | 
|  | 9566 |  | 
|  | 9567 | exit (status); | 
|  | 9568 | } | 
|  | 9569 | EOF | 
|  | 9570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9571 | (eval $ac_link) 2>&5 | 
|  | 9572 | ac_status=$? | 
|  | 9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9574 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 9575 | (./conftest; exit; ) 2>/dev/null | 
|  | 9576 | lt_status=$? | 
|  | 9577 | case x$lt_status in | 
|  | 9578 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 9579 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 9580 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 9581 | esac | 
|  | 9582 | else : | 
|  | 9583 | # compilation failed | 
|  | 9584 | lt_cv_dlopen_self_static=no | 
|  | 9585 | fi | 
|  | 9586 | fi | 
|  | 9587 | rm -fr conftest* | 
|  | 9588 |  | 
|  | 9589 |  | 
|  | 9590 | fi | 
|  | 9591 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 9592 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 9593 | fi | 
|  | 9594 |  | 
|  | 9595 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 9596 | LDFLAGS="$save_LDFLAGS" | 
|  | 9597 | LIBS="$save_LIBS" | 
|  | 9598 | ;; | 
|  | 9599 | esac | 
|  | 9600 |  | 
|  | 9601 | case $lt_cv_dlopen_self in | 
|  | 9602 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 9603 | *) enable_dlopen_self=unknown ;; | 
|  | 9604 | esac | 
|  | 9605 |  | 
|  | 9606 | case $lt_cv_dlopen_self_static in | 
|  | 9607 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 9608 | *) enable_dlopen_self_static=unknown ;; | 
|  | 9609 | esac | 
|  | 9610 | fi | 
|  | 9611 |  | 
|  | 9612 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9613 | # Report which librarie types wil actually be built | 
|  | 9614 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
|  | 9615 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
|  | 9616 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
|  | 9617 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9618 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9619 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
|  | 9620 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
|  | 9621 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 9622 |  | 
|  | 9623 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 9624 | # are all built from PIC. | 
|  | 9625 | case "$host_os" in | 
|  | 9626 | aix3*) | 
|  | 9627 | test "$enable_shared" = yes && enable_static=no | 
|  | 9628 | if test -n "$RANLIB"; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9629 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9630 | postinstall_cmds='$RANLIB $lib' | 
|  | 9631 | fi | 
|  | 9632 | ;; | 
|  | 9633 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9634 | aix4* | aix5*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9635 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
|  | 9636 | test "$enable_shared" = yes && enable_static=no | 
|  | 9637 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9638 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9639 | esac | 
|  | 9640 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
|  | 9641 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9642 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9643 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
|  | 9644 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
|  | 9645 | # Make sure either enable_shared or enable_static is yes. | 
|  | 9646 | test "$enable_shared" = yes || enable_static=yes | 
|  | 9647 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
|  | 9648 | echo "${ECHO_T}$enable_static" >&6 | 
|  | 9649 |  | 
|  | 9650 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9651 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 9652 | # with your package, and you will get complaints that there are | 
|  | 9653 | # no rules to generate ltmain.sh. | 
|  | 9654 | if test -f "$ltmain"; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9655 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 9656 | # without removal of \ escapes. | 
|  | 9657 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 9658 | setopt NO_GLOB_SUBST | 
|  | 9659 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9660 | # Now quote all the things that may contain metacharacters while being | 
|  | 9661 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 9662 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9663 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 9664 | SED SHELL STRIP \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9665 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 9666 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 9667 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 9668 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 9669 | lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9670 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9671 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 9672 | compiler \ | 
|  | 9673 | CC \ | 
|  | 9674 | LD \ | 
|  | 9675 | lt_prog_compiler_wl \ | 
|  | 9676 | lt_prog_compiler_pic \ | 
|  | 9677 | lt_prog_compiler_static \ | 
|  | 9678 | lt_prog_compiler_no_builtin_flag \ | 
|  | 9679 | export_dynamic_flag_spec \ | 
|  | 9680 | thread_safe_flag_spec \ | 
|  | 9681 | whole_archive_flag_spec \ | 
|  | 9682 | enable_shared_with_static_runtimes \ | 
|  | 9683 | old_archive_cmds \ | 
|  | 9684 | old_archive_from_new_cmds \ | 
|  | 9685 | predep_objects \ | 
|  | 9686 | postdep_objects \ | 
|  | 9687 | predeps \ | 
|  | 9688 | postdeps \ | 
|  | 9689 | compiler_lib_search_path \ | 
|  | 9690 | archive_cmds \ | 
|  | 9691 | archive_expsym_cmds \ | 
|  | 9692 | postinstall_cmds \ | 
|  | 9693 | postuninstall_cmds \ | 
|  | 9694 | old_archive_from_expsyms_cmds \ | 
|  | 9695 | allow_undefined_flag \ | 
|  | 9696 | no_undefined_flag \ | 
|  | 9697 | export_symbols_cmds \ | 
|  | 9698 | hardcode_libdir_flag_spec \ | 
|  | 9699 | hardcode_libdir_flag_spec_ld \ | 
|  | 9700 | hardcode_libdir_separator \ | 
|  | 9701 | hardcode_automatic \ | 
|  | 9702 | module_cmds \ | 
|  | 9703 | module_expsym_cmds \ | 
|  | 9704 | lt_cv_prog_compiler_c_o \ | 
|  | 9705 | exclude_expsyms \ | 
|  | 9706 | include_expsyms; do | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9707 |  | 
|  | 9708 | case $var in | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9709 | old_archive_cmds | \ | 
|  | 9710 | old_archive_from_new_cmds | \ | 
|  | 9711 | archive_cmds | \ | 
|  | 9712 | archive_expsym_cmds | \ | 
|  | 9713 | module_cmds | \ | 
|  | 9714 | module_expsym_cmds | \ | 
|  | 9715 | old_archive_from_expsyms_cmds | \ | 
|  | 9716 | export_symbols_cmds | \ | 
|  | 9717 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9718 | postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9719 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 9720 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9721 | # Double-quote double-evaled strings. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9722 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9723 | ;; | 
|  | 9724 | *) | 
|  | 9725 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 9726 | ;; | 
|  | 9727 | esac | 
|  | 9728 | done | 
|  | 9729 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9730 | case $lt_echo in | 
|  | 9731 | *'\$0 --fallback-echo"') | 
|  | 9732 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 9733 | ;; | 
|  | 9734 | esac | 
|  | 9735 |  | 
|  | 9736 | cfgfile="${ofile}T" | 
|  | 9737 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
|  | 9738 | $rm -f "$cfgfile" | 
|  | 9739 | { echo "$as_me:$LINENO: creating $ofile" >&5 | 
|  | 9740 | echo "$as_me: creating $ofile" >&6;} | 
|  | 9741 |  | 
|  | 9742 | cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9743 | #! $SHELL | 
|  | 9744 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9745 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9746 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
|  | 9747 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
|  | 9748 | # | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9749 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
|  | 9750 | # Free Software Foundation, Inc. | 
|  | 9751 | # | 
|  | 9752 | # This file is part of GNU Libtool: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9753 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
|  | 9754 | # | 
|  | 9755 | # This program is free software; you can redistribute it and/or modify | 
|  | 9756 | # it under the terms of the GNU General Public License as published by | 
|  | 9757 | # the Free Software Foundation; either version 2 of the License, or | 
|  | 9758 | # (at your option) any later version. | 
|  | 9759 | # | 
|  | 9760 | # This program is distributed in the hope that it will be useful, but | 
|  | 9761 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 9762 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
|  | 9763 | # General Public License for more details. | 
|  | 9764 | # | 
|  | 9765 | # You should have received a copy of the GNU General Public License | 
|  | 9766 | # along with this program; if not, write to the Free Software | 
|  | 9767 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
|  | 9768 | # | 
|  | 9769 | # As a special exception to the GNU General Public License, if you | 
|  | 9770 | # distribute this file as part of a program that contains a | 
|  | 9771 | # configuration script generated by Autoconf, you may include it under | 
|  | 9772 | # the same distribution terms that you use for the rest of that program. | 
|  | 9773 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9774 | # A sed program that does not truncate output. | 
|  | 9775 | SED=$lt_SED | 
|  | 9776 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9777 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9778 | Xsed="$SED -e s/^X//" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9779 |  | 
|  | 9780 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|  | 9781 | # if CDPATH is set. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9782 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9783 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9784 | # The names of the tagged configurations supported by this script. | 
|  | 9785 | available_tags= | 
|  | 9786 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9787 | # ### BEGIN LIBTOOL CONFIG | 
|  | 9788 |  | 
|  | 9789 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 9790 |  | 
|  | 9791 | # Shell to use when invoking shell scripts. | 
|  | 9792 | SHELL=$lt_SHELL | 
|  | 9793 |  | 
|  | 9794 | # Whether or not to build shared libraries. | 
|  | 9795 | build_libtool_libs=$enable_shared | 
|  | 9796 |  | 
|  | 9797 | # Whether or not to build static libraries. | 
|  | 9798 | build_old_libs=$enable_static | 
|  | 9799 |  | 
|  | 9800 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9801 | build_libtool_need_lc=$archive_cmds_need_lc | 
|  | 9802 |  | 
|  | 9803 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 9804 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9805 |  | 
|  | 9806 | # Whether or not to optimize for fast installation. | 
|  | 9807 | fast_install=$enable_fast_install | 
|  | 9808 |  | 
|  | 9809 | # The host system. | 
|  | 9810 | host_alias=$host_alias | 
|  | 9811 | host=$host | 
|  | 9812 |  | 
|  | 9813 | # An echo program that does not interpret backslashes. | 
|  | 9814 | echo=$lt_echo | 
|  | 9815 |  | 
|  | 9816 | # The archiver. | 
|  | 9817 | AR=$lt_AR | 
|  | 9818 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 9819 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9820 | # A C compiler. | 
|  | 9821 | LTCC=$lt_LTCC | 
|  | 9822 |  | 
|  | 9823 | # A language-specific compiler. | 
|  | 9824 | CC=$lt_compiler | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9825 |  | 
|  | 9826 | # Is the compiler the GNU C compiler? | 
|  | 9827 | with_gcc=$GCC | 
|  | 9828 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9829 | # An ERE matcher. | 
|  | 9830 | EGREP=$lt_EGREP | 
|  | 9831 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9832 | # The linker used to build libraries. | 
|  | 9833 | LD=$lt_LD | 
|  | 9834 |  | 
|  | 9835 | # Whether we need hard or soft links. | 
|  | 9836 | LN_S=$lt_LN_S | 
|  | 9837 |  | 
|  | 9838 | # A BSD-compatible nm program. | 
|  | 9839 | NM=$lt_NM | 
|  | 9840 |  | 
|  | 9841 | # A symbol stripping program | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9842 | STRIP=$lt_STRIP | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9843 |  | 
|  | 9844 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 9845 | MAGIC_CMD=$MAGIC_CMD | 
|  | 9846 |  | 
|  | 9847 | # Used on cygwin: DLL creation program. | 
|  | 9848 | DLLTOOL="$DLLTOOL" | 
|  | 9849 |  | 
|  | 9850 | # Used on cygwin: object dumper. | 
|  | 9851 | OBJDUMP="$OBJDUMP" | 
|  | 9852 |  | 
|  | 9853 | # Used on cygwin: assembler. | 
|  | 9854 | AS="$AS" | 
|  | 9855 |  | 
|  | 9856 | # The name of the directory that contains temporary libtool files. | 
|  | 9857 | objdir=$objdir | 
|  | 9858 |  | 
|  | 9859 | # How to create reloadable object files. | 
|  | 9860 | reload_flag=$lt_reload_flag | 
|  | 9861 | reload_cmds=$lt_reload_cmds | 
|  | 9862 |  | 
|  | 9863 | # How to pass a linker flag through the compiler. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9864 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9865 |  | 
|  | 9866 | # Object file suffix (normally "o"). | 
|  | 9867 | objext="$ac_objext" | 
|  | 9868 |  | 
|  | 9869 | # Old archive suffix (normally "a"). | 
|  | 9870 | libext="$libext" | 
|  | 9871 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9872 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9873 | shrext_cmds='$shrext_cmds' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9874 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9875 | # Executable file suffix (normally ""). | 
|  | 9876 | exeext="$exeext" | 
|  | 9877 |  | 
|  | 9878 | # Additional compiler flags for building library objects. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9879 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9880 | pic_mode=$pic_mode | 
|  | 9881 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9882 | # What is the maximum length of a command? | 
|  | 9883 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9884 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9885 | # Does compiler simultaneously support -c and -o options? | 
|  | 9886 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9887 |  | 
|  | 9888 | # Must we lock files when doing compilation ? | 
|  | 9889 | need_locks=$lt_need_locks | 
|  | 9890 |  | 
|  | 9891 | # Do we need the lib prefix for modules? | 
|  | 9892 | need_lib_prefix=$need_lib_prefix | 
|  | 9893 |  | 
|  | 9894 | # Do we need a version for libraries? | 
|  | 9895 | need_version=$need_version | 
|  | 9896 |  | 
|  | 9897 | # Whether dlopen is supported. | 
|  | 9898 | dlopen_support=$enable_dlopen | 
|  | 9899 |  | 
|  | 9900 | # Whether dlopen of programs is supported. | 
|  | 9901 | dlopen_self=$enable_dlopen_self | 
|  | 9902 |  | 
|  | 9903 | # Whether dlopen of statically linked programs is supported. | 
|  | 9904 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 9905 |  | 
|  | 9906 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9907 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9908 |  | 
|  | 9909 | # Compiler flag to turn off builtin functions. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9910 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9911 |  | 
|  | 9912 | # Compiler flag to allow reflexive dlopens. | 
|  | 9913 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
|  | 9914 |  | 
|  | 9915 | # Compiler flag to generate shared objects directly from archives. | 
|  | 9916 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
|  | 9917 |  | 
|  | 9918 | # Compiler flag to generate thread-safe objects. | 
|  | 9919 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
|  | 9920 |  | 
|  | 9921 | # Library versioning type. | 
|  | 9922 | version_type=$version_type | 
|  | 9923 |  | 
|  | 9924 | # Format of library name prefix. | 
|  | 9925 | libname_spec=$lt_libname_spec | 
|  | 9926 |  | 
|  | 9927 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 9928 | # The last name is the one that the linker finds with -lNAME. | 
|  | 9929 | library_names_spec=$lt_library_names_spec | 
|  | 9930 |  | 
|  | 9931 | # The coded name of the library, if different from the real name. | 
|  | 9932 | soname_spec=$lt_soname_spec | 
|  | 9933 |  | 
|  | 9934 | # Commands used to build and install an old-style archive. | 
|  | 9935 | RANLIB=$lt_RANLIB | 
|  | 9936 | old_archive_cmds=$lt_old_archive_cmds | 
|  | 9937 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 9938 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 9939 |  | 
|  | 9940 | # Create an old-style archive from a shared archive. | 
|  | 9941 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
|  | 9942 |  | 
|  | 9943 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 9944 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
|  | 9945 |  | 
|  | 9946 | # Commands used to build and install a shared archive. | 
|  | 9947 | archive_cmds=$lt_archive_cmds | 
|  | 9948 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
|  | 9949 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 9950 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 9951 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9952 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 9953 | module_cmds=$lt_module_cmds | 
|  | 9954 | module_expsym_cmds=$lt_module_expsym_cmds | 
|  | 9955 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9956 | # Commands to strip libraries. | 
|  | 9957 | old_striplib=$lt_old_striplib | 
|  | 9958 | striplib=$lt_striplib | 
|  | 9959 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9960 | # Dependencies to place before the objects being linked to create a | 
|  | 9961 | # shared library. | 
|  | 9962 | predep_objects=$lt_predep_objects | 
|  | 9963 |  | 
|  | 9964 | # Dependencies to place after the objects being linked to create a | 
|  | 9965 | # shared library. | 
|  | 9966 | postdep_objects=$lt_postdep_objects | 
|  | 9967 |  | 
|  | 9968 | # Dependencies to place before the objects being linked to create a | 
|  | 9969 | # shared library. | 
|  | 9970 | predeps=$lt_predeps | 
|  | 9971 |  | 
|  | 9972 | # Dependencies to place after the objects being linked to create a | 
|  | 9973 | # shared library. | 
|  | 9974 | postdeps=$lt_postdeps | 
|  | 9975 |  | 
|  | 9976 | # The library search path used internally by the compiler when linking | 
|  | 9977 | # a shared library. | 
|  | 9978 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
|  | 9979 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9980 | # Method to check whether dependent libraries are shared objects. | 
|  | 9981 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 9982 |  | 
|  | 9983 | # Command to use when deplibs_check_method == file_magic. | 
|  | 9984 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 9985 |  | 
|  | 9986 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 9987 | allow_undefined_flag=$lt_allow_undefined_flag | 
|  | 9988 |  | 
|  | 9989 | # Flag that forces no undefined symbols. | 
|  | 9990 | no_undefined_flag=$lt_no_undefined_flag | 
|  | 9991 |  | 
|  | 9992 | # Commands used to finish a libtool library installation in a directory. | 
|  | 9993 | finish_cmds=$lt_finish_cmds | 
|  | 9994 |  | 
|  | 9995 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 9996 | finish_eval=$lt_finish_eval | 
|  | 9997 |  | 
|  | 9998 | # Take the output of nm and produce a listing of raw symbols and C names. | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9999 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10000 |  | 
|  | 10001 | # Transform the output of nm in a proper C declaration | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10002 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10003 |  | 
|  | 10004 | # Transform the output of nm in a C name address pair | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10005 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10006 |  | 
|  | 10007 | # This is the shared library runtime path variable. | 
|  | 10008 | runpath_var=$runpath_var | 
|  | 10009 |  | 
|  | 10010 | # This is the shared library path variable. | 
|  | 10011 | shlibpath_var=$shlibpath_var | 
|  | 10012 |  | 
|  | 10013 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 10014 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 10015 |  | 
|  | 10016 | # How to hardcode a shared library path into an executable. | 
|  | 10017 | hardcode_action=$hardcode_action | 
|  | 10018 |  | 
|  | 10019 | # Whether we should hardcode library paths into libraries. | 
|  | 10020 | hardcode_into_libs=$hardcode_into_libs | 
|  | 10021 |  | 
|  | 10022 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 10023 | # This must work even if \$libdir does not exist. | 
|  | 10024 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
|  | 10025 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10026 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 10027 | # a binary during linking. This must work even if \$libdir does | 
|  | 10028 | # not exist. | 
|  | 10029 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
|  | 10030 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10031 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 10032 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
|  | 10033 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10034 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10035 | # resulting binary. | 
|  | 10036 | hardcode_direct=$hardcode_direct | 
|  | 10037 |  | 
|  | 10038 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 10039 | # resulting binary. | 
|  | 10040 | hardcode_minus_L=$hardcode_minus_L | 
|  | 10041 |  | 
|  | 10042 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 10043 | # the resulting binary. | 
|  | 10044 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
|  | 10045 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10046 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 10047 | # and all subsequent libraries and executables linked against it. | 
|  | 10048 | hardcode_automatic=$hardcode_automatic | 
|  | 10049 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10050 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 10051 | # restored at relink time. | 
|  | 10052 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 10053 |  | 
|  | 10054 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 10055 | link_all_deplibs=$link_all_deplibs | 
|  | 10056 |  | 
|  | 10057 | # Compile-time system search path for libraries | 
|  | 10058 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 10059 |  | 
|  | 10060 | # Run-time system search path for libraries | 
|  | 10061 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 10062 |  | 
|  | 10063 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 10064 | fix_srcfile_path="$fix_srcfile_path" | 
|  | 10065 |  | 
|  | 10066 | # Set to yes if exported symbols are required. | 
|  | 10067 | always_export_symbols=$always_export_symbols | 
|  | 10068 |  | 
|  | 10069 | # The commands to list exported symbols. | 
|  | 10070 | export_symbols_cmds=$lt_export_symbols_cmds | 
|  | 10071 |  | 
|  | 10072 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 10073 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 10074 |  | 
|  | 10075 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 10076 | exclude_expsyms=$lt_exclude_expsyms | 
|  | 10077 |  | 
|  | 10078 | # Symbols that must always be exported. | 
|  | 10079 | include_expsyms=$lt_include_expsyms | 
|  | 10080 |  | 
|  | 10081 | # ### END LIBTOOL CONFIG | 
|  | 10082 |  | 
|  | 10083 | __EOF__ | 
|  | 10084 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10085 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10086 | case $host_os in | 
|  | 10087 | aix3*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10088 | cat <<\EOF >> "$cfgfile" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10089 |  | 
|  | 10090 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 10091 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 10092 | # vanish in a puff of smoke. | 
|  | 10093 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 10094 | COLLECT_NAMES= | 
|  | 10095 | export COLLECT_NAMES | 
|  | 10096 | fi | 
|  | 10097 | EOF | 
|  | 10098 | ;; | 
|  | 10099 | esac | 
|  | 10100 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10101 | # We use sed instead of cat because bash on DJGPP gets confused if | 
|  | 10102 | # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
|  | 10103 | # text mode, it properly converts lines to CR/LF.  This bash problem | 
|  | 10104 | # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10105 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10106 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10107 | mv -f "$cfgfile" "$ofile" || \ | 
|  | 10108 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10109 | chmod +x "$ofile" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10110 |  | 
|  | 10111 | else | 
|  | 10112 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 10113 | # `config.status --recheck' to rerun these tests and create the | 
|  | 10114 | # libtool script then. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10115 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 10116 | if test -f "$ltmain_in"; then | 
|  | 10117 | test -f Makefile && make "$ltmain" | 
|  | 10118 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10119 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10120 |  | 
|  | 10121 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10122 | ac_ext=c | 
|  | 10123 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10127 |  | 
|  | 10128 | CC="$lt_save_CC" | 
|  | 10129 |  | 
|  | 10130 |  | 
|  | 10131 | # Check whether --with-tags or --without-tags was given. | 
|  | 10132 | if test "${with_tags+set}" = set; then | 
|  | 10133 | withval="$with_tags" | 
|  | 10134 | tagnames="$withval" | 
|  | 10135 | fi; | 
|  | 10136 |  | 
|  | 10137 | if test -f "$ltmain" && test -n "$tagnames"; then | 
|  | 10138 | if test ! -f "${ofile}"; then | 
|  | 10139 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
|  | 10140 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
|  | 10141 | fi | 
|  | 10142 |  | 
|  | 10143 | if test -z "$LTCC"; then | 
|  | 10144 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
|  | 10145 | if test -z "$LTCC"; then | 
|  | 10146 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
|  | 10147 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
|  | 10148 | else | 
|  | 10149 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
|  | 10150 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
|  | 10151 | fi | 
|  | 10152 | fi | 
|  | 10153 |  | 
|  | 10154 | # Extract list of available tagged configurations in $ofile. | 
|  | 10155 | # Note that this assumes the entire list is on one line. | 
|  | 10156 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
|  | 10157 |  | 
|  | 10158 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 10159 | for tagname in $tagnames; do | 
|  | 10160 | IFS="$lt_save_ifs" | 
|  | 10161 | # Check whether tagname contains only valid characters | 
|  | 10162 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
|  | 10163 | "") ;; | 
|  | 10164 | *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
|  | 10165 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
|  | 10166 | { (exit 1); exit 1; }; } | 
|  | 10167 | ;; | 
|  | 10168 | esac | 
|  | 10169 |  | 
|  | 10170 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
|  | 10171 | then | 
|  | 10172 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
|  | 10173 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
|  | 10174 | { (exit 1); exit 1; }; } | 
|  | 10175 | fi | 
|  | 10176 |  | 
|  | 10177 | # Update the list of available tags. | 
|  | 10178 | if test -n "$tagname"; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10179 | echo appending configuration tag "$tagname" to $ofile | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10180 |  | 
|  | 10181 | case $tagname in | 
|  | 10182 | CXX) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10183 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
|  | 10184 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
|  | 10185 | (test "X$CXX" != "Xg++"))) ; then | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10186 | ac_ext=cc | 
|  | 10187 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 10188 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10189 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10190 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 10191 |  | 
|  | 10192 |  | 
|  | 10193 |  | 
|  | 10194 |  | 
|  | 10195 | archive_cmds_need_lc_CXX=no | 
|  | 10196 | allow_undefined_flag_CXX= | 
|  | 10197 | always_export_symbols_CXX=no | 
|  | 10198 | archive_expsym_cmds_CXX= | 
|  | 10199 | export_dynamic_flag_spec_CXX= | 
|  | 10200 | hardcode_direct_CXX=no | 
|  | 10201 | hardcode_libdir_flag_spec_CXX= | 
|  | 10202 | hardcode_libdir_flag_spec_ld_CXX= | 
|  | 10203 | hardcode_libdir_separator_CXX= | 
|  | 10204 | hardcode_minus_L_CXX=no | 
|  | 10205 | hardcode_automatic_CXX=no | 
|  | 10206 | module_cmds_CXX= | 
|  | 10207 | module_expsym_cmds_CXX= | 
|  | 10208 | link_all_deplibs_CXX=unknown | 
|  | 10209 | old_archive_cmds_CXX=$old_archive_cmds | 
|  | 10210 | no_undefined_flag_CXX= | 
|  | 10211 | whole_archive_flag_spec_CXX= | 
|  | 10212 | enable_shared_with_static_runtimes_CXX=no | 
|  | 10213 |  | 
|  | 10214 | # Dependencies to place before and after the object being linked: | 
|  | 10215 | predep_objects_CXX= | 
|  | 10216 | postdep_objects_CXX= | 
|  | 10217 | predeps_CXX= | 
|  | 10218 | postdeps_CXX= | 
|  | 10219 | compiler_lib_search_path_CXX= | 
|  | 10220 |  | 
|  | 10221 | # Source file extension for C++ test sources. | 
|  | 10222 | ac_ext=cc | 
|  | 10223 |  | 
|  | 10224 | # Object file extension for compiled C++ test sources. | 
|  | 10225 | objext=o | 
|  | 10226 | objext_CXX=$objext | 
|  | 10227 |  | 
|  | 10228 | # Code to be used in simple compile tests | 
|  | 10229 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
|  | 10230 |  | 
|  | 10231 | # Code to be used in simple link tests | 
|  | 10232 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
|  | 10233 |  | 
|  | 10234 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 10235 |  | 
|  | 10236 | # If no C compiler was specified, use CC. | 
|  | 10237 | LTCC=${LTCC-"$CC"} | 
|  | 10238 |  | 
|  | 10239 | # Allow CC to be a program name with arguments. | 
|  | 10240 | compiler=$CC | 
|  | 10241 |  | 
|  | 10242 |  | 
|  | 10243 | # Allow CC to be a program name with arguments. | 
|  | 10244 | lt_save_CC=$CC | 
|  | 10245 | lt_save_LD=$LD | 
|  | 10246 | lt_save_GCC=$GCC | 
|  | 10247 | GCC=$GXX | 
|  | 10248 | lt_save_with_gnu_ld=$with_gnu_ld | 
|  | 10249 | lt_save_path_LD=$lt_cv_path_LD | 
|  | 10250 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
|  | 10251 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
|  | 10252 | else | 
|  | 10253 | unset lt_cv_prog_gnu_ld | 
|  | 10254 | fi | 
|  | 10255 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
|  | 10256 | lt_cv_path_LD=$lt_cv_path_LDCXX | 
|  | 10257 | else | 
|  | 10258 | unset lt_cv_path_LD | 
|  | 10259 | fi | 
|  | 10260 | test -z "${LDCXX+set}" || LD=$LDCXX | 
|  | 10261 | CC=${CXX-"c++"} | 
|  | 10262 | compiler=$CC | 
|  | 10263 | compiler_CXX=$CC | 
|  | 10264 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 10265 |  | 
|  | 10266 | # We don't want -fno-exception wen compiling C++ code, so set the | 
|  | 10267 | # no_builtin_flag separately | 
|  | 10268 | if test "$GXX" = yes; then | 
|  | 10269 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
|  | 10270 | else | 
|  | 10271 | lt_prog_compiler_no_builtin_flag_CXX= | 
|  | 10272 | fi | 
|  | 10273 |  | 
|  | 10274 | if test "$GXX" = yes; then | 
|  | 10275 | # Set up default GNU C++ configuration | 
|  | 10276 |  | 
|  | 10277 |  | 
|  | 10278 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|  | 10279 | if test "${with_gnu_ld+set}" = set; then | 
|  | 10280 | withval="$with_gnu_ld" | 
|  | 10281 | test "$withval" = no || with_gnu_ld=yes | 
|  | 10282 | else | 
|  | 10283 | with_gnu_ld=no | 
|  | 10284 | fi; | 
|  | 10285 | ac_prog=ld | 
|  | 10286 | if test "$GCC" = yes; then | 
|  | 10287 | # Check if gcc -print-prog-name=ld gives a path. | 
|  | 10288 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
|  | 10289 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
|  | 10290 | case $host in | 
|  | 10291 | *-*-mingw*) | 
|  | 10292 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 10293 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 10294 | *) | 
|  | 10295 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 10296 | esac | 
|  | 10297 | case $ac_prog in | 
|  | 10298 | # Accept absolute paths. | 
|  | 10299 | [\\/]* | ?:[\\/]*) | 
|  | 10300 | re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10301 | # Canonicalize the pathname of ld | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10302 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
|  | 10303 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|  | 10304 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 10305 | done | 
|  | 10306 | test -z "$LD" && LD="$ac_prog" | 
|  | 10307 | ;; | 
|  | 10308 | "") | 
|  | 10309 | # If it fails, then pretend we aren't using GCC. | 
|  | 10310 | ac_prog=ld | 
|  | 10311 | ;; | 
|  | 10312 | *) | 
|  | 10313 | # If it is relative, then search for the first ld in PATH. | 
|  | 10314 | with_gnu_ld=unknown | 
|  | 10315 | ;; | 
|  | 10316 | esac | 
|  | 10317 | elif test "$with_gnu_ld" = yes; then | 
|  | 10318 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
|  | 10319 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
|  | 10320 | else | 
|  | 10321 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
|  | 10322 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
|  | 10323 | fi | 
|  | 10324 | if test "${lt_cv_path_LD+set}" = set; then | 
|  | 10325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10326 | else | 
|  | 10327 | if test -z "$LD"; then | 
|  | 10328 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 10329 | for ac_dir in $PATH; do | 
|  | 10330 | IFS="$lt_save_ifs" | 
|  | 10331 | test -z "$ac_dir" && ac_dir=. | 
|  | 10332 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 10333 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 10334 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 10335 | # but apparently some GNU ld's only accept -v. | 
|  | 10336 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 10337 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 10338 | *GNU* | *'with BFD'*) | 
|  | 10339 | test "$with_gnu_ld" != no && break | 
|  | 10340 | ;; | 
|  | 10341 | *) | 
|  | 10342 | test "$with_gnu_ld" != yes && break | 
|  | 10343 | ;; | 
|  | 10344 | esac | 
|  | 10345 | fi | 
|  | 10346 | done | 
|  | 10347 | IFS="$lt_save_ifs" | 
|  | 10348 | else | 
|  | 10349 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 10350 | fi | 
|  | 10351 | fi | 
|  | 10352 |  | 
|  | 10353 | LD="$lt_cv_path_LD" | 
|  | 10354 | if test -n "$LD"; then | 
|  | 10355 | echo "$as_me:$LINENO: result: $LD" >&5 | 
|  | 10356 | echo "${ECHO_T}$LD" >&6 | 
|  | 10357 | else | 
|  | 10358 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 10359 | echo "${ECHO_T}no" >&6 | 
|  | 10360 | fi | 
|  | 10361 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
|  | 10362 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
|  | 10363 | { (exit 1); exit 1; }; } | 
|  | 10364 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 10365 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
|  | 10366 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
|  | 10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10368 | else | 
|  | 10369 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10370 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10371 | *GNU* | *'with BFD'*) | 
|  | 10372 | lt_cv_prog_gnu_ld=yes | 
|  | 10373 | ;; | 
|  | 10374 | *) | 
|  | 10375 | lt_cv_prog_gnu_ld=no | 
|  | 10376 | ;; | 
|  | 10377 | esac | 
|  | 10378 | fi | 
|  | 10379 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 10380 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
|  | 10381 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 10382 |  | 
|  | 10383 |  | 
|  | 10384 |  | 
|  | 10385 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
|  | 10386 | # archiving commands below assume that GNU ld is being used. | 
|  | 10387 | if test "$with_gnu_ld" = yes; then | 
|  | 10388 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 10389 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 10390 |  | 
|  | 10391 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
|  | 10392 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 10393 |  | 
|  | 10394 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 10395 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
|  | 10396 | #     investigate it a little bit more. (MM) | 
|  | 10397 | wlarc='${wl}' | 
|  | 10398 |  | 
|  | 10399 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 10400 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
|  | 10401 | grep 'no-whole-archive' > /dev/null; then | 
|  | 10402 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 10403 | else | 
|  | 10404 | whole_archive_flag_spec_CXX= | 
|  | 10405 | fi | 
|  | 10406 | else | 
|  | 10407 | with_gnu_ld=no | 
|  | 10408 | wlarc= | 
|  | 10409 |  | 
|  | 10410 | # A generic and very simple default shared library creation | 
|  | 10411 | # command for GNU C++ for the case where it uses the native | 
|  | 10412 | # linker, instead of GNU ld.  If possible, this setting should | 
|  | 10413 | # overridden to take advantage of the native linker features on | 
|  | 10414 | # the platform it is being used on. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10415 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10416 | fi | 
|  | 10417 |  | 
|  | 10418 | # Commands to make compiler produce verbose output that lists | 
|  | 10419 | # what "hidden" libraries, object files and flags are used when | 
|  | 10420 | # linking a shared library. | 
|  | 10421 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 10422 |  | 
|  | 10423 | else | 
|  | 10424 | GXX=no | 
|  | 10425 | with_gnu_ld=no | 
|  | 10426 | wlarc= | 
|  | 10427 | fi | 
|  | 10428 |  | 
|  | 10429 | # PORTME: fill in a description of your system's C++ link characteristics | 
|  | 10430 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 10431 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 10432 | ld_shlibs_CXX=yes | 
|  | 10433 | case $host_os in | 
|  | 10434 | aix3*) | 
|  | 10435 | # FIXME: insert proper C++ library support | 
|  | 10436 | ld_shlibs_CXX=no | 
|  | 10437 | ;; | 
|  | 10438 | aix4* | aix5*) | 
|  | 10439 | if test "$host_cpu" = ia64; then | 
|  | 10440 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 10441 | # have to do anything special. | 
|  | 10442 | aix_use_runtimelinking=no | 
|  | 10443 | exp_sym_flag='-Bexport' | 
|  | 10444 | no_entry_flag="" | 
|  | 10445 | else | 
|  | 10446 | aix_use_runtimelinking=no | 
|  | 10447 |  | 
|  | 10448 | # Test if we are trying to use run time linking or normal | 
|  | 10449 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 10450 | # need to do runtime linking. | 
|  | 10451 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 10452 | for ld_flag in $LDFLAGS; do | 
|  | 10453 | case $ld_flag in | 
|  | 10454 | *-brtl*) | 
|  | 10455 | aix_use_runtimelinking=yes | 
|  | 10456 | break | 
|  | 10457 | ;; | 
|  | 10458 | esac | 
|  | 10459 | done | 
|  | 10460 | esac | 
|  | 10461 |  | 
|  | 10462 | exp_sym_flag='-bexport' | 
|  | 10463 | no_entry_flag='-bnoentry' | 
|  | 10464 | fi | 
|  | 10465 |  | 
|  | 10466 | # When large executables or shared objects are built, AIX ld can | 
|  | 10467 | # have problems creating the table of contents.  If linking a library | 
|  | 10468 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 10469 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 10470 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 10471 |  | 
|  | 10472 | archive_cmds_CXX='' | 
|  | 10473 | hardcode_direct_CXX=yes | 
|  | 10474 | hardcode_libdir_separator_CXX=':' | 
|  | 10475 | link_all_deplibs_CXX=yes | 
|  | 10476 |  | 
|  | 10477 | if test "$GXX" = yes; then | 
|  | 10478 | case $host_os in aix4.012|aix4.012.*) | 
|  | 10479 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 10480 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 10481 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 10482 | if test -f "$collect2name" && \ | 
|  | 10483 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 10484 | then | 
|  | 10485 | # We have reworked collect2 | 
|  | 10486 | hardcode_direct_CXX=yes | 
|  | 10487 | else | 
|  | 10488 | # We have old collect2 | 
|  | 10489 | hardcode_direct_CXX=unsupported | 
|  | 10490 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 10491 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 10492 | # to unsupported forces relinking | 
|  | 10493 | hardcode_minus_L_CXX=yes | 
|  | 10494 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 10495 | hardcode_libdir_separator_CXX= | 
|  | 10496 | fi | 
|  | 10497 | esac | 
|  | 10498 | shared_flag='-shared' | 
|  | 10499 | else | 
|  | 10500 | # not using gcc | 
|  | 10501 | if test "$host_cpu" = ia64; then | 
|  | 10502 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 10503 | # chokes on -Wl,-G. The following line is correct: | 
|  | 10504 | shared_flag='-G' | 
|  | 10505 | else | 
|  | 10506 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 10507 | shared_flag='${wl}-G' | 
|  | 10508 | else | 
|  | 10509 | shared_flag='${wl}-bM:SRE' | 
|  | 10510 | fi | 
|  | 10511 | fi | 
|  | 10512 | fi | 
|  | 10513 |  | 
|  | 10514 | # It seems that -bexpall does not export symbols beginning with | 
|  | 10515 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 10516 | always_export_symbols_CXX=yes | 
|  | 10517 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 10518 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 10519 | # -berok will link without error, but may produce a broken library. | 
|  | 10520 | allow_undefined_flag_CXX='-berok' | 
|  | 10521 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 10522 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10523 | /* confdefs.h.  */ | 
|  | 10524 | _ACEOF | 
|  | 10525 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10526 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10527 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10528 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10529 | int | 
|  | 10530 | main () | 
|  | 10531 | { | 
|  | 10532 |  | 
|  | 10533 | ; | 
|  | 10534 | return 0; | 
|  | 10535 | } | 
|  | 10536 | _ACEOF | 
|  | 10537 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10539 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10540 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10541 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10542 | rm -f conftest.er1 | 
|  | 10543 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10545 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10546 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 10547 | || test ! -s conftest.err' | 
|  | 10548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10549 | (eval $ac_try) 2>&5 | 
|  | 10550 | ac_status=$? | 
|  | 10551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10552 | (exit $ac_status); }; } && | 
|  | 10553 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10555 | (eval $ac_try) 2>&5 | 
|  | 10556 | ac_status=$? | 
|  | 10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10558 | (exit $ac_status); }; }; then | 
|  | 10559 |  | 
|  | 10560 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 10561 | }'` | 
|  | 10562 | # Check for a 64-bit object if we didn't find anything. | 
|  | 10563 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 10564 | }'`; fi | 
|  | 10565 | else | 
|  | 10566 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10567 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10568 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10569 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10570 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 10571 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10572 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 10573 |  | 
|  | 10574 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 10575 |  | 
|  | 10576 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
|  | 10577 | else | 
|  | 10578 | if test "$host_cpu" = ia64; then | 
|  | 10579 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 10580 | allow_undefined_flag_CXX="-z nodefs" | 
|  | 10581 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 
|  | 10582 | else | 
|  | 10583 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 10584 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10585 | /* confdefs.h.  */ | 
|  | 10586 | _ACEOF | 
|  | 10587 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10588 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10589 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10590 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10591 | int | 
|  | 10592 | main () | 
|  | 10593 | { | 
|  | 10594 |  | 
|  | 10595 | ; | 
|  | 10596 | return 0; | 
|  | 10597 | } | 
|  | 10598 | _ACEOF | 
|  | 10599 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10601 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10602 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10603 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10604 | rm -f conftest.er1 | 
|  | 10605 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10607 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10608 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 10609 | || test ! -s conftest.err' | 
|  | 10610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10611 | (eval $ac_try) 2>&5 | 
|  | 10612 | ac_status=$? | 
|  | 10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10614 | (exit $ac_status); }; } && | 
|  | 10615 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10617 | (eval $ac_try) 2>&5 | 
|  | 10618 | ac_status=$? | 
|  | 10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10620 | (exit $ac_status); }; }; then | 
|  | 10621 |  | 
|  | 10622 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 10623 | }'` | 
|  | 10624 | # Check for a 64-bit object if we didn't find anything. | 
|  | 10625 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 10626 | }'`; fi | 
|  | 10627 | else | 
|  | 10628 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10629 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10630 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10631 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10632 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 10633 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10634 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 10635 |  | 
|  | 10636 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 10637 | # Warning - without using the other run time loading flags, | 
|  | 10638 | # -berok will link without error, but may produce a broken library. | 
|  | 10639 | no_undefined_flag_CXX=' ${wl}-bernotok' | 
|  | 10640 | allow_undefined_flag_CXX=' ${wl}-berok' | 
|  | 10641 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 10642 | always_export_symbols_CXX=yes | 
|  | 10643 | # Exported symbols can be pulled into shared objects from archives | 
|  | 10644 | whole_archive_flag_spec_CXX=' ' | 
|  | 10645 | archive_cmds_need_lc_CXX=yes | 
|  | 10646 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10647 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10648 | fi | 
|  | 10649 | fi | 
|  | 10650 | ;; | 
|  | 10651 | chorus*) | 
|  | 10652 | case $cc_basename in | 
|  | 10653 | *) | 
|  | 10654 | # FIXME: insert proper C++ library support | 
|  | 10655 | ld_shlibs_CXX=no | 
|  | 10656 | ;; | 
|  | 10657 | esac | 
|  | 10658 | ;; | 
|  | 10659 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10660 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10661 | cygwin* | mingw* | pw32*) | 
|  | 10662 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
|  | 10663 | # as there is no search path for DLLs. | 
|  | 10664 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 10665 | allow_undefined_flag_CXX=unsupported | 
|  | 10666 | always_export_symbols_CXX=no | 
|  | 10667 | enable_shared_with_static_runtimes_CXX=yes | 
|  | 10668 |  | 
|  | 10669 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 10670 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 10671 | # If the export-symbols file already is a .def file (1st line | 
|  | 10672 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 10673 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 10674 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 10675 | else | 
|  | 10676 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 10677 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10678 | fi~ | 
|  | 10679 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10680 | else | 
|  | 10681 | ld_shlibs_CXX=no | 
|  | 10682 | fi | 
|  | 10683 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10684 | darwin* | rhapsody*) | 
|  | 10685 | case "$host_os" in | 
|  | 10686 | rhapsody* | darwin1.[012]) | 
|  | 10687 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | 
|  | 10688 | ;; | 
|  | 10689 | *) # Darwin 1.3 on | 
|  | 10690 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 10691 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 10692 | else | 
|  | 10693 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 10694 | 10.[012]) | 
|  | 10695 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 10696 | ;; | 
|  | 10697 | 10.*) | 
|  | 10698 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 10699 | ;; | 
|  | 10700 | esac | 
|  | 10701 | fi | 
|  | 10702 | ;; | 
|  | 10703 | esac | 
|  | 10704 | archive_cmds_need_lc_CXX=no | 
|  | 10705 | hardcode_direct_CXX=no | 
|  | 10706 | hardcode_automatic_CXX=yes | 
|  | 10707 | hardcode_shlibpath_var_CXX=unsupported | 
|  | 10708 | whole_archive_flag_spec_CXX='' | 
|  | 10709 | link_all_deplibs_CXX=yes | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10710 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10711 | if test "$GXX" = yes ; then | 
|  | 10712 | lt_int_apple_cc_single_mod=no | 
|  | 10713 | output_verbose_link_cmd='echo' | 
|  | 10714 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 
|  | 10715 | lt_int_apple_cc_single_mod=yes | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10716 | fi | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10717 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10718 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10719 | else | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10720 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10721 | fi | 
|  | 10722 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 10723 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
|  | 10724 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10725 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10726 | else | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10727 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10728 | fi | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10729 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10730 | else | 
|  | 10731 | case "$cc_basename" in | 
|  | 10732 | xlc*) | 
|  | 10733 | output_verbose_link_cmd='echo' | 
|  | 10734 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
|  | 10735 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 10736 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10737 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 10738 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10739 | ;; | 
|  | 10740 | *) | 
|  | 10741 | ld_shlibs_CXX=no | 
|  | 10742 | ;; | 
|  | 10743 | esac | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 10744 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10745 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10746 |  | 
|  | 10747 | dgux*) | 
|  | 10748 | case $cc_basename in | 
|  | 10749 | ec++) | 
|  | 10750 | # FIXME: insert proper C++ library support | 
|  | 10751 | ld_shlibs_CXX=no | 
|  | 10752 | ;; | 
|  | 10753 | ghcx) | 
|  | 10754 | # Green Hills C++ Compiler | 
|  | 10755 | # FIXME: insert proper C++ library support | 
|  | 10756 | ld_shlibs_CXX=no | 
|  | 10757 | ;; | 
|  | 10758 | *) | 
|  | 10759 | # FIXME: insert proper C++ library support | 
|  | 10760 | ld_shlibs_CXX=no | 
|  | 10761 | ;; | 
|  | 10762 | esac | 
|  | 10763 | ;; | 
|  | 10764 | freebsd12*) | 
|  | 10765 | # C++ shared libraries reported to be fairly broken before switch to ELF | 
|  | 10766 | ld_shlibs_CXX=no | 
|  | 10767 | ;; | 
|  | 10768 | freebsd-elf*) | 
|  | 10769 | archive_cmds_need_lc_CXX=no | 
|  | 10770 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10771 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10772 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
|  | 10773 | # conventions | 
|  | 10774 | ld_shlibs_CXX=yes | 
|  | 10775 | ;; | 
|  | 10776 | gnu*) | 
|  | 10777 | ;; | 
|  | 10778 | hpux9*) | 
|  | 10779 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 10780 | hardcode_libdir_separator_CXX=: | 
|  | 10781 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 10782 | hardcode_direct_CXX=yes | 
|  | 10783 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 10784 | # but as the default | 
|  | 10785 | # location of the library. | 
|  | 10786 |  | 
|  | 10787 | case $cc_basename in | 
|  | 10788 | CC) | 
|  | 10789 | # FIXME: insert proper C++ library support | 
|  | 10790 | ld_shlibs_CXX=no | 
|  | 10791 | ;; | 
|  | 10792 | aCC) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10793 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10794 | # Commands to make compiler produce verbose output that lists | 
|  | 10795 | # what "hidden" libraries, object files and flags are used when | 
|  | 10796 | # linking a shared library. | 
|  | 10797 | # | 
|  | 10798 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 10799 | # explicitly linking system object files so we need to strip them | 
|  | 10800 | # from the output so that they don't get included in the library | 
|  | 10801 | # dependencies. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10802 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10803 | ;; | 
|  | 10804 | *) | 
|  | 10805 | if test "$GXX" = yes; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10806 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10807 | else | 
|  | 10808 | # FIXME: insert proper C++ library support | 
|  | 10809 | ld_shlibs_CXX=no | 
|  | 10810 | fi | 
|  | 10811 | ;; | 
|  | 10812 | esac | 
|  | 10813 | ;; | 
|  | 10814 | hpux10*|hpux11*) | 
|  | 10815 | if test $with_gnu_ld = no; then | 
|  | 10816 | case "$host_cpu" in | 
|  | 10817 | hppa*64*) | 
|  | 10818 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 10819 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
|  | 10820 | hardcode_libdir_separator_CXX=: | 
|  | 10821 | ;; | 
|  | 10822 | ia64*) | 
|  | 10823 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 10824 | ;; | 
|  | 10825 | *) | 
|  | 10826 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 10827 | hardcode_libdir_separator_CXX=: | 
|  | 10828 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 10829 | ;; | 
|  | 10830 | esac | 
|  | 10831 | fi | 
|  | 10832 | case "$host_cpu" in | 
|  | 10833 | hppa*64*) | 
|  | 10834 | hardcode_direct_CXX=no | 
|  | 10835 | hardcode_shlibpath_var_CXX=no | 
|  | 10836 | ;; | 
|  | 10837 | ia64*) | 
|  | 10838 | hardcode_direct_CXX=no | 
|  | 10839 | hardcode_shlibpath_var_CXX=no | 
|  | 10840 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 10841 | # but as the default | 
|  | 10842 | # location of the library. | 
|  | 10843 | ;; | 
|  | 10844 | *) | 
|  | 10845 | hardcode_direct_CXX=yes | 
|  | 10846 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 10847 | # but as the default | 
|  | 10848 | # location of the library. | 
|  | 10849 | ;; | 
|  | 10850 | esac | 
|  | 10851 |  | 
|  | 10852 | case $cc_basename in | 
|  | 10853 | CC) | 
|  | 10854 | # FIXME: insert proper C++ library support | 
|  | 10855 | ld_shlibs_CXX=no | 
|  | 10856 | ;; | 
|  | 10857 | aCC) | 
|  | 10858 | case "$host_cpu" in | 
|  | 10859 | hppa*64*|ia64*) | 
|  | 10860 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
|  | 10861 | ;; | 
|  | 10862 | *) | 
|  | 10863 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 10864 | ;; | 
|  | 10865 | esac | 
|  | 10866 | # Commands to make compiler produce verbose output that lists | 
|  | 10867 | # what "hidden" libraries, object files and flags are used when | 
|  | 10868 | # linking a shared library. | 
|  | 10869 | # | 
|  | 10870 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 10871 | # explicitly linking system object files so we need to strip them | 
|  | 10872 | # from the output so that they don't get included in the library | 
|  | 10873 | # dependencies. | 
|  | 10874 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
|  | 10875 | ;; | 
|  | 10876 | *) | 
|  | 10877 | if test "$GXX" = yes; then | 
|  | 10878 | if test $with_gnu_ld = no; then | 
|  | 10879 | case "$host_cpu" in | 
|  | 10880 | ia64*|hppa*64*) | 
|  | 10881 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
|  | 10882 | ;; | 
|  | 10883 | *) | 
|  | 10884 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 10885 | ;; | 
|  | 10886 | esac | 
|  | 10887 | fi | 
|  | 10888 | else | 
|  | 10889 | # FIXME: insert proper C++ library support | 
|  | 10890 | ld_shlibs_CXX=no | 
|  | 10891 | fi | 
|  | 10892 | ;; | 
|  | 10893 | esac | 
|  | 10894 | ;; | 
|  | 10895 | irix5* | irix6*) | 
|  | 10896 | case $cc_basename in | 
|  | 10897 | CC) | 
|  | 10898 | # SGI C++ | 
|  | 10899 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | 
|  | 10900 |  | 
|  | 10901 | # Archives containing C++ object files must be created using | 
|  | 10902 | # "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
|  | 10903 | # necessary to make sure instantiated templates are included | 
|  | 10904 | # in the archive. | 
|  | 10905 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
|  | 10906 | ;; | 
|  | 10907 | *) | 
|  | 10908 | if test "$GXX" = yes; then | 
|  | 10909 | if test "$with_gnu_ld" = no; then | 
|  | 10910 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | 
|  | 10911 | else | 
|  | 10912 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | 
|  | 10913 | fi | 
|  | 10914 | fi | 
|  | 10915 | link_all_deplibs_CXX=yes | 
|  | 10916 | ;; | 
|  | 10917 | esac | 
|  | 10918 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 10919 | hardcode_libdir_separator_CXX=: | 
|  | 10920 | ;; | 
|  | 10921 | linux*) | 
|  | 10922 | case $cc_basename in | 
|  | 10923 | KCC) | 
|  | 10924 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 10925 |  | 
|  | 10926 | # KCC will only create a shared library if the output file | 
|  | 10927 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 10928 | # to its proper name (with version) after linking. | 
|  | 10929 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | 
|  | 10930 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | 
|  | 10931 | # Commands to make compiler produce verbose output that lists | 
|  | 10932 | # what "hidden" libraries, object files and flags are used when | 
|  | 10933 | # linking a shared library. | 
|  | 10934 | # | 
|  | 10935 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 10936 | # explicitly linking system object files so we need to strip them | 
|  | 10937 | # from the output so that they don't get included in the library | 
|  | 10938 | # dependencies. | 
|  | 10939 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
|  | 10940 |  | 
|  | 10941 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
|  | 10942 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 10943 |  | 
|  | 10944 | # Archives containing C++ object files must be created using | 
|  | 10945 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 10946 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 10947 | ;; | 
|  | 10948 | icpc) | 
|  | 10949 | # Intel C++ | 
|  | 10950 | with_gnu_ld=yes | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10951 | # version 8.0 and above of icpc choke on multiply defined symbols | 
|  | 10952 | # if we add $predep_objects and $postdep_objects, however 7.1 and | 
|  | 10953 | # earlier do not add the objects themselves. | 
|  | 10954 | case `$CC -V 2>&1` in | 
|  | 10955 | *"Version 7."*) | 
|  | 10956 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 10957 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 10958 | ;; | 
|  | 10959 | *)  # Version 8.0 or newer | 
|  | 10960 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 10961 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 10962 | ;; | 
|  | 10963 | esac | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10964 | archive_cmds_need_lc_CXX=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10965 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 10966 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 10967 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 10968 | ;; | 
|  | 10969 | cxx) | 
|  | 10970 | # Compaq C++ | 
|  | 10971 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 10972 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | 
|  | 10973 |  | 
|  | 10974 | runpath_var=LD_RUN_PATH | 
|  | 10975 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 10976 | hardcode_libdir_separator_CXX=: | 
|  | 10977 |  | 
|  | 10978 | # Commands to make compiler produce verbose output that lists | 
|  | 10979 | # what "hidden" libraries, object files and flags are used when | 
|  | 10980 | # linking a shared library. | 
|  | 10981 | # | 
|  | 10982 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 10983 | # explicitly linking system object files so we need to strip them | 
|  | 10984 | # from the output so that they don't get included in the library | 
|  | 10985 | # dependencies. | 
|  | 10986 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
|  | 10987 | ;; | 
|  | 10988 | esac | 
|  | 10989 | ;; | 
|  | 10990 | lynxos*) | 
|  | 10991 | # FIXME: insert proper C++ library support | 
|  | 10992 | ld_shlibs_CXX=no | 
|  | 10993 | ;; | 
|  | 10994 | m88k*) | 
|  | 10995 | # FIXME: insert proper C++ library support | 
|  | 10996 | ld_shlibs_CXX=no | 
|  | 10997 | ;; | 
|  | 10998 | mvs*) | 
|  | 10999 | case $cc_basename in | 
|  | 11000 | cxx) | 
|  | 11001 | # FIXME: insert proper C++ library support | 
|  | 11002 | ld_shlibs_CXX=no | 
|  | 11003 | ;; | 
|  | 11004 | *) | 
|  | 11005 | # FIXME: insert proper C++ library support | 
|  | 11006 | ld_shlibs_CXX=no | 
|  | 11007 | ;; | 
|  | 11008 | esac | 
|  | 11009 | ;; | 
|  | 11010 | netbsd*) | 
|  | 11011 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 11012 | archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
|  | 11013 | wlarc= | 
|  | 11014 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 11015 | hardcode_direct_CXX=yes | 
|  | 11016 | hardcode_shlibpath_var_CXX=no | 
|  | 11017 | fi | 
|  | 11018 | # Workaround some broken pre-1.5 toolchains | 
|  | 11019 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
|  | 11020 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11021 | openbsd2*) | 
|  | 11022 | # C++ shared libraries are fairly broken | 
|  | 11023 | ld_shlibs_CXX=no | 
|  | 11024 | ;; | 
|  | 11025 | openbsd*) | 
|  | 11026 | hardcode_direct_CXX=yes | 
|  | 11027 | hardcode_shlibpath_var_CXX=no | 
|  | 11028 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
|  | 11029 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 11030 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 11031 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
|  | 11032 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 11033 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 11034 | fi | 
|  | 11035 | output_verbose_link_cmd='echo' | 
|  | 11036 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11037 | osf3*) | 
|  | 11038 | case $cc_basename in | 
|  | 11039 | KCC) | 
|  | 11040 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 11041 |  | 
|  | 11042 | # KCC will only create a shared library if the output file | 
|  | 11043 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 11044 | # to its proper name (with version) after linking. | 
|  | 11045 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | 
|  | 11046 |  | 
|  | 11047 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 11048 | hardcode_libdir_separator_CXX=: | 
|  | 11049 |  | 
|  | 11050 | # Archives containing C++ object files must be created using | 
|  | 11051 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 11052 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 11053 |  | 
|  | 11054 | ;; | 
|  | 11055 | RCC) | 
|  | 11056 | # Rational C++ 2.4.1 | 
|  | 11057 | # FIXME: insert proper C++ library support | 
|  | 11058 | ld_shlibs_CXX=no | 
|  | 11059 | ;; | 
|  | 11060 | cxx) | 
|  | 11061 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 11062 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | 
|  | 11063 |  | 
|  | 11064 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 11065 | hardcode_libdir_separator_CXX=: | 
|  | 11066 |  | 
|  | 11067 | # Commands to make compiler produce verbose output that lists | 
|  | 11068 | # what "hidden" libraries, object files and flags are used when | 
|  | 11069 | # linking a shared library. | 
|  | 11070 | # | 
|  | 11071 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 11072 | # explicitly linking system object files so we need to strip them | 
|  | 11073 | # from the output so that they don't get included in the library | 
|  | 11074 | # dependencies. | 
|  | 11075 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
|  | 11076 | ;; | 
|  | 11077 | *) | 
|  | 11078 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 11079 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 11080 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | 
|  | 11081 |  | 
|  | 11082 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 11083 | hardcode_libdir_separator_CXX=: | 
|  | 11084 |  | 
|  | 11085 | # Commands to make compiler produce verbose output that lists | 
|  | 11086 | # what "hidden" libraries, object files and flags are used when | 
|  | 11087 | # linking a shared library. | 
|  | 11088 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 11089 |  | 
|  | 11090 | else | 
|  | 11091 | # FIXME: insert proper C++ library support | 
|  | 11092 | ld_shlibs_CXX=no | 
|  | 11093 | fi | 
|  | 11094 | ;; | 
|  | 11095 | esac | 
|  | 11096 | ;; | 
|  | 11097 | osf4* | osf5*) | 
|  | 11098 | case $cc_basename in | 
|  | 11099 | KCC) | 
|  | 11100 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 11101 |  | 
|  | 11102 | # KCC will only create a shared library if the output file | 
|  | 11103 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 11104 | # to its proper name (with version) after linking. | 
|  | 11105 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | 
|  | 11106 |  | 
|  | 11107 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 11108 | hardcode_libdir_separator_CXX=: | 
|  | 11109 |  | 
|  | 11110 | # Archives containing C++ object files must be created using | 
|  | 11111 | # the KAI C++ compiler. | 
|  | 11112 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
|  | 11113 | ;; | 
|  | 11114 | RCC) | 
|  | 11115 | # Rational C++ 2.4.1 | 
|  | 11116 | # FIXME: insert proper C++ library support | 
|  | 11117 | ld_shlibs_CXX=no | 
|  | 11118 | ;; | 
|  | 11119 | cxx) | 
|  | 11120 | allow_undefined_flag_CXX=' -expect_unresolved \*' | 
|  | 11121 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11122 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
|  | 11123 | echo "-hidden">> $lib.exp~ | 
|  | 11124 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~ | 
|  | 11125 | $rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11126 |  | 
|  | 11127 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 11128 | hardcode_libdir_separator_CXX=: | 
|  | 11129 |  | 
|  | 11130 | # Commands to make compiler produce verbose output that lists | 
|  | 11131 | # what "hidden" libraries, object files and flags are used when | 
|  | 11132 | # linking a shared library. | 
|  | 11133 | # | 
|  | 11134 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 11135 | # explicitly linking system object files so we need to strip them | 
|  | 11136 | # from the output so that they don't get included in the library | 
|  | 11137 | # dependencies. | 
|  | 11138 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
|  | 11139 | ;; | 
|  | 11140 | *) | 
|  | 11141 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 11142 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 11143 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | 
|  | 11144 |  | 
|  | 11145 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 11146 | hardcode_libdir_separator_CXX=: | 
|  | 11147 |  | 
|  | 11148 | # Commands to make compiler produce verbose output that lists | 
|  | 11149 | # what "hidden" libraries, object files and flags are used when | 
|  | 11150 | # linking a shared library. | 
|  | 11151 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 11152 |  | 
|  | 11153 | else | 
|  | 11154 | # FIXME: insert proper C++ library support | 
|  | 11155 | ld_shlibs_CXX=no | 
|  | 11156 | fi | 
|  | 11157 | ;; | 
|  | 11158 | esac | 
|  | 11159 | ;; | 
|  | 11160 | psos*) | 
|  | 11161 | # FIXME: insert proper C++ library support | 
|  | 11162 | ld_shlibs_CXX=no | 
|  | 11163 | ;; | 
|  | 11164 | sco*) | 
|  | 11165 | archive_cmds_need_lc_CXX=no | 
|  | 11166 | case $cc_basename in | 
|  | 11167 | CC) | 
|  | 11168 | # FIXME: insert proper C++ library support | 
|  | 11169 | ld_shlibs_CXX=no | 
|  | 11170 | ;; | 
|  | 11171 | *) | 
|  | 11172 | # FIXME: insert proper C++ library support | 
|  | 11173 | ld_shlibs_CXX=no | 
|  | 11174 | ;; | 
|  | 11175 | esac | 
|  | 11176 | ;; | 
|  | 11177 | sunos4*) | 
|  | 11178 | case $cc_basename in | 
|  | 11179 | CC) | 
|  | 11180 | # Sun C++ 4.x | 
|  | 11181 | # FIXME: insert proper C++ library support | 
|  | 11182 | ld_shlibs_CXX=no | 
|  | 11183 | ;; | 
|  | 11184 | lcc) | 
|  | 11185 | # Lucid | 
|  | 11186 | # FIXME: insert proper C++ library support | 
|  | 11187 | ld_shlibs_CXX=no | 
|  | 11188 | ;; | 
|  | 11189 | *) | 
|  | 11190 | # FIXME: insert proper C++ library support | 
|  | 11191 | ld_shlibs_CXX=no | 
|  | 11192 | ;; | 
|  | 11193 | esac | 
|  | 11194 | ;; | 
|  | 11195 | solaris*) | 
|  | 11196 | case $cc_basename in | 
|  | 11197 | CC) | 
|  | 11198 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 11199 | no_undefined_flag_CXX=' -zdefs' | 
|  | 11200 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11201 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 11202 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11203 |  | 
|  | 11204 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 11205 | hardcode_shlibpath_var_CXX=no | 
|  | 11206 | case $host_os in | 
|  | 11207 | solaris2.0-5 | solaris2.0-5.*) ;; | 
|  | 11208 | *) | 
|  | 11209 | # The C++ compiler is used as linker so we must use $wl | 
|  | 11210 | # flag to pass the commands to the underlying system | 
|  | 11211 | # linker. | 
|  | 11212 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 11213 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
|  | 11214 | ;; | 
|  | 11215 | esac | 
|  | 11216 | link_all_deplibs_CXX=yes | 
|  | 11217 |  | 
|  | 11218 | # Commands to make compiler produce verbose output that lists | 
|  | 11219 | # what "hidden" libraries, object files and flags are used when | 
|  | 11220 | # linking a shared library. | 
|  | 11221 | # | 
|  | 11222 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 11223 | # explicitly linking system object files so we need to strip them | 
|  | 11224 | # from the output so that they don't get included in the library | 
|  | 11225 | # dependencies. | 
|  | 11226 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
|  | 11227 |  | 
|  | 11228 | # Archives containing C++ object files must be created using | 
|  | 11229 | # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
|  | 11230 | # necessary to make sure instantiated templates are included | 
|  | 11231 | # in the archive. | 
|  | 11232 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
|  | 11233 | ;; | 
|  | 11234 | gcx) | 
|  | 11235 | # Green Hills C++ Compiler | 
|  | 11236 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 11237 |  | 
|  | 11238 | # The C++ compiler must be used to create the archive. | 
|  | 11239 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
|  | 11240 | ;; | 
|  | 11241 | *) | 
|  | 11242 | # GNU C++ compiler with Solaris linker | 
|  | 11243 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 11244 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
|  | 11245 | if $CC --version | grep -v '^2\.7' > /dev/null; then | 
| Reid Spencer | 1a2f043 | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 11246 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11247 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 11248 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
|  | 11249 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11250 | # Commands to make compiler produce verbose output that lists | 
|  | 11251 | # what "hidden" libraries, object files and flags are used when | 
|  | 11252 | # linking a shared library. | 
| Reid Spencer | 1a2f043 | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 11253 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11254 | else | 
|  | 11255 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
|  | 11256 | # platform. | 
|  | 11257 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11258 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 11259 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11260 |  | 
|  | 11261 | # Commands to make compiler produce verbose output that lists | 
|  | 11262 | # what "hidden" libraries, object files and flags are used when | 
|  | 11263 | # linking a shared library. | 
|  | 11264 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
|  | 11265 | fi | 
|  | 11266 |  | 
|  | 11267 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
|  | 11268 | fi | 
|  | 11269 | ;; | 
|  | 11270 | esac | 
|  | 11271 | ;; | 
|  | 11272 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
|  | 11273 | archive_cmds_need_lc_CXX=no | 
|  | 11274 | ;; | 
|  | 11275 | tandem*) | 
|  | 11276 | case $cc_basename in | 
|  | 11277 | NCC) | 
|  | 11278 | # NonStop-UX NCC 3.20 | 
|  | 11279 | # FIXME: insert proper C++ library support | 
|  | 11280 | ld_shlibs_CXX=no | 
|  | 11281 | ;; | 
|  | 11282 | *) | 
|  | 11283 | # FIXME: insert proper C++ library support | 
|  | 11284 | ld_shlibs_CXX=no | 
|  | 11285 | ;; | 
|  | 11286 | esac | 
|  | 11287 | ;; | 
|  | 11288 | vxworks*) | 
|  | 11289 | # FIXME: insert proper C++ library support | 
|  | 11290 | ld_shlibs_CXX=no | 
|  | 11291 | ;; | 
|  | 11292 | *) | 
|  | 11293 | # FIXME: insert proper C++ library support | 
|  | 11294 | ld_shlibs_CXX=no | 
|  | 11295 | ;; | 
|  | 11296 | esac | 
|  | 11297 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
|  | 11298 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
|  | 11299 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 11300 |  | 
|  | 11301 | GCC_CXX="$GXX" | 
|  | 11302 | LD_CXX="$LD" | 
|  | 11303 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11304 |  | 
|  | 11305 | cat > conftest.$ac_ext <<EOF | 
|  | 11306 | class Foo | 
|  | 11307 | { | 
|  | 11308 | public: | 
|  | 11309 | Foo (void) { a = 0; } | 
|  | 11310 | private: | 
|  | 11311 | int a; | 
|  | 11312 | }; | 
|  | 11313 | EOF | 
|  | 11314 |  | 
|  | 11315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 11316 | (eval $ac_compile) 2>&5 | 
|  | 11317 | ac_status=$? | 
|  | 11318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11319 | (exit $ac_status); }; then | 
|  | 11320 | # Parse the compiler output and extract the necessary | 
|  | 11321 | # objects, libraries and library flags. | 
|  | 11322 |  | 
|  | 11323 | # Sentinel used to keep track of whether or not we are before | 
|  | 11324 | # the conftest object file. | 
|  | 11325 | pre_test_object_deps_done=no | 
|  | 11326 |  | 
|  | 11327 | # The `*' in the case matches for architectures that use `case' in | 
|  | 11328 | # $output_verbose_cmd can trigger glob expansion during the loop | 
|  | 11329 | # eval without this substitution. | 
|  | 11330 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
|  | 11331 |  | 
|  | 11332 | for p in `eval $output_verbose_link_cmd`; do | 
|  | 11333 | case $p in | 
|  | 11334 |  | 
|  | 11335 | -L* | -R* | -l*) | 
|  | 11336 | # Some compilers place space between "-{L,R}" and the path. | 
|  | 11337 | # Remove the space. | 
|  | 11338 | if test $p = "-L" \ | 
|  | 11339 | || test $p = "-R"; then | 
|  | 11340 | prev=$p | 
|  | 11341 | continue | 
|  | 11342 | else | 
|  | 11343 | prev= | 
|  | 11344 | fi | 
|  | 11345 |  | 
|  | 11346 | if test "$pre_test_object_deps_done" = no; then | 
|  | 11347 | case $p in | 
|  | 11348 | -L* | -R*) | 
|  | 11349 | # Internal compiler library paths should come after those | 
|  | 11350 | # provided the user.  The postdeps already come after the | 
|  | 11351 | # user supplied libs so there is no need to process them. | 
|  | 11352 | if test -z "$compiler_lib_search_path_CXX"; then | 
|  | 11353 | compiler_lib_search_path_CXX="${prev}${p}" | 
|  | 11354 | else | 
|  | 11355 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
|  | 11356 | fi | 
|  | 11357 | ;; | 
|  | 11358 | # The "-l" case would never come before the object being | 
|  | 11359 | # linked, so don't bother handling this case. | 
|  | 11360 | esac | 
|  | 11361 | else | 
|  | 11362 | if test -z "$postdeps_CXX"; then | 
|  | 11363 | postdeps_CXX="${prev}${p}" | 
|  | 11364 | else | 
|  | 11365 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
|  | 11366 | fi | 
|  | 11367 | fi | 
|  | 11368 | ;; | 
|  | 11369 |  | 
|  | 11370 | *.$objext) | 
|  | 11371 | # This assumes that the test object file only shows up | 
|  | 11372 | # once in the compiler output. | 
|  | 11373 | if test "$p" = "conftest.$objext"; then | 
|  | 11374 | pre_test_object_deps_done=yes | 
|  | 11375 | continue | 
|  | 11376 | fi | 
|  | 11377 |  | 
|  | 11378 | if test "$pre_test_object_deps_done" = no; then | 
|  | 11379 | if test -z "$predep_objects_CXX"; then | 
|  | 11380 | predep_objects_CXX="$p" | 
|  | 11381 | else | 
|  | 11382 | predep_objects_CXX="$predep_objects_CXX $p" | 
|  | 11383 | fi | 
|  | 11384 | else | 
|  | 11385 | if test -z "$postdep_objects_CXX"; then | 
|  | 11386 | postdep_objects_CXX="$p" | 
|  | 11387 | else | 
|  | 11388 | postdep_objects_CXX="$postdep_objects_CXX $p" | 
|  | 11389 | fi | 
|  | 11390 | fi | 
|  | 11391 | ;; | 
|  | 11392 |  | 
|  | 11393 | *) ;; # Ignore the rest. | 
|  | 11394 |  | 
|  | 11395 | esac | 
|  | 11396 | done | 
|  | 11397 |  | 
|  | 11398 | # Clean up. | 
|  | 11399 | rm -f a.out a.exe | 
|  | 11400 | else | 
|  | 11401 | echo "libtool.m4: error: problem compiling CXX test program" | 
|  | 11402 | fi | 
|  | 11403 |  | 
|  | 11404 | $rm -f confest.$objext | 
|  | 11405 |  | 
|  | 11406 | case " $postdeps_CXX " in | 
|  | 11407 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
|  | 11408 | esac | 
|  | 11409 |  | 
|  | 11410 | lt_prog_compiler_wl_CXX= | 
|  | 11411 | lt_prog_compiler_pic_CXX= | 
|  | 11412 | lt_prog_compiler_static_CXX= | 
|  | 11413 |  | 
|  | 11414 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 11415 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 11416 |  | 
|  | 11417 | # C++ specific cases for pic, static, wl, etc. | 
|  | 11418 | if test "$GXX" = yes; then | 
|  | 11419 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 11420 | lt_prog_compiler_static_CXX='-static' | 
|  | 11421 |  | 
|  | 11422 | case $host_os in | 
|  | 11423 | aix*) | 
|  | 11424 | # All AIX code is PIC. | 
|  | 11425 | if test "$host_cpu" = ia64; then | 
|  | 11426 | # AIX 5 now supports IA64 processor | 
|  | 11427 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 11428 | fi | 
|  | 11429 | ;; | 
|  | 11430 | amigaos*) | 
|  | 11431 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 11432 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 11433 | # like `-m68040'. | 
|  | 11434 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
|  | 11435 | ;; | 
|  | 11436 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 11437 | # PIC is the default for these OSes. | 
|  | 11438 | ;; | 
|  | 11439 | mingw* | os2* | pw32*) | 
|  | 11440 | # This hack is so that the source file can tell whether it is being | 
|  | 11441 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 11442 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
|  | 11443 | ;; | 
|  | 11444 | darwin* | rhapsody*) | 
|  | 11445 | # PIC is the default on this platform | 
|  | 11446 | # Common symbols not allowed in MH_DYLIB files | 
|  | 11447 | lt_prog_compiler_pic_CXX='-fno-common' | 
|  | 11448 | ;; | 
|  | 11449 | *djgpp*) | 
|  | 11450 | # DJGPP does not support shared libraries at all | 
|  | 11451 | lt_prog_compiler_pic_CXX= | 
|  | 11452 | ;; | 
|  | 11453 | sysv4*MP*) | 
|  | 11454 | if test -d /usr/nec; then | 
|  | 11455 | lt_prog_compiler_pic_CXX=-Kconform_pic | 
|  | 11456 | fi | 
|  | 11457 | ;; | 
|  | 11458 | hpux*) | 
|  | 11459 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 11460 | # not for PA HP-UX. | 
|  | 11461 | case "$host_cpu" in | 
|  | 11462 | hppa*64*|ia64*) | 
|  | 11463 | ;; | 
|  | 11464 | *) | 
|  | 11465 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 11466 | ;; | 
|  | 11467 | esac | 
|  | 11468 | ;; | 
|  | 11469 | *) | 
|  | 11470 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 11471 | ;; | 
|  | 11472 | esac | 
|  | 11473 | else | 
|  | 11474 | case $host_os in | 
|  | 11475 | aix4* | aix5*) | 
|  | 11476 | # All AIX code is PIC. | 
|  | 11477 | if test "$host_cpu" = ia64; then | 
|  | 11478 | # AIX 5 now supports IA64 processor | 
|  | 11479 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 11480 | else | 
|  | 11481 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
|  | 11482 | fi | 
|  | 11483 | ;; | 
|  | 11484 | chorus*) | 
|  | 11485 | case $cc_basename in | 
|  | 11486 | cxch68) | 
|  | 11487 | # Green Hills C++ Compiler | 
|  | 11488 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | 
|  | 11489 | ;; | 
|  | 11490 | esac | 
|  | 11491 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11492 | darwin*) | 
|  | 11493 | # PIC is the default on this platform | 
|  | 11494 | # Common symbols not allowed in MH_DYLIB files | 
|  | 11495 | case "$cc_basename" in | 
|  | 11496 | xlc*) | 
|  | 11497 | lt_prog_compiler_pic_CXX='-qnocommon' | 
|  | 11498 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 11499 | ;; | 
|  | 11500 | esac | 
|  | 11501 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11502 | dgux*) | 
|  | 11503 | case $cc_basename in | 
|  | 11504 | ec++) | 
|  | 11505 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 11506 | ;; | 
|  | 11507 | ghcx) | 
|  | 11508 | # Green Hills C++ Compiler | 
|  | 11509 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 11510 | ;; | 
|  | 11511 | *) | 
|  | 11512 | ;; | 
|  | 11513 | esac | 
|  | 11514 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11515 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11516 | # FreeBSD uses GNU C++ | 
|  | 11517 | ;; | 
|  | 11518 | hpux9* | hpux10* | hpux11*) | 
|  | 11519 | case $cc_basename in | 
|  | 11520 | CC) | 
|  | 11521 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 11522 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
|  | 11523 | if test "$host_cpu" != ia64; then | 
|  | 11524 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 11525 | fi | 
|  | 11526 | ;; | 
|  | 11527 | aCC) | 
|  | 11528 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 11529 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
|  | 11530 | case "$host_cpu" in | 
|  | 11531 | hppa*64*|ia64*) | 
|  | 11532 | # +Z the default | 
|  | 11533 | ;; | 
|  | 11534 | *) | 
|  | 11535 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 11536 | ;; | 
|  | 11537 | esac | 
|  | 11538 | ;; | 
|  | 11539 | *) | 
|  | 11540 | ;; | 
|  | 11541 | esac | 
|  | 11542 | ;; | 
|  | 11543 | irix5* | irix6* | nonstopux*) | 
|  | 11544 | case $cc_basename in | 
|  | 11545 | CC) | 
|  | 11546 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 11547 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 11548 | # CC pic flag -KPIC is the default. | 
|  | 11549 | ;; | 
|  | 11550 | *) | 
|  | 11551 | ;; | 
|  | 11552 | esac | 
|  | 11553 | ;; | 
|  | 11554 | linux*) | 
|  | 11555 | case $cc_basename in | 
|  | 11556 | KCC) | 
|  | 11557 | # KAI C++ Compiler | 
|  | 11558 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 11559 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 11560 | ;; | 
|  | 11561 | icpc) | 
|  | 11562 | # Intel C++ | 
|  | 11563 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 11564 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 11565 | lt_prog_compiler_static_CXX='-static' | 
|  | 11566 | ;; | 
|  | 11567 | cxx) | 
|  | 11568 | # Compaq C++ | 
|  | 11569 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 11570 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 11571 | lt_prog_compiler_pic_CXX= | 
|  | 11572 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 11573 | ;; | 
|  | 11574 | *) | 
|  | 11575 | ;; | 
|  | 11576 | esac | 
|  | 11577 | ;; | 
|  | 11578 | lynxos*) | 
|  | 11579 | ;; | 
|  | 11580 | m88k*) | 
|  | 11581 | ;; | 
|  | 11582 | mvs*) | 
|  | 11583 | case $cc_basename in | 
|  | 11584 | cxx) | 
|  | 11585 | lt_prog_compiler_pic_CXX='-W c,exportall' | 
|  | 11586 | ;; | 
|  | 11587 | *) | 
|  | 11588 | ;; | 
|  | 11589 | esac | 
|  | 11590 | ;; | 
|  | 11591 | netbsd*) | 
|  | 11592 | ;; | 
|  | 11593 | osf3* | osf4* | osf5*) | 
|  | 11594 | case $cc_basename in | 
|  | 11595 | KCC) | 
|  | 11596 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 11597 | ;; | 
|  | 11598 | RCC) | 
|  | 11599 | # Rational C++ 2.4.1 | 
|  | 11600 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 11601 | ;; | 
|  | 11602 | cxx) | 
|  | 11603 | # Digital/Compaq C++ | 
|  | 11604 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 11605 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 11606 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 11607 | lt_prog_compiler_pic_CXX= | 
|  | 11608 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 11609 | ;; | 
|  | 11610 | *) | 
|  | 11611 | ;; | 
|  | 11612 | esac | 
|  | 11613 | ;; | 
|  | 11614 | psos*) | 
|  | 11615 | ;; | 
|  | 11616 | sco*) | 
|  | 11617 | case $cc_basename in | 
|  | 11618 | CC) | 
|  | 11619 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 11620 | ;; | 
|  | 11621 | *) | 
|  | 11622 | ;; | 
|  | 11623 | esac | 
|  | 11624 | ;; | 
|  | 11625 | solaris*) | 
|  | 11626 | case $cc_basename in | 
|  | 11627 | CC) | 
|  | 11628 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 11629 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 11630 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 11631 | lt_prog_compiler_wl_CXX='-Qoption ld ' | 
|  | 11632 | ;; | 
|  | 11633 | gcx) | 
|  | 11634 | # Green Hills C++ Compiler | 
|  | 11635 | lt_prog_compiler_pic_CXX='-PIC' | 
|  | 11636 | ;; | 
|  | 11637 | *) | 
|  | 11638 | ;; | 
|  | 11639 | esac | 
|  | 11640 | ;; | 
|  | 11641 | sunos4*) | 
|  | 11642 | case $cc_basename in | 
|  | 11643 | CC) | 
|  | 11644 | # Sun C++ 4.x | 
|  | 11645 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 11646 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 11647 | ;; | 
|  | 11648 | lcc) | 
|  | 11649 | # Lucid | 
|  | 11650 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 11651 | ;; | 
|  | 11652 | *) | 
|  | 11653 | ;; | 
|  | 11654 | esac | 
|  | 11655 | ;; | 
|  | 11656 | tandem*) | 
|  | 11657 | case $cc_basename in | 
|  | 11658 | NCC) | 
|  | 11659 | # NonStop-UX NCC 3.20 | 
|  | 11660 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 11661 | ;; | 
|  | 11662 | *) | 
|  | 11663 | ;; | 
|  | 11664 | esac | 
|  | 11665 | ;; | 
|  | 11666 | unixware*) | 
|  | 11667 | ;; | 
|  | 11668 | vxworks*) | 
|  | 11669 | ;; | 
|  | 11670 | *) | 
|  | 11671 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 11672 | ;; | 
|  | 11673 | esac | 
|  | 11674 | fi | 
|  | 11675 |  | 
|  | 11676 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
|  | 11677 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
|  | 11678 |  | 
|  | 11679 | # | 
|  | 11680 | # Check to make sure the PIC flag actually works. | 
|  | 11681 | # | 
|  | 11682 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11683 |  | 
|  | 11684 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11685 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
|  | 11686 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
|  | 11687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11688 | else | 
|  | 11689 | lt_prog_compiler_pic_works_CXX=no | 
|  | 11690 | ac_outfile=conftest.$ac_objext | 
|  | 11691 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 11692 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 11693 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 11694 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 11695 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 11696 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 11697 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 11698 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 11699 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 11700 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 11701 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11702 | (eval echo "\"\$as_me:11702: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11703 | (eval "$lt_compile" 2>conftest.err) | 
|  | 11704 | ac_status=$? | 
|  | 11705 | cat conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11706 | echo "$as_me:11706: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11707 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 11708 | # The compiler can only warn and ignore the option if not recognized | 
|  | 11709 | # So say no if there are warnings | 
|  | 11710 | if test ! -s conftest.err; then | 
|  | 11711 | lt_prog_compiler_pic_works_CXX=yes | 
|  | 11712 | fi | 
|  | 11713 | fi | 
|  | 11714 | $rm conftest* | 
|  | 11715 |  | 
|  | 11716 | fi | 
|  | 11717 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
|  | 11718 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
|  | 11719 |  | 
|  | 11720 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
|  | 11721 | case $lt_prog_compiler_pic_CXX in | 
|  | 11722 | "" | " "*) ;; | 
|  | 11723 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
|  | 11724 | esac | 
|  | 11725 | else | 
|  | 11726 | lt_prog_compiler_pic_CXX= | 
|  | 11727 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 11728 | fi | 
|  | 11729 |  | 
|  | 11730 | fi | 
|  | 11731 | case "$host_os" in | 
|  | 11732 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 11733 | *djgpp*) | 
|  | 11734 | lt_prog_compiler_pic_CXX= | 
|  | 11735 | ;; | 
|  | 11736 | *) | 
|  | 11737 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 11738 | ;; | 
|  | 11739 | esac | 
|  | 11740 |  | 
|  | 11741 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 11742 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 11743 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
|  | 11744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11745 | else | 
|  | 11746 | lt_cv_prog_compiler_c_o_CXX=no | 
|  | 11747 | $rm -r conftest 2>/dev/null | 
|  | 11748 | mkdir conftest | 
|  | 11749 | cd conftest | 
|  | 11750 | mkdir out | 
|  | 11751 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 11752 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11753 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 11754 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 11755 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 11756 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 11757 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 11758 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 11759 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 11760 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 11761 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11762 | (eval echo "\"\$as_me:11762: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11763 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 11764 | ac_status=$? | 
|  | 11765 | cat out/conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11766 | echo "$as_me:11766: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11767 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 11768 | then | 
|  | 11769 | # The compiler can only warn and ignore the option if not recognized | 
|  | 11770 | # So say no if there are warnings | 
|  | 11771 | if test ! -s out/conftest.err; then | 
|  | 11772 | lt_cv_prog_compiler_c_o_CXX=yes | 
|  | 11773 | fi | 
|  | 11774 | fi | 
|  | 11775 | chmod u+w . | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11776 | $rm conftest* | 
|  | 11777 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 11778 | # template instantiation | 
|  | 11779 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 11780 | $rm out/* && rmdir out | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11781 | cd .. | 
|  | 11782 | rmdir conftest | 
|  | 11783 | $rm conftest* | 
|  | 11784 |  | 
|  | 11785 | fi | 
|  | 11786 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
|  | 11787 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
|  | 11788 |  | 
|  | 11789 |  | 
|  | 11790 | hard_links="nottested" | 
|  | 11791 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
|  | 11792 | # do not overwrite the value of need_locks provided by the user | 
|  | 11793 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 11794 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 11795 | hard_links=yes | 
|  | 11796 | $rm conftest* | 
|  | 11797 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 11798 | touch conftest.a | 
|  | 11799 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 11800 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 11801 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 11802 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 11803 | if test "$hard_links" = no; then | 
|  | 11804 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 11805 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 11806 | need_locks=warn | 
|  | 11807 | fi | 
|  | 11808 | else | 
|  | 11809 | need_locks=no | 
|  | 11810 | fi | 
|  | 11811 |  | 
|  | 11812 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 11813 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 11814 |  | 
|  | 11815 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 11816 | case $host_os in | 
|  | 11817 | aix4* | aix5*) | 
|  | 11818 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 11819 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 11820 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 11821 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 11822 | else | 
|  | 11823 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 11824 | fi | 
|  | 11825 | ;; | 
|  | 11826 | pw32*) | 
|  | 11827 | export_symbols_cmds_CXX="$ltdll_cmds" | 
|  | 11828 | ;; | 
|  | 11829 | cygwin* | mingw*) | 
|  | 11830 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 11831 | ;; | 
|  | 11832 | *) | 
|  | 11833 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 11834 | ;; | 
|  | 11835 | esac | 
|  | 11836 |  | 
|  | 11837 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
|  | 11838 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
|  | 11839 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 11840 |  | 
|  | 11841 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 11842 | if test "$GCC" = yes; then | 
|  | 11843 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 11844 | fi | 
|  | 11845 |  | 
|  | 11846 | # | 
|  | 11847 | # Do we need to explicitly link libc? | 
|  | 11848 | # | 
|  | 11849 | case "x$archive_cmds_need_lc_CXX" in | 
|  | 11850 | x|xyes) | 
|  | 11851 | # Assume -lc should be added | 
|  | 11852 | archive_cmds_need_lc_CXX=yes | 
|  | 11853 |  | 
|  | 11854 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 11855 | case $archive_cmds_CXX in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11856 | *'~'*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11857 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 11858 | ;; | 
|  | 11859 | '$CC '*) | 
|  | 11860 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 11861 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 11862 | # to ld, don't add -lc before -lgcc. | 
|  | 11863 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 11864 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 11865 | $rm conftest* | 
|  | 11866 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 11867 |  | 
|  | 11868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 11869 | (eval $ac_compile) 2>&5 | 
|  | 11870 | ac_status=$? | 
|  | 11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11872 | (exit $ac_status); } 2>conftest.err; then | 
|  | 11873 | soname=conftest | 
|  | 11874 | lib=conftest | 
|  | 11875 | libobjs=conftest.$ac_objext | 
|  | 11876 | deplibs= | 
|  | 11877 | wl=$lt_prog_compiler_wl_CXX | 
|  | 11878 | compiler_flags=-v | 
|  | 11879 | linker_flags=-v | 
|  | 11880 | verstring= | 
|  | 11881 | output_objdir=. | 
|  | 11882 | libname=conftest | 
|  | 11883 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
|  | 11884 | allow_undefined_flag_CXX= | 
|  | 11885 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 11886 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 11887 | ac_status=$? | 
|  | 11888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11889 | (exit $ac_status); } | 
|  | 11890 | then | 
|  | 11891 | archive_cmds_need_lc_CXX=no | 
|  | 11892 | else | 
|  | 11893 | archive_cmds_need_lc_CXX=yes | 
|  | 11894 | fi | 
|  | 11895 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
|  | 11896 | else | 
|  | 11897 | cat conftest.err 1>&5 | 
|  | 11898 | fi | 
|  | 11899 | $rm conftest* | 
|  | 11900 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
|  | 11901 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
|  | 11902 | ;; | 
|  | 11903 | esac | 
|  | 11904 | fi | 
|  | 11905 | ;; | 
|  | 11906 | esac | 
|  | 11907 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11908 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 11909 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 11910 | library_names_spec= | 
|  | 11911 | libname_spec='lib$name' | 
|  | 11912 | soname_spec= | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11913 | shrext_cmds=".so" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11914 | postinstall_cmds= | 
|  | 11915 | postuninstall_cmds= | 
|  | 11916 | finish_cmds= | 
|  | 11917 | finish_eval= | 
|  | 11918 | shlibpath_var= | 
|  | 11919 | shlibpath_overrides_runpath=unknown | 
|  | 11920 | version_type=none | 
|  | 11921 | dynamic_linker="$host_os ld.so" | 
|  | 11922 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 11923 | if test "$GCC" = yes; then | 
|  | 11924 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 11925 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 11926 | # if the path contains ";" then we assume it to be the separator | 
|  | 11927 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 11928 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 11929 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 11930 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 11931 | else | 
|  | 11932 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 11933 | fi | 
|  | 11934 | else | 
|  | 11935 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 11936 | fi | 
|  | 11937 | need_lib_prefix=unknown | 
|  | 11938 | hardcode_into_libs=no | 
|  | 11939 |  | 
|  | 11940 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 11941 | # flags to be left without arguments | 
|  | 11942 | need_version=unknown | 
|  | 11943 |  | 
|  | 11944 | case $host_os in | 
|  | 11945 | aix3*) | 
|  | 11946 | version_type=linux | 
|  | 11947 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 11948 | shlibpath_var=LIBPATH | 
|  | 11949 |  | 
|  | 11950 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 11951 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11952 | ;; | 
|  | 11953 |  | 
|  | 11954 | aix4* | aix5*) | 
|  | 11955 | version_type=linux | 
|  | 11956 | need_lib_prefix=no | 
|  | 11957 | need_version=no | 
|  | 11958 | hardcode_into_libs=yes | 
|  | 11959 | if test "$host_cpu" = ia64; then | 
|  | 11960 | # AIX 5 supports IA64 | 
|  | 11961 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 11962 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 11963 | else | 
|  | 11964 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 11965 | # for dependence libraries.  The import file would start with | 
|  | 11966 | # the line `#! .'.  This would cause the generated library to | 
|  | 11967 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 11968 | # development snapshots of GCC prior to 3.0. | 
|  | 11969 | case $host_os in | 
|  | 11970 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 11971 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 11972 | echo ' yes ' | 
|  | 11973 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 11974 | : | 
|  | 11975 | else | 
|  | 11976 | can_build_shared=no | 
|  | 11977 | fi | 
|  | 11978 | ;; | 
|  | 11979 | esac | 
|  | 11980 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 11981 | # soname into executable. Probably we can add versioning support to | 
|  | 11982 | # collect2, so additional links can be useful in future. | 
|  | 11983 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 11984 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 11985 | # instead of lib<name>.a to let people know that these are not | 
|  | 11986 | # typical AIX shared libraries. | 
|  | 11987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 11988 | else | 
|  | 11989 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 11990 | # and later when we are not doing run time linking. | 
|  | 11991 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 11992 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 11993 | fi | 
|  | 11994 | shlibpath_var=LIBPATH | 
|  | 11995 | fi | 
|  | 11996 | ;; | 
|  | 11997 |  | 
|  | 11998 | amigaos*) | 
|  | 11999 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 12000 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12001 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12002 | ;; | 
|  | 12003 |  | 
|  | 12004 | beos*) | 
|  | 12005 | library_names_spec='${libname}${shared_ext}' | 
|  | 12006 | dynamic_linker="$host_os ld.so" | 
|  | 12007 | shlibpath_var=LIBRARY_PATH | 
|  | 12008 | ;; | 
|  | 12009 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12010 | bsdi[45]*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12011 | version_type=linux | 
|  | 12012 | need_version=no | 
|  | 12013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12014 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12015 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 12016 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12017 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 12018 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 12019 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 12020 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 12021 | # libtool to hard-code these into programs | 
|  | 12022 | ;; | 
|  | 12023 |  | 
|  | 12024 | cygwin* | mingw* | pw32*) | 
|  | 12025 | version_type=windows | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12026 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12027 | need_version=no | 
|  | 12028 | need_lib_prefix=no | 
|  | 12029 |  | 
|  | 12030 | case $GCC,$host_os in | 
|  | 12031 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 12032 | library_names_spec='$libname.dll.a' | 
|  | 12033 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12034 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 12035 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 12036 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 12037 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12038 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12039 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 12040 | dlpath=$dir/\$dldll~ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12041 | $rm \$dlpath' | 
|  | 12042 | shlibpath_overrides_runpath=yes | 
|  | 12043 |  | 
|  | 12044 | case $host_os in | 
|  | 12045 | cygwin*) | 
|  | 12046 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 12047 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12048 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12049 | ;; | 
|  | 12050 | mingw*) | 
|  | 12051 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 12052 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 12053 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 12054 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 12055 | # It is most probably a Windows format PATH printed by | 
|  | 12056 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 12057 | # path with ; separators, and with drive letters. We can handle the | 
|  | 12058 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 12059 | # especially as we might pass files found there to a mingw objdump, | 
|  | 12060 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 12061 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 12062 | else | 
|  | 12063 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 12064 | fi | 
|  | 12065 | ;; | 
|  | 12066 | pw32*) | 
|  | 12067 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 12068 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 12069 | ;; | 
|  | 12070 | esac | 
|  | 12071 | ;; | 
|  | 12072 |  | 
|  | 12073 | *) | 
|  | 12074 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 12075 | ;; | 
|  | 12076 | esac | 
|  | 12077 | dynamic_linker='Win32 ld.exe' | 
|  | 12078 | # FIXME: first we should search . and the directory the executable is in | 
|  | 12079 | shlibpath_var=PATH | 
|  | 12080 | ;; | 
|  | 12081 |  | 
|  | 12082 | darwin* | rhapsody*) | 
|  | 12083 | dynamic_linker="$host_os dyld" | 
|  | 12084 | version_type=darwin | 
|  | 12085 | need_lib_prefix=no | 
|  | 12086 | need_version=no | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12087 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12088 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 12089 | shlibpath_overrides_runpath=yes | 
|  | 12090 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12091 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12092 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12093 | if test "$GCC" = yes; then | 
|  | 12094 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | 
|  | 12095 | else | 
|  | 12096 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12097 | fi | 
|  | 12098 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 12099 | ;; | 
|  | 12100 |  | 
|  | 12101 | dgux*) | 
|  | 12102 | version_type=linux | 
|  | 12103 | need_lib_prefix=no | 
|  | 12104 | need_version=no | 
|  | 12105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 12106 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12107 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12108 | ;; | 
|  | 12109 |  | 
|  | 12110 | freebsd1*) | 
|  | 12111 | dynamic_linker=no | 
|  | 12112 | ;; | 
|  | 12113 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12114 | kfreebsd*-gnu) | 
|  | 12115 | version_type=linux | 
|  | 12116 | need_lib_prefix=no | 
|  | 12117 | need_version=no | 
|  | 12118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 12119 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12120 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12121 | shlibpath_overrides_runpath=no | 
|  | 12122 | hardcode_into_libs=yes | 
|  | 12123 | dynamic_linker='GNU ld.so' | 
|  | 12124 | ;; | 
|  | 12125 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12126 | freebsd*) | 
|  | 12127 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 12128 | version_type=freebsd-$objformat | 
|  | 12129 | case $version_type in | 
|  | 12130 | freebsd-elf*) | 
|  | 12131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 12132 | need_version=no | 
|  | 12133 | need_lib_prefix=no | 
|  | 12134 | ;; | 
|  | 12135 | freebsd-*) | 
|  | 12136 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 12137 | need_version=yes | 
|  | 12138 | ;; | 
|  | 12139 | esac | 
|  | 12140 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12141 | case $host_os in | 
|  | 12142 | freebsd2*) | 
|  | 12143 | shlibpath_overrides_runpath=yes | 
|  | 12144 | ;; | 
|  | 12145 | freebsd3.01* | freebsdelf3.01*) | 
|  | 12146 | shlibpath_overrides_runpath=yes | 
|  | 12147 | hardcode_into_libs=yes | 
|  | 12148 | ;; | 
|  | 12149 | *) # from 3.2 on | 
|  | 12150 | shlibpath_overrides_runpath=no | 
|  | 12151 | hardcode_into_libs=yes | 
|  | 12152 | ;; | 
|  | 12153 | esac | 
|  | 12154 | ;; | 
|  | 12155 |  | 
|  | 12156 | gnu*) | 
|  | 12157 | version_type=linux | 
|  | 12158 | need_lib_prefix=no | 
|  | 12159 | need_version=no | 
|  | 12160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 12161 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12162 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12163 | hardcode_into_libs=yes | 
|  | 12164 | ;; | 
|  | 12165 |  | 
|  | 12166 | hpux9* | hpux10* | hpux11*) | 
|  | 12167 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 12168 | # link against other versions. | 
|  | 12169 | version_type=sunos | 
|  | 12170 | need_lib_prefix=no | 
|  | 12171 | need_version=no | 
|  | 12172 | case "$host_cpu" in | 
|  | 12173 | ia64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12174 | shrext_cmds='.so' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12175 | hardcode_into_libs=yes | 
|  | 12176 | dynamic_linker="$host_os dld.so" | 
|  | 12177 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12178 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 12179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12180 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12181 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 12182 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 12183 | else | 
|  | 12184 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 12185 | fi | 
|  | 12186 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 12187 | ;; | 
|  | 12188 | hppa*64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12189 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12190 | hardcode_into_libs=yes | 
|  | 12191 | dynamic_linker="$host_os dld.sl" | 
|  | 12192 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 12193 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 12194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12195 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12196 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 12197 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 12198 | ;; | 
|  | 12199 | *) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12200 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12201 | dynamic_linker="$host_os dld.sl" | 
|  | 12202 | shlibpath_var=SHLIB_PATH | 
|  | 12203 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 12204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12205 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12206 | ;; | 
|  | 12207 | esac | 
|  | 12208 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 12209 | postinstall_cmds='chmod 555 $lib' | 
|  | 12210 | ;; | 
|  | 12211 |  | 
|  | 12212 | irix5* | irix6* | nonstopux*) | 
|  | 12213 | case $host_os in | 
|  | 12214 | nonstopux*) version_type=nonstopux ;; | 
|  | 12215 | *) | 
|  | 12216 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 12217 | version_type=linux | 
|  | 12218 | else | 
|  | 12219 | version_type=irix | 
|  | 12220 | fi ;; | 
|  | 12221 | esac | 
|  | 12222 | need_lib_prefix=no | 
|  | 12223 | need_version=no | 
|  | 12224 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 12226 | case $host_os in | 
|  | 12227 | irix5* | nonstopux*) | 
|  | 12228 | libsuff= shlibsuff= | 
|  | 12229 | ;; | 
|  | 12230 | *) | 
|  | 12231 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 12232 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 12233 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 12234 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 12235 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 12236 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 12237 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 12238 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 12239 | esac | 
|  | 12240 | ;; | 
|  | 12241 | esac | 
|  | 12242 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 12243 | shlibpath_overrides_runpath=no | 
|  | 12244 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 12245 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 12246 | hardcode_into_libs=yes | 
|  | 12247 | ;; | 
|  | 12248 |  | 
|  | 12249 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 12250 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 12251 | dynamic_linker=no | 
|  | 12252 | ;; | 
|  | 12253 |  | 
|  | 12254 | # This must be Linux ELF. | 
|  | 12255 | linux*) | 
|  | 12256 | version_type=linux | 
|  | 12257 | need_lib_prefix=no | 
|  | 12258 | need_version=no | 
|  | 12259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12260 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12261 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 12262 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12263 | shlibpath_overrides_runpath=no | 
|  | 12264 | # This implies no fast_install, which is unacceptable. | 
|  | 12265 | # Some rework will be needed to allow for fast_install | 
|  | 12266 | # before this can be enabled. | 
|  | 12267 | hardcode_into_libs=yes | 
|  | 12268 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12269 | # Append ld.so.conf contents to the search path | 
|  | 12270 | if test -f /etc/ld.so.conf; then | 
|  | 12271 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 12272 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 12273 | fi | 
|  | 12274 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12275 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 12276 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 12277 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 12278 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 12279 | # people can always --disable-shared, the test was removed, and we | 
|  | 12280 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 12281 | dynamic_linker='GNU/Linux ld.so' | 
|  | 12282 | ;; | 
|  | 12283 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12284 | knetbsd*-gnu) | 
|  | 12285 | version_type=linux | 
|  | 12286 | need_lib_prefix=no | 
|  | 12287 | need_version=no | 
|  | 12288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 12289 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12290 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12291 | shlibpath_overrides_runpath=no | 
|  | 12292 | hardcode_into_libs=yes | 
|  | 12293 | dynamic_linker='GNU ld.so' | 
|  | 12294 | ;; | 
|  | 12295 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12296 | netbsd*) | 
|  | 12297 | version_type=sunos | 
|  | 12298 | need_lib_prefix=no | 
|  | 12299 | need_version=no | 
|  | 12300 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 12301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 12302 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 12303 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 12304 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12306 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12307 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 12308 | fi | 
|  | 12309 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12310 | shlibpath_overrides_runpath=yes | 
|  | 12311 | hardcode_into_libs=yes | 
|  | 12312 | ;; | 
|  | 12313 |  | 
|  | 12314 | newsos6) | 
|  | 12315 | version_type=linux | 
|  | 12316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12317 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12318 | shlibpath_overrides_runpath=yes | 
|  | 12319 | ;; | 
|  | 12320 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12321 | nto-qnx*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12322 | version_type=linux | 
|  | 12323 | need_lib_prefix=no | 
|  | 12324 | need_version=no | 
|  | 12325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12326 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12327 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12328 | shlibpath_overrides_runpath=yes | 
|  | 12329 | ;; | 
|  | 12330 |  | 
|  | 12331 | openbsd*) | 
|  | 12332 | version_type=sunos | 
|  | 12333 | need_lib_prefix=no | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 12334 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 12336 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 12337 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12338 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 12339 | case $host_os in | 
|  | 12340 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 12341 | shlibpath_overrides_runpath=no | 
|  | 12342 | ;; | 
|  | 12343 | *) | 
|  | 12344 | shlibpath_overrides_runpath=yes | 
|  | 12345 | ;; | 
|  | 12346 | esac | 
|  | 12347 | else | 
|  | 12348 | shlibpath_overrides_runpath=yes | 
|  | 12349 | fi | 
|  | 12350 | ;; | 
|  | 12351 |  | 
|  | 12352 | os2*) | 
|  | 12353 | libname_spec='$name' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12354 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12355 | need_lib_prefix=no | 
|  | 12356 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 12357 | dynamic_linker='OS/2 ld.exe' | 
|  | 12358 | shlibpath_var=LIBPATH | 
|  | 12359 | ;; | 
|  | 12360 |  | 
|  | 12361 | osf3* | osf4* | osf5*) | 
|  | 12362 | version_type=osf | 
|  | 12363 | need_lib_prefix=no | 
|  | 12364 | need_version=no | 
|  | 12365 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12367 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12368 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 12369 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 12370 | ;; | 
|  | 12371 |  | 
|  | 12372 | sco3.2v5*) | 
|  | 12373 | version_type=osf | 
|  | 12374 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12376 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12377 | ;; | 
|  | 12378 |  | 
|  | 12379 | solaris*) | 
|  | 12380 | version_type=linux | 
|  | 12381 | need_lib_prefix=no | 
|  | 12382 | need_version=no | 
|  | 12383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12384 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12385 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12386 | shlibpath_overrides_runpath=yes | 
|  | 12387 | hardcode_into_libs=yes | 
|  | 12388 | # ldd complains unless libraries are executable | 
|  | 12389 | postinstall_cmds='chmod +x $lib' | 
|  | 12390 | ;; | 
|  | 12391 |  | 
|  | 12392 | sunos4*) | 
|  | 12393 | version_type=sunos | 
|  | 12394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 12395 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 12396 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12397 | shlibpath_overrides_runpath=yes | 
|  | 12398 | if test "$with_gnu_ld" = yes; then | 
|  | 12399 | need_lib_prefix=no | 
|  | 12400 | fi | 
|  | 12401 | need_version=yes | 
|  | 12402 | ;; | 
|  | 12403 |  | 
|  | 12404 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 12405 | version_type=linux | 
|  | 12406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12407 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12408 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12409 | case $host_vendor in | 
|  | 12410 | sni) | 
|  | 12411 | shlibpath_overrides_runpath=no | 
|  | 12412 | need_lib_prefix=no | 
|  | 12413 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 12414 | runpath_var=LD_RUN_PATH | 
|  | 12415 | ;; | 
|  | 12416 | siemens) | 
|  | 12417 | need_lib_prefix=no | 
|  | 12418 | ;; | 
|  | 12419 | motorola) | 
|  | 12420 | need_lib_prefix=no | 
|  | 12421 | need_version=no | 
|  | 12422 | shlibpath_overrides_runpath=no | 
|  | 12423 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 12424 | ;; | 
|  | 12425 | esac | 
|  | 12426 | ;; | 
|  | 12427 |  | 
|  | 12428 | sysv4*MP*) | 
|  | 12429 | if test -d /usr/nec ;then | 
|  | 12430 | version_type=linux | 
|  | 12431 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 12432 | soname_spec='$libname${shared_ext}.$major' | 
|  | 12433 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12434 | fi | 
|  | 12435 | ;; | 
|  | 12436 |  | 
|  | 12437 | uts4*) | 
|  | 12438 | version_type=linux | 
|  | 12439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 12440 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 12441 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 12442 | ;; | 
|  | 12443 |  | 
|  | 12444 | *) | 
|  | 12445 | dynamic_linker=no | 
|  | 12446 | ;; | 
|  | 12447 | esac | 
|  | 12448 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 12449 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 12450 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 12451 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12452 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 12453 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 12454 | hardcode_action_CXX= | 
|  | 12455 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
|  | 12456 | test -n "$runpath_var_CXX" || \ | 
|  | 12457 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
|  | 12458 |  | 
|  | 12459 | # We can hardcode non-existant directories. | 
|  | 12460 | if test "$hardcode_direct_CXX" != no && | 
|  | 12461 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 12462 | # have to relink, otherwise we might link with an installed library | 
|  | 12463 | # when we should be linking with a yet-to-be-installed one | 
|  | 12464 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
|  | 12465 | test "$hardcode_minus_L_CXX" != no; then | 
|  | 12466 | # Linking always hardcodes the temporary library directory. | 
|  | 12467 | hardcode_action_CXX=relink | 
|  | 12468 | else | 
|  | 12469 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 12470 | hardcode_action_CXX=immediate | 
|  | 12471 | fi | 
|  | 12472 | else | 
|  | 12473 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 12474 | # directories. | 
|  | 12475 | hardcode_action_CXX=unsupported | 
|  | 12476 | fi | 
|  | 12477 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
|  | 12478 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
|  | 12479 |  | 
|  | 12480 | if test "$hardcode_action_CXX" = relink; then | 
|  | 12481 | # Fast installation is not supported | 
|  | 12482 | enable_fast_install=no | 
|  | 12483 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 12484 | test "$enable_shared" = no; then | 
|  | 12485 | # Fast installation is not necessary | 
|  | 12486 | enable_fast_install=needless | 
|  | 12487 | fi | 
|  | 12488 |  | 
|  | 12489 | striplib= | 
|  | 12490 | old_striplib= | 
|  | 12491 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 12492 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 12493 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 12494 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 12495 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 12496 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 12497 | echo "${ECHO_T}yes" >&6 | 
|  | 12498 | else | 
|  | 12499 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 12500 | case $host_os in | 
|  | 12501 | darwin*) | 
|  | 12502 | if test -n "$STRIP" ; then | 
|  | 12503 | striplib="$STRIP -x" | 
|  | 12504 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 12505 | echo "${ECHO_T}yes" >&6 | 
|  | 12506 | else | 
|  | 12507 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 12508 | echo "${ECHO_T}no" >&6 | 
|  | 12509 | fi | 
|  | 12510 | ;; | 
|  | 12511 | *) | 
|  | 12512 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 12513 | echo "${ECHO_T}no" >&6 | 
|  | 12514 | ;; | 
|  | 12515 | esac | 
|  | 12516 | fi | 
|  | 12517 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12518 | if test "x$enable_dlopen" != xyes; then | 
|  | 12519 | enable_dlopen=unknown | 
|  | 12520 | enable_dlopen_self=unknown | 
|  | 12521 | enable_dlopen_self_static=unknown | 
|  | 12522 | else | 
|  | 12523 | lt_cv_dlopen=no | 
|  | 12524 | lt_cv_dlopen_libs= | 
|  | 12525 |  | 
|  | 12526 | case $host_os in | 
|  | 12527 | beos*) | 
|  | 12528 | lt_cv_dlopen="load_add_on" | 
|  | 12529 | lt_cv_dlopen_libs= | 
|  | 12530 | lt_cv_dlopen_self=yes | 
|  | 12531 | ;; | 
|  | 12532 |  | 
|  | 12533 | mingw* | pw32*) | 
|  | 12534 | lt_cv_dlopen="LoadLibrary" | 
|  | 12535 | lt_cv_dlopen_libs= | 
|  | 12536 | ;; | 
|  | 12537 |  | 
|  | 12538 | cygwin*) | 
|  | 12539 | lt_cv_dlopen="dlopen" | 
|  | 12540 | lt_cv_dlopen_libs= | 
|  | 12541 | ;; | 
|  | 12542 |  | 
|  | 12543 | darwin*) | 
|  | 12544 | # if libdl is installed we need to link against it | 
|  | 12545 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 12546 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 12547 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 12548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12549 | else | 
|  | 12550 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12551 | LIBS="-ldl  $LIBS" | 
|  | 12552 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12553 | /* confdefs.h.  */ | 
|  | 12554 | _ACEOF | 
|  | 12555 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12556 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12557 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12558 |  | 
|  | 12559 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 12560 | #ifdef __cplusplus | 
|  | 12561 | extern "C" | 
|  | 12562 | #endif | 
|  | 12563 | /* We use char because int might match the return type of a gcc2 | 
|  | 12564 | builtin and then its argument prototype would still apply.  */ | 
|  | 12565 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12566 | int | 
|  | 12567 | main () | 
|  | 12568 | { | 
|  | 12569 | dlopen (); | 
|  | 12570 | ; | 
|  | 12571 | return 0; | 
|  | 12572 | } | 
|  | 12573 | _ACEOF | 
|  | 12574 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12576 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12577 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12578 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12579 | rm -f conftest.er1 | 
|  | 12580 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12582 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12583 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 12584 | || test ! -s conftest.err' | 
|  | 12585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12586 | (eval $ac_try) 2>&5 | 
|  | 12587 | ac_status=$? | 
|  | 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12589 | (exit $ac_status); }; } && | 
|  | 12590 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12592 | (eval $ac_try) 2>&5 | 
|  | 12593 | ac_status=$? | 
|  | 12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12595 | (exit $ac_status); }; }; then | 
|  | 12596 | ac_cv_lib_dl_dlopen=yes | 
|  | 12597 | else | 
|  | 12598 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12599 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12600 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12601 | ac_cv_lib_dl_dlopen=no | 
|  | 12602 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12603 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 12604 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12605 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12606 | fi | 
|  | 12607 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 12608 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 12609 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 12610 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 12611 | else | 
|  | 12612 |  | 
|  | 12613 | lt_cv_dlopen="dyld" | 
|  | 12614 | lt_cv_dlopen_libs= | 
|  | 12615 | lt_cv_dlopen_self=yes | 
|  | 12616 |  | 
|  | 12617 | fi | 
|  | 12618 |  | 
|  | 12619 | ;; | 
|  | 12620 |  | 
|  | 12621 | *) | 
|  | 12622 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 12623 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 12624 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 12625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12626 | else | 
|  | 12627 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12628 | /* confdefs.h.  */ | 
|  | 12629 | _ACEOF | 
|  | 12630 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12631 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12632 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12633 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 12634 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 12635 | #define shl_load innocuous_shl_load | 
|  | 12636 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12637 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12638 | which can conflict with char shl_load (); below. | 
|  | 12639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 12640 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12641 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12642 | #ifdef __STDC__ | 
|  | 12643 | # include <limits.h> | 
|  | 12644 | #else | 
|  | 12645 | # include <assert.h> | 
|  | 12646 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12647 |  | 
|  | 12648 | #undef shl_load | 
|  | 12649 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12650 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 12651 | #ifdef __cplusplus | 
|  | 12652 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12653 | { | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12654 | #endif | 
|  | 12655 | /* We use char because int might match the return type of a gcc2 | 
|  | 12656 | builtin and then its argument prototype would still apply.  */ | 
|  | 12657 | char shl_load (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12658 | /* The GNU C library defines this for functions which it implements | 
|  | 12659 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 12660 | something starting with __ and the normal name is an alias.  */ | 
|  | 12661 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 12662 | choke me | 
|  | 12663 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12664 | char (*f) () = shl_load; | 
|  | 12665 | #endif | 
|  | 12666 | #ifdef __cplusplus | 
|  | 12667 | } | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12668 | #endif | 
|  | 12669 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12670 | int | 
|  | 12671 | main () | 
|  | 12672 | { | 
|  | 12673 | return f != shl_load; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12674 | ; | 
|  | 12675 | return 0; | 
|  | 12676 | } | 
|  | 12677 | _ACEOF | 
|  | 12678 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12680 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12681 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12682 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12683 | rm -f conftest.er1 | 
|  | 12684 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12686 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12687 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 12688 | || test ! -s conftest.err' | 
|  | 12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12690 | (eval $ac_try) 2>&5 | 
|  | 12691 | ac_status=$? | 
|  | 12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12693 | (exit $ac_status); }; } && | 
|  | 12694 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12696 | (eval $ac_try) 2>&5 | 
|  | 12697 | ac_status=$? | 
|  | 12698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12699 | (exit $ac_status); }; }; then | 
|  | 12700 | ac_cv_func_shl_load=yes | 
|  | 12701 | else | 
|  | 12702 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12703 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12704 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12705 | ac_cv_func_shl_load=no | 
|  | 12706 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12707 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 12708 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12709 | fi | 
|  | 12710 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 12711 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 12712 | if test $ac_cv_func_shl_load = yes; then | 
|  | 12713 | lt_cv_dlopen="shl_load" | 
|  | 12714 | else | 
|  | 12715 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 12716 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 12717 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 12718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12719 | else | 
|  | 12720 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12721 | LIBS="-ldld  $LIBS" | 
|  | 12722 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12723 | /* confdefs.h.  */ | 
|  | 12724 | _ACEOF | 
|  | 12725 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12726 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12727 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12728 |  | 
|  | 12729 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 12730 | #ifdef __cplusplus | 
|  | 12731 | extern "C" | 
|  | 12732 | #endif | 
|  | 12733 | /* We use char because int might match the return type of a gcc2 | 
|  | 12734 | builtin and then its argument prototype would still apply.  */ | 
|  | 12735 | char shl_load (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12736 | int | 
|  | 12737 | main () | 
|  | 12738 | { | 
|  | 12739 | shl_load (); | 
|  | 12740 | ; | 
|  | 12741 | return 0; | 
|  | 12742 | } | 
|  | 12743 | _ACEOF | 
|  | 12744 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12746 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12747 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12748 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12749 | rm -f conftest.er1 | 
|  | 12750 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12752 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12753 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 12754 | || test ! -s conftest.err' | 
|  | 12755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12756 | (eval $ac_try) 2>&5 | 
|  | 12757 | ac_status=$? | 
|  | 12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12759 | (exit $ac_status); }; } && | 
|  | 12760 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12762 | (eval $ac_try) 2>&5 | 
|  | 12763 | ac_status=$? | 
|  | 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12765 | (exit $ac_status); }; }; then | 
|  | 12766 | ac_cv_lib_dld_shl_load=yes | 
|  | 12767 | else | 
|  | 12768 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12769 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12770 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12771 | ac_cv_lib_dld_shl_load=no | 
|  | 12772 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12773 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 12774 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12775 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12776 | fi | 
|  | 12777 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 12778 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 12779 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 12780 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 12781 | else | 
|  | 12782 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 12783 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 12784 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12786 | else | 
|  | 12787 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12788 | /* confdefs.h.  */ | 
|  | 12789 | _ACEOF | 
|  | 12790 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12791 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12792 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12793 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
|  | 12794 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 12795 | #define dlopen innocuous_dlopen | 
|  | 12796 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12797 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12798 | which can conflict with char dlopen (); below. | 
|  | 12799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 12800 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12801 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12802 | #ifdef __STDC__ | 
|  | 12803 | # include <limits.h> | 
|  | 12804 | #else | 
|  | 12805 | # include <assert.h> | 
|  | 12806 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12807 |  | 
|  | 12808 | #undef dlopen | 
|  | 12809 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12810 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 12811 | #ifdef __cplusplus | 
|  | 12812 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12813 | { | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12814 | #endif | 
|  | 12815 | /* We use char because int might match the return type of a gcc2 | 
|  | 12816 | builtin and then its argument prototype would still apply.  */ | 
|  | 12817 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12818 | /* The GNU C library defines this for functions which it implements | 
|  | 12819 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 12820 | something starting with __ and the normal name is an alias.  */ | 
|  | 12821 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 12822 | choke me | 
|  | 12823 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12824 | char (*f) () = dlopen; | 
|  | 12825 | #endif | 
|  | 12826 | #ifdef __cplusplus | 
|  | 12827 | } | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12828 | #endif | 
|  | 12829 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12830 | int | 
|  | 12831 | main () | 
|  | 12832 | { | 
|  | 12833 | return f != dlopen; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12834 | ; | 
|  | 12835 | return 0; | 
|  | 12836 | } | 
|  | 12837 | _ACEOF | 
|  | 12838 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12840 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12841 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12842 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12843 | rm -f conftest.er1 | 
|  | 12844 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12846 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12847 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 12848 | || test ! -s conftest.err' | 
|  | 12849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12850 | (eval $ac_try) 2>&5 | 
|  | 12851 | ac_status=$? | 
|  | 12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12853 | (exit $ac_status); }; } && | 
|  | 12854 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12856 | (eval $ac_try) 2>&5 | 
|  | 12857 | ac_status=$? | 
|  | 12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12859 | (exit $ac_status); }; }; then | 
|  | 12860 | ac_cv_func_dlopen=yes | 
|  | 12861 | else | 
|  | 12862 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12863 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12864 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12865 | ac_cv_func_dlopen=no | 
|  | 12866 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12867 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 12868 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12869 | fi | 
|  | 12870 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 12871 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 12872 | if test $ac_cv_func_dlopen = yes; then | 
|  | 12873 | lt_cv_dlopen="dlopen" | 
|  | 12874 | else | 
|  | 12875 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 12876 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 12877 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 12878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12879 | else | 
|  | 12880 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12881 | LIBS="-ldl  $LIBS" | 
|  | 12882 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12883 | /* confdefs.h.  */ | 
|  | 12884 | _ACEOF | 
|  | 12885 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12886 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12887 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12888 |  | 
|  | 12889 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 12890 | #ifdef __cplusplus | 
|  | 12891 | extern "C" | 
|  | 12892 | #endif | 
|  | 12893 | /* We use char because int might match the return type of a gcc2 | 
|  | 12894 | builtin and then its argument prototype would still apply.  */ | 
|  | 12895 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12896 | int | 
|  | 12897 | main () | 
|  | 12898 | { | 
|  | 12899 | dlopen (); | 
|  | 12900 | ; | 
|  | 12901 | return 0; | 
|  | 12902 | } | 
|  | 12903 | _ACEOF | 
|  | 12904 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12906 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12907 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12908 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12909 | rm -f conftest.er1 | 
|  | 12910 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12912 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12913 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 12914 | || test ! -s conftest.err' | 
|  | 12915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12916 | (eval $ac_try) 2>&5 | 
|  | 12917 | ac_status=$? | 
|  | 12918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12919 | (exit $ac_status); }; } && | 
|  | 12920 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12922 | (eval $ac_try) 2>&5 | 
|  | 12923 | ac_status=$? | 
|  | 12924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12925 | (exit $ac_status); }; }; then | 
|  | 12926 | ac_cv_lib_dl_dlopen=yes | 
|  | 12927 | else | 
|  | 12928 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12929 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12930 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12931 | ac_cv_lib_dl_dlopen=no | 
|  | 12932 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12933 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 12934 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12935 | LIBS=$ac_check_lib_save_LIBS | 
|  | 12936 | fi | 
|  | 12937 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 12938 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 12939 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 12940 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 12941 | else | 
|  | 12942 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 12943 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 12944 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 12945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12946 | else | 
|  | 12947 | ac_check_lib_save_LIBS=$LIBS | 
|  | 12948 | LIBS="-lsvld  $LIBS" | 
|  | 12949 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12950 | /* confdefs.h.  */ | 
|  | 12951 | _ACEOF | 
|  | 12952 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12953 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12954 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12955 |  | 
|  | 12956 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 12957 | #ifdef __cplusplus | 
|  | 12958 | extern "C" | 
|  | 12959 | #endif | 
|  | 12960 | /* We use char because int might match the return type of a gcc2 | 
|  | 12961 | builtin and then its argument prototype would still apply.  */ | 
|  | 12962 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12963 | int | 
|  | 12964 | main () | 
|  | 12965 | { | 
|  | 12966 | dlopen (); | 
|  | 12967 | ; | 
|  | 12968 | return 0; | 
|  | 12969 | } | 
|  | 12970 | _ACEOF | 
|  | 12971 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12973 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12974 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12975 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12976 | rm -f conftest.er1 | 
|  | 12977 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12979 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12980 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 12981 | || test ! -s conftest.err' | 
|  | 12982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12983 | (eval $ac_try) 2>&5 | 
|  | 12984 | ac_status=$? | 
|  | 12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12986 | (exit $ac_status); }; } && | 
|  | 12987 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12989 | (eval $ac_try) 2>&5 | 
|  | 12990 | ac_status=$? | 
|  | 12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12992 | (exit $ac_status); }; }; then | 
|  | 12993 | ac_cv_lib_svld_dlopen=yes | 
|  | 12994 | else | 
|  | 12995 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12996 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12997 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12998 | ac_cv_lib_svld_dlopen=no | 
|  | 12999 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13000 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 13001 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13002 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13003 | fi | 
|  | 13004 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 13005 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 13006 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 13007 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 13008 | else | 
|  | 13009 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 13010 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 13011 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 13012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13013 | else | 
|  | 13014 | ac_check_lib_save_LIBS=$LIBS | 
|  | 13015 | LIBS="-ldld  $LIBS" | 
|  | 13016 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13017 | /* confdefs.h.  */ | 
|  | 13018 | _ACEOF | 
|  | 13019 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13020 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13021 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13022 |  | 
|  | 13023 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 13024 | #ifdef __cplusplus | 
|  | 13025 | extern "C" | 
|  | 13026 | #endif | 
|  | 13027 | /* We use char because int might match the return type of a gcc2 | 
|  | 13028 | builtin and then its argument prototype would still apply.  */ | 
|  | 13029 | char dld_link (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13030 | int | 
|  | 13031 | main () | 
|  | 13032 | { | 
|  | 13033 | dld_link (); | 
|  | 13034 | ; | 
|  | 13035 | return 0; | 
|  | 13036 | } | 
|  | 13037 | _ACEOF | 
|  | 13038 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13040 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13041 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13042 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13043 | rm -f conftest.er1 | 
|  | 13044 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13046 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13047 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 13048 | || test ! -s conftest.err' | 
|  | 13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13050 | (eval $ac_try) 2>&5 | 
|  | 13051 | ac_status=$? | 
|  | 13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13053 | (exit $ac_status); }; } && | 
|  | 13054 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13056 | (eval $ac_try) 2>&5 | 
|  | 13057 | ac_status=$? | 
|  | 13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13059 | (exit $ac_status); }; }; then | 
|  | 13060 | ac_cv_lib_dld_dld_link=yes | 
|  | 13061 | else | 
|  | 13062 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13063 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13064 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13065 | ac_cv_lib_dld_dld_link=no | 
|  | 13066 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13067 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 13068 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13069 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13070 | fi | 
|  | 13071 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 13072 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 13073 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 13074 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 13075 | fi | 
|  | 13076 |  | 
|  | 13077 |  | 
|  | 13078 | fi | 
|  | 13079 |  | 
|  | 13080 |  | 
|  | 13081 | fi | 
|  | 13082 |  | 
|  | 13083 |  | 
|  | 13084 | fi | 
|  | 13085 |  | 
|  | 13086 |  | 
|  | 13087 | fi | 
|  | 13088 |  | 
|  | 13089 |  | 
|  | 13090 | fi | 
|  | 13091 |  | 
|  | 13092 | ;; | 
|  | 13093 | esac | 
|  | 13094 |  | 
|  | 13095 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 13096 | enable_dlopen=yes | 
|  | 13097 | else | 
|  | 13098 | enable_dlopen=no | 
|  | 13099 | fi | 
|  | 13100 |  | 
|  | 13101 | case $lt_cv_dlopen in | 
|  | 13102 | dlopen) | 
|  | 13103 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 13104 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 13105 |  | 
|  | 13106 | save_LDFLAGS="$LDFLAGS" | 
|  | 13107 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 13108 |  | 
|  | 13109 | save_LIBS="$LIBS" | 
|  | 13110 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 13111 |  | 
|  | 13112 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 13113 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 13114 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 13115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13116 | else | 
|  | 13117 | if test "$cross_compiling" = yes; then : | 
|  | 13118 | lt_cv_dlopen_self=cross | 
|  | 13119 | else | 
|  | 13120 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 13121 | lt_status=$lt_dlunknown | 
|  | 13122 | cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13123 | #line 13123 "configure" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13124 | #include "confdefs.h" | 
|  | 13125 |  | 
|  | 13126 | #if HAVE_DLFCN_H | 
|  | 13127 | #include <dlfcn.h> | 
|  | 13128 | #endif | 
|  | 13129 |  | 
|  | 13130 | #include <stdio.h> | 
|  | 13131 |  | 
|  | 13132 | #ifdef RTLD_GLOBAL | 
|  | 13133 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 13134 | #else | 
|  | 13135 | #  ifdef DL_GLOBAL | 
|  | 13136 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 13137 | #  else | 
|  | 13138 | #    define LT_DLGLOBAL		0 | 
|  | 13139 | #  endif | 
|  | 13140 | #endif | 
|  | 13141 |  | 
|  | 13142 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 13143 | find out it does not work in some platform. */ | 
|  | 13144 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 13145 | #  ifdef RTLD_LAZY | 
|  | 13146 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 13147 | #  else | 
|  | 13148 | #    ifdef DL_LAZY | 
|  | 13149 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 13150 | #    else | 
|  | 13151 | #      ifdef RTLD_NOW | 
|  | 13152 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 13153 | #      else | 
|  | 13154 | #        ifdef DL_NOW | 
|  | 13155 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 13156 | #        else | 
|  | 13157 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 13158 | #        endif | 
|  | 13159 | #      endif | 
|  | 13160 | #    endif | 
|  | 13161 | #  endif | 
|  | 13162 | #endif | 
|  | 13163 |  | 
|  | 13164 | #ifdef __cplusplus | 
|  | 13165 | extern "C" void exit (int); | 
|  | 13166 | #endif | 
|  | 13167 |  | 
|  | 13168 | void fnord() { int i=42;} | 
|  | 13169 | int main () | 
|  | 13170 | { | 
|  | 13171 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 13172 | int status = $lt_dlunknown; | 
|  | 13173 |  | 
|  | 13174 | if (self) | 
|  | 13175 | { | 
|  | 13176 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 13177 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 13178 | /* dlclose (self); */ | 
|  | 13179 | } | 
|  | 13180 |  | 
|  | 13181 | exit (status); | 
|  | 13182 | } | 
|  | 13183 | EOF | 
|  | 13184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 13185 | (eval $ac_link) 2>&5 | 
|  | 13186 | ac_status=$? | 
|  | 13187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13188 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 13189 | (./conftest; exit; ) 2>/dev/null | 
|  | 13190 | lt_status=$? | 
|  | 13191 | case x$lt_status in | 
|  | 13192 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 13193 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 13194 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 13195 | esac | 
|  | 13196 | else : | 
|  | 13197 | # compilation failed | 
|  | 13198 | lt_cv_dlopen_self=no | 
|  | 13199 | fi | 
|  | 13200 | fi | 
|  | 13201 | rm -fr conftest* | 
|  | 13202 |  | 
|  | 13203 |  | 
|  | 13204 | fi | 
|  | 13205 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 13206 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 13207 |  | 
|  | 13208 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 13209 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 13210 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 13211 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 13212 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 13213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13214 | else | 
|  | 13215 | if test "$cross_compiling" = yes; then : | 
|  | 13216 | lt_cv_dlopen_self_static=cross | 
|  | 13217 | else | 
|  | 13218 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 13219 | lt_status=$lt_dlunknown | 
|  | 13220 | cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13221 | #line 13221 "configure" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13222 | #include "confdefs.h" | 
|  | 13223 |  | 
|  | 13224 | #if HAVE_DLFCN_H | 
|  | 13225 | #include <dlfcn.h> | 
|  | 13226 | #endif | 
|  | 13227 |  | 
|  | 13228 | #include <stdio.h> | 
|  | 13229 |  | 
|  | 13230 | #ifdef RTLD_GLOBAL | 
|  | 13231 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 13232 | #else | 
|  | 13233 | #  ifdef DL_GLOBAL | 
|  | 13234 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 13235 | #  else | 
|  | 13236 | #    define LT_DLGLOBAL		0 | 
|  | 13237 | #  endif | 
|  | 13238 | #endif | 
|  | 13239 |  | 
|  | 13240 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 13241 | find out it does not work in some platform. */ | 
|  | 13242 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 13243 | #  ifdef RTLD_LAZY | 
|  | 13244 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 13245 | #  else | 
|  | 13246 | #    ifdef DL_LAZY | 
|  | 13247 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 13248 | #    else | 
|  | 13249 | #      ifdef RTLD_NOW | 
|  | 13250 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 13251 | #      else | 
|  | 13252 | #        ifdef DL_NOW | 
|  | 13253 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 13254 | #        else | 
|  | 13255 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 13256 | #        endif | 
|  | 13257 | #      endif | 
|  | 13258 | #    endif | 
|  | 13259 | #  endif | 
|  | 13260 | #endif | 
|  | 13261 |  | 
|  | 13262 | #ifdef __cplusplus | 
|  | 13263 | extern "C" void exit (int); | 
|  | 13264 | #endif | 
|  | 13265 |  | 
|  | 13266 | void fnord() { int i=42;} | 
|  | 13267 | int main () | 
|  | 13268 | { | 
|  | 13269 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 13270 | int status = $lt_dlunknown; | 
|  | 13271 |  | 
|  | 13272 | if (self) | 
|  | 13273 | { | 
|  | 13274 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 13275 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 13276 | /* dlclose (self); */ | 
|  | 13277 | } | 
|  | 13278 |  | 
|  | 13279 | exit (status); | 
|  | 13280 | } | 
|  | 13281 | EOF | 
|  | 13282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 13283 | (eval $ac_link) 2>&5 | 
|  | 13284 | ac_status=$? | 
|  | 13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13286 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 13287 | (./conftest; exit; ) 2>/dev/null | 
|  | 13288 | lt_status=$? | 
|  | 13289 | case x$lt_status in | 
|  | 13290 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 13291 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 13292 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 13293 | esac | 
|  | 13294 | else : | 
|  | 13295 | # compilation failed | 
|  | 13296 | lt_cv_dlopen_self_static=no | 
|  | 13297 | fi | 
|  | 13298 | fi | 
|  | 13299 | rm -fr conftest* | 
|  | 13300 |  | 
|  | 13301 |  | 
|  | 13302 | fi | 
|  | 13303 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 13304 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 13305 | fi | 
|  | 13306 |  | 
|  | 13307 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 13308 | LDFLAGS="$save_LDFLAGS" | 
|  | 13309 | LIBS="$save_LIBS" | 
|  | 13310 | ;; | 
|  | 13311 | esac | 
|  | 13312 |  | 
|  | 13313 | case $lt_cv_dlopen_self in | 
|  | 13314 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 13315 | *) enable_dlopen_self=unknown ;; | 
|  | 13316 | esac | 
|  | 13317 |  | 
|  | 13318 | case $lt_cv_dlopen_self_static in | 
|  | 13319 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 13320 | *) enable_dlopen_self_static=unknown ;; | 
|  | 13321 | esac | 
|  | 13322 | fi | 
|  | 13323 |  | 
|  | 13324 |  | 
|  | 13325 | # The else clause should only fire when bootstrapping the | 
|  | 13326 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 13327 | # with your package, and you will get complaints that there are | 
|  | 13328 | # no rules to generate ltmain.sh. | 
|  | 13329 | if test -f "$ltmain"; then | 
|  | 13330 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 13331 | # without removal of \ escapes. | 
|  | 13332 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 13333 | setopt NO_GLOB_SUBST | 
|  | 13334 | fi | 
|  | 13335 | # Now quote all the things that may contain metacharacters while being | 
|  | 13336 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 13337 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13338 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 13339 | SED SHELL STRIP \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13340 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 13341 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 13342 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 13343 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 13344 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 13345 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 13346 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 13347 | compiler_CXX \ | 
|  | 13348 | CC_CXX \ | 
|  | 13349 | LD_CXX \ | 
|  | 13350 | lt_prog_compiler_wl_CXX \ | 
|  | 13351 | lt_prog_compiler_pic_CXX \ | 
|  | 13352 | lt_prog_compiler_static_CXX \ | 
|  | 13353 | lt_prog_compiler_no_builtin_flag_CXX \ | 
|  | 13354 | export_dynamic_flag_spec_CXX \ | 
|  | 13355 | thread_safe_flag_spec_CXX \ | 
|  | 13356 | whole_archive_flag_spec_CXX \ | 
|  | 13357 | enable_shared_with_static_runtimes_CXX \ | 
|  | 13358 | old_archive_cmds_CXX \ | 
|  | 13359 | old_archive_from_new_cmds_CXX \ | 
|  | 13360 | predep_objects_CXX \ | 
|  | 13361 | postdep_objects_CXX \ | 
|  | 13362 | predeps_CXX \ | 
|  | 13363 | postdeps_CXX \ | 
|  | 13364 | compiler_lib_search_path_CXX \ | 
|  | 13365 | archive_cmds_CXX \ | 
|  | 13366 | archive_expsym_cmds_CXX \ | 
|  | 13367 | postinstall_cmds_CXX \ | 
|  | 13368 | postuninstall_cmds_CXX \ | 
|  | 13369 | old_archive_from_expsyms_cmds_CXX \ | 
|  | 13370 | allow_undefined_flag_CXX \ | 
|  | 13371 | no_undefined_flag_CXX \ | 
|  | 13372 | export_symbols_cmds_CXX \ | 
|  | 13373 | hardcode_libdir_flag_spec_CXX \ | 
|  | 13374 | hardcode_libdir_flag_spec_ld_CXX \ | 
|  | 13375 | hardcode_libdir_separator_CXX \ | 
|  | 13376 | hardcode_automatic_CXX \ | 
|  | 13377 | module_cmds_CXX \ | 
|  | 13378 | module_expsym_cmds_CXX \ | 
|  | 13379 | lt_cv_prog_compiler_c_o_CXX \ | 
|  | 13380 | exclude_expsyms_CXX \ | 
|  | 13381 | include_expsyms_CXX; do | 
|  | 13382 |  | 
|  | 13383 | case $var in | 
|  | 13384 | old_archive_cmds_CXX | \ | 
|  | 13385 | old_archive_from_new_cmds_CXX | \ | 
|  | 13386 | archive_cmds_CXX | \ | 
|  | 13387 | archive_expsym_cmds_CXX | \ | 
|  | 13388 | module_cmds_CXX | \ | 
|  | 13389 | module_expsym_cmds_CXX | \ | 
|  | 13390 | old_archive_from_expsyms_cmds_CXX | \ | 
|  | 13391 | export_symbols_cmds_CXX | \ | 
|  | 13392 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 13393 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 13394 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 13395 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 13396 | # Double-quote double-evaled strings. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13397 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13398 | ;; | 
|  | 13399 | *) | 
|  | 13400 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 13401 | ;; | 
|  | 13402 | esac | 
|  | 13403 | done | 
|  | 13404 |  | 
|  | 13405 | case $lt_echo in | 
|  | 13406 | *'\$0 --fallback-echo"') | 
|  | 13407 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 13408 | ;; | 
|  | 13409 | esac | 
|  | 13410 |  | 
|  | 13411 | cfgfile="$ofile" | 
|  | 13412 |  | 
|  | 13413 | cat <<__EOF__ >> "$cfgfile" | 
|  | 13414 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 13415 |  | 
|  | 13416 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 13417 |  | 
|  | 13418 | # Shell to use when invoking shell scripts. | 
|  | 13419 | SHELL=$lt_SHELL | 
|  | 13420 |  | 
|  | 13421 | # Whether or not to build shared libraries. | 
|  | 13422 | build_libtool_libs=$enable_shared | 
|  | 13423 |  | 
|  | 13424 | # Whether or not to build static libraries. | 
|  | 13425 | build_old_libs=$enable_static | 
|  | 13426 |  | 
|  | 13427 | # Whether or not to add -lc for building shared libraries. | 
|  | 13428 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
|  | 13429 |  | 
|  | 13430 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 13431 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
|  | 13432 |  | 
|  | 13433 | # Whether or not to optimize for fast installation. | 
|  | 13434 | fast_install=$enable_fast_install | 
|  | 13435 |  | 
|  | 13436 | # The host system. | 
|  | 13437 | host_alias=$host_alias | 
|  | 13438 | host=$host | 
|  | 13439 |  | 
|  | 13440 | # An echo program that does not interpret backslashes. | 
|  | 13441 | echo=$lt_echo | 
|  | 13442 |  | 
|  | 13443 | # The archiver. | 
|  | 13444 | AR=$lt_AR | 
|  | 13445 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 13446 |  | 
|  | 13447 | # A C compiler. | 
|  | 13448 | LTCC=$lt_LTCC | 
|  | 13449 |  | 
|  | 13450 | # A language-specific compiler. | 
|  | 13451 | CC=$lt_compiler_CXX | 
|  | 13452 |  | 
|  | 13453 | # Is the compiler the GNU C compiler? | 
|  | 13454 | with_gcc=$GCC_CXX | 
|  | 13455 |  | 
|  | 13456 | # An ERE matcher. | 
|  | 13457 | EGREP=$lt_EGREP | 
|  | 13458 |  | 
|  | 13459 | # The linker used to build libraries. | 
|  | 13460 | LD=$lt_LD_CXX | 
|  | 13461 |  | 
|  | 13462 | # Whether we need hard or soft links. | 
|  | 13463 | LN_S=$lt_LN_S | 
|  | 13464 |  | 
|  | 13465 | # A BSD-compatible nm program. | 
|  | 13466 | NM=$lt_NM | 
|  | 13467 |  | 
|  | 13468 | # A symbol stripping program | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13469 | STRIP=$lt_STRIP | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13470 |  | 
|  | 13471 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 13472 | MAGIC_CMD=$MAGIC_CMD | 
|  | 13473 |  | 
|  | 13474 | # Used on cygwin: DLL creation program. | 
|  | 13475 | DLLTOOL="$DLLTOOL" | 
|  | 13476 |  | 
|  | 13477 | # Used on cygwin: object dumper. | 
|  | 13478 | OBJDUMP="$OBJDUMP" | 
|  | 13479 |  | 
|  | 13480 | # Used on cygwin: assembler. | 
|  | 13481 | AS="$AS" | 
|  | 13482 |  | 
|  | 13483 | # The name of the directory that contains temporary libtool files. | 
|  | 13484 | objdir=$objdir | 
|  | 13485 |  | 
|  | 13486 | # How to create reloadable object files. | 
|  | 13487 | reload_flag=$lt_reload_flag | 
|  | 13488 | reload_cmds=$lt_reload_cmds | 
|  | 13489 |  | 
|  | 13490 | # How to pass a linker flag through the compiler. | 
|  | 13491 | wl=$lt_lt_prog_compiler_wl_CXX | 
|  | 13492 |  | 
|  | 13493 | # Object file suffix (normally "o"). | 
|  | 13494 | objext="$ac_objext" | 
|  | 13495 |  | 
|  | 13496 | # Old archive suffix (normally "a"). | 
|  | 13497 | libext="$libext" | 
|  | 13498 |  | 
|  | 13499 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13500 | shrext_cmds='$shrext_cmds' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13501 |  | 
|  | 13502 | # Executable file suffix (normally ""). | 
|  | 13503 | exeext="$exeext" | 
|  | 13504 |  | 
|  | 13505 | # Additional compiler flags for building library objects. | 
|  | 13506 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
|  | 13507 | pic_mode=$pic_mode | 
|  | 13508 |  | 
|  | 13509 | # What is the maximum length of a command? | 
|  | 13510 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 13511 |  | 
|  | 13512 | # Does compiler simultaneously support -c and -o options? | 
|  | 13513 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
|  | 13514 |  | 
|  | 13515 | # Must we lock files when doing compilation ? | 
|  | 13516 | need_locks=$lt_need_locks | 
|  | 13517 |  | 
|  | 13518 | # Do we need the lib prefix for modules? | 
|  | 13519 | need_lib_prefix=$need_lib_prefix | 
|  | 13520 |  | 
|  | 13521 | # Do we need a version for libraries? | 
|  | 13522 | need_version=$need_version | 
|  | 13523 |  | 
|  | 13524 | # Whether dlopen is supported. | 
|  | 13525 | dlopen_support=$enable_dlopen | 
|  | 13526 |  | 
|  | 13527 | # Whether dlopen of programs is supported. | 
|  | 13528 | dlopen_self=$enable_dlopen_self | 
|  | 13529 |  | 
|  | 13530 | # Whether dlopen of statically linked programs is supported. | 
|  | 13531 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 13532 |  | 
|  | 13533 | # Compiler flag to prevent dynamic linking. | 
|  | 13534 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
|  | 13535 |  | 
|  | 13536 | # Compiler flag to turn off builtin functions. | 
|  | 13537 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
|  | 13538 |  | 
|  | 13539 | # Compiler flag to allow reflexive dlopens. | 
|  | 13540 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
|  | 13541 |  | 
|  | 13542 | # Compiler flag to generate shared objects directly from archives. | 
|  | 13543 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
|  | 13544 |  | 
|  | 13545 | # Compiler flag to generate thread-safe objects. | 
|  | 13546 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
|  | 13547 |  | 
|  | 13548 | # Library versioning type. | 
|  | 13549 | version_type=$version_type | 
|  | 13550 |  | 
|  | 13551 | # Format of library name prefix. | 
|  | 13552 | libname_spec=$lt_libname_spec | 
|  | 13553 |  | 
|  | 13554 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 13555 | # The last name is the one that the linker finds with -lNAME. | 
|  | 13556 | library_names_spec=$lt_library_names_spec | 
|  | 13557 |  | 
|  | 13558 | # The coded name of the library, if different from the real name. | 
|  | 13559 | soname_spec=$lt_soname_spec | 
|  | 13560 |  | 
|  | 13561 | # Commands used to build and install an old-style archive. | 
|  | 13562 | RANLIB=$lt_RANLIB | 
|  | 13563 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
|  | 13564 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 13565 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 13566 |  | 
|  | 13567 | # Create an old-style archive from a shared archive. | 
|  | 13568 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
|  | 13569 |  | 
|  | 13570 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 13571 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
|  | 13572 |  | 
|  | 13573 | # Commands used to build and install a shared archive. | 
|  | 13574 | archive_cmds=$lt_archive_cmds_CXX | 
|  | 13575 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
|  | 13576 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 13577 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 13578 |  | 
|  | 13579 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 13580 | module_cmds=$lt_module_cmds_CXX | 
|  | 13581 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
|  | 13582 |  | 
|  | 13583 | # Commands to strip libraries. | 
|  | 13584 | old_striplib=$lt_old_striplib | 
|  | 13585 | striplib=$lt_striplib | 
|  | 13586 |  | 
|  | 13587 | # Dependencies to place before the objects being linked to create a | 
|  | 13588 | # shared library. | 
|  | 13589 | predep_objects=$lt_predep_objects_CXX | 
|  | 13590 |  | 
|  | 13591 | # Dependencies to place after the objects being linked to create a | 
|  | 13592 | # shared library. | 
|  | 13593 | postdep_objects=$lt_postdep_objects_CXX | 
|  | 13594 |  | 
|  | 13595 | # Dependencies to place before the objects being linked to create a | 
|  | 13596 | # shared library. | 
|  | 13597 | predeps=$lt_predeps_CXX | 
|  | 13598 |  | 
|  | 13599 | # Dependencies to place after the objects being linked to create a | 
|  | 13600 | # shared library. | 
|  | 13601 | postdeps=$lt_postdeps_CXX | 
|  | 13602 |  | 
|  | 13603 | # The library search path used internally by the compiler when linking | 
|  | 13604 | # a shared library. | 
|  | 13605 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
|  | 13606 |  | 
|  | 13607 | # Method to check whether dependent libraries are shared objects. | 
|  | 13608 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 13609 |  | 
|  | 13610 | # Command to use when deplibs_check_method == file_magic. | 
|  | 13611 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 13612 |  | 
|  | 13613 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 13614 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
|  | 13615 |  | 
|  | 13616 | # Flag that forces no undefined symbols. | 
|  | 13617 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
|  | 13618 |  | 
|  | 13619 | # Commands used to finish a libtool library installation in a directory. | 
|  | 13620 | finish_cmds=$lt_finish_cmds | 
|  | 13621 |  | 
|  | 13622 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 13623 | finish_eval=$lt_finish_eval | 
|  | 13624 |  | 
|  | 13625 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 13626 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 13627 |  | 
|  | 13628 | # Transform the output of nm in a proper C declaration | 
|  | 13629 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 13630 |  | 
|  | 13631 | # Transform the output of nm in a C name address pair | 
|  | 13632 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 13633 |  | 
|  | 13634 | # This is the shared library runtime path variable. | 
|  | 13635 | runpath_var=$runpath_var | 
|  | 13636 |  | 
|  | 13637 | # This is the shared library path variable. | 
|  | 13638 | shlibpath_var=$shlibpath_var | 
|  | 13639 |  | 
|  | 13640 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 13641 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 13642 |  | 
|  | 13643 | # How to hardcode a shared library path into an executable. | 
|  | 13644 | hardcode_action=$hardcode_action_CXX | 
|  | 13645 |  | 
|  | 13646 | # Whether we should hardcode library paths into libraries. | 
|  | 13647 | hardcode_into_libs=$hardcode_into_libs | 
|  | 13648 |  | 
|  | 13649 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 13650 | # This must work even if \$libdir does not exist. | 
|  | 13651 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
|  | 13652 |  | 
|  | 13653 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 13654 | # a binary during linking. This must work even if \$libdir does | 
|  | 13655 | # not exist. | 
|  | 13656 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
|  | 13657 |  | 
|  | 13658 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 13659 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
|  | 13660 |  | 
|  | 13661 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 13662 | # resulting binary. | 
|  | 13663 | hardcode_direct=$hardcode_direct_CXX | 
|  | 13664 |  | 
|  | 13665 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 13666 | # resulting binary. | 
|  | 13667 | hardcode_minus_L=$hardcode_minus_L_CXX | 
|  | 13668 |  | 
|  | 13669 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 13670 | # the resulting binary. | 
|  | 13671 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
|  | 13672 |  | 
|  | 13673 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 13674 | # and all subsequent libraries and executables linked against it. | 
|  | 13675 | hardcode_automatic=$hardcode_automatic_CXX | 
|  | 13676 |  | 
|  | 13677 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 13678 | # restored at relink time. | 
|  | 13679 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 13680 |  | 
|  | 13681 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 13682 | link_all_deplibs=$link_all_deplibs_CXX | 
|  | 13683 |  | 
|  | 13684 | # Compile-time system search path for libraries | 
|  | 13685 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 13686 |  | 
|  | 13687 | # Run-time system search path for libraries | 
|  | 13688 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 13689 |  | 
|  | 13690 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 13691 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
|  | 13692 |  | 
|  | 13693 | # Set to yes if exported symbols are required. | 
|  | 13694 | always_export_symbols=$always_export_symbols_CXX | 
|  | 13695 |  | 
|  | 13696 | # The commands to list exported symbols. | 
|  | 13697 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
|  | 13698 |  | 
|  | 13699 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 13700 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 13701 |  | 
|  | 13702 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 13703 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
|  | 13704 |  | 
|  | 13705 | # Symbols that must always be exported. | 
|  | 13706 | include_expsyms=$lt_include_expsyms_CXX | 
|  | 13707 |  | 
|  | 13708 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 13709 |  | 
|  | 13710 | __EOF__ | 
|  | 13711 |  | 
|  | 13712 |  | 
|  | 13713 | else | 
|  | 13714 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 13715 | # `config.status --recheck' to rerun these tests and create the | 
|  | 13716 | # libtool script then. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13717 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 13718 | if test -f "$ltmain_in"; then | 
|  | 13719 | test -f Makefile && make "$ltmain" | 
|  | 13720 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13721 | fi | 
|  | 13722 |  | 
|  | 13723 |  | 
|  | 13724 | ac_ext=c | 
|  | 13725 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 13726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 13727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 13728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 13729 |  | 
|  | 13730 | CC=$lt_save_CC | 
|  | 13731 | LDCXX=$LD | 
|  | 13732 | LD=$lt_save_LD | 
|  | 13733 | GCC=$lt_save_GCC | 
|  | 13734 | with_gnu_ldcxx=$with_gnu_ld | 
|  | 13735 | with_gnu_ld=$lt_save_with_gnu_ld | 
|  | 13736 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
|  | 13737 | lt_cv_path_LD=$lt_save_path_LD | 
|  | 13738 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
|  | 13739 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
|  | 13740 |  | 
|  | 13741 | else | 
|  | 13742 | tagname="" | 
|  | 13743 | fi | 
|  | 13744 | ;; | 
|  | 13745 |  | 
|  | 13746 | F77) | 
|  | 13747 | if test -n "$F77" && test "X$F77" != "Xno"; then | 
|  | 13748 |  | 
|  | 13749 | ac_ext=f | 
|  | 13750 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
|  | 13751 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 13752 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
|  | 13753 |  | 
|  | 13754 |  | 
|  | 13755 | archive_cmds_need_lc_F77=no | 
|  | 13756 | allow_undefined_flag_F77= | 
|  | 13757 | always_export_symbols_F77=no | 
|  | 13758 | archive_expsym_cmds_F77= | 
|  | 13759 | export_dynamic_flag_spec_F77= | 
|  | 13760 | hardcode_direct_F77=no | 
|  | 13761 | hardcode_libdir_flag_spec_F77= | 
|  | 13762 | hardcode_libdir_flag_spec_ld_F77= | 
|  | 13763 | hardcode_libdir_separator_F77= | 
|  | 13764 | hardcode_minus_L_F77=no | 
|  | 13765 | hardcode_automatic_F77=no | 
|  | 13766 | module_cmds_F77= | 
|  | 13767 | module_expsym_cmds_F77= | 
|  | 13768 | link_all_deplibs_F77=unknown | 
|  | 13769 | old_archive_cmds_F77=$old_archive_cmds | 
|  | 13770 | no_undefined_flag_F77= | 
|  | 13771 | whole_archive_flag_spec_F77= | 
|  | 13772 | enable_shared_with_static_runtimes_F77=no | 
|  | 13773 |  | 
|  | 13774 | # Source file extension for f77 test sources. | 
|  | 13775 | ac_ext=f | 
|  | 13776 |  | 
|  | 13777 | # Object file extension for compiled f77 test sources. | 
|  | 13778 | objext=o | 
|  | 13779 | objext_F77=$objext | 
|  | 13780 |  | 
|  | 13781 | # Code to be used in simple compile tests | 
|  | 13782 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
|  | 13783 |  | 
|  | 13784 | # Code to be used in simple link tests | 
|  | 13785 | lt_simple_link_test_code="      program t\n      end\n" | 
|  | 13786 |  | 
|  | 13787 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 13788 |  | 
|  | 13789 | # If no C compiler was specified, use CC. | 
|  | 13790 | LTCC=${LTCC-"$CC"} | 
|  | 13791 |  | 
|  | 13792 | # Allow CC to be a program name with arguments. | 
|  | 13793 | compiler=$CC | 
|  | 13794 |  | 
|  | 13795 |  | 
|  | 13796 | # Allow CC to be a program name with arguments. | 
|  | 13797 | lt_save_CC="$CC" | 
|  | 13798 | CC=${F77-"f77"} | 
|  | 13799 | compiler=$CC | 
|  | 13800 | compiler_F77=$CC | 
|  | 13801 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 13802 |  | 
|  | 13803 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
|  | 13804 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
|  | 13805 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
|  | 13806 | echo "${ECHO_T}$can_build_shared" >&6 | 
|  | 13807 |  | 
|  | 13808 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
|  | 13809 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
|  | 13810 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 13811 |  | 
|  | 13812 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 13813 | # are all built from PIC. | 
|  | 13814 | case "$host_os" in | 
|  | 13815 | aix3*) | 
|  | 13816 | test "$enable_shared" = yes && enable_static=no | 
|  | 13817 | if test -n "$RANLIB"; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13818 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13819 | postinstall_cmds='$RANLIB $lib' | 
|  | 13820 | fi | 
|  | 13821 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13822 | aix4* | aix5*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13823 | test "$enable_shared" = yes && enable_static=no | 
|  | 13824 | ;; | 
|  | 13825 | esac | 
|  | 13826 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
|  | 13827 | echo "${ECHO_T}$enable_shared" >&6 | 
|  | 13828 |  | 
|  | 13829 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
|  | 13830 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
|  | 13831 | # Make sure either enable_shared or enable_static is yes. | 
|  | 13832 | test "$enable_shared" = yes || enable_static=yes | 
|  | 13833 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
|  | 13834 | echo "${ECHO_T}$enable_static" >&6 | 
|  | 13835 |  | 
|  | 13836 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
|  | 13837 |  | 
|  | 13838 | GCC_F77="$G77" | 
|  | 13839 | LD_F77="$LD" | 
|  | 13840 |  | 
|  | 13841 | lt_prog_compiler_wl_F77= | 
|  | 13842 | lt_prog_compiler_pic_F77= | 
|  | 13843 | lt_prog_compiler_static_F77= | 
|  | 13844 |  | 
|  | 13845 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 13846 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 13847 |  | 
|  | 13848 | if test "$GCC" = yes; then | 
|  | 13849 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13850 | lt_prog_compiler_static_F77='-static' | 
|  | 13851 |  | 
|  | 13852 | case $host_os in | 
|  | 13853 | aix*) | 
|  | 13854 | # All AIX code is PIC. | 
|  | 13855 | if test "$host_cpu" = ia64; then | 
|  | 13856 | # AIX 5 now supports IA64 processor | 
|  | 13857 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 13858 | fi | 
|  | 13859 | ;; | 
|  | 13860 |  | 
|  | 13861 | amigaos*) | 
|  | 13862 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 13863 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 13864 | # like `-m68040'. | 
|  | 13865 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
|  | 13866 | ;; | 
|  | 13867 |  | 
|  | 13868 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 13869 | # PIC is the default for these OSes. | 
|  | 13870 | ;; | 
|  | 13871 |  | 
|  | 13872 | mingw* | pw32* | os2*) | 
|  | 13873 | # This hack is so that the source file can tell whether it is being | 
|  | 13874 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 13875 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
|  | 13876 | ;; | 
|  | 13877 |  | 
|  | 13878 | darwin* | rhapsody*) | 
|  | 13879 | # PIC is the default on this platform | 
|  | 13880 | # Common symbols not allowed in MH_DYLIB files | 
|  | 13881 | lt_prog_compiler_pic_F77='-fno-common' | 
|  | 13882 | ;; | 
|  | 13883 |  | 
|  | 13884 | msdosdjgpp*) | 
|  | 13885 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 13886 | # on systems that don't support them. | 
|  | 13887 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 13888 | enable_shared=no | 
|  | 13889 | ;; | 
|  | 13890 |  | 
|  | 13891 | sysv4*MP*) | 
|  | 13892 | if test -d /usr/nec; then | 
|  | 13893 | lt_prog_compiler_pic_F77=-Kconform_pic | 
|  | 13894 | fi | 
|  | 13895 | ;; | 
|  | 13896 |  | 
|  | 13897 | hpux*) | 
|  | 13898 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 13899 | # not for PA HP-UX. | 
|  | 13900 | case "$host_cpu" in | 
|  | 13901 | hppa*64*|ia64*) | 
|  | 13902 | # +Z the default | 
|  | 13903 | ;; | 
|  | 13904 | *) | 
|  | 13905 | lt_prog_compiler_pic_F77='-fPIC' | 
|  | 13906 | ;; | 
|  | 13907 | esac | 
|  | 13908 | ;; | 
|  | 13909 |  | 
|  | 13910 | *) | 
|  | 13911 | lt_prog_compiler_pic_F77='-fPIC' | 
|  | 13912 | ;; | 
|  | 13913 | esac | 
|  | 13914 | else | 
|  | 13915 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 13916 | case $host_os in | 
|  | 13917 | aix*) | 
|  | 13918 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13919 | if test "$host_cpu" = ia64; then | 
|  | 13920 | # AIX 5 now supports IA64 processor | 
|  | 13921 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 13922 | else | 
|  | 13923 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
|  | 13924 | fi | 
|  | 13925 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13926 | darwin*) | 
|  | 13927 | # PIC is the default on this platform | 
|  | 13928 | # Common symbols not allowed in MH_DYLIB files | 
|  | 13929 | case "$cc_basename" in | 
|  | 13930 | xlc*) | 
|  | 13931 | lt_prog_compiler_pic_F77='-qnocommon' | 
|  | 13932 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13933 | ;; | 
|  | 13934 | esac | 
|  | 13935 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13936 |  | 
|  | 13937 | mingw* | pw32* | os2*) | 
|  | 13938 | # This hack is so that the source file can tell whether it is being | 
|  | 13939 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 13940 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
|  | 13941 | ;; | 
|  | 13942 |  | 
|  | 13943 | hpux9* | hpux10* | hpux11*) | 
|  | 13944 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13945 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 13946 | # not for PA HP-UX. | 
|  | 13947 | case "$host_cpu" in | 
|  | 13948 | hppa*64*|ia64*) | 
|  | 13949 | # +Z the default | 
|  | 13950 | ;; | 
|  | 13951 | *) | 
|  | 13952 | lt_prog_compiler_pic_F77='+Z' | 
|  | 13953 | ;; | 
|  | 13954 | esac | 
|  | 13955 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 13956 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
|  | 13957 | ;; | 
|  | 13958 |  | 
|  | 13959 | irix5* | irix6* | nonstopux*) | 
|  | 13960 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13961 | # PIC (with -KPIC) is the default. | 
|  | 13962 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 13963 | ;; | 
|  | 13964 |  | 
|  | 13965 | newsos6) | 
|  | 13966 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 13967 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 13968 | ;; | 
|  | 13969 |  | 
|  | 13970 | linux*) | 
|  | 13971 | case $CC in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13972 | icc* | ecc*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13973 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13974 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 13975 | lt_prog_compiler_static_F77='-static' | 
|  | 13976 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13977 | ccc*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13978 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13979 | # All Alpha code is PIC. | 
|  | 13980 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 13981 | ;; | 
|  | 13982 | esac | 
|  | 13983 | ;; | 
|  | 13984 |  | 
|  | 13985 | osf3* | osf4* | osf5*) | 
|  | 13986 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13987 | # All OSF/1 code is PIC. | 
|  | 13988 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 13989 | ;; | 
|  | 13990 |  | 
|  | 13991 | sco3.2v5*) | 
|  | 13992 | lt_prog_compiler_pic_F77='-Kpic' | 
|  | 13993 | lt_prog_compiler_static_F77='-dn' | 
|  | 13994 | ;; | 
|  | 13995 |  | 
|  | 13996 | solaris*) | 
|  | 13997 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 13998 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 13999 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 14000 | ;; | 
|  | 14001 |  | 
|  | 14002 | sunos4*) | 
|  | 14003 | lt_prog_compiler_wl_F77='-Qoption ld ' | 
|  | 14004 | lt_prog_compiler_pic_F77='-PIC' | 
|  | 14005 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 14006 | ;; | 
|  | 14007 |  | 
|  | 14008 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 14009 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 14010 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 14011 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 14012 | ;; | 
|  | 14013 |  | 
|  | 14014 | sysv4*MP*) | 
|  | 14015 | if test -d /usr/nec ;then | 
|  | 14016 | lt_prog_compiler_pic_F77='-Kconform_pic' | 
|  | 14017 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 14018 | fi | 
|  | 14019 | ;; | 
|  | 14020 |  | 
|  | 14021 | uts4*) | 
|  | 14022 | lt_prog_compiler_pic_F77='-pic' | 
|  | 14023 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 14024 | ;; | 
|  | 14025 |  | 
|  | 14026 | *) | 
|  | 14027 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 14028 | ;; | 
|  | 14029 | esac | 
|  | 14030 | fi | 
|  | 14031 |  | 
|  | 14032 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
|  | 14033 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
|  | 14034 |  | 
|  | 14035 | # | 
|  | 14036 | # Check to make sure the PIC flag actually works. | 
|  | 14037 | # | 
|  | 14038 | if test -n "$lt_prog_compiler_pic_F77"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14039 |  | 
|  | 14040 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14041 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
|  | 14042 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
|  | 14043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14044 | else | 
|  | 14045 | lt_prog_compiler_pic_works_F77=no | 
|  | 14046 | ac_outfile=conftest.$ac_objext | 
|  | 14047 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 14048 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
|  | 14049 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 14050 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 14051 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 14052 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 14053 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 14054 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 14055 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 14056 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 14057 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14058 | (eval echo "\"\$as_me:14058: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14059 | (eval "$lt_compile" 2>conftest.err) | 
|  | 14060 | ac_status=$? | 
|  | 14061 | cat conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14062 | echo "$as_me:14062: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14063 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 14064 | # The compiler can only warn and ignore the option if not recognized | 
|  | 14065 | # So say no if there are warnings | 
|  | 14066 | if test ! -s conftest.err; then | 
|  | 14067 | lt_prog_compiler_pic_works_F77=yes | 
|  | 14068 | fi | 
|  | 14069 | fi | 
|  | 14070 | $rm conftest* | 
|  | 14071 |  | 
|  | 14072 | fi | 
|  | 14073 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
|  | 14074 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
|  | 14075 |  | 
|  | 14076 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
|  | 14077 | case $lt_prog_compiler_pic_F77 in | 
|  | 14078 | "" | " "*) ;; | 
|  | 14079 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
|  | 14080 | esac | 
|  | 14081 | else | 
|  | 14082 | lt_prog_compiler_pic_F77= | 
|  | 14083 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 14084 | fi | 
|  | 14085 |  | 
|  | 14086 | fi | 
|  | 14087 | case "$host_os" in | 
|  | 14088 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 14089 | *djgpp*) | 
|  | 14090 | lt_prog_compiler_pic_F77= | 
|  | 14091 | ;; | 
|  | 14092 | *) | 
|  | 14093 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
|  | 14094 | ;; | 
|  | 14095 | esac | 
|  | 14096 |  | 
|  | 14097 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 14098 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 14099 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
|  | 14100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14101 | else | 
|  | 14102 | lt_cv_prog_compiler_c_o_F77=no | 
|  | 14103 | $rm -r conftest 2>/dev/null | 
|  | 14104 | mkdir conftest | 
|  | 14105 | cd conftest | 
|  | 14106 | mkdir out | 
|  | 14107 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 14108 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14109 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 14110 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 14111 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 14112 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 14113 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 14114 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 14115 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 14116 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 14117 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14118 | (eval echo "\"\$as_me:14118: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14119 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 14120 | ac_status=$? | 
|  | 14121 | cat out/conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14122 | echo "$as_me:14122: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14123 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 14124 | then | 
|  | 14125 | # The compiler can only warn and ignore the option if not recognized | 
|  | 14126 | # So say no if there are warnings | 
|  | 14127 | if test ! -s out/conftest.err; then | 
|  | 14128 | lt_cv_prog_compiler_c_o_F77=yes | 
|  | 14129 | fi | 
|  | 14130 | fi | 
|  | 14131 | chmod u+w . | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14132 | $rm conftest* | 
|  | 14133 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 14134 | # template instantiation | 
|  | 14135 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 14136 | $rm out/* && rmdir out | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14137 | cd .. | 
|  | 14138 | rmdir conftest | 
|  | 14139 | $rm conftest* | 
|  | 14140 |  | 
|  | 14141 | fi | 
|  | 14142 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
|  | 14143 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
|  | 14144 |  | 
|  | 14145 |  | 
|  | 14146 | hard_links="nottested" | 
|  | 14147 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
|  | 14148 | # do not overwrite the value of need_locks provided by the user | 
|  | 14149 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 14150 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 14151 | hard_links=yes | 
|  | 14152 | $rm conftest* | 
|  | 14153 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 14154 | touch conftest.a | 
|  | 14155 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 14156 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 14157 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 14158 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 14159 | if test "$hard_links" = no; then | 
|  | 14160 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 14161 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 14162 | need_locks=warn | 
|  | 14163 | fi | 
|  | 14164 | else | 
|  | 14165 | need_locks=no | 
|  | 14166 | fi | 
|  | 14167 |  | 
|  | 14168 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 14169 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 14170 |  | 
|  | 14171 | runpath_var= | 
|  | 14172 | allow_undefined_flag_F77= | 
|  | 14173 | enable_shared_with_static_runtimes_F77=no | 
|  | 14174 | archive_cmds_F77= | 
|  | 14175 | archive_expsym_cmds_F77= | 
|  | 14176 | old_archive_From_new_cmds_F77= | 
|  | 14177 | old_archive_from_expsyms_cmds_F77= | 
|  | 14178 | export_dynamic_flag_spec_F77= | 
|  | 14179 | whole_archive_flag_spec_F77= | 
|  | 14180 | thread_safe_flag_spec_F77= | 
|  | 14181 | hardcode_libdir_flag_spec_F77= | 
|  | 14182 | hardcode_libdir_flag_spec_ld_F77= | 
|  | 14183 | hardcode_libdir_separator_F77= | 
|  | 14184 | hardcode_direct_F77=no | 
|  | 14185 | hardcode_minus_L_F77=no | 
|  | 14186 | hardcode_shlibpath_var_F77=unsupported | 
|  | 14187 | link_all_deplibs_F77=unknown | 
|  | 14188 | hardcode_automatic_F77=no | 
|  | 14189 | module_cmds_F77= | 
|  | 14190 | module_expsym_cmds_F77= | 
|  | 14191 | always_export_symbols_F77=no | 
|  | 14192 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 14193 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 14194 | # included in the symbol list | 
|  | 14195 | include_expsyms_F77= | 
|  | 14196 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 14197 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 14198 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 14199 | # as well as any symbol that contains `d'. | 
|  | 14200 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
|  | 14201 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 14202 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 14203 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 14204 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 14205 | # preloaded symbol tables. | 
|  | 14206 | extract_expsyms_cmds= | 
|  | 14207 |  | 
|  | 14208 | case $host_os in | 
|  | 14209 | cygwin* | mingw* | pw32*) | 
|  | 14210 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 14211 | # When not using gcc, we currently assume that we are using | 
|  | 14212 | # Microsoft Visual C++. | 
|  | 14213 | if test "$GCC" != yes; then | 
|  | 14214 | with_gnu_ld=no | 
|  | 14215 | fi | 
|  | 14216 | ;; | 
|  | 14217 | openbsd*) | 
|  | 14218 | with_gnu_ld=no | 
|  | 14219 | ;; | 
|  | 14220 | esac | 
|  | 14221 |  | 
|  | 14222 | ld_shlibs_F77=yes | 
|  | 14223 | if test "$with_gnu_ld" = yes; then | 
|  | 14224 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 14225 | wlarc='${wl}' | 
|  | 14226 |  | 
|  | 14227 | # See if GNU ld supports shared libraries. | 
|  | 14228 | case $host_os in | 
|  | 14229 | aix3* | aix4* | aix5*) | 
|  | 14230 | # On AIX/PPC, the GNU linker is very broken | 
|  | 14231 | if test "$host_cpu" != ia64; then | 
|  | 14232 | ld_shlibs_F77=no | 
|  | 14233 | cat <<EOF 1>&2 | 
|  | 14234 |  | 
|  | 14235 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 14236 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 14237 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 14238 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 14239 | *** so that a non-GNU linker is found, and then restart. | 
|  | 14240 |  | 
|  | 14241 | EOF | 
|  | 14242 | fi | 
|  | 14243 | ;; | 
|  | 14244 |  | 
|  | 14245 | amigaos*) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14246 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14247 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14248 | hardcode_minus_L_F77=yes | 
|  | 14249 |  | 
|  | 14250 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 14251 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 14252 | # to version 4, is to share data among multiple programs linked | 
|  | 14253 | # with the same dynamic library.  Since this doesn't match the | 
|  | 14254 | # behavior of shared libraries on other platforms, we can't use | 
|  | 14255 | # them. | 
|  | 14256 | ld_shlibs_F77=no | 
|  | 14257 | ;; | 
|  | 14258 |  | 
|  | 14259 | beos*) | 
|  | 14260 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 14261 | allow_undefined_flag_F77=unsupported | 
|  | 14262 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 14263 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 14264 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 14265 | else | 
|  | 14266 | ld_shlibs_F77=no | 
|  | 14267 | fi | 
|  | 14268 | ;; | 
|  | 14269 |  | 
|  | 14270 | cygwin* | mingw* | pw32*) | 
|  | 14271 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
|  | 14272 | # as there is no search path for DLLs. | 
|  | 14273 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14274 | allow_undefined_flag_F77=unsupported | 
|  | 14275 | always_export_symbols_F77=no | 
|  | 14276 | enable_shared_with_static_runtimes_F77=yes | 
|  | 14277 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 14278 |  | 
|  | 14279 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 14280 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 14281 | # If the export-symbols file already is a .def file (1st line | 
|  | 14282 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 14283 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 14284 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 14285 | else | 
|  | 14286 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 14287 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14288 | fi~ | 
|  | 14289 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14290 | else | 
|  | 14291 | ld_shlibs=no | 
|  | 14292 | fi | 
|  | 14293 | ;; | 
|  | 14294 |  | 
|  | 14295 | netbsd*) | 
|  | 14296 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 14297 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 14298 | wlarc= | 
|  | 14299 | else | 
|  | 14300 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 14301 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 14302 | fi | 
|  | 14303 | ;; | 
|  | 14304 |  | 
|  | 14305 | solaris* | sysv5*) | 
|  | 14306 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 14307 | ld_shlibs_F77=no | 
|  | 14308 | cat <<EOF 1>&2 | 
|  | 14309 |  | 
|  | 14310 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 14311 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 14312 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 14313 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 14314 | *** your PATH or compiler configuration so that the native linker is | 
|  | 14315 | *** used, and then restart. | 
|  | 14316 |  | 
|  | 14317 | EOF | 
|  | 14318 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 14319 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 14320 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 14321 | else | 
|  | 14322 | ld_shlibs_F77=no | 
|  | 14323 | fi | 
|  | 14324 | ;; | 
|  | 14325 |  | 
|  | 14326 | sunos4*) | 
|  | 14327 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14328 | wlarc= | 
|  | 14329 | hardcode_direct_F77=yes | 
|  | 14330 | hardcode_shlibpath_var_F77=no | 
|  | 14331 | ;; | 
|  | 14332 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14333 | linux*) | 
|  | 14334 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 14335 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 14336 | archive_cmds_F77="$tmp_archive_cmds" | 
|  | 14337 | supports_anon_versioning=no | 
|  | 14338 | case `$LD -v 2>/dev/null` in | 
|  | 14339 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 14340 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 14341 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 14342 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 14343 | *) supports_anon_versioning=yes ;; | 
|  | 14344 | esac | 
|  | 14345 | if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14346 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 14347 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 14348 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14349 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 14350 | else | 
|  | 14351 | archive_expsym_cmds_F77="$tmp_archive_cmds" | 
|  | 14352 | fi | 
|  | 14353 | else | 
|  | 14354 | ld_shlibs_F77=no | 
|  | 14355 | fi | 
|  | 14356 | ;; | 
|  | 14357 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14358 | *) | 
|  | 14359 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 14360 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 14361 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 14362 | else | 
|  | 14363 | ld_shlibs_F77=no | 
|  | 14364 | fi | 
|  | 14365 | ;; | 
|  | 14366 | esac | 
|  | 14367 |  | 
|  | 14368 | if test "$ld_shlibs_F77" = yes; then | 
|  | 14369 | runpath_var=LD_RUN_PATH | 
|  | 14370 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
|  | 14371 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
|  | 14372 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 14373 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 14374 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 14375 | else | 
|  | 14376 | whole_archive_flag_spec_F77= | 
|  | 14377 | fi | 
|  | 14378 | fi | 
|  | 14379 | else | 
|  | 14380 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 14381 | case $host_os in | 
|  | 14382 | aix3*) | 
|  | 14383 | allow_undefined_flag_F77=unsupported | 
|  | 14384 | always_export_symbols_F77=yes | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14385 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14386 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 14387 | # are no directories specified by -L. | 
|  | 14388 | hardcode_minus_L_F77=yes | 
|  | 14389 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 14390 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 14391 | # broken collect2. | 
|  | 14392 | hardcode_direct_F77=unsupported | 
|  | 14393 | fi | 
|  | 14394 | ;; | 
|  | 14395 |  | 
|  | 14396 | aix4* | aix5*) | 
|  | 14397 | if test "$host_cpu" = ia64; then | 
|  | 14398 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 14399 | # have to do anything special. | 
|  | 14400 | aix_use_runtimelinking=no | 
|  | 14401 | exp_sym_flag='-Bexport' | 
|  | 14402 | no_entry_flag="" | 
|  | 14403 | else | 
|  | 14404 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 14405 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 14406 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 14407 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 14408 | else | 
|  | 14409 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 14410 | fi | 
|  | 14411 | aix_use_runtimelinking=no | 
|  | 14412 |  | 
|  | 14413 | # Test if we are trying to use run time linking or normal | 
|  | 14414 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 14415 | # need to do runtime linking. | 
|  | 14416 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 14417 | for ld_flag in $LDFLAGS; do | 
|  | 14418 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 14419 | aix_use_runtimelinking=yes | 
|  | 14420 | break | 
|  | 14421 | fi | 
|  | 14422 | done | 
|  | 14423 | esac | 
|  | 14424 |  | 
|  | 14425 | exp_sym_flag='-bexport' | 
|  | 14426 | no_entry_flag='-bnoentry' | 
|  | 14427 | fi | 
|  | 14428 |  | 
|  | 14429 | # When large executables or shared objects are built, AIX ld can | 
|  | 14430 | # have problems creating the table of contents.  If linking a library | 
|  | 14431 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 14432 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 14433 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 14434 |  | 
|  | 14435 | archive_cmds_F77='' | 
|  | 14436 | hardcode_direct_F77=yes | 
|  | 14437 | hardcode_libdir_separator_F77=':' | 
|  | 14438 | link_all_deplibs_F77=yes | 
|  | 14439 |  | 
|  | 14440 | if test "$GCC" = yes; then | 
|  | 14441 | case $host_os in aix4.012|aix4.012.*) | 
|  | 14442 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 14443 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 14444 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 14445 | if test -f "$collect2name" && \ | 
|  | 14446 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 14447 | then | 
|  | 14448 | # We have reworked collect2 | 
|  | 14449 | hardcode_direct_F77=yes | 
|  | 14450 | else | 
|  | 14451 | # We have old collect2 | 
|  | 14452 | hardcode_direct_F77=unsupported | 
|  | 14453 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 14454 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 14455 | # to unsupported forces relinking | 
|  | 14456 | hardcode_minus_L_F77=yes | 
|  | 14457 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14458 | hardcode_libdir_separator_F77= | 
|  | 14459 | fi | 
|  | 14460 | esac | 
|  | 14461 | shared_flag='-shared' | 
|  | 14462 | else | 
|  | 14463 | # not using gcc | 
|  | 14464 | if test "$host_cpu" = ia64; then | 
|  | 14465 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 14466 | # chokes on -Wl,-G. The following line is correct: | 
|  | 14467 | shared_flag='-G' | 
|  | 14468 | else | 
|  | 14469 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 14470 | shared_flag='${wl}-G' | 
|  | 14471 | else | 
|  | 14472 | shared_flag='${wl}-bM:SRE' | 
|  | 14473 | fi | 
|  | 14474 | fi | 
|  | 14475 | fi | 
|  | 14476 |  | 
|  | 14477 | # It seems that -bexpall does not export symbols beginning with | 
|  | 14478 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 14479 | always_export_symbols_F77=yes | 
|  | 14480 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 14481 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 14482 | # -berok will link without error, but may produce a broken library. | 
|  | 14483 | allow_undefined_flag_F77='-berok' | 
|  | 14484 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 14485 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14486 | program main | 
|  | 14487 |  | 
|  | 14488 | end | 
|  | 14489 | _ACEOF | 
|  | 14490 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14492 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14493 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14494 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14495 | rm -f conftest.er1 | 
|  | 14496 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14498 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14499 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 14500 | || test ! -s conftest.err' | 
|  | 14501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14502 | (eval $ac_try) 2>&5 | 
|  | 14503 | ac_status=$? | 
|  | 14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14505 | (exit $ac_status); }; } && | 
|  | 14506 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14508 | (eval $ac_try) 2>&5 | 
|  | 14509 | ac_status=$? | 
|  | 14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14511 | (exit $ac_status); }; }; then | 
|  | 14512 |  | 
|  | 14513 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 14514 | }'` | 
|  | 14515 | # Check for a 64-bit object if we didn't find anything. | 
|  | 14516 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 14517 | }'`; fi | 
|  | 14518 | else | 
|  | 14519 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14520 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14521 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14522 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14523 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 14524 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14525 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 14526 |  | 
|  | 14527 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 14528 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
|  | 14529 | else | 
|  | 14530 | if test "$host_cpu" = ia64; then | 
|  | 14531 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 14532 | allow_undefined_flag_F77="-z nodefs" | 
|  | 14533 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 
|  | 14534 | else | 
|  | 14535 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 14536 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 14537 | program main | 
|  | 14538 |  | 
|  | 14539 | end | 
|  | 14540 | _ACEOF | 
|  | 14541 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14543 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14544 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14545 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14546 | rm -f conftest.er1 | 
|  | 14547 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14549 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14550 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 14551 | || test ! -s conftest.err' | 
|  | 14552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14553 | (eval $ac_try) 2>&5 | 
|  | 14554 | ac_status=$? | 
|  | 14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14556 | (exit $ac_status); }; } && | 
|  | 14557 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14559 | (eval $ac_try) 2>&5 | 
|  | 14560 | ac_status=$? | 
|  | 14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14562 | (exit $ac_status); }; }; then | 
|  | 14563 |  | 
|  | 14564 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 14565 | }'` | 
|  | 14566 | # Check for a 64-bit object if we didn't find anything. | 
|  | 14567 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 14568 | }'`; fi | 
|  | 14569 | else | 
|  | 14570 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14571 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14572 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14573 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14574 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 14575 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14576 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 14577 |  | 
|  | 14578 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 14579 | # Warning - without using the other run time loading flags, | 
|  | 14580 | # -berok will link without error, but may produce a broken library. | 
|  | 14581 | no_undefined_flag_F77=' ${wl}-bernotok' | 
|  | 14582 | allow_undefined_flag_F77=' ${wl}-berok' | 
|  | 14583 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 14584 | always_export_symbols_F77=yes | 
|  | 14585 | # Exported symbols can be pulled into shared objects from archives | 
|  | 14586 | whole_archive_flag_spec_F77=' ' | 
|  | 14587 | archive_cmds_need_lc_F77=yes | 
|  | 14588 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14589 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14590 | fi | 
|  | 14591 | fi | 
|  | 14592 | ;; | 
|  | 14593 |  | 
|  | 14594 | amigaos*) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14595 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14596 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14597 | hardcode_minus_L_F77=yes | 
|  | 14598 | # see comment about different semantics on the GNU ld section | 
|  | 14599 | ld_shlibs_F77=no | 
|  | 14600 | ;; | 
|  | 14601 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14602 | bsdi[45]*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14603 | export_dynamic_flag_spec_F77=-rdynamic | 
|  | 14604 | ;; | 
|  | 14605 |  | 
|  | 14606 | cygwin* | mingw* | pw32*) | 
|  | 14607 | # When not using gcc, we currently assume that we are using | 
|  | 14608 | # Microsoft Visual C++. | 
|  | 14609 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 14610 | # no search path for DLLs. | 
|  | 14611 | hardcode_libdir_flag_spec_F77=' ' | 
|  | 14612 | allow_undefined_flag_F77=unsupported | 
|  | 14613 | # Tell ltmain to make .lib files, not .a files. | 
|  | 14614 | libext=lib | 
|  | 14615 | # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14616 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14617 | # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14618 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14619 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 14620 | old_archive_From_new_cmds_F77='true' | 
|  | 14621 | # FIXME: Should let the user specify the lib program. | 
|  | 14622 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 14623 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 14624 | enable_shared_with_static_runtimes_F77=yes | 
|  | 14625 | ;; | 
|  | 14626 |  | 
|  | 14627 | darwin* | rhapsody*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14628 | case "$host_os" in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14629 | rhapsody* | darwin1.[012]) | 
|  | 14630 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | 
|  | 14631 | ;; | 
|  | 14632 | *) # Darwin 1.3 on | 
|  | 14633 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 14634 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 14635 | else | 
|  | 14636 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 14637 | 10.[012]) | 
|  | 14638 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 14639 | ;; | 
|  | 14640 | 10.*) | 
|  | 14641 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 14642 | ;; | 
|  | 14643 | esac | 
|  | 14644 | fi | 
|  | 14645 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14646 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14647 | archive_cmds_need_lc_F77=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14648 | hardcode_direct_F77=no | 
|  | 14649 | hardcode_automatic_F77=yes | 
|  | 14650 | hardcode_shlibpath_var_F77=unsupported | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14651 | whole_archive_flag_spec_F77='' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14652 | link_all_deplibs_F77=yes | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14653 | if test "$GCC" = yes ; then | 
|  | 14654 | output_verbose_link_cmd='echo' | 
|  | 14655 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 14656 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 14657 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14658 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 14659 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14660 | else | 
|  | 14661 | case "$cc_basename" in | 
|  | 14662 | xlc*) | 
|  | 14663 | output_verbose_link_cmd='echo' | 
|  | 14664 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
|  | 14665 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 14666 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14667 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 14668 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14669 | ;; | 
|  | 14670 | *) | 
|  | 14671 | ld_shlibs_F77=no | 
|  | 14672 | ;; | 
|  | 14673 | esac | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14674 | fi | 
|  | 14675 | ;; | 
|  | 14676 |  | 
|  | 14677 | dgux*) | 
|  | 14678 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14679 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14680 | hardcode_shlibpath_var_F77=no | 
|  | 14681 | ;; | 
|  | 14682 |  | 
|  | 14683 | freebsd1*) | 
|  | 14684 | ld_shlibs_F77=no | 
|  | 14685 | ;; | 
|  | 14686 |  | 
|  | 14687 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 14688 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 14689 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 14690 | # extra space). | 
|  | 14691 | freebsd2.2*) | 
|  | 14692 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 14693 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 14694 | hardcode_direct_F77=yes | 
|  | 14695 | hardcode_shlibpath_var_F77=no | 
|  | 14696 | ;; | 
|  | 14697 |  | 
|  | 14698 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 14699 | freebsd2*) | 
|  | 14700 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14701 | hardcode_direct_F77=yes | 
|  | 14702 | hardcode_minus_L_F77=yes | 
|  | 14703 | hardcode_shlibpath_var_F77=no | 
|  | 14704 | ;; | 
|  | 14705 |  | 
|  | 14706 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14707 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14708 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14709 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 14710 | hardcode_direct_F77=yes | 
|  | 14711 | hardcode_shlibpath_var_F77=no | 
|  | 14712 | ;; | 
|  | 14713 |  | 
|  | 14714 | hpux9*) | 
|  | 14715 | if test "$GCC" = yes; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14716 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14717 | else | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14718 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14719 | fi | 
|  | 14720 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 14721 | hardcode_libdir_separator_F77=: | 
|  | 14722 | hardcode_direct_F77=yes | 
|  | 14723 |  | 
|  | 14724 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 14725 | # but as the default location of the library. | 
|  | 14726 | hardcode_minus_L_F77=yes | 
|  | 14727 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 14728 | ;; | 
|  | 14729 |  | 
|  | 14730 | hpux10* | hpux11*) | 
|  | 14731 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 14732 | case "$host_cpu" in | 
|  | 14733 | hppa*64*|ia64*) | 
|  | 14734 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14735 | ;; | 
|  | 14736 | *) | 
|  | 14737 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14738 | ;; | 
|  | 14739 | esac | 
|  | 14740 | else | 
|  | 14741 | case "$host_cpu" in | 
|  | 14742 | hppa*64*|ia64*) | 
|  | 14743 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14744 | ;; | 
|  | 14745 | *) | 
|  | 14746 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14747 | ;; | 
|  | 14748 | esac | 
|  | 14749 | fi | 
|  | 14750 | if test "$with_gnu_ld" = no; then | 
|  | 14751 | case "$host_cpu" in | 
|  | 14752 | hppa*64*) | 
|  | 14753 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 14754 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
|  | 14755 | hardcode_libdir_separator_F77=: | 
|  | 14756 | hardcode_direct_F77=no | 
|  | 14757 | hardcode_shlibpath_var_F77=no | 
|  | 14758 | ;; | 
|  | 14759 | ia64*) | 
|  | 14760 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14761 | hardcode_direct_F77=no | 
|  | 14762 | hardcode_shlibpath_var_F77=no | 
|  | 14763 |  | 
|  | 14764 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 14765 | # but as the default location of the library. | 
|  | 14766 | hardcode_minus_L_F77=yes | 
|  | 14767 | ;; | 
|  | 14768 | *) | 
|  | 14769 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 14770 | hardcode_libdir_separator_F77=: | 
|  | 14771 | hardcode_direct_F77=yes | 
|  | 14772 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 14773 |  | 
|  | 14774 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 14775 | # but as the default location of the library. | 
|  | 14776 | hardcode_minus_L_F77=yes | 
|  | 14777 | ;; | 
|  | 14778 | esac | 
|  | 14779 | fi | 
|  | 14780 | ;; | 
|  | 14781 |  | 
|  | 14782 | irix5* | irix6* | nonstopux*) | 
|  | 14783 | if test "$GCC" = yes; then | 
|  | 14784 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 14785 | else | 
|  | 14786 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|  | 14787 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
|  | 14788 | fi | 
|  | 14789 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 14790 | hardcode_libdir_separator_F77=: | 
|  | 14791 | link_all_deplibs_F77=yes | 
|  | 14792 | ;; | 
|  | 14793 |  | 
|  | 14794 | netbsd*) | 
|  | 14795 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 14796 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 14797 | else | 
|  | 14798 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 14799 | fi | 
|  | 14800 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 14801 | hardcode_direct_F77=yes | 
|  | 14802 | hardcode_shlibpath_var_F77=no | 
|  | 14803 | ;; | 
|  | 14804 |  | 
|  | 14805 | newsos6) | 
|  | 14806 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14807 | hardcode_direct_F77=yes | 
|  | 14808 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 14809 | hardcode_libdir_separator_F77=: | 
|  | 14810 | hardcode_shlibpath_var_F77=no | 
|  | 14811 | ;; | 
|  | 14812 |  | 
|  | 14813 | openbsd*) | 
|  | 14814 | hardcode_direct_F77=yes | 
|  | 14815 | hardcode_shlibpath_var_F77=no | 
|  | 14816 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 14817 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14818 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14819 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
|  | 14820 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 14821 | else | 
|  | 14822 | case $host_os in | 
|  | 14823 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 14824 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14825 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 14826 | ;; | 
|  | 14827 | *) | 
|  | 14828 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14829 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
|  | 14830 | ;; | 
|  | 14831 | esac | 
|  | 14832 | fi | 
|  | 14833 | ;; | 
|  | 14834 |  | 
|  | 14835 | os2*) | 
|  | 14836 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14837 | hardcode_minus_L_F77=yes | 
|  | 14838 | allow_undefined_flag_F77=unsupported | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14839 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14840 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 14841 | ;; | 
|  | 14842 |  | 
|  | 14843 | osf3*) | 
|  | 14844 | if test "$GCC" = yes; then | 
|  | 14845 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 14846 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 14847 | else | 
|  | 14848 | allow_undefined_flag_F77=' -expect_unresolved \*' | 
|  | 14849 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|  | 14850 | fi | 
|  | 14851 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 14852 | hardcode_libdir_separator_F77=: | 
|  | 14853 | ;; | 
|  | 14854 |  | 
|  | 14855 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 14856 | if test "$GCC" = yes; then | 
|  | 14857 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 14858 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 14859 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 14860 | else | 
|  | 14861 | allow_undefined_flag_F77=' -expect_unresolved \*' | 
|  | 14862 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14863 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
|  | 14864 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | 
|  | 14865 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14866 | # Both c and cxx compiler support -rpath directly | 
|  | 14867 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
|  | 14868 | fi | 
|  | 14869 | hardcode_libdir_separator_F77=: | 
|  | 14870 | ;; | 
|  | 14871 |  | 
|  | 14872 | sco3.2v5*) | 
|  | 14873 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14874 | hardcode_shlibpath_var_F77=no | 
|  | 14875 | export_dynamic_flag_spec_F77='${wl}-Bexport' | 
|  | 14876 | runpath_var=LD_RUN_PATH | 
|  | 14877 | hardcode_runpath_var=yes | 
|  | 14878 | ;; | 
|  | 14879 |  | 
|  | 14880 | solaris*) | 
|  | 14881 | no_undefined_flag_F77=' -z text' | 
|  | 14882 | if test "$GCC" = yes; then | 
|  | 14883 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14884 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 14885 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14886 | else | 
|  | 14887 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14888 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 14889 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14890 | fi | 
|  | 14891 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 14892 | hardcode_shlibpath_var_F77=no | 
|  | 14893 | case $host_os in | 
|  | 14894 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 14895 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 14896 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
|  | 14897 | esac | 
|  | 14898 | link_all_deplibs_F77=yes | 
|  | 14899 | ;; | 
|  | 14900 |  | 
|  | 14901 | sunos4*) | 
|  | 14902 | if test "x$host_vendor" = xsequent; then | 
|  | 14903 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 14904 | # files that make .init and .fini sections work. | 
|  | 14905 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14906 | else | 
|  | 14907 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14908 | fi | 
|  | 14909 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14910 | hardcode_direct_F77=yes | 
|  | 14911 | hardcode_minus_L_F77=yes | 
|  | 14912 | hardcode_shlibpath_var_F77=no | 
|  | 14913 | ;; | 
|  | 14914 |  | 
|  | 14915 | sysv4) | 
|  | 14916 | case $host_vendor in | 
|  | 14917 | sni) | 
|  | 14918 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14919 | hardcode_direct_F77=yes # is this really true??? | 
|  | 14920 | ;; | 
|  | 14921 | siemens) | 
|  | 14922 | ## LD is ld it makes a PLAMLIB | 
|  | 14923 | ## CC just makes a GrossModule. | 
|  | 14924 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14925 | reload_cmds_F77='$CC -r -o $output$reload_objs' | 
|  | 14926 | hardcode_direct_F77=no | 
|  | 14927 | ;; | 
|  | 14928 | motorola) | 
|  | 14929 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14930 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
|  | 14931 | ;; | 
|  | 14932 | esac | 
|  | 14933 | runpath_var='LD_RUN_PATH' | 
|  | 14934 | hardcode_shlibpath_var_F77=no | 
|  | 14935 | ;; | 
|  | 14936 |  | 
|  | 14937 | sysv4.3*) | 
|  | 14938 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14939 | hardcode_shlibpath_var_F77=no | 
|  | 14940 | export_dynamic_flag_spec_F77='-Bexport' | 
|  | 14941 | ;; | 
|  | 14942 |  | 
|  | 14943 | sysv4*MP*) | 
|  | 14944 | if test -d /usr/nec; then | 
|  | 14945 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14946 | hardcode_shlibpath_var_F77=no | 
|  | 14947 | runpath_var=LD_RUN_PATH | 
|  | 14948 | hardcode_runpath_var=yes | 
|  | 14949 | ld_shlibs_F77=yes | 
|  | 14950 | fi | 
|  | 14951 | ;; | 
|  | 14952 |  | 
|  | 14953 | sysv4.2uw2*) | 
|  | 14954 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14955 | hardcode_direct_F77=yes | 
|  | 14956 | hardcode_minus_L_F77=no | 
|  | 14957 | hardcode_shlibpath_var_F77=no | 
|  | 14958 | hardcode_runpath_var=yes | 
|  | 14959 | runpath_var=LD_RUN_PATH | 
|  | 14960 | ;; | 
|  | 14961 |  | 
|  | 14962 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 14963 | no_undefined_flag_F77='${wl}-z ${wl}text' | 
|  | 14964 | if test "$GCC" = yes; then | 
|  | 14965 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14966 | else | 
|  | 14967 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14968 | fi | 
|  | 14969 | runpath_var='LD_RUN_PATH' | 
|  | 14970 | hardcode_shlibpath_var_F77=no | 
|  | 14971 | ;; | 
|  | 14972 |  | 
|  | 14973 | sysv5*) | 
|  | 14974 | no_undefined_flag_F77=' -z text' | 
|  | 14975 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 14976 | # object files and a static libstdc++, better avoid it by now | 
|  | 14977 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14978 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 14979 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14980 | hardcode_libdir_flag_spec_F77= | 
|  | 14981 | hardcode_shlibpath_var_F77=no | 
|  | 14982 | runpath_var='LD_RUN_PATH' | 
|  | 14983 | ;; | 
|  | 14984 |  | 
|  | 14985 | uts4*) | 
|  | 14986 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14987 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 14988 | hardcode_shlibpath_var_F77=no | 
|  | 14989 | ;; | 
|  | 14990 |  | 
|  | 14991 | *) | 
|  | 14992 | ld_shlibs_F77=no | 
|  | 14993 | ;; | 
|  | 14994 | esac | 
|  | 14995 | fi | 
|  | 14996 |  | 
|  | 14997 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
|  | 14998 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
|  | 14999 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
|  | 15000 |  | 
|  | 15001 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 15002 | if test "$GCC" = yes; then | 
|  | 15003 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 15004 | fi | 
|  | 15005 |  | 
|  | 15006 | # | 
|  | 15007 | # Do we need to explicitly link libc? | 
|  | 15008 | # | 
|  | 15009 | case "x$archive_cmds_need_lc_F77" in | 
|  | 15010 | x|xyes) | 
|  | 15011 | # Assume -lc should be added | 
|  | 15012 | archive_cmds_need_lc_F77=yes | 
|  | 15013 |  | 
|  | 15014 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 15015 | case $archive_cmds_F77 in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15016 | *'~'*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15017 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 15018 | ;; | 
|  | 15019 | '$CC '*) | 
|  | 15020 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 15021 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 15022 | # to ld, don't add -lc before -lgcc. | 
|  | 15023 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 15024 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 15025 | $rm conftest* | 
|  | 15026 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 15027 |  | 
|  | 15028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 15029 | (eval $ac_compile) 2>&5 | 
|  | 15030 | ac_status=$? | 
|  | 15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15032 | (exit $ac_status); } 2>conftest.err; then | 
|  | 15033 | soname=conftest | 
|  | 15034 | lib=conftest | 
|  | 15035 | libobjs=conftest.$ac_objext | 
|  | 15036 | deplibs= | 
|  | 15037 | wl=$lt_prog_compiler_wl_F77 | 
|  | 15038 | compiler_flags=-v | 
|  | 15039 | linker_flags=-v | 
|  | 15040 | verstring= | 
|  | 15041 | output_objdir=. | 
|  | 15042 | libname=conftest | 
|  | 15043 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
|  | 15044 | allow_undefined_flag_F77= | 
|  | 15045 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 15046 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 15047 | ac_status=$? | 
|  | 15048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15049 | (exit $ac_status); } | 
|  | 15050 | then | 
|  | 15051 | archive_cmds_need_lc_F77=no | 
|  | 15052 | else | 
|  | 15053 | archive_cmds_need_lc_F77=yes | 
|  | 15054 | fi | 
|  | 15055 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
|  | 15056 | else | 
|  | 15057 | cat conftest.err 1>&5 | 
|  | 15058 | fi | 
|  | 15059 | $rm conftest* | 
|  | 15060 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
|  | 15061 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
|  | 15062 | ;; | 
|  | 15063 | esac | 
|  | 15064 | fi | 
|  | 15065 | ;; | 
|  | 15066 | esac | 
|  | 15067 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15068 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 15069 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 15070 | library_names_spec= | 
|  | 15071 | libname_spec='lib$name' | 
|  | 15072 | soname_spec= | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15073 | shrext_cmds=".so" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15074 | postinstall_cmds= | 
|  | 15075 | postuninstall_cmds= | 
|  | 15076 | finish_cmds= | 
|  | 15077 | finish_eval= | 
|  | 15078 | shlibpath_var= | 
|  | 15079 | shlibpath_overrides_runpath=unknown | 
|  | 15080 | version_type=none | 
|  | 15081 | dynamic_linker="$host_os ld.so" | 
|  | 15082 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 15083 | if test "$GCC" = yes; then | 
|  | 15084 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 15085 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 15086 | # if the path contains ";" then we assume it to be the separator | 
|  | 15087 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 15088 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 15089 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 15090 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 15091 | else | 
|  | 15092 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 15093 | fi | 
|  | 15094 | else | 
|  | 15095 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 15096 | fi | 
|  | 15097 | need_lib_prefix=unknown | 
|  | 15098 | hardcode_into_libs=no | 
|  | 15099 |  | 
|  | 15100 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 15101 | # flags to be left without arguments | 
|  | 15102 | need_version=unknown | 
|  | 15103 |  | 
|  | 15104 | case $host_os in | 
|  | 15105 | aix3*) | 
|  | 15106 | version_type=linux | 
|  | 15107 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 15108 | shlibpath_var=LIBPATH | 
|  | 15109 |  | 
|  | 15110 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 15111 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15112 | ;; | 
|  | 15113 |  | 
|  | 15114 | aix4* | aix5*) | 
|  | 15115 | version_type=linux | 
|  | 15116 | need_lib_prefix=no | 
|  | 15117 | need_version=no | 
|  | 15118 | hardcode_into_libs=yes | 
|  | 15119 | if test "$host_cpu" = ia64; then | 
|  | 15120 | # AIX 5 supports IA64 | 
|  | 15121 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 15122 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15123 | else | 
|  | 15124 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 15125 | # for dependence libraries.  The import file would start with | 
|  | 15126 | # the line `#! .'.  This would cause the generated library to | 
|  | 15127 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 15128 | # development snapshots of GCC prior to 3.0. | 
|  | 15129 | case $host_os in | 
|  | 15130 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 15131 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 15132 | echo ' yes ' | 
|  | 15133 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 15134 | : | 
|  | 15135 | else | 
|  | 15136 | can_build_shared=no | 
|  | 15137 | fi | 
|  | 15138 | ;; | 
|  | 15139 | esac | 
|  | 15140 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 15141 | # soname into executable. Probably we can add versioning support to | 
|  | 15142 | # collect2, so additional links can be useful in future. | 
|  | 15143 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 15144 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 15145 | # instead of lib<name>.a to let people know that these are not | 
|  | 15146 | # typical AIX shared libraries. | 
|  | 15147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15148 | else | 
|  | 15149 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 15150 | # and later when we are not doing run time linking. | 
|  | 15151 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 15152 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15153 | fi | 
|  | 15154 | shlibpath_var=LIBPATH | 
|  | 15155 | fi | 
|  | 15156 | ;; | 
|  | 15157 |  | 
|  | 15158 | amigaos*) | 
|  | 15159 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 15160 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15161 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15162 | ;; | 
|  | 15163 |  | 
|  | 15164 | beos*) | 
|  | 15165 | library_names_spec='${libname}${shared_ext}' | 
|  | 15166 | dynamic_linker="$host_os ld.so" | 
|  | 15167 | shlibpath_var=LIBRARY_PATH | 
|  | 15168 | ;; | 
|  | 15169 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15170 | bsdi[45]*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15171 | version_type=linux | 
|  | 15172 | need_version=no | 
|  | 15173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15174 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15175 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 15176 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15177 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 15178 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 15179 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 15180 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 15181 | # libtool to hard-code these into programs | 
|  | 15182 | ;; | 
|  | 15183 |  | 
|  | 15184 | cygwin* | mingw* | pw32*) | 
|  | 15185 | version_type=windows | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15186 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15187 | need_version=no | 
|  | 15188 | need_lib_prefix=no | 
|  | 15189 |  | 
|  | 15190 | case $GCC,$host_os in | 
|  | 15191 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 15192 | library_names_spec='$libname.dll.a' | 
|  | 15193 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15194 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 15195 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 15196 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 15197 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15198 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15199 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 15200 | dlpath=$dir/\$dldll~ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15201 | $rm \$dlpath' | 
|  | 15202 | shlibpath_overrides_runpath=yes | 
|  | 15203 |  | 
|  | 15204 | case $host_os in | 
|  | 15205 | cygwin*) | 
|  | 15206 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 15207 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15208 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15209 | ;; | 
|  | 15210 | mingw*) | 
|  | 15211 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 15212 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 15213 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 15214 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 15215 | # It is most probably a Windows format PATH printed by | 
|  | 15216 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 15217 | # path with ; separators, and with drive letters. We can handle the | 
|  | 15218 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 15219 | # especially as we might pass files found there to a mingw objdump, | 
|  | 15220 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 15221 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 15222 | else | 
|  | 15223 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 15224 | fi | 
|  | 15225 | ;; | 
|  | 15226 | pw32*) | 
|  | 15227 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 15228 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 15229 | ;; | 
|  | 15230 | esac | 
|  | 15231 | ;; | 
|  | 15232 |  | 
|  | 15233 | *) | 
|  | 15234 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 15235 | ;; | 
|  | 15236 | esac | 
|  | 15237 | dynamic_linker='Win32 ld.exe' | 
|  | 15238 | # FIXME: first we should search . and the directory the executable is in | 
|  | 15239 | shlibpath_var=PATH | 
|  | 15240 | ;; | 
|  | 15241 |  | 
|  | 15242 | darwin* | rhapsody*) | 
|  | 15243 | dynamic_linker="$host_os dyld" | 
|  | 15244 | version_type=darwin | 
|  | 15245 | need_lib_prefix=no | 
|  | 15246 | need_version=no | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15247 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15248 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 15249 | shlibpath_overrides_runpath=yes | 
|  | 15250 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15251 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15252 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15253 | if test "$GCC" = yes; then | 
|  | 15254 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | 
|  | 15255 | else | 
|  | 15256 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15257 | fi | 
|  | 15258 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 15259 | ;; | 
|  | 15260 |  | 
|  | 15261 | dgux*) | 
|  | 15262 | version_type=linux | 
|  | 15263 | need_lib_prefix=no | 
|  | 15264 | need_version=no | 
|  | 15265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 15266 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15267 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15268 | ;; | 
|  | 15269 |  | 
|  | 15270 | freebsd1*) | 
|  | 15271 | dynamic_linker=no | 
|  | 15272 | ;; | 
|  | 15273 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15274 | kfreebsd*-gnu) | 
|  | 15275 | version_type=linux | 
|  | 15276 | need_lib_prefix=no | 
|  | 15277 | need_version=no | 
|  | 15278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 15279 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15280 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15281 | shlibpath_overrides_runpath=no | 
|  | 15282 | hardcode_into_libs=yes | 
|  | 15283 | dynamic_linker='GNU ld.so' | 
|  | 15284 | ;; | 
|  | 15285 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15286 | freebsd*) | 
|  | 15287 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 15288 | version_type=freebsd-$objformat | 
|  | 15289 | case $version_type in | 
|  | 15290 | freebsd-elf*) | 
|  | 15291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 15292 | need_version=no | 
|  | 15293 | need_lib_prefix=no | 
|  | 15294 | ;; | 
|  | 15295 | freebsd-*) | 
|  | 15296 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 15297 | need_version=yes | 
|  | 15298 | ;; | 
|  | 15299 | esac | 
|  | 15300 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15301 | case $host_os in | 
|  | 15302 | freebsd2*) | 
|  | 15303 | shlibpath_overrides_runpath=yes | 
|  | 15304 | ;; | 
|  | 15305 | freebsd3.01* | freebsdelf3.01*) | 
|  | 15306 | shlibpath_overrides_runpath=yes | 
|  | 15307 | hardcode_into_libs=yes | 
|  | 15308 | ;; | 
|  | 15309 | *) # from 3.2 on | 
|  | 15310 | shlibpath_overrides_runpath=no | 
|  | 15311 | hardcode_into_libs=yes | 
|  | 15312 | ;; | 
|  | 15313 | esac | 
|  | 15314 | ;; | 
|  | 15315 |  | 
|  | 15316 | gnu*) | 
|  | 15317 | version_type=linux | 
|  | 15318 | need_lib_prefix=no | 
|  | 15319 | need_version=no | 
|  | 15320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 15321 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15322 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15323 | hardcode_into_libs=yes | 
|  | 15324 | ;; | 
|  | 15325 |  | 
|  | 15326 | hpux9* | hpux10* | hpux11*) | 
|  | 15327 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 15328 | # link against other versions. | 
|  | 15329 | version_type=sunos | 
|  | 15330 | need_lib_prefix=no | 
|  | 15331 | need_version=no | 
|  | 15332 | case "$host_cpu" in | 
|  | 15333 | ia64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15334 | shrext_cmds='.so' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15335 | hardcode_into_libs=yes | 
|  | 15336 | dynamic_linker="$host_os dld.so" | 
|  | 15337 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15338 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 15339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15340 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15341 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 15342 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 15343 | else | 
|  | 15344 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 15345 | fi | 
|  | 15346 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 15347 | ;; | 
|  | 15348 | hppa*64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15349 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15350 | hardcode_into_libs=yes | 
|  | 15351 | dynamic_linker="$host_os dld.sl" | 
|  | 15352 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 15353 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 15354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15355 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15356 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 15357 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 15358 | ;; | 
|  | 15359 | *) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15360 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15361 | dynamic_linker="$host_os dld.sl" | 
|  | 15362 | shlibpath_var=SHLIB_PATH | 
|  | 15363 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 15364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15365 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15366 | ;; | 
|  | 15367 | esac | 
|  | 15368 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 15369 | postinstall_cmds='chmod 555 $lib' | 
|  | 15370 | ;; | 
|  | 15371 |  | 
|  | 15372 | irix5* | irix6* | nonstopux*) | 
|  | 15373 | case $host_os in | 
|  | 15374 | nonstopux*) version_type=nonstopux ;; | 
|  | 15375 | *) | 
|  | 15376 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 15377 | version_type=linux | 
|  | 15378 | else | 
|  | 15379 | version_type=irix | 
|  | 15380 | fi ;; | 
|  | 15381 | esac | 
|  | 15382 | need_lib_prefix=no | 
|  | 15383 | need_version=no | 
|  | 15384 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 15386 | case $host_os in | 
|  | 15387 | irix5* | nonstopux*) | 
|  | 15388 | libsuff= shlibsuff= | 
|  | 15389 | ;; | 
|  | 15390 | *) | 
|  | 15391 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 15392 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 15393 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 15394 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 15395 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 15396 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 15397 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 15398 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 15399 | esac | 
|  | 15400 | ;; | 
|  | 15401 | esac | 
|  | 15402 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 15403 | shlibpath_overrides_runpath=no | 
|  | 15404 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 15405 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 15406 | hardcode_into_libs=yes | 
|  | 15407 | ;; | 
|  | 15408 |  | 
|  | 15409 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 15410 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 15411 | dynamic_linker=no | 
|  | 15412 | ;; | 
|  | 15413 |  | 
|  | 15414 | # This must be Linux ELF. | 
|  | 15415 | linux*) | 
|  | 15416 | version_type=linux | 
|  | 15417 | need_lib_prefix=no | 
|  | 15418 | need_version=no | 
|  | 15419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15420 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15421 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 15422 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15423 | shlibpath_overrides_runpath=no | 
|  | 15424 | # This implies no fast_install, which is unacceptable. | 
|  | 15425 | # Some rework will be needed to allow for fast_install | 
|  | 15426 | # before this can be enabled. | 
|  | 15427 | hardcode_into_libs=yes | 
|  | 15428 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15429 | # Append ld.so.conf contents to the search path | 
|  | 15430 | if test -f /etc/ld.so.conf; then | 
|  | 15431 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 15432 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 15433 | fi | 
|  | 15434 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15435 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 15436 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 15437 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 15438 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 15439 | # people can always --disable-shared, the test was removed, and we | 
|  | 15440 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 15441 | dynamic_linker='GNU/Linux ld.so' | 
|  | 15442 | ;; | 
|  | 15443 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15444 | knetbsd*-gnu) | 
|  | 15445 | version_type=linux | 
|  | 15446 | need_lib_prefix=no | 
|  | 15447 | need_version=no | 
|  | 15448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 15449 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15450 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15451 | shlibpath_overrides_runpath=no | 
|  | 15452 | hardcode_into_libs=yes | 
|  | 15453 | dynamic_linker='GNU ld.so' | 
|  | 15454 | ;; | 
|  | 15455 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15456 | netbsd*) | 
|  | 15457 | version_type=sunos | 
|  | 15458 | need_lib_prefix=no | 
|  | 15459 | need_version=no | 
|  | 15460 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 15461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 15462 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 15463 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 15464 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15466 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15467 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 15468 | fi | 
|  | 15469 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15470 | shlibpath_overrides_runpath=yes | 
|  | 15471 | hardcode_into_libs=yes | 
|  | 15472 | ;; | 
|  | 15473 |  | 
|  | 15474 | newsos6) | 
|  | 15475 | version_type=linux | 
|  | 15476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15477 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15478 | shlibpath_overrides_runpath=yes | 
|  | 15479 | ;; | 
|  | 15480 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15481 | nto-qnx*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15482 | version_type=linux | 
|  | 15483 | need_lib_prefix=no | 
|  | 15484 | need_version=no | 
|  | 15485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15486 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15487 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15488 | shlibpath_overrides_runpath=yes | 
|  | 15489 | ;; | 
|  | 15490 |  | 
|  | 15491 | openbsd*) | 
|  | 15492 | version_type=sunos | 
|  | 15493 | need_lib_prefix=no | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15494 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 15496 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 15497 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15498 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 15499 | case $host_os in | 
|  | 15500 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 15501 | shlibpath_overrides_runpath=no | 
|  | 15502 | ;; | 
|  | 15503 | *) | 
|  | 15504 | shlibpath_overrides_runpath=yes | 
|  | 15505 | ;; | 
|  | 15506 | esac | 
|  | 15507 | else | 
|  | 15508 | shlibpath_overrides_runpath=yes | 
|  | 15509 | fi | 
|  | 15510 | ;; | 
|  | 15511 |  | 
|  | 15512 | os2*) | 
|  | 15513 | libname_spec='$name' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15514 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15515 | need_lib_prefix=no | 
|  | 15516 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 15517 | dynamic_linker='OS/2 ld.exe' | 
|  | 15518 | shlibpath_var=LIBPATH | 
|  | 15519 | ;; | 
|  | 15520 |  | 
|  | 15521 | osf3* | osf4* | osf5*) | 
|  | 15522 | version_type=osf | 
|  | 15523 | need_lib_prefix=no | 
|  | 15524 | need_version=no | 
|  | 15525 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15527 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15528 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 15529 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 15530 | ;; | 
|  | 15531 |  | 
|  | 15532 | sco3.2v5*) | 
|  | 15533 | version_type=osf | 
|  | 15534 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15536 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15537 | ;; | 
|  | 15538 |  | 
|  | 15539 | solaris*) | 
|  | 15540 | version_type=linux | 
|  | 15541 | need_lib_prefix=no | 
|  | 15542 | need_version=no | 
|  | 15543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15544 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15545 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15546 | shlibpath_overrides_runpath=yes | 
|  | 15547 | hardcode_into_libs=yes | 
|  | 15548 | # ldd complains unless libraries are executable | 
|  | 15549 | postinstall_cmds='chmod +x $lib' | 
|  | 15550 | ;; | 
|  | 15551 |  | 
|  | 15552 | sunos4*) | 
|  | 15553 | version_type=sunos | 
|  | 15554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 15555 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 15556 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15557 | shlibpath_overrides_runpath=yes | 
|  | 15558 | if test "$with_gnu_ld" = yes; then | 
|  | 15559 | need_lib_prefix=no | 
|  | 15560 | fi | 
|  | 15561 | need_version=yes | 
|  | 15562 | ;; | 
|  | 15563 |  | 
|  | 15564 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 15565 | version_type=linux | 
|  | 15566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15567 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15568 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15569 | case $host_vendor in | 
|  | 15570 | sni) | 
|  | 15571 | shlibpath_overrides_runpath=no | 
|  | 15572 | need_lib_prefix=no | 
|  | 15573 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 15574 | runpath_var=LD_RUN_PATH | 
|  | 15575 | ;; | 
|  | 15576 | siemens) | 
|  | 15577 | need_lib_prefix=no | 
|  | 15578 | ;; | 
|  | 15579 | motorola) | 
|  | 15580 | need_lib_prefix=no | 
|  | 15581 | need_version=no | 
|  | 15582 | shlibpath_overrides_runpath=no | 
|  | 15583 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 15584 | ;; | 
|  | 15585 | esac | 
|  | 15586 | ;; | 
|  | 15587 |  | 
|  | 15588 | sysv4*MP*) | 
|  | 15589 | if test -d /usr/nec ;then | 
|  | 15590 | version_type=linux | 
|  | 15591 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 15592 | soname_spec='$libname${shared_ext}.$major' | 
|  | 15593 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15594 | fi | 
|  | 15595 | ;; | 
|  | 15596 |  | 
|  | 15597 | uts4*) | 
|  | 15598 | version_type=linux | 
|  | 15599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15600 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15601 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15602 | ;; | 
|  | 15603 |  | 
|  | 15604 | *) | 
|  | 15605 | dynamic_linker=no | 
|  | 15606 | ;; | 
|  | 15607 | esac | 
|  | 15608 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 15609 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 15610 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 15611 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15612 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 15613 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 15614 | hardcode_action_F77= | 
|  | 15615 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
|  | 15616 | test -n "$runpath_var_F77" || \ | 
|  | 15617 | test "X$hardcode_automatic_F77" = "Xyes" ; then | 
|  | 15618 |  | 
|  | 15619 | # We can hardcode non-existant directories. | 
|  | 15620 | if test "$hardcode_direct_F77" != no && | 
|  | 15621 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 15622 | # have to relink, otherwise we might link with an installed library | 
|  | 15623 | # when we should be linking with a yet-to-be-installed one | 
|  | 15624 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
|  | 15625 | test "$hardcode_minus_L_F77" != no; then | 
|  | 15626 | # Linking always hardcodes the temporary library directory. | 
|  | 15627 | hardcode_action_F77=relink | 
|  | 15628 | else | 
|  | 15629 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 15630 | hardcode_action_F77=immediate | 
|  | 15631 | fi | 
|  | 15632 | else | 
|  | 15633 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 15634 | # directories. | 
|  | 15635 | hardcode_action_F77=unsupported | 
|  | 15636 | fi | 
|  | 15637 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
|  | 15638 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
|  | 15639 |  | 
|  | 15640 | if test "$hardcode_action_F77" = relink; then | 
|  | 15641 | # Fast installation is not supported | 
|  | 15642 | enable_fast_install=no | 
|  | 15643 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 15644 | test "$enable_shared" = no; then | 
|  | 15645 | # Fast installation is not necessary | 
|  | 15646 | enable_fast_install=needless | 
|  | 15647 | fi | 
|  | 15648 |  | 
|  | 15649 | striplib= | 
|  | 15650 | old_striplib= | 
|  | 15651 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 15652 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 15653 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 15654 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 15655 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 15656 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 15657 | echo "${ECHO_T}yes" >&6 | 
|  | 15658 | else | 
|  | 15659 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 15660 | case $host_os in | 
|  | 15661 | darwin*) | 
|  | 15662 | if test -n "$STRIP" ; then | 
|  | 15663 | striplib="$STRIP -x" | 
|  | 15664 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 15665 | echo "${ECHO_T}yes" >&6 | 
|  | 15666 | else | 
|  | 15667 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 15668 | echo "${ECHO_T}no" >&6 | 
|  | 15669 | fi | 
|  | 15670 | ;; | 
|  | 15671 | *) | 
|  | 15672 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 15673 | echo "${ECHO_T}no" >&6 | 
|  | 15674 | ;; | 
|  | 15675 | esac | 
|  | 15676 | fi | 
|  | 15677 |  | 
|  | 15678 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15679 |  | 
|  | 15680 | # The else clause should only fire when bootstrapping the | 
|  | 15681 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 15682 | # with your package, and you will get complaints that there are | 
|  | 15683 | # no rules to generate ltmain.sh. | 
|  | 15684 | if test -f "$ltmain"; then | 
|  | 15685 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 15686 | # without removal of \ escapes. | 
|  | 15687 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 15688 | setopt NO_GLOB_SUBST | 
|  | 15689 | fi | 
|  | 15690 | # Now quote all the things that may contain metacharacters while being | 
|  | 15691 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 15692 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15693 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 15694 | SED SHELL STRIP \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15695 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 15696 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 15697 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 15698 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 15699 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 15700 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 15701 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 15702 | compiler_F77 \ | 
|  | 15703 | CC_F77 \ | 
|  | 15704 | LD_F77 \ | 
|  | 15705 | lt_prog_compiler_wl_F77 \ | 
|  | 15706 | lt_prog_compiler_pic_F77 \ | 
|  | 15707 | lt_prog_compiler_static_F77 \ | 
|  | 15708 | lt_prog_compiler_no_builtin_flag_F77 \ | 
|  | 15709 | export_dynamic_flag_spec_F77 \ | 
|  | 15710 | thread_safe_flag_spec_F77 \ | 
|  | 15711 | whole_archive_flag_spec_F77 \ | 
|  | 15712 | enable_shared_with_static_runtimes_F77 \ | 
|  | 15713 | old_archive_cmds_F77 \ | 
|  | 15714 | old_archive_from_new_cmds_F77 \ | 
|  | 15715 | predep_objects_F77 \ | 
|  | 15716 | postdep_objects_F77 \ | 
|  | 15717 | predeps_F77 \ | 
|  | 15718 | postdeps_F77 \ | 
|  | 15719 | compiler_lib_search_path_F77 \ | 
|  | 15720 | archive_cmds_F77 \ | 
|  | 15721 | archive_expsym_cmds_F77 \ | 
|  | 15722 | postinstall_cmds_F77 \ | 
|  | 15723 | postuninstall_cmds_F77 \ | 
|  | 15724 | old_archive_from_expsyms_cmds_F77 \ | 
|  | 15725 | allow_undefined_flag_F77 \ | 
|  | 15726 | no_undefined_flag_F77 \ | 
|  | 15727 | export_symbols_cmds_F77 \ | 
|  | 15728 | hardcode_libdir_flag_spec_F77 \ | 
|  | 15729 | hardcode_libdir_flag_spec_ld_F77 \ | 
|  | 15730 | hardcode_libdir_separator_F77 \ | 
|  | 15731 | hardcode_automatic_F77 \ | 
|  | 15732 | module_cmds_F77 \ | 
|  | 15733 | module_expsym_cmds_F77 \ | 
|  | 15734 | lt_cv_prog_compiler_c_o_F77 \ | 
|  | 15735 | exclude_expsyms_F77 \ | 
|  | 15736 | include_expsyms_F77; do | 
|  | 15737 |  | 
|  | 15738 | case $var in | 
|  | 15739 | old_archive_cmds_F77 | \ | 
|  | 15740 | old_archive_from_new_cmds_F77 | \ | 
|  | 15741 | archive_cmds_F77 | \ | 
|  | 15742 | archive_expsym_cmds_F77 | \ | 
|  | 15743 | module_cmds_F77 | \ | 
|  | 15744 | module_expsym_cmds_F77 | \ | 
|  | 15745 | old_archive_from_expsyms_cmds_F77 | \ | 
|  | 15746 | export_symbols_cmds_F77 | \ | 
|  | 15747 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 15748 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 15749 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 15750 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 15751 | # Double-quote double-evaled strings. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15752 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15753 | ;; | 
|  | 15754 | *) | 
|  | 15755 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 15756 | ;; | 
|  | 15757 | esac | 
|  | 15758 | done | 
|  | 15759 |  | 
|  | 15760 | case $lt_echo in | 
|  | 15761 | *'\$0 --fallback-echo"') | 
|  | 15762 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 15763 | ;; | 
|  | 15764 | esac | 
|  | 15765 |  | 
|  | 15766 | cfgfile="$ofile" | 
|  | 15767 |  | 
|  | 15768 | cat <<__EOF__ >> "$cfgfile" | 
|  | 15769 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 15770 |  | 
|  | 15771 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 15772 |  | 
|  | 15773 | # Shell to use when invoking shell scripts. | 
|  | 15774 | SHELL=$lt_SHELL | 
|  | 15775 |  | 
|  | 15776 | # Whether or not to build shared libraries. | 
|  | 15777 | build_libtool_libs=$enable_shared | 
|  | 15778 |  | 
|  | 15779 | # Whether or not to build static libraries. | 
|  | 15780 | build_old_libs=$enable_static | 
|  | 15781 |  | 
|  | 15782 | # Whether or not to add -lc for building shared libraries. | 
|  | 15783 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
|  | 15784 |  | 
|  | 15785 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 15786 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
|  | 15787 |  | 
|  | 15788 | # Whether or not to optimize for fast installation. | 
|  | 15789 | fast_install=$enable_fast_install | 
|  | 15790 |  | 
|  | 15791 | # The host system. | 
|  | 15792 | host_alias=$host_alias | 
|  | 15793 | host=$host | 
|  | 15794 |  | 
|  | 15795 | # An echo program that does not interpret backslashes. | 
|  | 15796 | echo=$lt_echo | 
|  | 15797 |  | 
|  | 15798 | # The archiver. | 
|  | 15799 | AR=$lt_AR | 
|  | 15800 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 15801 |  | 
|  | 15802 | # A C compiler. | 
|  | 15803 | LTCC=$lt_LTCC | 
|  | 15804 |  | 
|  | 15805 | # A language-specific compiler. | 
|  | 15806 | CC=$lt_compiler_F77 | 
|  | 15807 |  | 
|  | 15808 | # Is the compiler the GNU C compiler? | 
|  | 15809 | with_gcc=$GCC_F77 | 
|  | 15810 |  | 
|  | 15811 | # An ERE matcher. | 
|  | 15812 | EGREP=$lt_EGREP | 
|  | 15813 |  | 
|  | 15814 | # The linker used to build libraries. | 
|  | 15815 | LD=$lt_LD_F77 | 
|  | 15816 |  | 
|  | 15817 | # Whether we need hard or soft links. | 
|  | 15818 | LN_S=$lt_LN_S | 
|  | 15819 |  | 
|  | 15820 | # A BSD-compatible nm program. | 
|  | 15821 | NM=$lt_NM | 
|  | 15822 |  | 
|  | 15823 | # A symbol stripping program | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15824 | STRIP=$lt_STRIP | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15825 |  | 
|  | 15826 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 15827 | MAGIC_CMD=$MAGIC_CMD | 
|  | 15828 |  | 
|  | 15829 | # Used on cygwin: DLL creation program. | 
|  | 15830 | DLLTOOL="$DLLTOOL" | 
|  | 15831 |  | 
|  | 15832 | # Used on cygwin: object dumper. | 
|  | 15833 | OBJDUMP="$OBJDUMP" | 
|  | 15834 |  | 
|  | 15835 | # Used on cygwin: assembler. | 
|  | 15836 | AS="$AS" | 
|  | 15837 |  | 
|  | 15838 | # The name of the directory that contains temporary libtool files. | 
|  | 15839 | objdir=$objdir | 
|  | 15840 |  | 
|  | 15841 | # How to create reloadable object files. | 
|  | 15842 | reload_flag=$lt_reload_flag | 
|  | 15843 | reload_cmds=$lt_reload_cmds | 
|  | 15844 |  | 
|  | 15845 | # How to pass a linker flag through the compiler. | 
|  | 15846 | wl=$lt_lt_prog_compiler_wl_F77 | 
|  | 15847 |  | 
|  | 15848 | # Object file suffix (normally "o"). | 
|  | 15849 | objext="$ac_objext" | 
|  | 15850 |  | 
|  | 15851 | # Old archive suffix (normally "a"). | 
|  | 15852 | libext="$libext" | 
|  | 15853 |  | 
|  | 15854 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15855 | shrext_cmds='$shrext_cmds' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15856 |  | 
|  | 15857 | # Executable file suffix (normally ""). | 
|  | 15858 | exeext="$exeext" | 
|  | 15859 |  | 
|  | 15860 | # Additional compiler flags for building library objects. | 
|  | 15861 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
|  | 15862 | pic_mode=$pic_mode | 
|  | 15863 |  | 
|  | 15864 | # What is the maximum length of a command? | 
|  | 15865 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 15866 |  | 
|  | 15867 | # Does compiler simultaneously support -c and -o options? | 
|  | 15868 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
|  | 15869 |  | 
|  | 15870 | # Must we lock files when doing compilation ? | 
|  | 15871 | need_locks=$lt_need_locks | 
|  | 15872 |  | 
|  | 15873 | # Do we need the lib prefix for modules? | 
|  | 15874 | need_lib_prefix=$need_lib_prefix | 
|  | 15875 |  | 
|  | 15876 | # Do we need a version for libraries? | 
|  | 15877 | need_version=$need_version | 
|  | 15878 |  | 
|  | 15879 | # Whether dlopen is supported. | 
|  | 15880 | dlopen_support=$enable_dlopen | 
|  | 15881 |  | 
|  | 15882 | # Whether dlopen of programs is supported. | 
|  | 15883 | dlopen_self=$enable_dlopen_self | 
|  | 15884 |  | 
|  | 15885 | # Whether dlopen of statically linked programs is supported. | 
|  | 15886 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 15887 |  | 
|  | 15888 | # Compiler flag to prevent dynamic linking. | 
|  | 15889 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
|  | 15890 |  | 
|  | 15891 | # Compiler flag to turn off builtin functions. | 
|  | 15892 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
|  | 15893 |  | 
|  | 15894 | # Compiler flag to allow reflexive dlopens. | 
|  | 15895 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
|  | 15896 |  | 
|  | 15897 | # Compiler flag to generate shared objects directly from archives. | 
|  | 15898 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
|  | 15899 |  | 
|  | 15900 | # Compiler flag to generate thread-safe objects. | 
|  | 15901 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
|  | 15902 |  | 
|  | 15903 | # Library versioning type. | 
|  | 15904 | version_type=$version_type | 
|  | 15905 |  | 
|  | 15906 | # Format of library name prefix. | 
|  | 15907 | libname_spec=$lt_libname_spec | 
|  | 15908 |  | 
|  | 15909 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 15910 | # The last name is the one that the linker finds with -lNAME. | 
|  | 15911 | library_names_spec=$lt_library_names_spec | 
|  | 15912 |  | 
|  | 15913 | # The coded name of the library, if different from the real name. | 
|  | 15914 | soname_spec=$lt_soname_spec | 
|  | 15915 |  | 
|  | 15916 | # Commands used to build and install an old-style archive. | 
|  | 15917 | RANLIB=$lt_RANLIB | 
|  | 15918 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
|  | 15919 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 15920 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 15921 |  | 
|  | 15922 | # Create an old-style archive from a shared archive. | 
|  | 15923 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
|  | 15924 |  | 
|  | 15925 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 15926 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
|  | 15927 |  | 
|  | 15928 | # Commands used to build and install a shared archive. | 
|  | 15929 | archive_cmds=$lt_archive_cmds_F77 | 
|  | 15930 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
|  | 15931 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 15932 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 15933 |  | 
|  | 15934 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 15935 | module_cmds=$lt_module_cmds_F77 | 
|  | 15936 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
|  | 15937 |  | 
|  | 15938 | # Commands to strip libraries. | 
|  | 15939 | old_striplib=$lt_old_striplib | 
|  | 15940 | striplib=$lt_striplib | 
|  | 15941 |  | 
|  | 15942 | # Dependencies to place before the objects being linked to create a | 
|  | 15943 | # shared library. | 
|  | 15944 | predep_objects=$lt_predep_objects_F77 | 
|  | 15945 |  | 
|  | 15946 | # Dependencies to place after the objects being linked to create a | 
|  | 15947 | # shared library. | 
|  | 15948 | postdep_objects=$lt_postdep_objects_F77 | 
|  | 15949 |  | 
|  | 15950 | # Dependencies to place before the objects being linked to create a | 
|  | 15951 | # shared library. | 
|  | 15952 | predeps=$lt_predeps_F77 | 
|  | 15953 |  | 
|  | 15954 | # Dependencies to place after the objects being linked to create a | 
|  | 15955 | # shared library. | 
|  | 15956 | postdeps=$lt_postdeps_F77 | 
|  | 15957 |  | 
|  | 15958 | # The library search path used internally by the compiler when linking | 
|  | 15959 | # a shared library. | 
|  | 15960 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
|  | 15961 |  | 
|  | 15962 | # Method to check whether dependent libraries are shared objects. | 
|  | 15963 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 15964 |  | 
|  | 15965 | # Command to use when deplibs_check_method == file_magic. | 
|  | 15966 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 15967 |  | 
|  | 15968 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 15969 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
|  | 15970 |  | 
|  | 15971 | # Flag that forces no undefined symbols. | 
|  | 15972 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
|  | 15973 |  | 
|  | 15974 | # Commands used to finish a libtool library installation in a directory. | 
|  | 15975 | finish_cmds=$lt_finish_cmds | 
|  | 15976 |  | 
|  | 15977 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 15978 | finish_eval=$lt_finish_eval | 
|  | 15979 |  | 
|  | 15980 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 15981 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 15982 |  | 
|  | 15983 | # Transform the output of nm in a proper C declaration | 
|  | 15984 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 15985 |  | 
|  | 15986 | # Transform the output of nm in a C name address pair | 
|  | 15987 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 15988 |  | 
|  | 15989 | # This is the shared library runtime path variable. | 
|  | 15990 | runpath_var=$runpath_var | 
|  | 15991 |  | 
|  | 15992 | # This is the shared library path variable. | 
|  | 15993 | shlibpath_var=$shlibpath_var | 
|  | 15994 |  | 
|  | 15995 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 15996 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 15997 |  | 
|  | 15998 | # How to hardcode a shared library path into an executable. | 
|  | 15999 | hardcode_action=$hardcode_action_F77 | 
|  | 16000 |  | 
|  | 16001 | # Whether we should hardcode library paths into libraries. | 
|  | 16002 | hardcode_into_libs=$hardcode_into_libs | 
|  | 16003 |  | 
|  | 16004 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 16005 | # This must work even if \$libdir does not exist. | 
|  | 16006 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
|  | 16007 |  | 
|  | 16008 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 16009 | # a binary during linking. This must work even if \$libdir does | 
|  | 16010 | # not exist. | 
|  | 16011 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
|  | 16012 |  | 
|  | 16013 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 16014 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
|  | 16015 |  | 
|  | 16016 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 16017 | # resulting binary. | 
|  | 16018 | hardcode_direct=$hardcode_direct_F77 | 
|  | 16019 |  | 
|  | 16020 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 16021 | # resulting binary. | 
|  | 16022 | hardcode_minus_L=$hardcode_minus_L_F77 | 
|  | 16023 |  | 
|  | 16024 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 16025 | # the resulting binary. | 
|  | 16026 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
|  | 16027 |  | 
|  | 16028 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 16029 | # and all subsequent libraries and executables linked against it. | 
|  | 16030 | hardcode_automatic=$hardcode_automatic_F77 | 
|  | 16031 |  | 
|  | 16032 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 16033 | # restored at relink time. | 
|  | 16034 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 16035 |  | 
|  | 16036 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 16037 | link_all_deplibs=$link_all_deplibs_F77 | 
|  | 16038 |  | 
|  | 16039 | # Compile-time system search path for libraries | 
|  | 16040 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 16041 |  | 
|  | 16042 | # Run-time system search path for libraries | 
|  | 16043 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 16044 |  | 
|  | 16045 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 16046 | fix_srcfile_path="$fix_srcfile_path_F77" | 
|  | 16047 |  | 
|  | 16048 | # Set to yes if exported symbols are required. | 
|  | 16049 | always_export_symbols=$always_export_symbols_F77 | 
|  | 16050 |  | 
|  | 16051 | # The commands to list exported symbols. | 
|  | 16052 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
|  | 16053 |  | 
|  | 16054 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 16055 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 16056 |  | 
|  | 16057 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 16058 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
|  | 16059 |  | 
|  | 16060 | # Symbols that must always be exported. | 
|  | 16061 | include_expsyms=$lt_include_expsyms_F77 | 
|  | 16062 |  | 
|  | 16063 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 16064 |  | 
|  | 16065 | __EOF__ | 
|  | 16066 |  | 
|  | 16067 |  | 
|  | 16068 | else | 
|  | 16069 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 16070 | # `config.status --recheck' to rerun these tests and create the | 
|  | 16071 | # libtool script then. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16072 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 16073 | if test -f "$ltmain_in"; then | 
|  | 16074 | test -f Makefile && make "$ltmain" | 
|  | 16075 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16076 | fi | 
|  | 16077 |  | 
|  | 16078 |  | 
|  | 16079 | ac_ext=c | 
|  | 16080 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 16081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 16084 |  | 
|  | 16085 | CC="$lt_save_CC" | 
|  | 16086 |  | 
|  | 16087 | else | 
|  | 16088 | tagname="" | 
|  | 16089 | fi | 
|  | 16090 | ;; | 
|  | 16091 |  | 
|  | 16092 | GCJ) | 
|  | 16093 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16094 | ac_ext=c | 
|  | 16095 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 16096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16099 |  | 
|  | 16100 |  | 
|  | 16101 | # Source file extension for Java test sources. | 
|  | 16102 | ac_ext=java | 
|  | 16103 |  | 
|  | 16104 | # Object file extension for compiled Java test sources. | 
|  | 16105 | objext=o | 
|  | 16106 | objext_GCJ=$objext | 
|  | 16107 |  | 
|  | 16108 | # Code to be used in simple compile tests | 
|  | 16109 | lt_simple_compile_test_code="class foo {}\n" | 
|  | 16110 |  | 
|  | 16111 | # Code to be used in simple link tests | 
|  | 16112 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
|  | 16113 |  | 
|  | 16114 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 16115 |  | 
|  | 16116 | # If no C compiler was specified, use CC. | 
|  | 16117 | LTCC=${LTCC-"$CC"} | 
|  | 16118 |  | 
|  | 16119 | # Allow CC to be a program name with arguments. | 
|  | 16120 | compiler=$CC | 
|  | 16121 |  | 
|  | 16122 |  | 
|  | 16123 | # Allow CC to be a program name with arguments. | 
|  | 16124 | lt_save_CC="$CC" | 
|  | 16125 | CC=${GCJ-"gcj"} | 
|  | 16126 | compiler=$CC | 
|  | 16127 | compiler_GCJ=$CC | 
|  | 16128 |  | 
|  | 16129 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
|  | 16130 | archive_cmds_need_lc_GCJ=no | 
|  | 16131 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16132 |  | 
|  | 16133 | lt_prog_compiler_no_builtin_flag_GCJ= | 
|  | 16134 |  | 
|  | 16135 | if test "$GCC" = yes; then | 
|  | 16136 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
|  | 16137 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16138 |  | 
|  | 16139 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16140 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
|  | 16141 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
|  | 16142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16143 | else | 
|  | 16144 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 16145 | ac_outfile=conftest.$ac_objext | 
|  | 16146 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 16147 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 16148 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 16149 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 16150 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 16151 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 16152 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 16153 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 16154 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 16155 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 16156 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16157 | (eval echo "\"\$as_me:16157: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16158 | (eval "$lt_compile" 2>conftest.err) | 
|  | 16159 | ac_status=$? | 
|  | 16160 | cat conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16161 | echo "$as_me:16161: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16162 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 16163 | # The compiler can only warn and ignore the option if not recognized | 
|  | 16164 | # So say no if there are warnings | 
|  | 16165 | if test ! -s conftest.err; then | 
|  | 16166 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 16167 | fi | 
|  | 16168 | fi | 
|  | 16169 | $rm conftest* | 
|  | 16170 |  | 
|  | 16171 | fi | 
|  | 16172 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
|  | 16173 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
|  | 16174 |  | 
|  | 16175 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 16176 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
|  | 16177 | else | 
|  | 16178 | : | 
|  | 16179 | fi | 
|  | 16180 |  | 
|  | 16181 | fi | 
|  | 16182 |  | 
|  | 16183 | lt_prog_compiler_wl_GCJ= | 
|  | 16184 | lt_prog_compiler_pic_GCJ= | 
|  | 16185 | lt_prog_compiler_static_GCJ= | 
|  | 16186 |  | 
|  | 16187 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 16188 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 16189 |  | 
|  | 16190 | if test "$GCC" = yes; then | 
|  | 16191 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16192 | lt_prog_compiler_static_GCJ='-static' | 
|  | 16193 |  | 
|  | 16194 | case $host_os in | 
|  | 16195 | aix*) | 
|  | 16196 | # All AIX code is PIC. | 
|  | 16197 | if test "$host_cpu" = ia64; then | 
|  | 16198 | # AIX 5 now supports IA64 processor | 
|  | 16199 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16200 | fi | 
|  | 16201 | ;; | 
|  | 16202 |  | 
|  | 16203 | amigaos*) | 
|  | 16204 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 16205 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 16206 | # like `-m68040'. | 
|  | 16207 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
|  | 16208 | ;; | 
|  | 16209 |  | 
|  | 16210 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 16211 | # PIC is the default for these OSes. | 
|  | 16212 | ;; | 
|  | 16213 |  | 
|  | 16214 | mingw* | pw32* | os2*) | 
|  | 16215 | # This hack is so that the source file can tell whether it is being | 
|  | 16216 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 16217 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
|  | 16218 | ;; | 
|  | 16219 |  | 
|  | 16220 | darwin* | rhapsody*) | 
|  | 16221 | # PIC is the default on this platform | 
|  | 16222 | # Common symbols not allowed in MH_DYLIB files | 
|  | 16223 | lt_prog_compiler_pic_GCJ='-fno-common' | 
|  | 16224 | ;; | 
|  | 16225 |  | 
|  | 16226 | msdosdjgpp*) | 
|  | 16227 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 16228 | # on systems that don't support them. | 
|  | 16229 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 16230 | enable_shared=no | 
|  | 16231 | ;; | 
|  | 16232 |  | 
|  | 16233 | sysv4*MP*) | 
|  | 16234 | if test -d /usr/nec; then | 
|  | 16235 | lt_prog_compiler_pic_GCJ=-Kconform_pic | 
|  | 16236 | fi | 
|  | 16237 | ;; | 
|  | 16238 |  | 
|  | 16239 | hpux*) | 
|  | 16240 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 16241 | # not for PA HP-UX. | 
|  | 16242 | case "$host_cpu" in | 
|  | 16243 | hppa*64*|ia64*) | 
|  | 16244 | # +Z the default | 
|  | 16245 | ;; | 
|  | 16246 | *) | 
|  | 16247 | lt_prog_compiler_pic_GCJ='-fPIC' | 
|  | 16248 | ;; | 
|  | 16249 | esac | 
|  | 16250 | ;; | 
|  | 16251 |  | 
|  | 16252 | *) | 
|  | 16253 | lt_prog_compiler_pic_GCJ='-fPIC' | 
|  | 16254 | ;; | 
|  | 16255 | esac | 
|  | 16256 | else | 
|  | 16257 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 16258 | case $host_os in | 
|  | 16259 | aix*) | 
|  | 16260 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16261 | if test "$host_cpu" = ia64; then | 
|  | 16262 | # AIX 5 now supports IA64 processor | 
|  | 16263 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16264 | else | 
|  | 16265 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
|  | 16266 | fi | 
|  | 16267 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16268 | darwin*) | 
|  | 16269 | # PIC is the default on this platform | 
|  | 16270 | # Common symbols not allowed in MH_DYLIB files | 
|  | 16271 | case "$cc_basename" in | 
|  | 16272 | xlc*) | 
|  | 16273 | lt_prog_compiler_pic_GCJ='-qnocommon' | 
|  | 16274 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16275 | ;; | 
|  | 16276 | esac | 
|  | 16277 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16278 |  | 
|  | 16279 | mingw* | pw32* | os2*) | 
|  | 16280 | # This hack is so that the source file can tell whether it is being | 
|  | 16281 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 16282 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
|  | 16283 | ;; | 
|  | 16284 |  | 
|  | 16285 | hpux9* | hpux10* | hpux11*) | 
|  | 16286 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16287 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 16288 | # not for PA HP-UX. | 
|  | 16289 | case "$host_cpu" in | 
|  | 16290 | hppa*64*|ia64*) | 
|  | 16291 | # +Z the default | 
|  | 16292 | ;; | 
|  | 16293 | *) | 
|  | 16294 | lt_prog_compiler_pic_GCJ='+Z' | 
|  | 16295 | ;; | 
|  | 16296 | esac | 
|  | 16297 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 16298 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
|  | 16299 | ;; | 
|  | 16300 |  | 
|  | 16301 | irix5* | irix6* | nonstopux*) | 
|  | 16302 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16303 | # PIC (with -KPIC) is the default. | 
|  | 16304 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 16305 | ;; | 
|  | 16306 |  | 
|  | 16307 | newsos6) | 
|  | 16308 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 16309 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16310 | ;; | 
|  | 16311 |  | 
|  | 16312 | linux*) | 
|  | 16313 | case $CC in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16314 | icc* | ecc*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16315 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16316 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 16317 | lt_prog_compiler_static_GCJ='-static' | 
|  | 16318 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16319 | ccc*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16320 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16321 | # All Alpha code is PIC. | 
|  | 16322 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 16323 | ;; | 
|  | 16324 | esac | 
|  | 16325 | ;; | 
|  | 16326 |  | 
|  | 16327 | osf3* | osf4* | osf5*) | 
|  | 16328 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16329 | # All OSF/1 code is PIC. | 
|  | 16330 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 16331 | ;; | 
|  | 16332 |  | 
|  | 16333 | sco3.2v5*) | 
|  | 16334 | lt_prog_compiler_pic_GCJ='-Kpic' | 
|  | 16335 | lt_prog_compiler_static_GCJ='-dn' | 
|  | 16336 | ;; | 
|  | 16337 |  | 
|  | 16338 | solaris*) | 
|  | 16339 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16340 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 16341 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16342 | ;; | 
|  | 16343 |  | 
|  | 16344 | sunos4*) | 
|  | 16345 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
|  | 16346 | lt_prog_compiler_pic_GCJ='-PIC' | 
|  | 16347 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16348 | ;; | 
|  | 16349 |  | 
|  | 16350 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 16351 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 16352 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 16353 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16354 | ;; | 
|  | 16355 |  | 
|  | 16356 | sysv4*MP*) | 
|  | 16357 | if test -d /usr/nec ;then | 
|  | 16358 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
|  | 16359 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16360 | fi | 
|  | 16361 | ;; | 
|  | 16362 |  | 
|  | 16363 | uts4*) | 
|  | 16364 | lt_prog_compiler_pic_GCJ='-pic' | 
|  | 16365 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 16366 | ;; | 
|  | 16367 |  | 
|  | 16368 | *) | 
|  | 16369 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 16370 | ;; | 
|  | 16371 | esac | 
|  | 16372 | fi | 
|  | 16373 |  | 
|  | 16374 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
|  | 16375 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
|  | 16376 |  | 
|  | 16377 | # | 
|  | 16378 | # Check to make sure the PIC flag actually works. | 
|  | 16379 | # | 
|  | 16380 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16381 |  | 
|  | 16382 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16383 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
|  | 16384 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
|  | 16385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16386 | else | 
|  | 16387 | lt_prog_compiler_pic_works_GCJ=no | 
|  | 16388 | ac_outfile=conftest.$ac_objext | 
|  | 16389 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 16390 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
|  | 16391 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 16392 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 16393 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 16394 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 16395 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 16396 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 16397 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 16398 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 16399 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16400 | (eval echo "\"\$as_me:16400: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16401 | (eval "$lt_compile" 2>conftest.err) | 
|  | 16402 | ac_status=$? | 
|  | 16403 | cat conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16404 | echo "$as_me:16404: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16405 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 16406 | # The compiler can only warn and ignore the option if not recognized | 
|  | 16407 | # So say no if there are warnings | 
|  | 16408 | if test ! -s conftest.err; then | 
|  | 16409 | lt_prog_compiler_pic_works_GCJ=yes | 
|  | 16410 | fi | 
|  | 16411 | fi | 
|  | 16412 | $rm conftest* | 
|  | 16413 |  | 
|  | 16414 | fi | 
|  | 16415 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
|  | 16416 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
|  | 16417 |  | 
|  | 16418 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
|  | 16419 | case $lt_prog_compiler_pic_GCJ in | 
|  | 16420 | "" | " "*) ;; | 
|  | 16421 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
|  | 16422 | esac | 
|  | 16423 | else | 
|  | 16424 | lt_prog_compiler_pic_GCJ= | 
|  | 16425 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 16426 | fi | 
|  | 16427 |  | 
|  | 16428 | fi | 
|  | 16429 | case "$host_os" in | 
|  | 16430 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 16431 | *djgpp*) | 
|  | 16432 | lt_prog_compiler_pic_GCJ= | 
|  | 16433 | ;; | 
|  | 16434 | *) | 
|  | 16435 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
|  | 16436 | ;; | 
|  | 16437 | esac | 
|  | 16438 |  | 
|  | 16439 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 16440 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 16441 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
|  | 16442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16443 | else | 
|  | 16444 | lt_cv_prog_compiler_c_o_GCJ=no | 
|  | 16445 | $rm -r conftest 2>/dev/null | 
|  | 16446 | mkdir conftest | 
|  | 16447 | cd conftest | 
|  | 16448 | mkdir out | 
|  | 16449 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 16450 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16451 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 16452 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 16453 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 16454 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 16455 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 16456 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 16457 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 16458 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 16459 | -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16460 | (eval echo "\"\$as_me:16460: $lt_compile\"" >&5) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16461 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 16462 | ac_status=$? | 
|  | 16463 | cat out/conftest.err >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16464 | echo "$as_me:16464: \$? = $ac_status" >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16465 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 16466 | then | 
|  | 16467 | # The compiler can only warn and ignore the option if not recognized | 
|  | 16468 | # So say no if there are warnings | 
|  | 16469 | if test ! -s out/conftest.err; then | 
|  | 16470 | lt_cv_prog_compiler_c_o_GCJ=yes | 
|  | 16471 | fi | 
|  | 16472 | fi | 
|  | 16473 | chmod u+w . | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16474 | $rm conftest* | 
|  | 16475 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 16476 | # template instantiation | 
|  | 16477 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 16478 | $rm out/* && rmdir out | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16479 | cd .. | 
|  | 16480 | rmdir conftest | 
|  | 16481 | $rm conftest* | 
|  | 16482 |  | 
|  | 16483 | fi | 
|  | 16484 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
|  | 16485 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
|  | 16486 |  | 
|  | 16487 |  | 
|  | 16488 | hard_links="nottested" | 
|  | 16489 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
|  | 16490 | # do not overwrite the value of need_locks provided by the user | 
|  | 16491 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 16492 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 16493 | hard_links=yes | 
|  | 16494 | $rm conftest* | 
|  | 16495 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 16496 | touch conftest.a | 
|  | 16497 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 16498 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 16499 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 16500 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 16501 | if test "$hard_links" = no; then | 
|  | 16502 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 16503 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 16504 | need_locks=warn | 
|  | 16505 | fi | 
|  | 16506 | else | 
|  | 16507 | need_locks=no | 
|  | 16508 | fi | 
|  | 16509 |  | 
|  | 16510 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 16511 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 16512 |  | 
|  | 16513 | runpath_var= | 
|  | 16514 | allow_undefined_flag_GCJ= | 
|  | 16515 | enable_shared_with_static_runtimes_GCJ=no | 
|  | 16516 | archive_cmds_GCJ= | 
|  | 16517 | archive_expsym_cmds_GCJ= | 
|  | 16518 | old_archive_From_new_cmds_GCJ= | 
|  | 16519 | old_archive_from_expsyms_cmds_GCJ= | 
|  | 16520 | export_dynamic_flag_spec_GCJ= | 
|  | 16521 | whole_archive_flag_spec_GCJ= | 
|  | 16522 | thread_safe_flag_spec_GCJ= | 
|  | 16523 | hardcode_libdir_flag_spec_GCJ= | 
|  | 16524 | hardcode_libdir_flag_spec_ld_GCJ= | 
|  | 16525 | hardcode_libdir_separator_GCJ= | 
|  | 16526 | hardcode_direct_GCJ=no | 
|  | 16527 | hardcode_minus_L_GCJ=no | 
|  | 16528 | hardcode_shlibpath_var_GCJ=unsupported | 
|  | 16529 | link_all_deplibs_GCJ=unknown | 
|  | 16530 | hardcode_automatic_GCJ=no | 
|  | 16531 | module_cmds_GCJ= | 
|  | 16532 | module_expsym_cmds_GCJ= | 
|  | 16533 | always_export_symbols_GCJ=no | 
|  | 16534 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 16535 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 16536 | # included in the symbol list | 
|  | 16537 | include_expsyms_GCJ= | 
|  | 16538 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 16539 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 16540 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 16541 | # as well as any symbol that contains `d'. | 
|  | 16542 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
|  | 16543 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 16544 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 16545 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 16546 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 16547 | # preloaded symbol tables. | 
|  | 16548 | extract_expsyms_cmds= | 
|  | 16549 |  | 
|  | 16550 | case $host_os in | 
|  | 16551 | cygwin* | mingw* | pw32*) | 
|  | 16552 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 16553 | # When not using gcc, we currently assume that we are using | 
|  | 16554 | # Microsoft Visual C++. | 
|  | 16555 | if test "$GCC" != yes; then | 
|  | 16556 | with_gnu_ld=no | 
|  | 16557 | fi | 
|  | 16558 | ;; | 
|  | 16559 | openbsd*) | 
|  | 16560 | with_gnu_ld=no | 
|  | 16561 | ;; | 
|  | 16562 | esac | 
|  | 16563 |  | 
|  | 16564 | ld_shlibs_GCJ=yes | 
|  | 16565 | if test "$with_gnu_ld" = yes; then | 
|  | 16566 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 16567 | wlarc='${wl}' | 
|  | 16568 |  | 
|  | 16569 | # See if GNU ld supports shared libraries. | 
|  | 16570 | case $host_os in | 
|  | 16571 | aix3* | aix4* | aix5*) | 
|  | 16572 | # On AIX/PPC, the GNU linker is very broken | 
|  | 16573 | if test "$host_cpu" != ia64; then | 
|  | 16574 | ld_shlibs_GCJ=no | 
|  | 16575 | cat <<EOF 1>&2 | 
|  | 16576 |  | 
|  | 16577 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 16578 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 16579 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 16580 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 16581 | *** so that a non-GNU linker is found, and then restart. | 
|  | 16582 |  | 
|  | 16583 | EOF | 
|  | 16584 | fi | 
|  | 16585 | ;; | 
|  | 16586 |  | 
|  | 16587 | amigaos*) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16588 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16589 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 16590 | hardcode_minus_L_GCJ=yes | 
|  | 16591 |  | 
|  | 16592 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 16593 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 16594 | # to version 4, is to share data among multiple programs linked | 
|  | 16595 | # with the same dynamic library.  Since this doesn't match the | 
|  | 16596 | # behavior of shared libraries on other platforms, we can't use | 
|  | 16597 | # them. | 
|  | 16598 | ld_shlibs_GCJ=no | 
|  | 16599 | ;; | 
|  | 16600 |  | 
|  | 16601 | beos*) | 
|  | 16602 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 16603 | allow_undefined_flag_GCJ=unsupported | 
|  | 16604 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 16605 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 16606 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16607 | else | 
|  | 16608 | ld_shlibs_GCJ=no | 
|  | 16609 | fi | 
|  | 16610 | ;; | 
|  | 16611 |  | 
|  | 16612 | cygwin* | mingw* | pw32*) | 
|  | 16613 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
|  | 16614 | # as there is no search path for DLLs. | 
|  | 16615 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 16616 | allow_undefined_flag_GCJ=unsupported | 
|  | 16617 | always_export_symbols_GCJ=no | 
|  | 16618 | enable_shared_with_static_runtimes_GCJ=yes | 
|  | 16619 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 16620 |  | 
|  | 16621 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 16622 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 16623 | # If the export-symbols file already is a .def file (1st line | 
|  | 16624 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 16625 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 16626 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 16627 | else | 
|  | 16628 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 16629 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16630 | fi~ | 
|  | 16631 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16632 | else | 
|  | 16633 | ld_shlibs=no | 
|  | 16634 | fi | 
|  | 16635 | ;; | 
|  | 16636 |  | 
|  | 16637 | netbsd*) | 
|  | 16638 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 16639 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 16640 | wlarc= | 
|  | 16641 | else | 
|  | 16642 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16643 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 16644 | fi | 
|  | 16645 | ;; | 
|  | 16646 |  | 
|  | 16647 | solaris* | sysv5*) | 
|  | 16648 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 16649 | ld_shlibs_GCJ=no | 
|  | 16650 | cat <<EOF 1>&2 | 
|  | 16651 |  | 
|  | 16652 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 16653 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 16654 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 16655 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 16656 | *** your PATH or compiler configuration so that the native linker is | 
|  | 16657 | *** used, and then restart. | 
|  | 16658 |  | 
|  | 16659 | EOF | 
|  | 16660 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 16661 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16662 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 16663 | else | 
|  | 16664 | ld_shlibs_GCJ=no | 
|  | 16665 | fi | 
|  | 16666 | ;; | 
|  | 16667 |  | 
|  | 16668 | sunos4*) | 
|  | 16669 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 16670 | wlarc= | 
|  | 16671 | hardcode_direct_GCJ=yes | 
|  | 16672 | hardcode_shlibpath_var_GCJ=no | 
|  | 16673 | ;; | 
|  | 16674 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16675 | linux*) | 
|  | 16676 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 16677 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16678 | archive_cmds_GCJ="$tmp_archive_cmds" | 
|  | 16679 | supports_anon_versioning=no | 
|  | 16680 | case `$LD -v 2>/dev/null` in | 
|  | 16681 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 16682 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 16683 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 16684 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 16685 | *) supports_anon_versioning=yes ;; | 
|  | 16686 | esac | 
|  | 16687 | if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16688 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 16689 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 16690 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16691 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 16692 | else | 
|  | 16693 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" | 
|  | 16694 | fi | 
|  | 16695 | else | 
|  | 16696 | ld_shlibs_GCJ=no | 
|  | 16697 | fi | 
|  | 16698 | ;; | 
|  | 16699 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16700 | *) | 
|  | 16701 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 16702 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16703 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 16704 | else | 
|  | 16705 | ld_shlibs_GCJ=no | 
|  | 16706 | fi | 
|  | 16707 | ;; | 
|  | 16708 | esac | 
|  | 16709 |  | 
|  | 16710 | if test "$ld_shlibs_GCJ" = yes; then | 
|  | 16711 | runpath_var=LD_RUN_PATH | 
|  | 16712 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
|  | 16713 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
|  | 16714 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 16715 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 16716 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 16717 | else | 
|  | 16718 | whole_archive_flag_spec_GCJ= | 
|  | 16719 | fi | 
|  | 16720 | fi | 
|  | 16721 | else | 
|  | 16722 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 16723 | case $host_os in | 
|  | 16724 | aix3*) | 
|  | 16725 | allow_undefined_flag_GCJ=unsupported | 
|  | 16726 | always_export_symbols_GCJ=yes | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16727 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16728 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 16729 | # are no directories specified by -L. | 
|  | 16730 | hardcode_minus_L_GCJ=yes | 
|  | 16731 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 16732 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 16733 | # broken collect2. | 
|  | 16734 | hardcode_direct_GCJ=unsupported | 
|  | 16735 | fi | 
|  | 16736 | ;; | 
|  | 16737 |  | 
|  | 16738 | aix4* | aix5*) | 
|  | 16739 | if test "$host_cpu" = ia64; then | 
|  | 16740 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 16741 | # have to do anything special. | 
|  | 16742 | aix_use_runtimelinking=no | 
|  | 16743 | exp_sym_flag='-Bexport' | 
|  | 16744 | no_entry_flag="" | 
|  | 16745 | else | 
|  | 16746 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 16747 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 16748 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 16749 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 16750 | else | 
|  | 16751 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | 
|  | 16752 | fi | 
|  | 16753 | aix_use_runtimelinking=no | 
|  | 16754 |  | 
|  | 16755 | # Test if we are trying to use run time linking or normal | 
|  | 16756 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 16757 | # need to do runtime linking. | 
|  | 16758 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 16759 | for ld_flag in $LDFLAGS; do | 
|  | 16760 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 16761 | aix_use_runtimelinking=yes | 
|  | 16762 | break | 
|  | 16763 | fi | 
|  | 16764 | done | 
|  | 16765 | esac | 
|  | 16766 |  | 
|  | 16767 | exp_sym_flag='-bexport' | 
|  | 16768 | no_entry_flag='-bnoentry' | 
|  | 16769 | fi | 
|  | 16770 |  | 
|  | 16771 | # When large executables or shared objects are built, AIX ld can | 
|  | 16772 | # have problems creating the table of contents.  If linking a library | 
|  | 16773 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 16774 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 16775 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 16776 |  | 
|  | 16777 | archive_cmds_GCJ='' | 
|  | 16778 | hardcode_direct_GCJ=yes | 
|  | 16779 | hardcode_libdir_separator_GCJ=':' | 
|  | 16780 | link_all_deplibs_GCJ=yes | 
|  | 16781 |  | 
|  | 16782 | if test "$GCC" = yes; then | 
|  | 16783 | case $host_os in aix4.012|aix4.012.*) | 
|  | 16784 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 16785 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 16786 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 16787 | if test -f "$collect2name" && \ | 
|  | 16788 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 16789 | then | 
|  | 16790 | # We have reworked collect2 | 
|  | 16791 | hardcode_direct_GCJ=yes | 
|  | 16792 | else | 
|  | 16793 | # We have old collect2 | 
|  | 16794 | hardcode_direct_GCJ=unsupported | 
|  | 16795 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 16796 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 16797 | # to unsupported forces relinking | 
|  | 16798 | hardcode_minus_L_GCJ=yes | 
|  | 16799 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 16800 | hardcode_libdir_separator_GCJ= | 
|  | 16801 | fi | 
|  | 16802 | esac | 
|  | 16803 | shared_flag='-shared' | 
|  | 16804 | else | 
|  | 16805 | # not using gcc | 
|  | 16806 | if test "$host_cpu" = ia64; then | 
|  | 16807 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 16808 | # chokes on -Wl,-G. The following line is correct: | 
|  | 16809 | shared_flag='-G' | 
|  | 16810 | else | 
|  | 16811 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16812 | shared_flag='${wl}-G' | 
|  | 16813 | else | 
|  | 16814 | shared_flag='${wl}-bM:SRE' | 
|  | 16815 | fi | 
|  | 16816 | fi | 
|  | 16817 | fi | 
|  | 16818 |  | 
|  | 16819 | # It seems that -bexpall does not export symbols beginning with | 
|  | 16820 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 16821 | always_export_symbols_GCJ=yes | 
|  | 16822 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16823 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 16824 | # -berok will link without error, but may produce a broken library. | 
|  | 16825 | allow_undefined_flag_GCJ='-berok' | 
|  | 16826 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 16827 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16828 | /* confdefs.h.  */ | 
|  | 16829 | _ACEOF | 
|  | 16830 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16831 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16832 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16833 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16834 | int | 
|  | 16835 | main () | 
|  | 16836 | { | 
|  | 16837 |  | 
|  | 16838 | ; | 
|  | 16839 | return 0; | 
|  | 16840 | } | 
|  | 16841 | _ACEOF | 
|  | 16842 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16844 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16845 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16846 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16847 | rm -f conftest.er1 | 
|  | 16848 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16850 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16851 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 16852 | || test ! -s conftest.err' | 
|  | 16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16854 | (eval $ac_try) 2>&5 | 
|  | 16855 | ac_status=$? | 
|  | 16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16857 | (exit $ac_status); }; } && | 
|  | 16858 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16860 | (eval $ac_try) 2>&5 | 
|  | 16861 | ac_status=$? | 
|  | 16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16863 | (exit $ac_status); }; }; then | 
|  | 16864 |  | 
|  | 16865 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 16866 | }'` | 
|  | 16867 | # Check for a 64-bit object if we didn't find anything. | 
|  | 16868 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 16869 | }'`; fi | 
|  | 16870 | else | 
|  | 16871 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16872 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16873 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16874 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16875 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 16876 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16877 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 16878 |  | 
|  | 16879 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 16880 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
|  | 16881 | else | 
|  | 16882 | if test "$host_cpu" = ia64; then | 
|  | 16883 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 16884 | allow_undefined_flag_GCJ="-z nodefs" | 
|  | 16885 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 
|  | 16886 | else | 
|  | 16887 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 16888 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16889 | /* confdefs.h.  */ | 
|  | 16890 | _ACEOF | 
|  | 16891 | cat confdefs.h >>conftest.$ac_ext | 
|  | 16892 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 16893 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16894 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16895 | int | 
|  | 16896 | main () | 
|  | 16897 | { | 
|  | 16898 |  | 
|  | 16899 | ; | 
|  | 16900 | return 0; | 
|  | 16901 | } | 
|  | 16902 | _ACEOF | 
|  | 16903 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 16904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16905 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16906 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16907 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 16908 | rm -f conftest.er1 | 
|  | 16909 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16911 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16912 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 16913 | || test ! -s conftest.err' | 
|  | 16914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16915 | (eval $ac_try) 2>&5 | 
|  | 16916 | ac_status=$? | 
|  | 16917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16918 | (exit $ac_status); }; } && | 
|  | 16919 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 16921 | (eval $ac_try) 2>&5 | 
|  | 16922 | ac_status=$? | 
|  | 16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16924 | (exit $ac_status); }; }; then | 
|  | 16925 |  | 
|  | 16926 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 16927 | }'` | 
|  | 16928 | # Check for a 64-bit object if we didn't find anything. | 
|  | 16929 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 16930 | }'`; fi | 
|  | 16931 | else | 
|  | 16932 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16933 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 16934 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16935 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16936 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 16937 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16938 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 16939 |  | 
|  | 16940 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 16941 | # Warning - without using the other run time loading flags, | 
|  | 16942 | # -berok will link without error, but may produce a broken library. | 
|  | 16943 | no_undefined_flag_GCJ=' ${wl}-bernotok' | 
|  | 16944 | allow_undefined_flag_GCJ=' ${wl}-berok' | 
|  | 16945 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 16946 | always_export_symbols_GCJ=yes | 
|  | 16947 | # Exported symbols can be pulled into shared objects from archives | 
|  | 16948 | whole_archive_flag_spec_GCJ=' ' | 
|  | 16949 | archive_cmds_need_lc_GCJ=yes | 
|  | 16950 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16951 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16952 | fi | 
|  | 16953 | fi | 
|  | 16954 | ;; | 
|  | 16955 |  | 
|  | 16956 | amigaos*) | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16957 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16958 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 16959 | hardcode_minus_L_GCJ=yes | 
|  | 16960 | # see comment about different semantics on the GNU ld section | 
|  | 16961 | ld_shlibs_GCJ=no | 
|  | 16962 | ;; | 
|  | 16963 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16964 | bsdi[45]*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16965 | export_dynamic_flag_spec_GCJ=-rdynamic | 
|  | 16966 | ;; | 
|  | 16967 |  | 
|  | 16968 | cygwin* | mingw* | pw32*) | 
|  | 16969 | # When not using gcc, we currently assume that we are using | 
|  | 16970 | # Microsoft Visual C++. | 
|  | 16971 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 16972 | # no search path for DLLs. | 
|  | 16973 | hardcode_libdir_flag_spec_GCJ=' ' | 
|  | 16974 | allow_undefined_flag_GCJ=unsupported | 
|  | 16975 | # Tell ltmain to make .lib files, not .a files. | 
|  | 16976 | libext=lib | 
|  | 16977 | # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16978 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16979 | # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16980 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16981 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 16982 | old_archive_From_new_cmds_GCJ='true' | 
|  | 16983 | # FIXME: Should let the user specify the lib program. | 
|  | 16984 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 16985 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 16986 | enable_shared_with_static_runtimes_GCJ=yes | 
|  | 16987 | ;; | 
|  | 16988 |  | 
|  | 16989 | darwin* | rhapsody*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16990 | case "$host_os" in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16991 | rhapsody* | darwin1.[012]) | 
|  | 16992 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | 
|  | 16993 | ;; | 
|  | 16994 | *) # Darwin 1.3 on | 
|  | 16995 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 16996 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 16997 | else | 
|  | 16998 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 16999 | 10.[012]) | 
|  | 17000 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 17001 | ;; | 
|  | 17002 | 10.*) | 
|  | 17003 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 17004 | ;; | 
|  | 17005 | esac | 
|  | 17006 | fi | 
|  | 17007 | ;; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17008 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17009 | archive_cmds_need_lc_GCJ=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17010 | hardcode_direct_GCJ=no | 
|  | 17011 | hardcode_automatic_GCJ=yes | 
|  | 17012 | hardcode_shlibpath_var_GCJ=unsupported | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17013 | whole_archive_flag_spec_GCJ='' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17014 | link_all_deplibs_GCJ=yes | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17015 | if test "$GCC" = yes ; then | 
|  | 17016 | output_verbose_link_cmd='echo' | 
|  | 17017 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 17018 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 17019 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17020 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 17021 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17022 | else | 
|  | 17023 | case "$cc_basename" in | 
|  | 17024 | xlc*) | 
|  | 17025 | output_verbose_link_cmd='echo' | 
|  | 17026 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
|  | 17027 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 17028 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17029 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 17030 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17031 | ;; | 
|  | 17032 | *) | 
|  | 17033 | ld_shlibs_GCJ=no | 
|  | 17034 | ;; | 
|  | 17035 | esac | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17036 | fi | 
|  | 17037 | ;; | 
|  | 17038 |  | 
|  | 17039 | dgux*) | 
|  | 17040 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17041 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 17042 | hardcode_shlibpath_var_GCJ=no | 
|  | 17043 | ;; | 
|  | 17044 |  | 
|  | 17045 | freebsd1*) | 
|  | 17046 | ld_shlibs_GCJ=no | 
|  | 17047 | ;; | 
|  | 17048 |  | 
|  | 17049 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 17050 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 17051 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 17052 | # extra space). | 
|  | 17053 | freebsd2.2*) | 
|  | 17054 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 17055 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 17056 | hardcode_direct_GCJ=yes | 
|  | 17057 | hardcode_shlibpath_var_GCJ=no | 
|  | 17058 | ;; | 
|  | 17059 |  | 
|  | 17060 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 17061 | freebsd2*) | 
|  | 17062 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17063 | hardcode_direct_GCJ=yes | 
|  | 17064 | hardcode_minus_L_GCJ=yes | 
|  | 17065 | hardcode_shlibpath_var_GCJ=no | 
|  | 17066 | ;; | 
|  | 17067 |  | 
|  | 17068 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17069 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17070 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17071 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 17072 | hardcode_direct_GCJ=yes | 
|  | 17073 | hardcode_shlibpath_var_GCJ=no | 
|  | 17074 | ;; | 
|  | 17075 |  | 
|  | 17076 | hpux9*) | 
|  | 17077 | if test "$GCC" = yes; then | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17078 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17079 | else | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17080 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17081 | fi | 
|  | 17082 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 17083 | hardcode_libdir_separator_GCJ=: | 
|  | 17084 | hardcode_direct_GCJ=yes | 
|  | 17085 |  | 
|  | 17086 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 17087 | # but as the default location of the library. | 
|  | 17088 | hardcode_minus_L_GCJ=yes | 
|  | 17089 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 17090 | ;; | 
|  | 17091 |  | 
|  | 17092 | hpux10* | hpux11*) | 
|  | 17093 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 17094 | case "$host_cpu" in | 
|  | 17095 | hppa*64*|ia64*) | 
|  | 17096 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17097 | ;; | 
|  | 17098 | *) | 
|  | 17099 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17100 | ;; | 
|  | 17101 | esac | 
|  | 17102 | else | 
|  | 17103 | case "$host_cpu" in | 
|  | 17104 | hppa*64*|ia64*) | 
|  | 17105 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17106 | ;; | 
|  | 17107 | *) | 
|  | 17108 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17109 | ;; | 
|  | 17110 | esac | 
|  | 17111 | fi | 
|  | 17112 | if test "$with_gnu_ld" = no; then | 
|  | 17113 | case "$host_cpu" in | 
|  | 17114 | hppa*64*) | 
|  | 17115 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 17116 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
|  | 17117 | hardcode_libdir_separator_GCJ=: | 
|  | 17118 | hardcode_direct_GCJ=no | 
|  | 17119 | hardcode_shlibpath_var_GCJ=no | 
|  | 17120 | ;; | 
|  | 17121 | ia64*) | 
|  | 17122 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 17123 | hardcode_direct_GCJ=no | 
|  | 17124 | hardcode_shlibpath_var_GCJ=no | 
|  | 17125 |  | 
|  | 17126 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 17127 | # but as the default location of the library. | 
|  | 17128 | hardcode_minus_L_GCJ=yes | 
|  | 17129 | ;; | 
|  | 17130 | *) | 
|  | 17131 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 17132 | hardcode_libdir_separator_GCJ=: | 
|  | 17133 | hardcode_direct_GCJ=yes | 
|  | 17134 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 17135 |  | 
|  | 17136 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 17137 | # but as the default location of the library. | 
|  | 17138 | hardcode_minus_L_GCJ=yes | 
|  | 17139 | ;; | 
|  | 17140 | esac | 
|  | 17141 | fi | 
|  | 17142 | ;; | 
|  | 17143 |  | 
|  | 17144 | irix5* | irix6* | nonstopux*) | 
|  | 17145 | if test "$GCC" = yes; then | 
|  | 17146 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 17147 | else | 
|  | 17148 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|  | 17149 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
|  | 17150 | fi | 
|  | 17151 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 17152 | hardcode_libdir_separator_GCJ=: | 
|  | 17153 | link_all_deplibs_GCJ=yes | 
|  | 17154 | ;; | 
|  | 17155 |  | 
|  | 17156 | netbsd*) | 
|  | 17157 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 17158 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 17159 | else | 
|  | 17160 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 17161 | fi | 
|  | 17162 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 17163 | hardcode_direct_GCJ=yes | 
|  | 17164 | hardcode_shlibpath_var_GCJ=no | 
|  | 17165 | ;; | 
|  | 17166 |  | 
|  | 17167 | newsos6) | 
|  | 17168 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17169 | hardcode_direct_GCJ=yes | 
|  | 17170 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 17171 | hardcode_libdir_separator_GCJ=: | 
|  | 17172 | hardcode_shlibpath_var_GCJ=no | 
|  | 17173 | ;; | 
|  | 17174 |  | 
|  | 17175 | openbsd*) | 
|  | 17176 | hardcode_direct_GCJ=yes | 
|  | 17177 | hardcode_shlibpath_var_GCJ=no | 
|  | 17178 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 17179 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17180 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17181 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
|  | 17182 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 17183 | else | 
|  | 17184 | case $host_os in | 
|  | 17185 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 17186 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17187 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 17188 | ;; | 
|  | 17189 | *) | 
|  | 17190 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17191 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
|  | 17192 | ;; | 
|  | 17193 | esac | 
|  | 17194 | fi | 
|  | 17195 | ;; | 
|  | 17196 |  | 
|  | 17197 | os2*) | 
|  | 17198 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 17199 | hardcode_minus_L_GCJ=yes | 
|  | 17200 | allow_undefined_flag_GCJ=unsupported | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17201 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17202 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 17203 | ;; | 
|  | 17204 |  | 
|  | 17205 | osf3*) | 
|  | 17206 | if test "$GCC" = yes; then | 
|  | 17207 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 17208 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 17209 | else | 
|  | 17210 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
|  | 17211 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
|  | 17212 | fi | 
|  | 17213 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 17214 | hardcode_libdir_separator_GCJ=: | 
|  | 17215 | ;; | 
|  | 17216 |  | 
|  | 17217 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 17218 | if test "$GCC" = yes; then | 
|  | 17219 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 17220 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
|  | 17221 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 17222 | else | 
|  | 17223 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
|  | 17224 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17225 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
|  | 17226 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | 
|  | 17227 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17228 | # Both c and cxx compiler support -rpath directly | 
|  | 17229 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
|  | 17230 | fi | 
|  | 17231 | hardcode_libdir_separator_GCJ=: | 
|  | 17232 | ;; | 
|  | 17233 |  | 
|  | 17234 | sco3.2v5*) | 
|  | 17235 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17236 | hardcode_shlibpath_var_GCJ=no | 
|  | 17237 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
|  | 17238 | runpath_var=LD_RUN_PATH | 
|  | 17239 | hardcode_runpath_var=yes | 
|  | 17240 | ;; | 
|  | 17241 |  | 
|  | 17242 | solaris*) | 
|  | 17243 | no_undefined_flag_GCJ=' -z text' | 
|  | 17244 | if test "$GCC" = yes; then | 
|  | 17245 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17246 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 17247 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17248 | else | 
|  | 17249 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17250 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 17251 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17252 | fi | 
|  | 17253 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 17254 | hardcode_shlibpath_var_GCJ=no | 
|  | 17255 | case $host_os in | 
|  | 17256 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 17257 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 17258 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
|  | 17259 | esac | 
|  | 17260 | link_all_deplibs_GCJ=yes | 
|  | 17261 | ;; | 
|  | 17262 |  | 
|  | 17263 | sunos4*) | 
|  | 17264 | if test "x$host_vendor" = xsequent; then | 
|  | 17265 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 17266 | # files that make .init and .fini sections work. | 
|  | 17267 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17268 | else | 
|  | 17269 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17270 | fi | 
|  | 17271 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 17272 | hardcode_direct_GCJ=yes | 
|  | 17273 | hardcode_minus_L_GCJ=yes | 
|  | 17274 | hardcode_shlibpath_var_GCJ=no | 
|  | 17275 | ;; | 
|  | 17276 |  | 
|  | 17277 | sysv4) | 
|  | 17278 | case $host_vendor in | 
|  | 17279 | sni) | 
|  | 17280 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17281 | hardcode_direct_GCJ=yes # is this really true??? | 
|  | 17282 | ;; | 
|  | 17283 | siemens) | 
|  | 17284 | ## LD is ld it makes a PLAMLIB | 
|  | 17285 | ## CC just makes a GrossModule. | 
|  | 17286 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17287 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
|  | 17288 | hardcode_direct_GCJ=no | 
|  | 17289 | ;; | 
|  | 17290 | motorola) | 
|  | 17291 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17292 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
|  | 17293 | ;; | 
|  | 17294 | esac | 
|  | 17295 | runpath_var='LD_RUN_PATH' | 
|  | 17296 | hardcode_shlibpath_var_GCJ=no | 
|  | 17297 | ;; | 
|  | 17298 |  | 
|  | 17299 | sysv4.3*) | 
|  | 17300 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17301 | hardcode_shlibpath_var_GCJ=no | 
|  | 17302 | export_dynamic_flag_spec_GCJ='-Bexport' | 
|  | 17303 | ;; | 
|  | 17304 |  | 
|  | 17305 | sysv4*MP*) | 
|  | 17306 | if test -d /usr/nec; then | 
|  | 17307 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17308 | hardcode_shlibpath_var_GCJ=no | 
|  | 17309 | runpath_var=LD_RUN_PATH | 
|  | 17310 | hardcode_runpath_var=yes | 
|  | 17311 | ld_shlibs_GCJ=yes | 
|  | 17312 | fi | 
|  | 17313 | ;; | 
|  | 17314 |  | 
|  | 17315 | sysv4.2uw2*) | 
|  | 17316 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17317 | hardcode_direct_GCJ=yes | 
|  | 17318 | hardcode_minus_L_GCJ=no | 
|  | 17319 | hardcode_shlibpath_var_GCJ=no | 
|  | 17320 | hardcode_runpath_var=yes | 
|  | 17321 | runpath_var=LD_RUN_PATH | 
|  | 17322 | ;; | 
|  | 17323 |  | 
|  | 17324 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 17325 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
|  | 17326 | if test "$GCC" = yes; then | 
|  | 17327 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17328 | else | 
|  | 17329 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17330 | fi | 
|  | 17331 | runpath_var='LD_RUN_PATH' | 
|  | 17332 | hardcode_shlibpath_var_GCJ=no | 
|  | 17333 | ;; | 
|  | 17334 |  | 
|  | 17335 | sysv5*) | 
|  | 17336 | no_undefined_flag_GCJ=' -z text' | 
|  | 17337 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 17338 | # object files and a static libstdc++, better avoid it by now | 
|  | 17339 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17340 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 17341 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17342 | hardcode_libdir_flag_spec_GCJ= | 
|  | 17343 | hardcode_shlibpath_var_GCJ=no | 
|  | 17344 | runpath_var='LD_RUN_PATH' | 
|  | 17345 | ;; | 
|  | 17346 |  | 
|  | 17347 | uts4*) | 
|  | 17348 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 17349 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 17350 | hardcode_shlibpath_var_GCJ=no | 
|  | 17351 | ;; | 
|  | 17352 |  | 
|  | 17353 | *) | 
|  | 17354 | ld_shlibs_GCJ=no | 
|  | 17355 | ;; | 
|  | 17356 | esac | 
|  | 17357 | fi | 
|  | 17358 |  | 
|  | 17359 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
|  | 17360 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
|  | 17361 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
|  | 17362 |  | 
|  | 17363 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 17364 | if test "$GCC" = yes; then | 
|  | 17365 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 17366 | fi | 
|  | 17367 |  | 
|  | 17368 | # | 
|  | 17369 | # Do we need to explicitly link libc? | 
|  | 17370 | # | 
|  | 17371 | case "x$archive_cmds_need_lc_GCJ" in | 
|  | 17372 | x|xyes) | 
|  | 17373 | # Assume -lc should be added | 
|  | 17374 | archive_cmds_need_lc_GCJ=yes | 
|  | 17375 |  | 
|  | 17376 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 17377 | case $archive_cmds_GCJ in | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17378 | *'~'*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17379 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 17380 | ;; | 
|  | 17381 | '$CC '*) | 
|  | 17382 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 17383 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 17384 | # to ld, don't add -lc before -lgcc. | 
|  | 17385 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 17386 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 17387 | $rm conftest* | 
|  | 17388 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 17389 |  | 
|  | 17390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 17391 | (eval $ac_compile) 2>&5 | 
|  | 17392 | ac_status=$? | 
|  | 17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17394 | (exit $ac_status); } 2>conftest.err; then | 
|  | 17395 | soname=conftest | 
|  | 17396 | lib=conftest | 
|  | 17397 | libobjs=conftest.$ac_objext | 
|  | 17398 | deplibs= | 
|  | 17399 | wl=$lt_prog_compiler_wl_GCJ | 
|  | 17400 | compiler_flags=-v | 
|  | 17401 | linker_flags=-v | 
|  | 17402 | verstring= | 
|  | 17403 | output_objdir=. | 
|  | 17404 | libname=conftest | 
|  | 17405 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
|  | 17406 | allow_undefined_flag_GCJ= | 
|  | 17407 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 17408 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 17409 | ac_status=$? | 
|  | 17410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17411 | (exit $ac_status); } | 
|  | 17412 | then | 
|  | 17413 | archive_cmds_need_lc_GCJ=no | 
|  | 17414 | else | 
|  | 17415 | archive_cmds_need_lc_GCJ=yes | 
|  | 17416 | fi | 
|  | 17417 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
|  | 17418 | else | 
|  | 17419 | cat conftest.err 1>&5 | 
|  | 17420 | fi | 
|  | 17421 | $rm conftest* | 
|  | 17422 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
|  | 17423 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
|  | 17424 | ;; | 
|  | 17425 | esac | 
|  | 17426 | fi | 
|  | 17427 | ;; | 
|  | 17428 | esac | 
|  | 17429 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17430 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 17431 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 17432 | library_names_spec= | 
|  | 17433 | libname_spec='lib$name' | 
|  | 17434 | soname_spec= | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17435 | shrext_cmds=".so" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17436 | postinstall_cmds= | 
|  | 17437 | postuninstall_cmds= | 
|  | 17438 | finish_cmds= | 
|  | 17439 | finish_eval= | 
|  | 17440 | shlibpath_var= | 
|  | 17441 | shlibpath_overrides_runpath=unknown | 
|  | 17442 | version_type=none | 
|  | 17443 | dynamic_linker="$host_os ld.so" | 
|  | 17444 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 17445 | if test "$GCC" = yes; then | 
|  | 17446 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 17447 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 17448 | # if the path contains ";" then we assume it to be the separator | 
|  | 17449 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 17450 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 17451 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 17452 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 17453 | else | 
|  | 17454 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 17455 | fi | 
|  | 17456 | else | 
|  | 17457 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 17458 | fi | 
|  | 17459 | need_lib_prefix=unknown | 
|  | 17460 | hardcode_into_libs=no | 
|  | 17461 |  | 
|  | 17462 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 17463 | # flags to be left without arguments | 
|  | 17464 | need_version=unknown | 
|  | 17465 |  | 
|  | 17466 | case $host_os in | 
|  | 17467 | aix3*) | 
|  | 17468 | version_type=linux | 
|  | 17469 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 17470 | shlibpath_var=LIBPATH | 
|  | 17471 |  | 
|  | 17472 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 17473 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17474 | ;; | 
|  | 17475 |  | 
|  | 17476 | aix4* | aix5*) | 
|  | 17477 | version_type=linux | 
|  | 17478 | need_lib_prefix=no | 
|  | 17479 | need_version=no | 
|  | 17480 | hardcode_into_libs=yes | 
|  | 17481 | if test "$host_cpu" = ia64; then | 
|  | 17482 | # AIX 5 supports IA64 | 
|  | 17483 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 17484 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17485 | else | 
|  | 17486 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 17487 | # for dependence libraries.  The import file would start with | 
|  | 17488 | # the line `#! .'.  This would cause the generated library to | 
|  | 17489 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 17490 | # development snapshots of GCC prior to 3.0. | 
|  | 17491 | case $host_os in | 
|  | 17492 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 17493 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 17494 | echo ' yes ' | 
|  | 17495 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 17496 | : | 
|  | 17497 | else | 
|  | 17498 | can_build_shared=no | 
|  | 17499 | fi | 
|  | 17500 | ;; | 
|  | 17501 | esac | 
|  | 17502 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 17503 | # soname into executable. Probably we can add versioning support to | 
|  | 17504 | # collect2, so additional links can be useful in future. | 
|  | 17505 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 17506 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 17507 | # instead of lib<name>.a to let people know that these are not | 
|  | 17508 | # typical AIX shared libraries. | 
|  | 17509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17510 | else | 
|  | 17511 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 17512 | # and later when we are not doing run time linking. | 
|  | 17513 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 17514 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17515 | fi | 
|  | 17516 | shlibpath_var=LIBPATH | 
|  | 17517 | fi | 
|  | 17518 | ;; | 
|  | 17519 |  | 
|  | 17520 | amigaos*) | 
|  | 17521 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 17522 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17523 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17524 | ;; | 
|  | 17525 |  | 
|  | 17526 | beos*) | 
|  | 17527 | library_names_spec='${libname}${shared_ext}' | 
|  | 17528 | dynamic_linker="$host_os ld.so" | 
|  | 17529 | shlibpath_var=LIBRARY_PATH | 
|  | 17530 | ;; | 
|  | 17531 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17532 | bsdi[45]*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17533 | version_type=linux | 
|  | 17534 | need_version=no | 
|  | 17535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17536 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17537 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 17538 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17539 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 17540 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 17541 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 17542 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 17543 | # libtool to hard-code these into programs | 
|  | 17544 | ;; | 
|  | 17545 |  | 
|  | 17546 | cygwin* | mingw* | pw32*) | 
|  | 17547 | version_type=windows | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17548 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17549 | need_version=no | 
|  | 17550 | need_lib_prefix=no | 
|  | 17551 |  | 
|  | 17552 | case $GCC,$host_os in | 
|  | 17553 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 17554 | library_names_spec='$libname.dll.a' | 
|  | 17555 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17556 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 17557 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 17558 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 17559 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17560 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 9460858 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17561 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 17562 | dlpath=$dir/\$dldll~ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17563 | $rm \$dlpath' | 
|  | 17564 | shlibpath_overrides_runpath=yes | 
|  | 17565 |  | 
|  | 17566 | case $host_os in | 
|  | 17567 | cygwin*) | 
|  | 17568 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 17569 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17570 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17571 | ;; | 
|  | 17572 | mingw*) | 
|  | 17573 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 17574 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 17575 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 17576 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 17577 | # It is most probably a Windows format PATH printed by | 
|  | 17578 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 17579 | # path with ; separators, and with drive letters. We can handle the | 
|  | 17580 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 17581 | # especially as we might pass files found there to a mingw objdump, | 
|  | 17582 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 17583 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 17584 | else | 
|  | 17585 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 17586 | fi | 
|  | 17587 | ;; | 
|  | 17588 | pw32*) | 
|  | 17589 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 17590 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 17591 | ;; | 
|  | 17592 | esac | 
|  | 17593 | ;; | 
|  | 17594 |  | 
|  | 17595 | *) | 
|  | 17596 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 17597 | ;; | 
|  | 17598 | esac | 
|  | 17599 | dynamic_linker='Win32 ld.exe' | 
|  | 17600 | # FIXME: first we should search . and the directory the executable is in | 
|  | 17601 | shlibpath_var=PATH | 
|  | 17602 | ;; | 
|  | 17603 |  | 
|  | 17604 | darwin* | rhapsody*) | 
|  | 17605 | dynamic_linker="$host_os dyld" | 
|  | 17606 | version_type=darwin | 
|  | 17607 | need_lib_prefix=no | 
|  | 17608 | need_version=no | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17609 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17610 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 17611 | shlibpath_overrides_runpath=yes | 
|  | 17612 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17613 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17614 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17615 | if test "$GCC" = yes; then | 
|  | 17616 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | 
|  | 17617 | else | 
|  | 17618 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17619 | fi | 
|  | 17620 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 17621 | ;; | 
|  | 17622 |  | 
|  | 17623 | dgux*) | 
|  | 17624 | version_type=linux | 
|  | 17625 | need_lib_prefix=no | 
|  | 17626 | need_version=no | 
|  | 17627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 17628 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17629 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17630 | ;; | 
|  | 17631 |  | 
|  | 17632 | freebsd1*) | 
|  | 17633 | dynamic_linker=no | 
|  | 17634 | ;; | 
|  | 17635 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17636 | kfreebsd*-gnu) | 
|  | 17637 | version_type=linux | 
|  | 17638 | need_lib_prefix=no | 
|  | 17639 | need_version=no | 
|  | 17640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 17641 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17642 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17643 | shlibpath_overrides_runpath=no | 
|  | 17644 | hardcode_into_libs=yes | 
|  | 17645 | dynamic_linker='GNU ld.so' | 
|  | 17646 | ;; | 
|  | 17647 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17648 | freebsd*) | 
|  | 17649 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 17650 | version_type=freebsd-$objformat | 
|  | 17651 | case $version_type in | 
|  | 17652 | freebsd-elf*) | 
|  | 17653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 17654 | need_version=no | 
|  | 17655 | need_lib_prefix=no | 
|  | 17656 | ;; | 
|  | 17657 | freebsd-*) | 
|  | 17658 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 17659 | need_version=yes | 
|  | 17660 | ;; | 
|  | 17661 | esac | 
|  | 17662 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17663 | case $host_os in | 
|  | 17664 | freebsd2*) | 
|  | 17665 | shlibpath_overrides_runpath=yes | 
|  | 17666 | ;; | 
|  | 17667 | freebsd3.01* | freebsdelf3.01*) | 
|  | 17668 | shlibpath_overrides_runpath=yes | 
|  | 17669 | hardcode_into_libs=yes | 
|  | 17670 | ;; | 
|  | 17671 | *) # from 3.2 on | 
|  | 17672 | shlibpath_overrides_runpath=no | 
|  | 17673 | hardcode_into_libs=yes | 
|  | 17674 | ;; | 
|  | 17675 | esac | 
|  | 17676 | ;; | 
|  | 17677 |  | 
|  | 17678 | gnu*) | 
|  | 17679 | version_type=linux | 
|  | 17680 | need_lib_prefix=no | 
|  | 17681 | need_version=no | 
|  | 17682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 17683 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17684 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17685 | hardcode_into_libs=yes | 
|  | 17686 | ;; | 
|  | 17687 |  | 
|  | 17688 | hpux9* | hpux10* | hpux11*) | 
|  | 17689 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 17690 | # link against other versions. | 
|  | 17691 | version_type=sunos | 
|  | 17692 | need_lib_prefix=no | 
|  | 17693 | need_version=no | 
|  | 17694 | case "$host_cpu" in | 
|  | 17695 | ia64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17696 | shrext_cmds='.so' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17697 | hardcode_into_libs=yes | 
|  | 17698 | dynamic_linker="$host_os dld.so" | 
|  | 17699 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17700 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 17701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17702 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17703 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 17704 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 17705 | else | 
|  | 17706 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 17707 | fi | 
|  | 17708 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 17709 | ;; | 
|  | 17710 | hppa*64*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17711 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17712 | hardcode_into_libs=yes | 
|  | 17713 | dynamic_linker="$host_os dld.sl" | 
|  | 17714 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 17715 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 17716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17717 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17718 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 17719 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 17720 | ;; | 
|  | 17721 | *) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17722 | shrext_cmds='.sl' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17723 | dynamic_linker="$host_os dld.sl" | 
|  | 17724 | shlibpath_var=SHLIB_PATH | 
|  | 17725 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 17726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17727 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17728 | ;; | 
|  | 17729 | esac | 
|  | 17730 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 17731 | postinstall_cmds='chmod 555 $lib' | 
|  | 17732 | ;; | 
|  | 17733 |  | 
|  | 17734 | irix5* | irix6* | nonstopux*) | 
|  | 17735 | case $host_os in | 
|  | 17736 | nonstopux*) version_type=nonstopux ;; | 
|  | 17737 | *) | 
|  | 17738 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 17739 | version_type=linux | 
|  | 17740 | else | 
|  | 17741 | version_type=irix | 
|  | 17742 | fi ;; | 
|  | 17743 | esac | 
|  | 17744 | need_lib_prefix=no | 
|  | 17745 | need_version=no | 
|  | 17746 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 17748 | case $host_os in | 
|  | 17749 | irix5* | nonstopux*) | 
|  | 17750 | libsuff= shlibsuff= | 
|  | 17751 | ;; | 
|  | 17752 | *) | 
|  | 17753 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 17754 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 17755 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 17756 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 17757 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 17758 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 17759 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 17760 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 17761 | esac | 
|  | 17762 | ;; | 
|  | 17763 | esac | 
|  | 17764 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 17765 | shlibpath_overrides_runpath=no | 
|  | 17766 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 17767 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 17768 | hardcode_into_libs=yes | 
|  | 17769 | ;; | 
|  | 17770 |  | 
|  | 17771 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 17772 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 17773 | dynamic_linker=no | 
|  | 17774 | ;; | 
|  | 17775 |  | 
|  | 17776 | # This must be Linux ELF. | 
|  | 17777 | linux*) | 
|  | 17778 | version_type=linux | 
|  | 17779 | need_lib_prefix=no | 
|  | 17780 | need_version=no | 
|  | 17781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17782 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17783 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 17784 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17785 | shlibpath_overrides_runpath=no | 
|  | 17786 | # This implies no fast_install, which is unacceptable. | 
|  | 17787 | # Some rework will be needed to allow for fast_install | 
|  | 17788 | # before this can be enabled. | 
|  | 17789 | hardcode_into_libs=yes | 
|  | 17790 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17791 | # Append ld.so.conf contents to the search path | 
|  | 17792 | if test -f /etc/ld.so.conf; then | 
|  | 17793 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 17794 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 17795 | fi | 
|  | 17796 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17797 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 17798 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 17799 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 17800 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 17801 | # people can always --disable-shared, the test was removed, and we | 
|  | 17802 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 17803 | dynamic_linker='GNU/Linux ld.so' | 
|  | 17804 | ;; | 
|  | 17805 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17806 | knetbsd*-gnu) | 
|  | 17807 | version_type=linux | 
|  | 17808 | need_lib_prefix=no | 
|  | 17809 | need_version=no | 
|  | 17810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 17811 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17812 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17813 | shlibpath_overrides_runpath=no | 
|  | 17814 | hardcode_into_libs=yes | 
|  | 17815 | dynamic_linker='GNU ld.so' | 
|  | 17816 | ;; | 
|  | 17817 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17818 | netbsd*) | 
|  | 17819 | version_type=sunos | 
|  | 17820 | need_lib_prefix=no | 
|  | 17821 | need_version=no | 
|  | 17822 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 17823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 17824 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 17825 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 17826 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17828 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17829 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 17830 | fi | 
|  | 17831 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17832 | shlibpath_overrides_runpath=yes | 
|  | 17833 | hardcode_into_libs=yes | 
|  | 17834 | ;; | 
|  | 17835 |  | 
|  | 17836 | newsos6) | 
|  | 17837 | version_type=linux | 
|  | 17838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17839 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17840 | shlibpath_overrides_runpath=yes | 
|  | 17841 | ;; | 
|  | 17842 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17843 | nto-qnx*) | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17844 | version_type=linux | 
|  | 17845 | need_lib_prefix=no | 
|  | 17846 | need_version=no | 
|  | 17847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17848 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17849 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17850 | shlibpath_overrides_runpath=yes | 
|  | 17851 | ;; | 
|  | 17852 |  | 
|  | 17853 | openbsd*) | 
|  | 17854 | version_type=sunos | 
|  | 17855 | need_lib_prefix=no | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17856 | need_version=no | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 17858 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 17859 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17860 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 17861 | case $host_os in | 
|  | 17862 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 17863 | shlibpath_overrides_runpath=no | 
|  | 17864 | ;; | 
|  | 17865 | *) | 
|  | 17866 | shlibpath_overrides_runpath=yes | 
|  | 17867 | ;; | 
|  | 17868 | esac | 
|  | 17869 | else | 
|  | 17870 | shlibpath_overrides_runpath=yes | 
|  | 17871 | fi | 
|  | 17872 | ;; | 
|  | 17873 |  | 
|  | 17874 | os2*) | 
|  | 17875 | libname_spec='$name' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17876 | shrext_cmds=".dll" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17877 | need_lib_prefix=no | 
|  | 17878 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 17879 | dynamic_linker='OS/2 ld.exe' | 
|  | 17880 | shlibpath_var=LIBPATH | 
|  | 17881 | ;; | 
|  | 17882 |  | 
|  | 17883 | osf3* | osf4* | osf5*) | 
|  | 17884 | version_type=osf | 
|  | 17885 | need_lib_prefix=no | 
|  | 17886 | need_version=no | 
|  | 17887 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17889 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17890 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 17891 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 17892 | ;; | 
|  | 17893 |  | 
|  | 17894 | sco3.2v5*) | 
|  | 17895 | version_type=osf | 
|  | 17896 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17898 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17899 | ;; | 
|  | 17900 |  | 
|  | 17901 | solaris*) | 
|  | 17902 | version_type=linux | 
|  | 17903 | need_lib_prefix=no | 
|  | 17904 | need_version=no | 
|  | 17905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17906 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17907 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17908 | shlibpath_overrides_runpath=yes | 
|  | 17909 | hardcode_into_libs=yes | 
|  | 17910 | # ldd complains unless libraries are executable | 
|  | 17911 | postinstall_cmds='chmod +x $lib' | 
|  | 17912 | ;; | 
|  | 17913 |  | 
|  | 17914 | sunos4*) | 
|  | 17915 | version_type=sunos | 
|  | 17916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 17917 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 17918 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17919 | shlibpath_overrides_runpath=yes | 
|  | 17920 | if test "$with_gnu_ld" = yes; then | 
|  | 17921 | need_lib_prefix=no | 
|  | 17922 | fi | 
|  | 17923 | need_version=yes | 
|  | 17924 | ;; | 
|  | 17925 |  | 
|  | 17926 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 17927 | version_type=linux | 
|  | 17928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17929 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17930 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17931 | case $host_vendor in | 
|  | 17932 | sni) | 
|  | 17933 | shlibpath_overrides_runpath=no | 
|  | 17934 | need_lib_prefix=no | 
|  | 17935 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 17936 | runpath_var=LD_RUN_PATH | 
|  | 17937 | ;; | 
|  | 17938 | siemens) | 
|  | 17939 | need_lib_prefix=no | 
|  | 17940 | ;; | 
|  | 17941 | motorola) | 
|  | 17942 | need_lib_prefix=no | 
|  | 17943 | need_version=no | 
|  | 17944 | shlibpath_overrides_runpath=no | 
|  | 17945 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 17946 | ;; | 
|  | 17947 | esac | 
|  | 17948 | ;; | 
|  | 17949 |  | 
|  | 17950 | sysv4*MP*) | 
|  | 17951 | if test -d /usr/nec ;then | 
|  | 17952 | version_type=linux | 
|  | 17953 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 17954 | soname_spec='$libname${shared_ext}.$major' | 
|  | 17955 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17956 | fi | 
|  | 17957 | ;; | 
|  | 17958 |  | 
|  | 17959 | uts4*) | 
|  | 17960 | version_type=linux | 
|  | 17961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17962 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17963 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17964 | ;; | 
|  | 17965 |  | 
|  | 17966 | *) | 
|  | 17967 | dynamic_linker=no | 
|  | 17968 | ;; | 
|  | 17969 | esac | 
|  | 17970 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 17971 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 17972 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 17973 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17974 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 17975 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 17976 | hardcode_action_GCJ= | 
|  | 17977 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
|  | 17978 | test -n "$runpath_var_GCJ" || \ | 
|  | 17979 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | 
|  | 17980 |  | 
|  | 17981 | # We can hardcode non-existant directories. | 
|  | 17982 | if test "$hardcode_direct_GCJ" != no && | 
|  | 17983 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 17984 | # have to relink, otherwise we might link with an installed library | 
|  | 17985 | # when we should be linking with a yet-to-be-installed one | 
|  | 17986 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
|  | 17987 | test "$hardcode_minus_L_GCJ" != no; then | 
|  | 17988 | # Linking always hardcodes the temporary library directory. | 
|  | 17989 | hardcode_action_GCJ=relink | 
|  | 17990 | else | 
|  | 17991 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 17992 | hardcode_action_GCJ=immediate | 
|  | 17993 | fi | 
|  | 17994 | else | 
|  | 17995 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 17996 | # directories. | 
|  | 17997 | hardcode_action_GCJ=unsupported | 
|  | 17998 | fi | 
|  | 17999 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
|  | 18000 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
|  | 18001 |  | 
|  | 18002 | if test "$hardcode_action_GCJ" = relink; then | 
|  | 18003 | # Fast installation is not supported | 
|  | 18004 | enable_fast_install=no | 
|  | 18005 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 18006 | test "$enable_shared" = no; then | 
|  | 18007 | # Fast installation is not necessary | 
|  | 18008 | enable_fast_install=needless | 
|  | 18009 | fi | 
|  | 18010 |  | 
|  | 18011 | striplib= | 
|  | 18012 | old_striplib= | 
|  | 18013 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 18014 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 18015 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 18016 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 18017 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 18018 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 18019 | echo "${ECHO_T}yes" >&6 | 
|  | 18020 | else | 
|  | 18021 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 18022 | case $host_os in | 
|  | 18023 | darwin*) | 
|  | 18024 | if test -n "$STRIP" ; then | 
|  | 18025 | striplib="$STRIP -x" | 
|  | 18026 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 18027 | echo "${ECHO_T}yes" >&6 | 
|  | 18028 | else | 
|  | 18029 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 18030 | echo "${ECHO_T}no" >&6 | 
|  | 18031 | fi | 
|  | 18032 | ;; | 
|  | 18033 | *) | 
|  | 18034 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 18035 | echo "${ECHO_T}no" >&6 | 
|  | 18036 | ;; | 
|  | 18037 | esac | 
|  | 18038 | fi | 
|  | 18039 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18040 | if test "x$enable_dlopen" != xyes; then | 
|  | 18041 | enable_dlopen=unknown | 
|  | 18042 | enable_dlopen_self=unknown | 
|  | 18043 | enable_dlopen_self_static=unknown | 
|  | 18044 | else | 
|  | 18045 | lt_cv_dlopen=no | 
|  | 18046 | lt_cv_dlopen_libs= | 
|  | 18047 |  | 
|  | 18048 | case $host_os in | 
|  | 18049 | beos*) | 
|  | 18050 | lt_cv_dlopen="load_add_on" | 
|  | 18051 | lt_cv_dlopen_libs= | 
|  | 18052 | lt_cv_dlopen_self=yes | 
|  | 18053 | ;; | 
|  | 18054 |  | 
|  | 18055 | mingw* | pw32*) | 
|  | 18056 | lt_cv_dlopen="LoadLibrary" | 
|  | 18057 | lt_cv_dlopen_libs= | 
|  | 18058 | ;; | 
|  | 18059 |  | 
|  | 18060 | cygwin*) | 
|  | 18061 | lt_cv_dlopen="dlopen" | 
|  | 18062 | lt_cv_dlopen_libs= | 
|  | 18063 | ;; | 
|  | 18064 |  | 
|  | 18065 | darwin*) | 
|  | 18066 | # if libdl is installed we need to link against it | 
|  | 18067 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 18068 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 18069 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 18070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18071 | else | 
|  | 18072 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18073 | LIBS="-ldl  $LIBS" | 
|  | 18074 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18075 | /* confdefs.h.  */ | 
|  | 18076 | _ACEOF | 
|  | 18077 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18078 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18079 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18080 |  | 
|  | 18081 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18082 | #ifdef __cplusplus | 
|  | 18083 | extern "C" | 
|  | 18084 | #endif | 
|  | 18085 | /* We use char because int might match the return type of a gcc2 | 
|  | 18086 | builtin and then its argument prototype would still apply.  */ | 
|  | 18087 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18088 | int | 
|  | 18089 | main () | 
|  | 18090 | { | 
|  | 18091 | dlopen (); | 
|  | 18092 | ; | 
|  | 18093 | return 0; | 
|  | 18094 | } | 
|  | 18095 | _ACEOF | 
|  | 18096 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18098 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18099 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18100 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18101 | rm -f conftest.er1 | 
|  | 18102 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18104 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18105 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 18106 | || test ! -s conftest.err' | 
|  | 18107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18108 | (eval $ac_try) 2>&5 | 
|  | 18109 | ac_status=$? | 
|  | 18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18111 | (exit $ac_status); }; } && | 
|  | 18112 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18114 | (eval $ac_try) 2>&5 | 
|  | 18115 | ac_status=$? | 
|  | 18116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18117 | (exit $ac_status); }; }; then | 
|  | 18118 | ac_cv_lib_dl_dlopen=yes | 
|  | 18119 | else | 
|  | 18120 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18121 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18122 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18123 | ac_cv_lib_dl_dlopen=no | 
|  | 18124 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18125 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 18126 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18127 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18128 | fi | 
|  | 18129 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 18130 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 18131 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 18132 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 18133 | else | 
|  | 18134 |  | 
|  | 18135 | lt_cv_dlopen="dyld" | 
|  | 18136 | lt_cv_dlopen_libs= | 
|  | 18137 | lt_cv_dlopen_self=yes | 
|  | 18138 |  | 
|  | 18139 | fi | 
|  | 18140 |  | 
|  | 18141 | ;; | 
|  | 18142 |  | 
|  | 18143 | *) | 
|  | 18144 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 18145 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 18146 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 18147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18148 | else | 
|  | 18149 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18150 | /* confdefs.h.  */ | 
|  | 18151 | _ACEOF | 
|  | 18152 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18153 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18154 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18155 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 18156 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 18157 | #define shl_load innocuous_shl_load | 
|  | 18158 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18159 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18160 | which can conflict with char shl_load (); below. | 
|  | 18161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 18162 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18163 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18164 | #ifdef __STDC__ | 
|  | 18165 | # include <limits.h> | 
|  | 18166 | #else | 
|  | 18167 | # include <assert.h> | 
|  | 18168 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18169 |  | 
|  | 18170 | #undef shl_load | 
|  | 18171 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18172 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18173 | #ifdef __cplusplus | 
|  | 18174 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18175 | { | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18176 | #endif | 
|  | 18177 | /* We use char because int might match the return type of a gcc2 | 
|  | 18178 | builtin and then its argument prototype would still apply.  */ | 
|  | 18179 | char shl_load (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18180 | /* The GNU C library defines this for functions which it implements | 
|  | 18181 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 18182 | something starting with __ and the normal name is an alias.  */ | 
|  | 18183 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 18184 | choke me | 
|  | 18185 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18186 | char (*f) () = shl_load; | 
|  | 18187 | #endif | 
|  | 18188 | #ifdef __cplusplus | 
|  | 18189 | } | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18190 | #endif | 
|  | 18191 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18192 | int | 
|  | 18193 | main () | 
|  | 18194 | { | 
|  | 18195 | return f != shl_load; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18196 | ; | 
|  | 18197 | return 0; | 
|  | 18198 | } | 
|  | 18199 | _ACEOF | 
|  | 18200 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18202 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18203 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18204 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18205 | rm -f conftest.er1 | 
|  | 18206 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18208 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18209 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 18210 | || test ! -s conftest.err' | 
|  | 18211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18212 | (eval $ac_try) 2>&5 | 
|  | 18213 | ac_status=$? | 
|  | 18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18215 | (exit $ac_status); }; } && | 
|  | 18216 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18218 | (eval $ac_try) 2>&5 | 
|  | 18219 | ac_status=$? | 
|  | 18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18221 | (exit $ac_status); }; }; then | 
|  | 18222 | ac_cv_func_shl_load=yes | 
|  | 18223 | else | 
|  | 18224 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18225 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18226 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18227 | ac_cv_func_shl_load=no | 
|  | 18228 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18229 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 18230 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18231 | fi | 
|  | 18232 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 18233 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 18234 | if test $ac_cv_func_shl_load = yes; then | 
|  | 18235 | lt_cv_dlopen="shl_load" | 
|  | 18236 | else | 
|  | 18237 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 18238 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 18239 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 18240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18241 | else | 
|  | 18242 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18243 | LIBS="-ldld  $LIBS" | 
|  | 18244 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18245 | /* confdefs.h.  */ | 
|  | 18246 | _ACEOF | 
|  | 18247 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18248 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18249 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18250 |  | 
|  | 18251 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18252 | #ifdef __cplusplus | 
|  | 18253 | extern "C" | 
|  | 18254 | #endif | 
|  | 18255 | /* We use char because int might match the return type of a gcc2 | 
|  | 18256 | builtin and then its argument prototype would still apply.  */ | 
|  | 18257 | char shl_load (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18258 | int | 
|  | 18259 | main () | 
|  | 18260 | { | 
|  | 18261 | shl_load (); | 
|  | 18262 | ; | 
|  | 18263 | return 0; | 
|  | 18264 | } | 
|  | 18265 | _ACEOF | 
|  | 18266 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18268 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18270 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18271 | rm -f conftest.er1 | 
|  | 18272 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18274 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18275 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 18276 | || test ! -s conftest.err' | 
|  | 18277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18278 | (eval $ac_try) 2>&5 | 
|  | 18279 | ac_status=$? | 
|  | 18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18281 | (exit $ac_status); }; } && | 
|  | 18282 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18284 | (eval $ac_try) 2>&5 | 
|  | 18285 | ac_status=$? | 
|  | 18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18287 | (exit $ac_status); }; }; then | 
|  | 18288 | ac_cv_lib_dld_shl_load=yes | 
|  | 18289 | else | 
|  | 18290 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18291 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18292 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18293 | ac_cv_lib_dld_shl_load=no | 
|  | 18294 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18295 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 18296 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18297 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18298 | fi | 
|  | 18299 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 18300 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 18301 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 18302 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 18303 | else | 
|  | 18304 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 18305 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 18306 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 18307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18308 | else | 
|  | 18309 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18310 | /* confdefs.h.  */ | 
|  | 18311 | _ACEOF | 
|  | 18312 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18313 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18314 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18315 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
|  | 18316 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 18317 | #define dlopen innocuous_dlopen | 
|  | 18318 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18319 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18320 | which can conflict with char dlopen (); below. | 
|  | 18321 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 18322 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18323 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18324 | #ifdef __STDC__ | 
|  | 18325 | # include <limits.h> | 
|  | 18326 | #else | 
|  | 18327 | # include <assert.h> | 
|  | 18328 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18329 |  | 
|  | 18330 | #undef dlopen | 
|  | 18331 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18332 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18333 | #ifdef __cplusplus | 
|  | 18334 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18335 | { | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18336 | #endif | 
|  | 18337 | /* We use char because int might match the return type of a gcc2 | 
|  | 18338 | builtin and then its argument prototype would still apply.  */ | 
|  | 18339 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18340 | /* The GNU C library defines this for functions which it implements | 
|  | 18341 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 18342 | something starting with __ and the normal name is an alias.  */ | 
|  | 18343 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 18344 | choke me | 
|  | 18345 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18346 | char (*f) () = dlopen; | 
|  | 18347 | #endif | 
|  | 18348 | #ifdef __cplusplus | 
|  | 18349 | } | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18350 | #endif | 
|  | 18351 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18352 | int | 
|  | 18353 | main () | 
|  | 18354 | { | 
|  | 18355 | return f != dlopen; | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18356 | ; | 
|  | 18357 | return 0; | 
|  | 18358 | } | 
|  | 18359 | _ACEOF | 
|  | 18360 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18362 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18363 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18364 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18365 | rm -f conftest.er1 | 
|  | 18366 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18368 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18369 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 18370 | || test ! -s conftest.err' | 
|  | 18371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18372 | (eval $ac_try) 2>&5 | 
|  | 18373 | ac_status=$? | 
|  | 18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18375 | (exit $ac_status); }; } && | 
|  | 18376 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18378 | (eval $ac_try) 2>&5 | 
|  | 18379 | ac_status=$? | 
|  | 18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18381 | (exit $ac_status); }; }; then | 
|  | 18382 | ac_cv_func_dlopen=yes | 
|  | 18383 | else | 
|  | 18384 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18385 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18386 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18387 | ac_cv_func_dlopen=no | 
|  | 18388 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18389 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 18390 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18391 | fi | 
|  | 18392 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 18393 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 18394 | if test $ac_cv_func_dlopen = yes; then | 
|  | 18395 | lt_cv_dlopen="dlopen" | 
|  | 18396 | else | 
|  | 18397 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 18398 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 18399 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 18400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18401 | else | 
|  | 18402 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18403 | LIBS="-ldl  $LIBS" | 
|  | 18404 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18405 | /* confdefs.h.  */ | 
|  | 18406 | _ACEOF | 
|  | 18407 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18408 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18409 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18410 |  | 
|  | 18411 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18412 | #ifdef __cplusplus | 
|  | 18413 | extern "C" | 
|  | 18414 | #endif | 
|  | 18415 | /* We use char because int might match the return type of a gcc2 | 
|  | 18416 | builtin and then its argument prototype would still apply.  */ | 
|  | 18417 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18418 | int | 
|  | 18419 | main () | 
|  | 18420 | { | 
|  | 18421 | dlopen (); | 
|  | 18422 | ; | 
|  | 18423 | return 0; | 
|  | 18424 | } | 
|  | 18425 | _ACEOF | 
|  | 18426 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18428 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18429 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18430 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18431 | rm -f conftest.er1 | 
|  | 18432 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18434 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18435 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 18436 | || test ! -s conftest.err' | 
|  | 18437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18438 | (eval $ac_try) 2>&5 | 
|  | 18439 | ac_status=$? | 
|  | 18440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18441 | (exit $ac_status); }; } && | 
|  | 18442 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18444 | (eval $ac_try) 2>&5 | 
|  | 18445 | ac_status=$? | 
|  | 18446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18447 | (exit $ac_status); }; }; then | 
|  | 18448 | ac_cv_lib_dl_dlopen=yes | 
|  | 18449 | else | 
|  | 18450 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18451 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18452 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18453 | ac_cv_lib_dl_dlopen=no | 
|  | 18454 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18455 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 18456 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18457 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18458 | fi | 
|  | 18459 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 18460 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 18461 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 18462 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 18463 | else | 
|  | 18464 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 18465 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 18466 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 18467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18468 | else | 
|  | 18469 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18470 | LIBS="-lsvld  $LIBS" | 
|  | 18471 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18472 | /* confdefs.h.  */ | 
|  | 18473 | _ACEOF | 
|  | 18474 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18475 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18476 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18477 |  | 
|  | 18478 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18479 | #ifdef __cplusplus | 
|  | 18480 | extern "C" | 
|  | 18481 | #endif | 
|  | 18482 | /* We use char because int might match the return type of a gcc2 | 
|  | 18483 | builtin and then its argument prototype would still apply.  */ | 
|  | 18484 | char dlopen (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18485 | int | 
|  | 18486 | main () | 
|  | 18487 | { | 
|  | 18488 | dlopen (); | 
|  | 18489 | ; | 
|  | 18490 | return 0; | 
|  | 18491 | } | 
|  | 18492 | _ACEOF | 
|  | 18493 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18495 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18496 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18497 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18498 | rm -f conftest.er1 | 
|  | 18499 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18501 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18502 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 18503 | || test ! -s conftest.err' | 
|  | 18504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18505 | (eval $ac_try) 2>&5 | 
|  | 18506 | ac_status=$? | 
|  | 18507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18508 | (exit $ac_status); }; } && | 
|  | 18509 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18511 | (eval $ac_try) 2>&5 | 
|  | 18512 | ac_status=$? | 
|  | 18513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18514 | (exit $ac_status); }; }; then | 
|  | 18515 | ac_cv_lib_svld_dlopen=yes | 
|  | 18516 | else | 
|  | 18517 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18518 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18519 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18520 | ac_cv_lib_svld_dlopen=no | 
|  | 18521 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18522 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 18523 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18524 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18525 | fi | 
|  | 18526 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 18527 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 18528 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 18529 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 18530 | else | 
|  | 18531 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 18532 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 18533 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 18534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18535 | else | 
|  | 18536 | ac_check_lib_save_LIBS=$LIBS | 
|  | 18537 | LIBS="-ldld  $LIBS" | 
|  | 18538 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18539 | /* confdefs.h.  */ | 
|  | 18540 | _ACEOF | 
|  | 18541 | cat confdefs.h >>conftest.$ac_ext | 
|  | 18542 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 18543 | /* end confdefs.h.  */ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18544 |  | 
|  | 18545 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 18546 | #ifdef __cplusplus | 
|  | 18547 | extern "C" | 
|  | 18548 | #endif | 
|  | 18549 | /* We use char because int might match the return type of a gcc2 | 
|  | 18550 | builtin and then its argument prototype would still apply.  */ | 
|  | 18551 | char dld_link (); | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18552 | int | 
|  | 18553 | main () | 
|  | 18554 | { | 
|  | 18555 | dld_link (); | 
|  | 18556 | ; | 
|  | 18557 | return 0; | 
|  | 18558 | } | 
|  | 18559 | _ACEOF | 
|  | 18560 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 18561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18562 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18563 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18564 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 18565 | rm -f conftest.er1 | 
|  | 18566 | cat conftest.err >&5 | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18568 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18569 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 18570 | || test ! -s conftest.err' | 
|  | 18571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18572 | (eval $ac_try) 2>&5 | 
|  | 18573 | ac_status=$? | 
|  | 18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18575 | (exit $ac_status); }; } && | 
|  | 18576 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 18578 | (eval $ac_try) 2>&5 | 
|  | 18579 | ac_status=$? | 
|  | 18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18581 | (exit $ac_status); }; }; then | 
|  | 18582 | ac_cv_lib_dld_dld_link=yes | 
|  | 18583 | else | 
|  | 18584 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18585 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 18586 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18587 | ac_cv_lib_dld_dld_link=no | 
|  | 18588 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18589 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 18590 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18591 | LIBS=$ac_check_lib_save_LIBS | 
|  | 18592 | fi | 
|  | 18593 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 18594 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 18595 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 18596 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 18597 | fi | 
|  | 18598 |  | 
|  | 18599 |  | 
|  | 18600 | fi | 
|  | 18601 |  | 
|  | 18602 |  | 
|  | 18603 | fi | 
|  | 18604 |  | 
|  | 18605 |  | 
|  | 18606 | fi | 
|  | 18607 |  | 
|  | 18608 |  | 
|  | 18609 | fi | 
|  | 18610 |  | 
|  | 18611 |  | 
|  | 18612 | fi | 
|  | 18613 |  | 
|  | 18614 | ;; | 
|  | 18615 | esac | 
|  | 18616 |  | 
|  | 18617 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 18618 | enable_dlopen=yes | 
|  | 18619 | else | 
|  | 18620 | enable_dlopen=no | 
|  | 18621 | fi | 
|  | 18622 |  | 
|  | 18623 | case $lt_cv_dlopen in | 
|  | 18624 | dlopen) | 
|  | 18625 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 18626 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 18627 |  | 
|  | 18628 | save_LDFLAGS="$LDFLAGS" | 
|  | 18629 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 18630 |  | 
|  | 18631 | save_LIBS="$LIBS" | 
|  | 18632 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 18633 |  | 
|  | 18634 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 18635 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 18636 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 18637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18638 | else | 
|  | 18639 | if test "$cross_compiling" = yes; then : | 
|  | 18640 | lt_cv_dlopen_self=cross | 
|  | 18641 | else | 
|  | 18642 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 18643 | lt_status=$lt_dlunknown | 
|  | 18644 | cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18645 | #line 18645 "configure" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18646 | #include "confdefs.h" | 
|  | 18647 |  | 
|  | 18648 | #if HAVE_DLFCN_H | 
|  | 18649 | #include <dlfcn.h> | 
|  | 18650 | #endif | 
|  | 18651 |  | 
|  | 18652 | #include <stdio.h> | 
|  | 18653 |  | 
|  | 18654 | #ifdef RTLD_GLOBAL | 
|  | 18655 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 18656 | #else | 
|  | 18657 | #  ifdef DL_GLOBAL | 
|  | 18658 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 18659 | #  else | 
|  | 18660 | #    define LT_DLGLOBAL		0 | 
|  | 18661 | #  endif | 
|  | 18662 | #endif | 
|  | 18663 |  | 
|  | 18664 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 18665 | find out it does not work in some platform. */ | 
|  | 18666 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 18667 | #  ifdef RTLD_LAZY | 
|  | 18668 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 18669 | #  else | 
|  | 18670 | #    ifdef DL_LAZY | 
|  | 18671 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 18672 | #    else | 
|  | 18673 | #      ifdef RTLD_NOW | 
|  | 18674 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 18675 | #      else | 
|  | 18676 | #        ifdef DL_NOW | 
|  | 18677 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 18678 | #        else | 
|  | 18679 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 18680 | #        endif | 
|  | 18681 | #      endif | 
|  | 18682 | #    endif | 
|  | 18683 | #  endif | 
|  | 18684 | #endif | 
|  | 18685 |  | 
|  | 18686 | #ifdef __cplusplus | 
|  | 18687 | extern "C" void exit (int); | 
|  | 18688 | #endif | 
|  | 18689 |  | 
|  | 18690 | void fnord() { int i=42;} | 
|  | 18691 | int main () | 
|  | 18692 | { | 
|  | 18693 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 18694 | int status = $lt_dlunknown; | 
|  | 18695 |  | 
|  | 18696 | if (self) | 
|  | 18697 | { | 
|  | 18698 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 18699 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 18700 | /* dlclose (self); */ | 
|  | 18701 | } | 
|  | 18702 |  | 
|  | 18703 | exit (status); | 
|  | 18704 | } | 
|  | 18705 | EOF | 
|  | 18706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18707 | (eval $ac_link) 2>&5 | 
|  | 18708 | ac_status=$? | 
|  | 18709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18710 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 18711 | (./conftest; exit; ) 2>/dev/null | 
|  | 18712 | lt_status=$? | 
|  | 18713 | case x$lt_status in | 
|  | 18714 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 18715 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 18716 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 18717 | esac | 
|  | 18718 | else : | 
|  | 18719 | # compilation failed | 
|  | 18720 | lt_cv_dlopen_self=no | 
|  | 18721 | fi | 
|  | 18722 | fi | 
|  | 18723 | rm -fr conftest* | 
|  | 18724 |  | 
|  | 18725 |  | 
|  | 18726 | fi | 
|  | 18727 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 18728 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 18729 |  | 
|  | 18730 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 18731 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 18732 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 18733 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 18734 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 18735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18736 | else | 
|  | 18737 | if test "$cross_compiling" = yes; then : | 
|  | 18738 | lt_cv_dlopen_self_static=cross | 
|  | 18739 | else | 
|  | 18740 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 18741 | lt_status=$lt_dlunknown | 
|  | 18742 | cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18743 | #line 18743 "configure" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18744 | #include "confdefs.h" | 
|  | 18745 |  | 
|  | 18746 | #if HAVE_DLFCN_H | 
|  | 18747 | #include <dlfcn.h> | 
|  | 18748 | #endif | 
|  | 18749 |  | 
|  | 18750 | #include <stdio.h> | 
|  | 18751 |  | 
|  | 18752 | #ifdef RTLD_GLOBAL | 
|  | 18753 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 18754 | #else | 
|  | 18755 | #  ifdef DL_GLOBAL | 
|  | 18756 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 18757 | #  else | 
|  | 18758 | #    define LT_DLGLOBAL		0 | 
|  | 18759 | #  endif | 
|  | 18760 | #endif | 
|  | 18761 |  | 
|  | 18762 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 18763 | find out it does not work in some platform. */ | 
|  | 18764 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 18765 | #  ifdef RTLD_LAZY | 
|  | 18766 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 18767 | #  else | 
|  | 18768 | #    ifdef DL_LAZY | 
|  | 18769 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 18770 | #    else | 
|  | 18771 | #      ifdef RTLD_NOW | 
|  | 18772 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 18773 | #      else | 
|  | 18774 | #        ifdef DL_NOW | 
|  | 18775 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 18776 | #        else | 
|  | 18777 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 18778 | #        endif | 
|  | 18779 | #      endif | 
|  | 18780 | #    endif | 
|  | 18781 | #  endif | 
|  | 18782 | #endif | 
|  | 18783 |  | 
|  | 18784 | #ifdef __cplusplus | 
|  | 18785 | extern "C" void exit (int); | 
|  | 18786 | #endif | 
|  | 18787 |  | 
|  | 18788 | void fnord() { int i=42;} | 
|  | 18789 | int main () | 
|  | 18790 | { | 
|  | 18791 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 18792 | int status = $lt_dlunknown; | 
|  | 18793 |  | 
|  | 18794 | if (self) | 
|  | 18795 | { | 
|  | 18796 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 18797 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 18798 | /* dlclose (self); */ | 
|  | 18799 | } | 
|  | 18800 |  | 
|  | 18801 | exit (status); | 
|  | 18802 | } | 
|  | 18803 | EOF | 
|  | 18804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18805 | (eval $ac_link) 2>&5 | 
|  | 18806 | ac_status=$? | 
|  | 18807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18808 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 18809 | (./conftest; exit; ) 2>/dev/null | 
|  | 18810 | lt_status=$? | 
|  | 18811 | case x$lt_status in | 
|  | 18812 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 18813 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 18814 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 18815 | esac | 
|  | 18816 | else : | 
|  | 18817 | # compilation failed | 
|  | 18818 | lt_cv_dlopen_self_static=no | 
|  | 18819 | fi | 
|  | 18820 | fi | 
|  | 18821 | rm -fr conftest* | 
|  | 18822 |  | 
|  | 18823 |  | 
|  | 18824 | fi | 
|  | 18825 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 18826 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 18827 | fi | 
|  | 18828 |  | 
|  | 18829 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 18830 | LDFLAGS="$save_LDFLAGS" | 
|  | 18831 | LIBS="$save_LIBS" | 
|  | 18832 | ;; | 
|  | 18833 | esac | 
|  | 18834 |  | 
|  | 18835 | case $lt_cv_dlopen_self in | 
|  | 18836 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 18837 | *) enable_dlopen_self=unknown ;; | 
|  | 18838 | esac | 
|  | 18839 |  | 
|  | 18840 | case $lt_cv_dlopen_self_static in | 
|  | 18841 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 18842 | *) enable_dlopen_self_static=unknown ;; | 
|  | 18843 | esac | 
|  | 18844 | fi | 
|  | 18845 |  | 
|  | 18846 |  | 
|  | 18847 | # The else clause should only fire when bootstrapping the | 
|  | 18848 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 18849 | # with your package, and you will get complaints that there are | 
|  | 18850 | # no rules to generate ltmain.sh. | 
|  | 18851 | if test -f "$ltmain"; then | 
|  | 18852 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 18853 | # without removal of \ escapes. | 
|  | 18854 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 18855 | setopt NO_GLOB_SUBST | 
|  | 18856 | fi | 
|  | 18857 | # Now quote all the things that may contain metacharacters while being | 
|  | 18858 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 18859 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18860 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 18861 | SED SHELL STRIP \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18862 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 18863 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 18864 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 18865 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 18866 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 18867 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 18868 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 18869 | compiler_GCJ \ | 
|  | 18870 | CC_GCJ \ | 
|  | 18871 | LD_GCJ \ | 
|  | 18872 | lt_prog_compiler_wl_GCJ \ | 
|  | 18873 | lt_prog_compiler_pic_GCJ \ | 
|  | 18874 | lt_prog_compiler_static_GCJ \ | 
|  | 18875 | lt_prog_compiler_no_builtin_flag_GCJ \ | 
|  | 18876 | export_dynamic_flag_spec_GCJ \ | 
|  | 18877 | thread_safe_flag_spec_GCJ \ | 
|  | 18878 | whole_archive_flag_spec_GCJ \ | 
|  | 18879 | enable_shared_with_static_runtimes_GCJ \ | 
|  | 18880 | old_archive_cmds_GCJ \ | 
|  | 18881 | old_archive_from_new_cmds_GCJ \ | 
|  | 18882 | predep_objects_GCJ \ | 
|  | 18883 | postdep_objects_GCJ \ | 
|  | 18884 | predeps_GCJ \ | 
|  | 18885 | postdeps_GCJ \ | 
|  | 18886 | compiler_lib_search_path_GCJ \ | 
|  | 18887 | archive_cmds_GCJ \ | 
|  | 18888 | archive_expsym_cmds_GCJ \ | 
|  | 18889 | postinstall_cmds_GCJ \ | 
|  | 18890 | postuninstall_cmds_GCJ \ | 
|  | 18891 | old_archive_from_expsyms_cmds_GCJ \ | 
|  | 18892 | allow_undefined_flag_GCJ \ | 
|  | 18893 | no_undefined_flag_GCJ \ | 
|  | 18894 | export_symbols_cmds_GCJ \ | 
|  | 18895 | hardcode_libdir_flag_spec_GCJ \ | 
|  | 18896 | hardcode_libdir_flag_spec_ld_GCJ \ | 
|  | 18897 | hardcode_libdir_separator_GCJ \ | 
|  | 18898 | hardcode_automatic_GCJ \ | 
|  | 18899 | module_cmds_GCJ \ | 
|  | 18900 | module_expsym_cmds_GCJ \ | 
|  | 18901 | lt_cv_prog_compiler_c_o_GCJ \ | 
|  | 18902 | exclude_expsyms_GCJ \ | 
|  | 18903 | include_expsyms_GCJ; do | 
|  | 18904 |  | 
|  | 18905 | case $var in | 
|  | 18906 | old_archive_cmds_GCJ | \ | 
|  | 18907 | old_archive_from_new_cmds_GCJ | \ | 
|  | 18908 | archive_cmds_GCJ | \ | 
|  | 18909 | archive_expsym_cmds_GCJ | \ | 
|  | 18910 | module_cmds_GCJ | \ | 
|  | 18911 | module_expsym_cmds_GCJ | \ | 
|  | 18912 | old_archive_from_expsyms_cmds_GCJ | \ | 
|  | 18913 | export_symbols_cmds_GCJ | \ | 
|  | 18914 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 18915 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 18916 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 18917 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 18918 | # Double-quote double-evaled strings. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18919 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18920 | ;; | 
|  | 18921 | *) | 
|  | 18922 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 18923 | ;; | 
|  | 18924 | esac | 
|  | 18925 | done | 
|  | 18926 |  | 
|  | 18927 | case $lt_echo in | 
|  | 18928 | *'\$0 --fallback-echo"') | 
|  | 18929 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 18930 | ;; | 
|  | 18931 | esac | 
|  | 18932 |  | 
|  | 18933 | cfgfile="$ofile" | 
|  | 18934 |  | 
|  | 18935 | cat <<__EOF__ >> "$cfgfile" | 
|  | 18936 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 18937 |  | 
|  | 18938 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 18939 |  | 
|  | 18940 | # Shell to use when invoking shell scripts. | 
|  | 18941 | SHELL=$lt_SHELL | 
|  | 18942 |  | 
|  | 18943 | # Whether or not to build shared libraries. | 
|  | 18944 | build_libtool_libs=$enable_shared | 
|  | 18945 |  | 
|  | 18946 | # Whether or not to build static libraries. | 
|  | 18947 | build_old_libs=$enable_static | 
|  | 18948 |  | 
|  | 18949 | # Whether or not to add -lc for building shared libraries. | 
|  | 18950 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
|  | 18951 |  | 
|  | 18952 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 18953 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
|  | 18954 |  | 
|  | 18955 | # Whether or not to optimize for fast installation. | 
|  | 18956 | fast_install=$enable_fast_install | 
|  | 18957 |  | 
|  | 18958 | # The host system. | 
|  | 18959 | host_alias=$host_alias | 
|  | 18960 | host=$host | 
|  | 18961 |  | 
|  | 18962 | # An echo program that does not interpret backslashes. | 
|  | 18963 | echo=$lt_echo | 
|  | 18964 |  | 
|  | 18965 | # The archiver. | 
|  | 18966 | AR=$lt_AR | 
|  | 18967 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 18968 |  | 
|  | 18969 | # A C compiler. | 
|  | 18970 | LTCC=$lt_LTCC | 
|  | 18971 |  | 
|  | 18972 | # A language-specific compiler. | 
|  | 18973 | CC=$lt_compiler_GCJ | 
|  | 18974 |  | 
|  | 18975 | # Is the compiler the GNU C compiler? | 
|  | 18976 | with_gcc=$GCC_GCJ | 
|  | 18977 |  | 
|  | 18978 | # An ERE matcher. | 
|  | 18979 | EGREP=$lt_EGREP | 
|  | 18980 |  | 
|  | 18981 | # The linker used to build libraries. | 
|  | 18982 | LD=$lt_LD_GCJ | 
|  | 18983 |  | 
|  | 18984 | # Whether we need hard or soft links. | 
|  | 18985 | LN_S=$lt_LN_S | 
|  | 18986 |  | 
|  | 18987 | # A BSD-compatible nm program. | 
|  | 18988 | NM=$lt_NM | 
|  | 18989 |  | 
|  | 18990 | # A symbol stripping program | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18991 | STRIP=$lt_STRIP | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18992 |  | 
|  | 18993 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 18994 | MAGIC_CMD=$MAGIC_CMD | 
|  | 18995 |  | 
|  | 18996 | # Used on cygwin: DLL creation program. | 
|  | 18997 | DLLTOOL="$DLLTOOL" | 
|  | 18998 |  | 
|  | 18999 | # Used on cygwin: object dumper. | 
|  | 19000 | OBJDUMP="$OBJDUMP" | 
|  | 19001 |  | 
|  | 19002 | # Used on cygwin: assembler. | 
|  | 19003 | AS="$AS" | 
|  | 19004 |  | 
|  | 19005 | # The name of the directory that contains temporary libtool files. | 
|  | 19006 | objdir=$objdir | 
|  | 19007 |  | 
|  | 19008 | # How to create reloadable object files. | 
|  | 19009 | reload_flag=$lt_reload_flag | 
|  | 19010 | reload_cmds=$lt_reload_cmds | 
|  | 19011 |  | 
|  | 19012 | # How to pass a linker flag through the compiler. | 
|  | 19013 | wl=$lt_lt_prog_compiler_wl_GCJ | 
|  | 19014 |  | 
|  | 19015 | # Object file suffix (normally "o"). | 
|  | 19016 | objext="$ac_objext" | 
|  | 19017 |  | 
|  | 19018 | # Old archive suffix (normally "a"). | 
|  | 19019 | libext="$libext" | 
|  | 19020 |  | 
|  | 19021 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19022 | shrext_cmds='$shrext_cmds' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19023 |  | 
|  | 19024 | # Executable file suffix (normally ""). | 
|  | 19025 | exeext="$exeext" | 
|  | 19026 |  | 
|  | 19027 | # Additional compiler flags for building library objects. | 
|  | 19028 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
|  | 19029 | pic_mode=$pic_mode | 
|  | 19030 |  | 
|  | 19031 | # What is the maximum length of a command? | 
|  | 19032 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 19033 |  | 
|  | 19034 | # Does compiler simultaneously support -c and -o options? | 
|  | 19035 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
|  | 19036 |  | 
|  | 19037 | # Must we lock files when doing compilation ? | 
|  | 19038 | need_locks=$lt_need_locks | 
|  | 19039 |  | 
|  | 19040 | # Do we need the lib prefix for modules? | 
|  | 19041 | need_lib_prefix=$need_lib_prefix | 
|  | 19042 |  | 
|  | 19043 | # Do we need a version for libraries? | 
|  | 19044 | need_version=$need_version | 
|  | 19045 |  | 
|  | 19046 | # Whether dlopen is supported. | 
|  | 19047 | dlopen_support=$enable_dlopen | 
|  | 19048 |  | 
|  | 19049 | # Whether dlopen of programs is supported. | 
|  | 19050 | dlopen_self=$enable_dlopen_self | 
|  | 19051 |  | 
|  | 19052 | # Whether dlopen of statically linked programs is supported. | 
|  | 19053 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 19054 |  | 
|  | 19055 | # Compiler flag to prevent dynamic linking. | 
|  | 19056 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
|  | 19057 |  | 
|  | 19058 | # Compiler flag to turn off builtin functions. | 
|  | 19059 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
|  | 19060 |  | 
|  | 19061 | # Compiler flag to allow reflexive dlopens. | 
|  | 19062 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
|  | 19063 |  | 
|  | 19064 | # Compiler flag to generate shared objects directly from archives. | 
|  | 19065 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
|  | 19066 |  | 
|  | 19067 | # Compiler flag to generate thread-safe objects. | 
|  | 19068 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
|  | 19069 |  | 
|  | 19070 | # Library versioning type. | 
|  | 19071 | version_type=$version_type | 
|  | 19072 |  | 
|  | 19073 | # Format of library name prefix. | 
|  | 19074 | libname_spec=$lt_libname_spec | 
|  | 19075 |  | 
|  | 19076 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 19077 | # The last name is the one that the linker finds with -lNAME. | 
|  | 19078 | library_names_spec=$lt_library_names_spec | 
|  | 19079 |  | 
|  | 19080 | # The coded name of the library, if different from the real name. | 
|  | 19081 | soname_spec=$lt_soname_spec | 
|  | 19082 |  | 
|  | 19083 | # Commands used to build and install an old-style archive. | 
|  | 19084 | RANLIB=$lt_RANLIB | 
|  | 19085 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
|  | 19086 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 19087 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 19088 |  | 
|  | 19089 | # Create an old-style archive from a shared archive. | 
|  | 19090 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
|  | 19091 |  | 
|  | 19092 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 19093 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
|  | 19094 |  | 
|  | 19095 | # Commands used to build and install a shared archive. | 
|  | 19096 | archive_cmds=$lt_archive_cmds_GCJ | 
|  | 19097 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
|  | 19098 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 19099 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 19100 |  | 
|  | 19101 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 19102 | module_cmds=$lt_module_cmds_GCJ | 
|  | 19103 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
|  | 19104 |  | 
|  | 19105 | # Commands to strip libraries. | 
|  | 19106 | old_striplib=$lt_old_striplib | 
|  | 19107 | striplib=$lt_striplib | 
|  | 19108 |  | 
|  | 19109 | # Dependencies to place before the objects being linked to create a | 
|  | 19110 | # shared library. | 
|  | 19111 | predep_objects=$lt_predep_objects_GCJ | 
|  | 19112 |  | 
|  | 19113 | # Dependencies to place after the objects being linked to create a | 
|  | 19114 | # shared library. | 
|  | 19115 | postdep_objects=$lt_postdep_objects_GCJ | 
|  | 19116 |  | 
|  | 19117 | # Dependencies to place before the objects being linked to create a | 
|  | 19118 | # shared library. | 
|  | 19119 | predeps=$lt_predeps_GCJ | 
|  | 19120 |  | 
|  | 19121 | # Dependencies to place after the objects being linked to create a | 
|  | 19122 | # shared library. | 
|  | 19123 | postdeps=$lt_postdeps_GCJ | 
|  | 19124 |  | 
|  | 19125 | # The library search path used internally by the compiler when linking | 
|  | 19126 | # a shared library. | 
|  | 19127 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
|  | 19128 |  | 
|  | 19129 | # Method to check whether dependent libraries are shared objects. | 
|  | 19130 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 19131 |  | 
|  | 19132 | # Command to use when deplibs_check_method == file_magic. | 
|  | 19133 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 19134 |  | 
|  | 19135 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 19136 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
|  | 19137 |  | 
|  | 19138 | # Flag that forces no undefined symbols. | 
|  | 19139 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
|  | 19140 |  | 
|  | 19141 | # Commands used to finish a libtool library installation in a directory. | 
|  | 19142 | finish_cmds=$lt_finish_cmds | 
|  | 19143 |  | 
|  | 19144 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 19145 | finish_eval=$lt_finish_eval | 
|  | 19146 |  | 
|  | 19147 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 19148 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 19149 |  | 
|  | 19150 | # Transform the output of nm in a proper C declaration | 
|  | 19151 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 19152 |  | 
|  | 19153 | # Transform the output of nm in a C name address pair | 
|  | 19154 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 19155 |  | 
|  | 19156 | # This is the shared library runtime path variable. | 
|  | 19157 | runpath_var=$runpath_var | 
|  | 19158 |  | 
|  | 19159 | # This is the shared library path variable. | 
|  | 19160 | shlibpath_var=$shlibpath_var | 
|  | 19161 |  | 
|  | 19162 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 19163 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 19164 |  | 
|  | 19165 | # How to hardcode a shared library path into an executable. | 
|  | 19166 | hardcode_action=$hardcode_action_GCJ | 
|  | 19167 |  | 
|  | 19168 | # Whether we should hardcode library paths into libraries. | 
|  | 19169 | hardcode_into_libs=$hardcode_into_libs | 
|  | 19170 |  | 
|  | 19171 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 19172 | # This must work even if \$libdir does not exist. | 
|  | 19173 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
|  | 19174 |  | 
|  | 19175 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 19176 | # a binary during linking. This must work even if \$libdir does | 
|  | 19177 | # not exist. | 
|  | 19178 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
|  | 19179 |  | 
|  | 19180 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 19181 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
|  | 19182 |  | 
|  | 19183 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 19184 | # resulting binary. | 
|  | 19185 | hardcode_direct=$hardcode_direct_GCJ | 
|  | 19186 |  | 
|  | 19187 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 19188 | # resulting binary. | 
|  | 19189 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
|  | 19190 |  | 
|  | 19191 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 19192 | # the resulting binary. | 
|  | 19193 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
|  | 19194 |  | 
|  | 19195 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 19196 | # and all subsequent libraries and executables linked against it. | 
|  | 19197 | hardcode_automatic=$hardcode_automatic_GCJ | 
|  | 19198 |  | 
|  | 19199 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 19200 | # restored at relink time. | 
|  | 19201 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 19202 |  | 
|  | 19203 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 19204 | link_all_deplibs=$link_all_deplibs_GCJ | 
|  | 19205 |  | 
|  | 19206 | # Compile-time system search path for libraries | 
|  | 19207 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 19208 |  | 
|  | 19209 | # Run-time system search path for libraries | 
|  | 19210 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 19211 |  | 
|  | 19212 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 19213 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
|  | 19214 |  | 
|  | 19215 | # Set to yes if exported symbols are required. | 
|  | 19216 | always_export_symbols=$always_export_symbols_GCJ | 
|  | 19217 |  | 
|  | 19218 | # The commands to list exported symbols. | 
|  | 19219 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
|  | 19220 |  | 
|  | 19221 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 19222 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 19223 |  | 
|  | 19224 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 19225 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
|  | 19226 |  | 
|  | 19227 | # Symbols that must always be exported. | 
|  | 19228 | include_expsyms=$lt_include_expsyms_GCJ | 
|  | 19229 |  | 
|  | 19230 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 19231 |  | 
|  | 19232 | __EOF__ | 
|  | 19233 |  | 
|  | 19234 |  | 
|  | 19235 | else | 
|  | 19236 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 19237 | # `config.status --recheck' to rerun these tests and create the | 
|  | 19238 | # libtool script then. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19239 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 19240 | if test -f "$ltmain_in"; then | 
|  | 19241 | test -f Makefile && make "$ltmain" | 
|  | 19242 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19243 | fi | 
|  | 19244 |  | 
|  | 19245 |  | 
|  | 19246 | ac_ext=c | 
|  | 19247 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19251 |  | 
|  | 19252 | CC="$lt_save_CC" | 
|  | 19253 |  | 
|  | 19254 | else | 
|  | 19255 | tagname="" | 
|  | 19256 | fi | 
|  | 19257 | ;; | 
|  | 19258 |  | 
|  | 19259 | RC) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19260 | ac_ext=c | 
|  | 19261 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19265 |  | 
|  | 19266 |  | 
|  | 19267 | # Source file extension for RC test sources. | 
|  | 19268 | ac_ext=rc | 
|  | 19269 |  | 
|  | 19270 | # Object file extension for compiled RC test sources. | 
|  | 19271 | objext=o | 
|  | 19272 | objext_RC=$objext | 
|  | 19273 |  | 
|  | 19274 | # Code to be used in simple compile tests | 
|  | 19275 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
|  | 19276 |  | 
|  | 19277 | # Code to be used in simple link tests | 
|  | 19278 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
|  | 19279 |  | 
|  | 19280 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 19281 |  | 
|  | 19282 | # If no C compiler was specified, use CC. | 
|  | 19283 | LTCC=${LTCC-"$CC"} | 
|  | 19284 |  | 
|  | 19285 | # Allow CC to be a program name with arguments. | 
|  | 19286 | compiler=$CC | 
|  | 19287 |  | 
|  | 19288 |  | 
|  | 19289 | # Allow CC to be a program name with arguments. | 
|  | 19290 | lt_save_CC="$CC" | 
|  | 19291 | CC=${RC-"windres"} | 
|  | 19292 | compiler=$CC | 
|  | 19293 | compiler_RC=$CC | 
|  | 19294 | lt_cv_prog_compiler_c_o_RC=yes | 
|  | 19295 |  | 
|  | 19296 | # The else clause should only fire when bootstrapping the | 
|  | 19297 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 19298 | # with your package, and you will get complaints that there are | 
|  | 19299 | # no rules to generate ltmain.sh. | 
|  | 19300 | if test -f "$ltmain"; then | 
|  | 19301 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 19302 | # without removal of \ escapes. | 
|  | 19303 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 19304 | setopt NO_GLOB_SUBST | 
|  | 19305 | fi | 
|  | 19306 | # Now quote all the things that may contain metacharacters while being | 
|  | 19307 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 19308 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19309 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 19310 | SED SHELL STRIP \ | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19311 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 19312 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 19313 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 19314 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 19315 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 19316 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 19317 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 19318 | compiler_RC \ | 
|  | 19319 | CC_RC \ | 
|  | 19320 | LD_RC \ | 
|  | 19321 | lt_prog_compiler_wl_RC \ | 
|  | 19322 | lt_prog_compiler_pic_RC \ | 
|  | 19323 | lt_prog_compiler_static_RC \ | 
|  | 19324 | lt_prog_compiler_no_builtin_flag_RC \ | 
|  | 19325 | export_dynamic_flag_spec_RC \ | 
|  | 19326 | thread_safe_flag_spec_RC \ | 
|  | 19327 | whole_archive_flag_spec_RC \ | 
|  | 19328 | enable_shared_with_static_runtimes_RC \ | 
|  | 19329 | old_archive_cmds_RC \ | 
|  | 19330 | old_archive_from_new_cmds_RC \ | 
|  | 19331 | predep_objects_RC \ | 
|  | 19332 | postdep_objects_RC \ | 
|  | 19333 | predeps_RC \ | 
|  | 19334 | postdeps_RC \ | 
|  | 19335 | compiler_lib_search_path_RC \ | 
|  | 19336 | archive_cmds_RC \ | 
|  | 19337 | archive_expsym_cmds_RC \ | 
|  | 19338 | postinstall_cmds_RC \ | 
|  | 19339 | postuninstall_cmds_RC \ | 
|  | 19340 | old_archive_from_expsyms_cmds_RC \ | 
|  | 19341 | allow_undefined_flag_RC \ | 
|  | 19342 | no_undefined_flag_RC \ | 
|  | 19343 | export_symbols_cmds_RC \ | 
|  | 19344 | hardcode_libdir_flag_spec_RC \ | 
|  | 19345 | hardcode_libdir_flag_spec_ld_RC \ | 
|  | 19346 | hardcode_libdir_separator_RC \ | 
|  | 19347 | hardcode_automatic_RC \ | 
|  | 19348 | module_cmds_RC \ | 
|  | 19349 | module_expsym_cmds_RC \ | 
|  | 19350 | lt_cv_prog_compiler_c_o_RC \ | 
|  | 19351 | exclude_expsyms_RC \ | 
|  | 19352 | include_expsyms_RC; do | 
|  | 19353 |  | 
|  | 19354 | case $var in | 
|  | 19355 | old_archive_cmds_RC | \ | 
|  | 19356 | old_archive_from_new_cmds_RC | \ | 
|  | 19357 | archive_cmds_RC | \ | 
|  | 19358 | archive_expsym_cmds_RC | \ | 
|  | 19359 | module_cmds_RC | \ | 
|  | 19360 | module_expsym_cmds_RC | \ | 
|  | 19361 | old_archive_from_expsyms_cmds_RC | \ | 
|  | 19362 | export_symbols_cmds_RC | \ | 
|  | 19363 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 19364 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 19365 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 19366 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 19367 | # Double-quote double-evaled strings. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19368 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19369 | ;; | 
|  | 19370 | *) | 
|  | 19371 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 19372 | ;; | 
|  | 19373 | esac | 
|  | 19374 | done | 
|  | 19375 |  | 
|  | 19376 | case $lt_echo in | 
|  | 19377 | *'\$0 --fallback-echo"') | 
|  | 19378 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 19379 | ;; | 
|  | 19380 | esac | 
|  | 19381 |  | 
|  | 19382 | cfgfile="$ofile" | 
|  | 19383 |  | 
|  | 19384 | cat <<__EOF__ >> "$cfgfile" | 
|  | 19385 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 19386 |  | 
|  | 19387 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 19388 |  | 
|  | 19389 | # Shell to use when invoking shell scripts. | 
|  | 19390 | SHELL=$lt_SHELL | 
|  | 19391 |  | 
|  | 19392 | # Whether or not to build shared libraries. | 
|  | 19393 | build_libtool_libs=$enable_shared | 
|  | 19394 |  | 
|  | 19395 | # Whether or not to build static libraries. | 
|  | 19396 | build_old_libs=$enable_static | 
|  | 19397 |  | 
|  | 19398 | # Whether or not to add -lc for building shared libraries. | 
|  | 19399 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
|  | 19400 |  | 
|  | 19401 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 19402 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
|  | 19403 |  | 
|  | 19404 | # Whether or not to optimize for fast installation. | 
|  | 19405 | fast_install=$enable_fast_install | 
|  | 19406 |  | 
|  | 19407 | # The host system. | 
|  | 19408 | host_alias=$host_alias | 
|  | 19409 | host=$host | 
|  | 19410 |  | 
|  | 19411 | # An echo program that does not interpret backslashes. | 
|  | 19412 | echo=$lt_echo | 
|  | 19413 |  | 
|  | 19414 | # The archiver. | 
|  | 19415 | AR=$lt_AR | 
|  | 19416 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 19417 |  | 
|  | 19418 | # A C compiler. | 
|  | 19419 | LTCC=$lt_LTCC | 
|  | 19420 |  | 
|  | 19421 | # A language-specific compiler. | 
|  | 19422 | CC=$lt_compiler_RC | 
|  | 19423 |  | 
|  | 19424 | # Is the compiler the GNU C compiler? | 
|  | 19425 | with_gcc=$GCC_RC | 
|  | 19426 |  | 
|  | 19427 | # An ERE matcher. | 
|  | 19428 | EGREP=$lt_EGREP | 
|  | 19429 |  | 
|  | 19430 | # The linker used to build libraries. | 
|  | 19431 | LD=$lt_LD_RC | 
|  | 19432 |  | 
|  | 19433 | # Whether we need hard or soft links. | 
|  | 19434 | LN_S=$lt_LN_S | 
|  | 19435 |  | 
|  | 19436 | # A BSD-compatible nm program. | 
|  | 19437 | NM=$lt_NM | 
|  | 19438 |  | 
|  | 19439 | # A symbol stripping program | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19440 | STRIP=$lt_STRIP | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19441 |  | 
|  | 19442 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 19443 | MAGIC_CMD=$MAGIC_CMD | 
|  | 19444 |  | 
|  | 19445 | # Used on cygwin: DLL creation program. | 
|  | 19446 | DLLTOOL="$DLLTOOL" | 
|  | 19447 |  | 
|  | 19448 | # Used on cygwin: object dumper. | 
|  | 19449 | OBJDUMP="$OBJDUMP" | 
|  | 19450 |  | 
|  | 19451 | # Used on cygwin: assembler. | 
|  | 19452 | AS="$AS" | 
|  | 19453 |  | 
|  | 19454 | # The name of the directory that contains temporary libtool files. | 
|  | 19455 | objdir=$objdir | 
|  | 19456 |  | 
|  | 19457 | # How to create reloadable object files. | 
|  | 19458 | reload_flag=$lt_reload_flag | 
|  | 19459 | reload_cmds=$lt_reload_cmds | 
|  | 19460 |  | 
|  | 19461 | # How to pass a linker flag through the compiler. | 
|  | 19462 | wl=$lt_lt_prog_compiler_wl_RC | 
|  | 19463 |  | 
|  | 19464 | # Object file suffix (normally "o"). | 
|  | 19465 | objext="$ac_objext" | 
|  | 19466 |  | 
|  | 19467 | # Old archive suffix (normally "a"). | 
|  | 19468 | libext="$libext" | 
|  | 19469 |  | 
|  | 19470 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19471 | shrext_cmds='$shrext_cmds' | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19472 |  | 
|  | 19473 | # Executable file suffix (normally ""). | 
|  | 19474 | exeext="$exeext" | 
|  | 19475 |  | 
|  | 19476 | # Additional compiler flags for building library objects. | 
|  | 19477 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
|  | 19478 | pic_mode=$pic_mode | 
|  | 19479 |  | 
|  | 19480 | # What is the maximum length of a command? | 
|  | 19481 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 19482 |  | 
|  | 19483 | # Does compiler simultaneously support -c and -o options? | 
|  | 19484 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
|  | 19485 |  | 
|  | 19486 | # Must we lock files when doing compilation ? | 
|  | 19487 | need_locks=$lt_need_locks | 
|  | 19488 |  | 
|  | 19489 | # Do we need the lib prefix for modules? | 
|  | 19490 | need_lib_prefix=$need_lib_prefix | 
|  | 19491 |  | 
|  | 19492 | # Do we need a version for libraries? | 
|  | 19493 | need_version=$need_version | 
|  | 19494 |  | 
|  | 19495 | # Whether dlopen is supported. | 
|  | 19496 | dlopen_support=$enable_dlopen | 
|  | 19497 |  | 
|  | 19498 | # Whether dlopen of programs is supported. | 
|  | 19499 | dlopen_self=$enable_dlopen_self | 
|  | 19500 |  | 
|  | 19501 | # Whether dlopen of statically linked programs is supported. | 
|  | 19502 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 19503 |  | 
|  | 19504 | # Compiler flag to prevent dynamic linking. | 
|  | 19505 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
|  | 19506 |  | 
|  | 19507 | # Compiler flag to turn off builtin functions. | 
|  | 19508 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
|  | 19509 |  | 
|  | 19510 | # Compiler flag to allow reflexive dlopens. | 
|  | 19511 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
|  | 19512 |  | 
|  | 19513 | # Compiler flag to generate shared objects directly from archives. | 
|  | 19514 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
|  | 19515 |  | 
|  | 19516 | # Compiler flag to generate thread-safe objects. | 
|  | 19517 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
|  | 19518 |  | 
|  | 19519 | # Library versioning type. | 
|  | 19520 | version_type=$version_type | 
|  | 19521 |  | 
|  | 19522 | # Format of library name prefix. | 
|  | 19523 | libname_spec=$lt_libname_spec | 
|  | 19524 |  | 
|  | 19525 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 19526 | # The last name is the one that the linker finds with -lNAME. | 
|  | 19527 | library_names_spec=$lt_library_names_spec | 
|  | 19528 |  | 
|  | 19529 | # The coded name of the library, if different from the real name. | 
|  | 19530 | soname_spec=$lt_soname_spec | 
|  | 19531 |  | 
|  | 19532 | # Commands used to build and install an old-style archive. | 
|  | 19533 | RANLIB=$lt_RANLIB | 
|  | 19534 | old_archive_cmds=$lt_old_archive_cmds_RC | 
|  | 19535 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 19536 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 19537 |  | 
|  | 19538 | # Create an old-style archive from a shared archive. | 
|  | 19539 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
|  | 19540 |  | 
|  | 19541 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 19542 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
|  | 19543 |  | 
|  | 19544 | # Commands used to build and install a shared archive. | 
|  | 19545 | archive_cmds=$lt_archive_cmds_RC | 
|  | 19546 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
|  | 19547 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 19548 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 19549 |  | 
|  | 19550 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 19551 | module_cmds=$lt_module_cmds_RC | 
|  | 19552 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
|  | 19553 |  | 
|  | 19554 | # Commands to strip libraries. | 
|  | 19555 | old_striplib=$lt_old_striplib | 
|  | 19556 | striplib=$lt_striplib | 
|  | 19557 |  | 
|  | 19558 | # Dependencies to place before the objects being linked to create a | 
|  | 19559 | # shared library. | 
|  | 19560 | predep_objects=$lt_predep_objects_RC | 
|  | 19561 |  | 
|  | 19562 | # Dependencies to place after the objects being linked to create a | 
|  | 19563 | # shared library. | 
|  | 19564 | postdep_objects=$lt_postdep_objects_RC | 
|  | 19565 |  | 
|  | 19566 | # Dependencies to place before the objects being linked to create a | 
|  | 19567 | # shared library. | 
|  | 19568 | predeps=$lt_predeps_RC | 
|  | 19569 |  | 
|  | 19570 | # Dependencies to place after the objects being linked to create a | 
|  | 19571 | # shared library. | 
|  | 19572 | postdeps=$lt_postdeps_RC | 
|  | 19573 |  | 
|  | 19574 | # The library search path used internally by the compiler when linking | 
|  | 19575 | # a shared library. | 
|  | 19576 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
|  | 19577 |  | 
|  | 19578 | # Method to check whether dependent libraries are shared objects. | 
|  | 19579 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 19580 |  | 
|  | 19581 | # Command to use when deplibs_check_method == file_magic. | 
|  | 19582 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 19583 |  | 
|  | 19584 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 19585 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
|  | 19586 |  | 
|  | 19587 | # Flag that forces no undefined symbols. | 
|  | 19588 | no_undefined_flag=$lt_no_undefined_flag_RC | 
|  | 19589 |  | 
|  | 19590 | # Commands used to finish a libtool library installation in a directory. | 
|  | 19591 | finish_cmds=$lt_finish_cmds | 
|  | 19592 |  | 
|  | 19593 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 19594 | finish_eval=$lt_finish_eval | 
|  | 19595 |  | 
|  | 19596 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 19597 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 19598 |  | 
|  | 19599 | # Transform the output of nm in a proper C declaration | 
|  | 19600 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 19601 |  | 
|  | 19602 | # Transform the output of nm in a C name address pair | 
|  | 19603 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 19604 |  | 
|  | 19605 | # This is the shared library runtime path variable. | 
|  | 19606 | runpath_var=$runpath_var | 
|  | 19607 |  | 
|  | 19608 | # This is the shared library path variable. | 
|  | 19609 | shlibpath_var=$shlibpath_var | 
|  | 19610 |  | 
|  | 19611 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 19612 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 19613 |  | 
|  | 19614 | # How to hardcode a shared library path into an executable. | 
|  | 19615 | hardcode_action=$hardcode_action_RC | 
|  | 19616 |  | 
|  | 19617 | # Whether we should hardcode library paths into libraries. | 
|  | 19618 | hardcode_into_libs=$hardcode_into_libs | 
|  | 19619 |  | 
|  | 19620 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 19621 | # This must work even if \$libdir does not exist. | 
|  | 19622 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
|  | 19623 |  | 
|  | 19624 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 19625 | # a binary during linking. This must work even if \$libdir does | 
|  | 19626 | # not exist. | 
|  | 19627 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
|  | 19628 |  | 
|  | 19629 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 19630 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
|  | 19631 |  | 
|  | 19632 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 19633 | # resulting binary. | 
|  | 19634 | hardcode_direct=$hardcode_direct_RC | 
|  | 19635 |  | 
|  | 19636 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 19637 | # resulting binary. | 
|  | 19638 | hardcode_minus_L=$hardcode_minus_L_RC | 
|  | 19639 |  | 
|  | 19640 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 19641 | # the resulting binary. | 
|  | 19642 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
|  | 19643 |  | 
|  | 19644 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 19645 | # and all subsequent libraries and executables linked against it. | 
|  | 19646 | hardcode_automatic=$hardcode_automatic_RC | 
|  | 19647 |  | 
|  | 19648 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 19649 | # restored at relink time. | 
|  | 19650 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 19651 |  | 
|  | 19652 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 19653 | link_all_deplibs=$link_all_deplibs_RC | 
|  | 19654 |  | 
|  | 19655 | # Compile-time system search path for libraries | 
|  | 19656 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 19657 |  | 
|  | 19658 | # Run-time system search path for libraries | 
|  | 19659 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 19660 |  | 
|  | 19661 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 19662 | fix_srcfile_path="$fix_srcfile_path_RC" | 
|  | 19663 |  | 
|  | 19664 | # Set to yes if exported symbols are required. | 
|  | 19665 | always_export_symbols=$always_export_symbols_RC | 
|  | 19666 |  | 
|  | 19667 | # The commands to list exported symbols. | 
|  | 19668 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
|  | 19669 |  | 
|  | 19670 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 19671 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 19672 |  | 
|  | 19673 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 19674 | exclude_expsyms=$lt_exclude_expsyms_RC | 
|  | 19675 |  | 
|  | 19676 | # Symbols that must always be exported. | 
|  | 19677 | include_expsyms=$lt_include_expsyms_RC | 
|  | 19678 |  | 
|  | 19679 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 19680 |  | 
|  | 19681 | __EOF__ | 
|  | 19682 |  | 
|  | 19683 |  | 
|  | 19684 | else | 
|  | 19685 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 19686 | # `config.status --recheck' to rerun these tests and create the | 
|  | 19687 | # libtool script then. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19688 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 19689 | if test -f "$ltmain_in"; then | 
|  | 19690 | test -f Makefile && make "$ltmain" | 
|  | 19691 | fi | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19692 | fi | 
|  | 19693 |  | 
|  | 19694 |  | 
|  | 19695 | ac_ext=c | 
|  | 19696 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19700 |  | 
|  | 19701 | CC="$lt_save_CC" | 
|  | 19702 |  | 
|  | 19703 | ;; | 
|  | 19704 |  | 
|  | 19705 | *) | 
|  | 19706 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
|  | 19707 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
|  | 19708 | { (exit 1); exit 1; }; } | 
|  | 19709 | ;; | 
|  | 19710 | esac | 
|  | 19711 |  | 
|  | 19712 | # Append the new tag name to the list of available tags. | 
|  | 19713 | if test -n "$tagname" ; then | 
|  | 19714 | available_tags="$available_tags $tagname" | 
|  | 19715 | fi | 
|  | 19716 | fi | 
|  | 19717 | done | 
|  | 19718 | IFS="$lt_save_ifs" | 
|  | 19719 |  | 
|  | 19720 | # Now substitute the updated list of available tags. | 
|  | 19721 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
|  | 19722 | mv "${ofile}T" "$ofile" | 
|  | 19723 | chmod +x "$ofile" | 
|  | 19724 | else | 
|  | 19725 | rm -f "${ofile}T" | 
|  | 19726 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
|  | 19727 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
|  | 19728 | { (exit 1); exit 1; }; } | 
|  | 19729 | fi | 
|  | 19730 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19731 |  | 
|  | 19732 |  | 
|  | 19733 |  | 
|  | 19734 | # This can be used to rebuild libtool when needed | 
|  | 19735 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
|  | 19736 |  | 
|  | 19737 | # Always use our own libtool. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19738 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19739 |  | 
|  | 19740 | # Prevent multiple expansion | 
|  | 19741 |  | 
|  | 19742 |  | 
|  | 19743 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19744 |  | 
|  | 19745 |  | 
|  | 19746 |  | 
|  | 19747 |  | 
|  | 19748 |  | 
|  | 19749 |  | 
|  | 19750 |  | 
|  | 19751 |  | 
|  | 19752 |  | 
|  | 19753 |  | 
|  | 19754 |  | 
|  | 19755 |  | 
|  | 19756 |  | 
|  | 19757 |  | 
|  | 19758 |  | 
|  | 19759 |  | 
|  | 19760 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 19761 |  | 
|  | 19762 | echo "$as_me:$LINENO: checking for GNU make" >&5 | 
|  | 19763 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
|  | 19764 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
|  | 19765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19766 | else | 
|  | 19767 | llvm_cv_gnu_make_command='' | 
|  | 19768 | for a in "$MAKE" make gmake gnumake ; do | 
|  | 19769 | if test -z "$a" ; then continue ; fi ; | 
|  | 19770 | if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
|  | 19771 | then | 
|  | 19772 | llvm_cv_gnu_make_command=$a ; | 
|  | 19773 | break; | 
|  | 19774 | fi | 
|  | 19775 | done | 
|  | 19776 | fi | 
|  | 19777 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
|  | 19778 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 | 
|  | 19779 | if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
|  | 19780 | ifGNUmake='' ; | 
|  | 19781 | else | 
|  | 19782 | ifGNUmake='#' ; | 
|  | 19783 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
|  | 19784 | echo "${ECHO_T}\"Not found\"" >&6; | 
|  | 19785 | fi | 
|  | 19786 |  | 
|  | 19787 |  | 
|  | 19788 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
|  | 19789 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
|  | 19790 | LN_S=$as_ln_s | 
|  | 19791 | if test "$LN_S" = "ln -s"; then | 
|  | 19792 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 19793 | echo "${ECHO_T}yes" >&6 | 
|  | 19794 | else | 
|  | 19795 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
|  | 19796 | echo "${ECHO_T}no, using $LN_S" >&6 | 
|  | 19797 | fi | 
|  | 19798 |  | 
|  | 19799 | # Extract the first word of "find", so it can be a program name with args. | 
|  | 19800 | set dummy find; ac_word=$2 | 
|  | 19801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 19802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 19803 | if test "${ac_cv_path_FIND+set}" = set; then | 
|  | 19804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19805 | else | 
|  | 19806 | case $FIND in | 
|  | 19807 | [\\/]* | ?:[\\/]*) | 
|  | 19808 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
|  | 19809 | ;; | 
|  | 19810 | *) | 
|  | 19811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 19812 | for as_dir in $PATH | 
|  | 19813 | do | 
|  | 19814 | IFS=$as_save_IFS | 
|  | 19815 | test -z "$as_dir" && as_dir=. | 
|  | 19816 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 19817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 19818 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
|  | 19819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 19820 | break 2 | 
|  | 19821 | fi | 
|  | 19822 | done | 
|  | 19823 | done | 
|  | 19824 |  | 
|  | 19825 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
|  | 19826 | ;; | 
|  | 19827 | esac | 
|  | 19828 | fi | 
|  | 19829 | FIND=$ac_cv_path_FIND | 
|  | 19830 |  | 
|  | 19831 | if test -n "$FIND"; then | 
|  | 19832 | echo "$as_me:$LINENO: result: $FIND" >&5 | 
|  | 19833 | echo "${ECHO_T}$FIND" >&6 | 
|  | 19834 | else | 
|  | 19835 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19836 | echo "${ECHO_T}no" >&6 | 
|  | 19837 | fi | 
|  | 19838 |  | 
|  | 19839 | # Extract the first word of "grep", so it can be a program name with args. | 
|  | 19840 | set dummy grep; ac_word=$2 | 
|  | 19841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 19842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 19843 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 19844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19845 | else | 
|  | 19846 | case $GREP in | 
|  | 19847 | [\\/]* | ?:[\\/]*) | 
|  | 19848 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
|  | 19849 | ;; | 
|  | 19850 | *) | 
|  | 19851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 19852 | for as_dir in $PATH | 
|  | 19853 | do | 
|  | 19854 | IFS=$as_save_IFS | 
|  | 19855 | test -z "$as_dir" && as_dir=. | 
|  | 19856 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 19857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 19858 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
|  | 19859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 19860 | break 2 | 
|  | 19861 | fi | 
|  | 19862 | done | 
|  | 19863 | done | 
|  | 19864 |  | 
|  | 19865 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
|  | 19866 | ;; | 
|  | 19867 | esac | 
|  | 19868 | fi | 
|  | 19869 | GREP=$ac_cv_path_GREP | 
|  | 19870 |  | 
|  | 19871 | if test -n "$GREP"; then | 
|  | 19872 | echo "$as_me:$LINENO: result: $GREP" >&5 | 
|  | 19873 | echo "${ECHO_T}$GREP" >&6 | 
|  | 19874 | else | 
|  | 19875 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19876 | echo "${ECHO_T}no" >&6 | 
|  | 19877 | fi | 
|  | 19878 |  | 
|  | 19879 | # Extract the first word of "mkdir", so it can be a program name with args. | 
|  | 19880 | set dummy mkdir; ac_word=$2 | 
|  | 19881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 19882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 19883 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
|  | 19884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19885 | else | 
|  | 19886 | case $MKDIR in | 
|  | 19887 | [\\/]* | ?:[\\/]*) | 
|  | 19888 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
|  | 19889 | ;; | 
|  | 19890 | *) | 
|  | 19891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 19892 | for as_dir in $PATH | 
|  | 19893 | do | 
|  | 19894 | IFS=$as_save_IFS | 
|  | 19895 | test -z "$as_dir" && as_dir=. | 
|  | 19896 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 19897 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 19898 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
|  | 19899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 19900 | break 2 | 
|  | 19901 | fi | 
|  | 19902 | done | 
|  | 19903 | done | 
|  | 19904 |  | 
|  | 19905 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
|  | 19906 | ;; | 
|  | 19907 | esac | 
|  | 19908 | fi | 
|  | 19909 | MKDIR=$ac_cv_path_MKDIR | 
|  | 19910 |  | 
|  | 19911 | if test -n "$MKDIR"; then | 
|  | 19912 | echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
|  | 19913 | echo "${ECHO_T}$MKDIR" >&6 | 
|  | 19914 | else | 
|  | 19915 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19916 | echo "${ECHO_T}no" >&6 | 
|  | 19917 | fi | 
|  | 19918 |  | 
|  | 19919 | # Extract the first word of "mv", so it can be a program name with args. | 
|  | 19920 | set dummy mv; ac_word=$2 | 
|  | 19921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 19922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 19923 | if test "${ac_cv_path_MV+set}" = set; then | 
|  | 19924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19925 | else | 
|  | 19926 | case $MV in | 
|  | 19927 | [\\/]* | ?:[\\/]*) | 
|  | 19928 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
|  | 19929 | ;; | 
|  | 19930 | *) | 
|  | 19931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 19932 | for as_dir in $PATH | 
|  | 19933 | do | 
|  | 19934 | IFS=$as_save_IFS | 
|  | 19935 | test -z "$as_dir" && as_dir=. | 
|  | 19936 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 19937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 19938 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
|  | 19939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 19940 | break 2 | 
|  | 19941 | fi | 
|  | 19942 | done | 
|  | 19943 | done | 
|  | 19944 |  | 
|  | 19945 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
|  | 19946 | ;; | 
|  | 19947 | esac | 
|  | 19948 | fi | 
|  | 19949 | MV=$ac_cv_path_MV | 
|  | 19950 |  | 
|  | 19951 | if test -n "$MV"; then | 
|  | 19952 | echo "$as_me:$LINENO: result: $MV" >&5 | 
|  | 19953 | echo "${ECHO_T}$MV" >&6 | 
|  | 19954 | else | 
|  | 19955 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19956 | echo "${ECHO_T}no" >&6 | 
|  | 19957 | fi | 
|  | 19958 |  | 
|  | 19959 | if test -n "$ac_tool_prefix"; then | 
|  | 19960 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 19961 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|  | 19962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 19963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 19964 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 19965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 19966 | else | 
|  | 19967 | if test -n "$RANLIB"; then | 
|  | 19968 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 19969 | else | 
|  | 19970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 19971 | for as_dir in $PATH | 
|  | 19972 | do | 
|  | 19973 | IFS=$as_save_IFS | 
|  | 19974 | test -z "$as_dir" && as_dir=. | 
|  | 19975 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 19976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 19977 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|  | 19978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 19979 | break 2 | 
|  | 19980 | fi | 
|  | 19981 | done | 
|  | 19982 | done | 
|  | 19983 |  | 
|  | 19984 | fi | 
|  | 19985 | fi | 
|  | 19986 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 19987 | if test -n "$RANLIB"; then | 
|  | 19988 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 19989 | echo "${ECHO_T}$RANLIB" >&6 | 
|  | 19990 | else | 
|  | 19991 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 19992 | echo "${ECHO_T}no" >&6 | 
|  | 19993 | fi | 
|  | 19994 |  | 
|  | 19995 | fi | 
|  | 19996 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 19997 | ac_ct_RANLIB=$RANLIB | 
|  | 19998 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 19999 | set dummy ranlib; ac_word=$2 | 
|  | 20000 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20002 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 20003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20004 | else | 
|  | 20005 | if test -n "$ac_ct_RANLIB"; then | 
|  | 20006 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 20007 | else | 
|  | 20008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20009 | for as_dir in $PATH | 
|  | 20010 | do | 
|  | 20011 | IFS=$as_save_IFS | 
|  | 20012 | test -z "$as_dir" && as_dir=. | 
|  | 20013 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20014 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20015 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
|  | 20016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20017 | break 2 | 
|  | 20018 | fi | 
|  | 20019 | done | 
|  | 20020 | done | 
|  | 20021 |  | 
|  | 20022 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
|  | 20023 | fi | 
|  | 20024 | fi | 
|  | 20025 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 20026 | if test -n "$ac_ct_RANLIB"; then | 
|  | 20027 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 20028 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
|  | 20029 | else | 
|  | 20030 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20031 | echo "${ECHO_T}no" >&6 | 
|  | 20032 | fi | 
|  | 20033 |  | 
|  | 20034 | RANLIB=$ac_ct_RANLIB | 
|  | 20035 | else | 
|  | 20036 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 20037 | fi | 
|  | 20038 |  | 
|  | 20039 | # Extract the first word of "rm", so it can be a program name with args. | 
|  | 20040 | set dummy rm; ac_word=$2 | 
|  | 20041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20043 | if test "${ac_cv_path_RM+set}" = set; then | 
|  | 20044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20045 | else | 
|  | 20046 | case $RM in | 
|  | 20047 | [\\/]* | ?:[\\/]*) | 
|  | 20048 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
|  | 20049 | ;; | 
|  | 20050 | *) | 
|  | 20051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20052 | for as_dir in $PATH | 
|  | 20053 | do | 
|  | 20054 | IFS=$as_save_IFS | 
|  | 20055 | test -z "$as_dir" && as_dir=. | 
|  | 20056 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20058 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20060 | break 2 | 
|  | 20061 | fi | 
|  | 20062 | done | 
|  | 20063 | done | 
|  | 20064 |  | 
|  | 20065 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
|  | 20066 | ;; | 
|  | 20067 | esac | 
|  | 20068 | fi | 
|  | 20069 | RM=$ac_cv_path_RM | 
|  | 20070 |  | 
|  | 20071 | if test -n "$RM"; then | 
|  | 20072 | echo "$as_me:$LINENO: result: $RM" >&5 | 
|  | 20073 | echo "${ECHO_T}$RM" >&6 | 
|  | 20074 | else | 
|  | 20075 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20076 | echo "${ECHO_T}no" >&6 | 
|  | 20077 | fi | 
|  | 20078 |  | 
|  | 20079 | # Extract the first word of "sed", so it can be a program name with args. | 
|  | 20080 | set dummy sed; ac_word=$2 | 
|  | 20081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20083 | if test "${ac_cv_path_SED+set}" = set; then | 
|  | 20084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20085 | else | 
|  | 20086 | case $SED in | 
|  | 20087 | [\\/]* | ?:[\\/]*) | 
|  | 20088 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
|  | 20089 | ;; | 
|  | 20090 | *) | 
|  | 20091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20092 | for as_dir in $PATH | 
|  | 20093 | do | 
|  | 20094 | IFS=$as_save_IFS | 
|  | 20095 | test -z "$as_dir" && as_dir=. | 
|  | 20096 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20097 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20098 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20100 | break 2 | 
|  | 20101 | fi | 
|  | 20102 | done | 
|  | 20103 | done | 
|  | 20104 |  | 
|  | 20105 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
|  | 20106 | ;; | 
|  | 20107 | esac | 
|  | 20108 | fi | 
|  | 20109 | SED=$ac_cv_path_SED | 
|  | 20110 |  | 
|  | 20111 | if test -n "$SED"; then | 
|  | 20112 | echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 20113 | echo "${ECHO_T}$SED" >&6 | 
|  | 20114 | else | 
|  | 20115 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20116 | echo "${ECHO_T}no" >&6 | 
|  | 20117 | fi | 
|  | 20118 |  | 
| Reid Spencer | 8d0d005 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 20119 | # Extract the first word of "tar", so it can be a program name with args. | 
|  | 20120 | set dummy tar; ac_word=$2 | 
|  | 20121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20123 | if test "${ac_cv_path_TAR+set}" = set; then | 
|  | 20124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20125 | else | 
|  | 20126 | case $TAR in | 
|  | 20127 | [\\/]* | ?:[\\/]*) | 
|  | 20128 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
|  | 20129 | ;; | 
|  | 20130 | *) | 
|  | 20131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20132 | for as_dir in $PATH | 
|  | 20133 | do | 
|  | 20134 | IFS=$as_save_IFS | 
|  | 20135 | test -z "$as_dir" && as_dir=. | 
|  | 20136 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20137 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20138 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20140 | break 2 | 
|  | 20141 | fi | 
|  | 20142 | done | 
|  | 20143 | done | 
|  | 20144 |  | 
|  | 20145 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
|  | 20146 | ;; | 
|  | 20147 | esac | 
|  | 20148 | fi | 
|  | 20149 | TAR=$ac_cv_path_TAR | 
|  | 20150 |  | 
|  | 20151 | if test -n "$TAR"; then | 
|  | 20152 | echo "$as_me:$LINENO: result: $TAR" >&5 | 
|  | 20153 | echo "${ECHO_T}$TAR" >&6 | 
|  | 20154 | else | 
|  | 20155 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20156 | echo "${ECHO_T}no" >&6 | 
|  | 20157 | fi | 
|  | 20158 |  | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20159 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20160 | # Find a good install program.  We prefer a C program (faster), | 
|  | 20161 | # so one script is as good as another.  But avoid the broken or | 
|  | 20162 | # incompatible versions: | 
|  | 20163 | # SysV /etc/install, /usr/sbin/install | 
|  | 20164 | # SunOS /usr/etc/install | 
|  | 20165 | # IRIX /sbin/install | 
|  | 20166 | # AIX /bin/install | 
|  | 20167 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 20168 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 20169 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 20170 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 20171 | # OS/2's system install, which has a completely different semantic | 
|  | 20172 | # ./install, which can be erroneously created by make from ./install.sh. | 
|  | 20173 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
|  | 20174 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
|  | 20175 | if test -z "$INSTALL"; then | 
|  | 20176 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 20177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20178 | else | 
|  | 20179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20180 | for as_dir in $PATH | 
|  | 20181 | do | 
|  | 20182 | IFS=$as_save_IFS | 
|  | 20183 | test -z "$as_dir" && as_dir=. | 
|  | 20184 | # Account for people who put trailing slashes in PATH elements. | 
|  | 20185 | case $as_dir/ in | 
|  | 20186 | ./ | .// | /cC/* | \ | 
|  | 20187 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
|  | 20188 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
|  | 20189 | /usr/ucb/* ) ;; | 
|  | 20190 | *) | 
|  | 20191 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 20192 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 20193 | # by default. | 
|  | 20194 | for ac_prog in ginstall scoinst install; do | 
|  | 20195 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20196 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
|  | 20197 | if test $ac_prog = install && | 
|  | 20198 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 20199 | # AIX install.  It has an incompatible calling convention. | 
|  | 20200 | : | 
|  | 20201 | elif test $ac_prog = install && | 
|  | 20202 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 20203 | # program-specific install script used by HP pwplus--don't use. | 
|  | 20204 | : | 
|  | 20205 | else | 
|  | 20206 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 20207 | break 3 | 
|  | 20208 | fi | 
|  | 20209 | fi | 
|  | 20210 | done | 
|  | 20211 | done | 
|  | 20212 | ;; | 
|  | 20213 | esac | 
|  | 20214 | done | 
|  | 20215 |  | 
|  | 20216 |  | 
|  | 20217 | fi | 
|  | 20218 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 20219 | INSTALL=$ac_cv_path_install | 
|  | 20220 | else | 
|  | 20221 | # As a last resort, use the slow shell script.  We don't cache a | 
|  | 20222 | # path for INSTALL within a source directory, because that will | 
|  | 20223 | # break other packages using the cache if that directory is | 
|  | 20224 | # removed, or if the path is relative. | 
|  | 20225 | INSTALL=$ac_install_sh | 
|  | 20226 | fi | 
|  | 20227 | fi | 
|  | 20228 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
|  | 20229 | echo "${ECHO_T}$INSTALL" >&6 | 
|  | 20230 |  | 
|  | 20231 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 20232 | # It thinks the first close brace ends the variable substitution. | 
|  | 20233 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 20234 |  | 
|  | 20235 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 20236 |  | 
|  | 20237 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 20238 |  | 
|  | 20239 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20240 | # Extract the first word of "dot", so it can be a program name with args. | 
|  | 20241 | set dummy dot; ac_word=$2 | 
|  | 20242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20244 | if test "${ac_cv_path_DOT+set}" = set; then | 
|  | 20245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20246 | else | 
|  | 20247 | case $DOT in | 
|  | 20248 | [\\/]* | ?:[\\/]*) | 
|  | 20249 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
|  | 20250 | ;; | 
|  | 20251 | *) | 
|  | 20252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20253 | for as_dir in $PATH | 
|  | 20254 | do | 
|  | 20255 | IFS=$as_save_IFS | 
|  | 20256 | test -z "$as_dir" && as_dir=. | 
|  | 20257 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20258 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20259 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20260 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20261 | break 2 | 
|  | 20262 | fi | 
|  | 20263 | done | 
|  | 20264 | done | 
|  | 20265 |  | 
| Brian Gaeke | 2abe7ae | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20266 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20267 | ;; | 
|  | 20268 | esac | 
|  | 20269 | fi | 
|  | 20270 | DOT=$ac_cv_path_DOT | 
|  | 20271 |  | 
|  | 20272 | if test -n "$DOT"; then | 
|  | 20273 | echo "$as_me:$LINENO: result: $DOT" >&5 | 
|  | 20274 | echo "${ECHO_T}$DOT" >&6 | 
|  | 20275 | else | 
|  | 20276 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20277 | echo "${ECHO_T}no" >&6 | 
|  | 20278 | fi | 
|  | 20279 |  | 
|  | 20280 | # Extract the first word of "etags", so it can be a program name with args. | 
|  | 20281 | set dummy etags; ac_word=$2 | 
|  | 20282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20284 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
|  | 20285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20286 | else | 
|  | 20287 | case $ETAGS in | 
|  | 20288 | [\\/]* | ?:[\\/]*) | 
|  | 20289 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
|  | 20290 | ;; | 
|  | 20291 | *) | 
|  | 20292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20293 | for as_dir in $PATH | 
|  | 20294 | do | 
|  | 20295 | IFS=$as_save_IFS | 
|  | 20296 | test -z "$as_dir" && as_dir=. | 
|  | 20297 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20299 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20301 | break 2 | 
|  | 20302 | fi | 
|  | 20303 | done | 
|  | 20304 | done | 
|  | 20305 |  | 
| Brian Gaeke | 2abe7ae | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20306 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20307 | ;; | 
|  | 20308 | esac | 
|  | 20309 | fi | 
|  | 20310 | ETAGS=$ac_cv_path_ETAGS | 
|  | 20311 |  | 
|  | 20312 | if test -n "$ETAGS"; then | 
|  | 20313 | echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
|  | 20314 | echo "${ECHO_T}$ETAGS" >&6 | 
|  | 20315 | else | 
|  | 20316 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20317 | echo "${ECHO_T}no" >&6 | 
|  | 20318 | fi | 
|  | 20319 |  | 
| Brian Gaeke | 740515a | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 20320 |  | 
| John Criswell | 6a47a97 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20321 | # Extract the first word of "python", so it can be a program name with args. | 
|  | 20322 | set dummy python; ac_word=$2 | 
|  | 20323 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20325 | if test "${ac_cv_path_PYTHON+set}" = set; then | 
|  | 20326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20327 | else | 
|  | 20328 | case $PYTHON in | 
|  | 20329 | [\\/]* | ?:[\\/]*) | 
|  | 20330 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | 
|  | 20331 | ;; | 
|  | 20332 | *) | 
|  | 20333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20334 | for as_dir in $PATH | 
|  | 20335 | do | 
|  | 20336 | IFS=$as_save_IFS | 
|  | 20337 | test -z "$as_dir" && as_dir=. | 
|  | 20338 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20339 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20340 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20342 | break 2 | 
|  | 20343 | fi | 
|  | 20344 | done | 
|  | 20345 | done | 
|  | 20346 |  | 
| Brian Gaeke | 2abe7ae | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20347 | test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" | 
| John Criswell | 6a47a97 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20348 | ;; | 
|  | 20349 | esac | 
|  | 20350 | fi | 
|  | 20351 | PYTHON=$ac_cv_path_PYTHON | 
|  | 20352 |  | 
|  | 20353 | if test -n "$PYTHON"; then | 
|  | 20354 | echo "$as_me:$LINENO: result: $PYTHON" >&5 | 
|  | 20355 | echo "${ECHO_T}$PYTHON" >&6 | 
|  | 20356 | else | 
|  | 20357 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20358 | echo "${ECHO_T}no" >&6 | 
|  | 20359 | fi | 
|  | 20360 |  | 
|  | 20361 | # Extract the first word of "qmtest", so it can be a program name with args. | 
|  | 20362 | set dummy qmtest; ac_word=$2 | 
|  | 20363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20365 | if test "${ac_cv_path_QMTEST+set}" = set; then | 
|  | 20366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20367 | else | 
|  | 20368 | case $QMTEST in | 
|  | 20369 | [\\/]* | ?:[\\/]*) | 
|  | 20370 | ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. | 
|  | 20371 | ;; | 
|  | 20372 | *) | 
|  | 20373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20374 | for as_dir in $PATH | 
|  | 20375 | do | 
|  | 20376 | IFS=$as_save_IFS | 
|  | 20377 | test -z "$as_dir" && as_dir=. | 
|  | 20378 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20379 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20380 | ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20382 | break 2 | 
|  | 20383 | fi | 
|  | 20384 | done | 
|  | 20385 | done | 
|  | 20386 |  | 
| Brian Gaeke | 2abe7ae | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20387 | test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" | 
| John Criswell | 6a47a97 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20388 | ;; | 
|  | 20389 | esac | 
|  | 20390 | fi | 
|  | 20391 | QMTEST=$ac_cv_path_QMTEST | 
|  | 20392 |  | 
|  | 20393 | if test -n "$QMTEST"; then | 
|  | 20394 | echo "$as_me:$LINENO: result: $QMTEST" >&5 | 
|  | 20395 | echo "${ECHO_T}$QMTEST" >&6 | 
|  | 20396 | else | 
|  | 20397 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20398 | echo "${ECHO_T}no" >&6 | 
|  | 20399 | fi | 
|  | 20400 |  | 
| Reid Spencer | 6bf36bd | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 20401 | # Extract the first word of "runtest", so it can be a program name with args. | 
|  | 20402 | set dummy runtest; ac_word=$2 | 
|  | 20403 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 20404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 20405 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
|  | 20406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20407 | else | 
|  | 20408 | case $RUNTEST in | 
|  | 20409 | [\\/]* | ?:[\\/]*) | 
|  | 20410 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
|  | 20411 | ;; | 
|  | 20412 | *) | 
|  | 20413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 20414 | for as_dir in $PATH | 
|  | 20415 | do | 
|  | 20416 | IFS=$as_save_IFS | 
|  | 20417 | test -z "$as_dir" && as_dir=. | 
|  | 20418 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 20419 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 20420 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
|  | 20421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 20422 | break 2 | 
|  | 20423 | fi | 
|  | 20424 | done | 
|  | 20425 | done | 
|  | 20426 |  | 
|  | 20427 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" | 
|  | 20428 | ;; | 
|  | 20429 | esac | 
|  | 20430 | fi | 
|  | 20431 | RUNTEST=$ac_cv_path_RUNTEST | 
|  | 20432 |  | 
|  | 20433 | if test -n "$RUNTEST"; then | 
|  | 20434 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
|  | 20435 | echo "${ECHO_T}$RUNTEST" >&6 | 
|  | 20436 | else | 
|  | 20437 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20438 | echo "${ECHO_T}no" >&6 | 
|  | 20439 | fi | 
|  | 20440 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20441 |  | 
|  | 20442 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
|  | 20443 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 | 
|  | 20444 | if test "${llvm_cv_link_use_r+set}" = set; then | 
|  | 20445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20446 | else | 
|  | 20447 | ac_ext=c | 
|  | 20448 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20452 |  | 
|  | 20453 | oldcflags="$CFLAGS" | 
|  | 20454 | CFLAGS="$CFLAGS -Wl,-R." | 
|  | 20455 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20456 | /* confdefs.h.  */ | 
|  | 20457 | _ACEOF | 
|  | 20458 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20459 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20460 | /* end confdefs.h.  */ | 
|  | 20461 |  | 
|  | 20462 | int | 
|  | 20463 | main () | 
|  | 20464 | { | 
|  | 20465 | int main() { return 0; } | 
|  | 20466 | ; | 
|  | 20467 | return 0; | 
|  | 20468 | } | 
|  | 20469 | _ACEOF | 
|  | 20470 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20472 | (eval $ac_link) 2>conftest.er1 | 
|  | 20473 | ac_status=$? | 
|  | 20474 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20475 | rm -f conftest.er1 | 
|  | 20476 | cat conftest.err >&5 | 
|  | 20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20478 | (exit $ac_status); } && | 
|  | 20479 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 20480 | || test ! -s conftest.err' | 
|  | 20481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20482 | (eval $ac_try) 2>&5 | 
|  | 20483 | ac_status=$? | 
|  | 20484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20485 | (exit $ac_status); }; } && | 
|  | 20486 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20488 | (eval $ac_try) 2>&5 | 
|  | 20489 | ac_status=$? | 
|  | 20490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20491 | (exit $ac_status); }; }; then | 
|  | 20492 | llvm_cv_link_use_r=yes | 
|  | 20493 | else | 
|  | 20494 | echo "$as_me: failed program was:" >&5 | 
|  | 20495 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20496 |  | 
|  | 20497 | llvm_cv_link_use_r=no | 
|  | 20498 | fi | 
|  | 20499 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 20500 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20501 | CFLAGS="$oldcflags" | 
|  | 20502 | ac_ext=c | 
|  | 20503 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20507 |  | 
|  | 20508 |  | 
|  | 20509 | fi | 
|  | 20510 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
|  | 20511 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 | 
|  | 20512 | if test "$llvm_cv_link_use_r" = yes ; then | 
|  | 20513 |  | 
|  | 20514 | cat >>confdefs.h <<\_ACEOF | 
|  | 20515 | #define HAVE_LINK_R 1 | 
|  | 20516 | _ACEOF | 
|  | 20517 |  | 
|  | 20518 | fi | 
|  | 20519 |  | 
|  | 20520 |  | 
|  | 20521 | etags_version=`$ETAGS --version 2>&1` | 
|  | 20522 | case "$etags_version" in | 
|  | 20523 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; | 
|  | 20524 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; | 
|  | 20525 | *) ETAGSFLAGS="" ;; | 
|  | 20526 | esac | 
|  | 20527 | ETAGSFLAGS=$ETAGSFLAGS | 
|  | 20528 |  | 
|  | 20529 |  | 
|  | 20530 | echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
|  | 20531 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 | 
|  | 20532 |  | 
|  | 20533 | if test "$GCC" != "yes" | 
|  | 20534 | then | 
|  | 20535 | { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 | 
|  | 20536 | echo "$as_me: error: gcc required but not found" >&2;} | 
|  | 20537 | { (exit 1); exit 1; }; } | 
|  | 20538 | fi | 
|  | 20539 | if test "$GXX" != "yes" | 
|  | 20540 | then | 
|  | 20541 | { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 | 
|  | 20542 | echo "$as_me: error: g++ required but not found" >&2;} | 
|  | 20543 | { (exit 1); exit 1; }; } | 
|  | 20544 | fi | 
|  | 20545 |  | 
|  | 20546 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` | 
|  | 20547 | if test "$gccmajor" -lt "3" | 
|  | 20548 | then | 
|  | 20549 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
|  | 20550 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
|  | 20551 | { (exit 1); exit 1; }; } | 
|  | 20552 | fi | 
|  | 20553 |  | 
|  | 20554 | if test -z "$llvm_cv_gnu_make_command" | 
|  | 20555 | then | 
|  | 20556 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
|  | 20557 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
|  | 20558 | { (exit 1); exit 1; }; } | 
|  | 20559 | fi | 
|  | 20560 |  | 
|  | 20561 | echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 20562 | echo "${ECHO_T}ok" >&6 | 
|  | 20563 |  | 
|  | 20564 | if test "$PYTHON" = "false" ; then | 
|  | 20565 | { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 | 
|  | 20566 | echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} | 
|  | 20567 | fi | 
|  | 20568 | if test "$QMTEST" = "false" ; then | 
|  | 20569 | { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 | 
|  | 20570 | echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} | 
|  | 20571 | fi | 
| Reid Spencer | 6bf36bd | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 20572 | if test "$RUNTEST" = "false" ; then | 
|  | 20573 | { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5 | 
|  | 20574 | echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;} | 
|  | 20575 | fi | 
| John Criswell | 6a47a97 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20576 | pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2` | 
|  | 20577 | pymajor=`echo $pyversion | cut -d. -f1` | 
|  | 20578 | pyminor=`echo $pyversion | cut -d. -f2` | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20579 | if test "$pymajor" -ge "2" ; then | 
|  | 20580 | if test "$pymajor" -eq "2" ; then | 
|  | 20581 | if test "$pyminor" -lt "2" ; then | 
|  | 20582 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
| Brian Gaeke | 2abe7ae | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20583 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20584 | fi | 
|  | 20585 | fi | 
| John Criswell | 6a47a97 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20586 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20587 | { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
| Brian Gaeke | 2abe7ae | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20588 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | 6a47a97 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 20589 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20590 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20591 | echo "$as_me:$LINENO: result: " >&5 | 
|  | 20592 | echo "${ECHO_T}" >&6 | 
|  | 20593 |  | 
|  | 20594 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20595 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20596 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
|  | 20597 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
|  | 20598 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
|  | 20599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20600 | else | 
|  | 20601 | ac_check_lib_save_LIBS=$LIBS | 
|  | 20602 | LIBS="-lelf  $LIBS" | 
|  | 20603 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20604 | /* confdefs.h.  */ | 
|  | 20605 | _ACEOF | 
|  | 20606 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20607 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20608 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20609 |  | 
|  | 20610 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20611 | #ifdef __cplusplus | 
|  | 20612 | extern "C" | 
|  | 20613 | #endif | 
|  | 20614 | /* We use char because int might match the return type of a gcc2 | 
|  | 20615 | builtin and then its argument prototype would still apply.  */ | 
|  | 20616 | char elf_begin (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20617 | int | 
|  | 20618 | main () | 
|  | 20619 | { | 
|  | 20620 | elf_begin (); | 
|  | 20621 | ; | 
|  | 20622 | return 0; | 
|  | 20623 | } | 
|  | 20624 | _ACEOF | 
|  | 20625 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20627 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20628 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20629 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20630 | rm -f conftest.er1 | 
|  | 20631 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20633 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20634 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 20635 | || test ! -s conftest.err' | 
|  | 20636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20637 | (eval $ac_try) 2>&5 | 
|  | 20638 | ac_status=$? | 
|  | 20639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20640 | (exit $ac_status); }; } && | 
|  | 20641 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20643 | (eval $ac_try) 2>&5 | 
|  | 20644 | ac_status=$? | 
|  | 20645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20646 | (exit $ac_status); }; }; then | 
|  | 20647 | ac_cv_lib_elf_elf_begin=yes | 
|  | 20648 | else | 
|  | 20649 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20650 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20651 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20652 | ac_cv_lib_elf_elf_begin=no | 
|  | 20653 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20654 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 20655 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20656 | LIBS=$ac_check_lib_save_LIBS | 
|  | 20657 | fi | 
|  | 20658 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
|  | 20659 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
|  | 20660 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
|  | 20661 | cat >>confdefs.h <<_ACEOF | 
|  | 20662 | #define HAVE_LIBELF 1 | 
|  | 20663 | _ACEOF | 
|  | 20664 |  | 
|  | 20665 | LIBS="-lelf $LIBS" | 
|  | 20666 |  | 
|  | 20667 | fi | 
|  | 20668 |  | 
|  | 20669 |  | 
| Reid Spencer | 4874120 | 2004-10-02 08:50:58 +0000 | [diff] [blame] | 20670 | echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 | 
|  | 20671 | echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 | 
|  | 20672 | if test "${ac_cv_lib_z_gzopen+set}" = set; then | 
|  | 20673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20674 | else | 
|  | 20675 | ac_check_lib_save_LIBS=$LIBS | 
|  | 20676 | LIBS="-lz  $LIBS" | 
|  | 20677 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20678 | /* confdefs.h.  */ | 
|  | 20679 | _ACEOF | 
|  | 20680 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20681 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20682 | /* end confdefs.h.  */ | 
|  | 20683 |  | 
|  | 20684 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20685 | #ifdef __cplusplus | 
|  | 20686 | extern "C" | 
|  | 20687 | #endif | 
|  | 20688 | /* We use char because int might match the return type of a gcc2 | 
|  | 20689 | builtin and then its argument prototype would still apply.  */ | 
|  | 20690 | char gzopen (); | 
|  | 20691 | int | 
|  | 20692 | main () | 
|  | 20693 | { | 
|  | 20694 | gzopen (); | 
|  | 20695 | ; | 
|  | 20696 | return 0; | 
|  | 20697 | } | 
|  | 20698 | _ACEOF | 
|  | 20699 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20701 | (eval $ac_link) 2>conftest.er1 | 
|  | 20702 | ac_status=$? | 
|  | 20703 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20704 | rm -f conftest.er1 | 
|  | 20705 | cat conftest.err >&5 | 
|  | 20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20707 | (exit $ac_status); } && | 
|  | 20708 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 20709 | || test ! -s conftest.err' | 
|  | 20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20711 | (eval $ac_try) 2>&5 | 
|  | 20712 | ac_status=$? | 
|  | 20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20714 | (exit $ac_status); }; } && | 
|  | 20715 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20717 | (eval $ac_try) 2>&5 | 
|  | 20718 | ac_status=$? | 
|  | 20719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20720 | (exit $ac_status); }; }; then | 
|  | 20721 | ac_cv_lib_z_gzopen=yes | 
|  | 20722 | else | 
|  | 20723 | echo "$as_me: failed program was:" >&5 | 
|  | 20724 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20725 |  | 
|  | 20726 | ac_cv_lib_z_gzopen=no | 
|  | 20727 | fi | 
|  | 20728 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 20729 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20730 | LIBS=$ac_check_lib_save_LIBS | 
|  | 20731 | fi | 
|  | 20732 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 | 
|  | 20733 | echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 | 
|  | 20734 | if test $ac_cv_lib_z_gzopen = yes; then | 
|  | 20735 | zlib_found=1 | 
|  | 20736 | else | 
|  | 20737 | zlib_found=0 | 
|  | 20738 | fi | 
|  | 20739 |  | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20740 | if test $zlib_found -eq 1; then | 
| Reid Spencer | 4e181e7 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 20741 |  | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20742 | cat >>confdefs.h <<\_ACEOF | 
|  | 20743 | #define HAVE_ZLIB 1 | 
|  | 20744 | _ACEOF | 
|  | 20745 |  | 
|  | 20746 | HAVE_ZLIB=1 | 
|  | 20747 |  | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20748 | else | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20749 | HAVE_ZLIB=0 | 
|  | 20750 |  | 
|  | 20751 | fi | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20752 | echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5 | 
|  | 20753 | echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6 | 
|  | 20754 | if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then | 
|  | 20755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20756 | else | 
|  | 20757 | ac_check_lib_save_LIBS=$LIBS | 
|  | 20758 | LIBS="-lbz2  $LIBS" | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20759 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20760 | /* confdefs.h.  */ | 
|  | 20761 | _ACEOF | 
|  | 20762 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20763 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20764 | /* end confdefs.h.  */ | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20765 |  | 
|  | 20766 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20767 | #ifdef __cplusplus | 
|  | 20768 | extern "C" | 
|  | 20769 | #endif | 
|  | 20770 | /* We use char because int might match the return type of a gcc2 | 
|  | 20771 | builtin and then its argument prototype would still apply.  */ | 
|  | 20772 | char BZ2_bzCompressInit (); | 
|  | 20773 | int | 
|  | 20774 | main () | 
|  | 20775 | { | 
|  | 20776 | BZ2_bzCompressInit (); | 
|  | 20777 | ; | 
|  | 20778 | return 0; | 
|  | 20779 | } | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20780 | _ACEOF | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20781 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20783 | (eval $ac_link) 2>conftest.er1 | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20784 | ac_status=$? | 
|  | 20785 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20786 | rm -f conftest.er1 | 
|  | 20787 | cat conftest.err >&5 | 
|  | 20788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20789 | (exit $ac_status); } && | 
|  | 20790 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 20791 | || test ! -s conftest.err' | 
|  | 20792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20793 | (eval $ac_try) 2>&5 | 
|  | 20794 | ac_status=$? | 
|  | 20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20796 | (exit $ac_status); }; } && | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20797 | { ac_try='test -s conftest$ac_exeext' | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20799 | (eval $ac_try) 2>&5 | 
|  | 20800 | ac_status=$? | 
|  | 20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20802 | (exit $ac_status); }; }; then | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20803 | ac_cv_lib_bz2_BZ2_bzCompressInit=yes | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20804 | else | 
|  | 20805 | echo "$as_me: failed program was:" >&5 | 
|  | 20806 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Reid Spencer | 4e181e7 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 20807 |  | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20808 | ac_cv_lib_bz2_BZ2_bzCompressInit=no | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20809 | fi | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20810 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 20811 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20812 | LIBS=$ac_check_lib_save_LIBS | 
|  | 20813 | fi | 
|  | 20814 | echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 | 
|  | 20815 | echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6 | 
|  | 20816 | if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then | 
|  | 20817 | bzip2_found=1 | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20818 | else | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20819 | bzip2_found=0 | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20820 | fi | 
|  | 20821 |  | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20822 | if test $bzip2_found -eq 1 ; then | 
| Reid Spencer | 4874120 | 2004-10-02 08:50:58 +0000 | [diff] [blame] | 20823 |  | 
|  | 20824 | cat >>confdefs.h <<\_ACEOF | 
|  | 20825 | #define HAVE_BZIP2 1 | 
|  | 20826 | _ACEOF | 
|  | 20827 |  | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20828 | HAVE_BZIP2=1 | 
| Reid Spencer | 4874120 | 2004-10-02 08:50:58 +0000 | [diff] [blame] | 20829 |  | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 20830 | else | 
|  | 20831 | HAVE_BZIP2=0 | 
|  | 20832 |  | 
|  | 20833 | fi | 
| Reid Spencer | c4b5cfc | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20834 |  | 
|  | 20835 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 | 
|  | 20836 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 | 
|  | 20837 | if test "${ac_cv_search_lt_dlopen+set}" = set; then | 
|  | 20838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20839 | else | 
|  | 20840 | ac_func_search_save_LIBS=$LIBS | 
|  | 20841 | ac_cv_search_lt_dlopen=no | 
|  | 20842 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20843 | /* confdefs.h.  */ | 
|  | 20844 | _ACEOF | 
|  | 20845 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20846 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20847 | /* end confdefs.h.  */ | 
|  | 20848 |  | 
|  | 20849 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20850 | #ifdef __cplusplus | 
|  | 20851 | extern "C" | 
|  | 20852 | #endif | 
|  | 20853 | /* We use char because int might match the return type of a gcc2 | 
|  | 20854 | builtin and then its argument prototype would still apply.  */ | 
|  | 20855 | char lt_dlopen (); | 
|  | 20856 | int | 
|  | 20857 | main () | 
|  | 20858 | { | 
|  | 20859 | lt_dlopen (); | 
|  | 20860 | ; | 
|  | 20861 | return 0; | 
|  | 20862 | } | 
|  | 20863 | _ACEOF | 
|  | 20864 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20866 | (eval $ac_link) 2>conftest.er1 | 
|  | 20867 | ac_status=$? | 
|  | 20868 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20869 | rm -f conftest.er1 | 
|  | 20870 | cat conftest.err >&5 | 
|  | 20871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20872 | (exit $ac_status); } && | 
|  | 20873 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 20874 | || test ! -s conftest.err' | 
|  | 20875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20876 | (eval $ac_try) 2>&5 | 
|  | 20877 | ac_status=$? | 
|  | 20878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20879 | (exit $ac_status); }; } && | 
|  | 20880 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20882 | (eval $ac_try) 2>&5 | 
|  | 20883 | ac_status=$? | 
|  | 20884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20885 | (exit $ac_status); }; }; then | 
|  | 20886 | ac_cv_search_lt_dlopen="none required" | 
|  | 20887 | else | 
|  | 20888 | echo "$as_me: failed program was:" >&5 | 
|  | 20889 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20890 |  | 
|  | 20891 | fi | 
|  | 20892 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 20893 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20894 | if test "$ac_cv_search_lt_dlopen" = no; then | 
|  | 20895 | for ac_lib in ltdl; do | 
|  | 20896 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 20897 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 20898 | /* confdefs.h.  */ | 
|  | 20899 | _ACEOF | 
|  | 20900 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20901 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20902 | /* end confdefs.h.  */ | 
|  | 20903 |  | 
|  | 20904 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20905 | #ifdef __cplusplus | 
|  | 20906 | extern "C" | 
|  | 20907 | #endif | 
|  | 20908 | /* We use char because int might match the return type of a gcc2 | 
|  | 20909 | builtin and then its argument prototype would still apply.  */ | 
|  | 20910 | char lt_dlopen (); | 
|  | 20911 | int | 
|  | 20912 | main () | 
|  | 20913 | { | 
|  | 20914 | lt_dlopen (); | 
|  | 20915 | ; | 
|  | 20916 | return 0; | 
|  | 20917 | } | 
|  | 20918 | _ACEOF | 
|  | 20919 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 20920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 20921 | (eval $ac_link) 2>conftest.er1 | 
|  | 20922 | ac_status=$? | 
|  | 20923 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 20924 | rm -f conftest.er1 | 
|  | 20925 | cat conftest.err >&5 | 
|  | 20926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20927 | (exit $ac_status); } && | 
|  | 20928 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 20929 | || test ! -s conftest.err' | 
|  | 20930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20931 | (eval $ac_try) 2>&5 | 
|  | 20932 | ac_status=$? | 
|  | 20933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20934 | (exit $ac_status); }; } && | 
|  | 20935 | { ac_try='test -s conftest$ac_exeext' | 
|  | 20936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 20937 | (eval $ac_try) 2>&5 | 
|  | 20938 | ac_status=$? | 
|  | 20939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 20940 | (exit $ac_status); }; }; then | 
|  | 20941 | ac_cv_search_lt_dlopen="-l$ac_lib" | 
|  | 20942 | break | 
|  | 20943 | else | 
|  | 20944 | echo "$as_me: failed program was:" >&5 | 
|  | 20945 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 20946 |  | 
|  | 20947 | fi | 
|  | 20948 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 20949 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20950 | done | 
|  | 20951 | fi | 
|  | 20952 | LIBS=$ac_func_search_save_LIBS | 
|  | 20953 | fi | 
|  | 20954 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 | 
|  | 20955 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 | 
|  | 20956 | if test "$ac_cv_search_lt_dlopen" != no; then | 
|  | 20957 | test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" | 
|  | 20958 |  | 
|  | 20959 | cat >>confdefs.h <<\_ACEOF | 
|  | 20960 | #define HAVE_LT_DLOPEN 1 | 
|  | 20961 | _ACEOF | 
|  | 20962 |  | 
|  | 20963 | else | 
|  | 20964 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might | 
|  | 20965 | not be available" >&5 | 
|  | 20966 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might | 
|  | 20967 | not be available" >&2;} | 
|  | 20968 | fi | 
|  | 20969 |  | 
|  | 20970 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20971 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
|  | 20972 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
|  | 20973 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 20974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20975 | else | 
|  | 20976 | ac_func_search_save_LIBS=$LIBS | 
|  | 20977 | ac_cv_search_dlopen=no | 
|  | 20978 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20979 | /* confdefs.h.  */ | 
|  | 20980 | _ACEOF | 
|  | 20981 | cat confdefs.h >>conftest.$ac_ext | 
|  | 20982 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 20983 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20984 |  | 
|  | 20985 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 20986 | #ifdef __cplusplus | 
|  | 20987 | extern "C" | 
|  | 20988 | #endif | 
|  | 20989 | /* We use char because int might match the return type of a gcc2 | 
|  | 20990 | builtin and then its argument prototype would still apply.  */ | 
|  | 20991 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20992 | int | 
|  | 20993 | main () | 
|  | 20994 | { | 
|  | 20995 | dlopen (); | 
|  | 20996 | ; | 
|  | 20997 | return 0; | 
|  | 20998 | } | 
|  | 20999 | _ACEOF | 
|  | 21000 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21002 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21003 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21004 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21005 | rm -f conftest.er1 | 
|  | 21006 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21008 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21009 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21010 | || test ! -s conftest.err' | 
|  | 21011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21012 | (eval $ac_try) 2>&5 | 
|  | 21013 | ac_status=$? | 
|  | 21014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21015 | (exit $ac_status); }; } && | 
|  | 21016 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21018 | (eval $ac_try) 2>&5 | 
|  | 21019 | ac_status=$? | 
|  | 21020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21021 | (exit $ac_status); }; }; then | 
|  | 21022 | ac_cv_search_dlopen="none required" | 
|  | 21023 | else | 
|  | 21024 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21025 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21026 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21027 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21028 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21029 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21030 | if test "$ac_cv_search_dlopen" = no; then | 
|  | 21031 | for ac_lib in dl; do | 
|  | 21032 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 21033 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21034 | /* confdefs.h.  */ | 
|  | 21035 | _ACEOF | 
|  | 21036 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21037 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21038 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21039 |  | 
|  | 21040 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 21041 | #ifdef __cplusplus | 
|  | 21042 | extern "C" | 
|  | 21043 | #endif | 
|  | 21044 | /* We use char because int might match the return type of a gcc2 | 
|  | 21045 | builtin and then its argument prototype would still apply.  */ | 
|  | 21046 | char dlopen (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21047 | int | 
|  | 21048 | main () | 
|  | 21049 | { | 
|  | 21050 | dlopen (); | 
|  | 21051 | ; | 
|  | 21052 | return 0; | 
|  | 21053 | } | 
|  | 21054 | _ACEOF | 
|  | 21055 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21057 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21058 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21059 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21060 | rm -f conftest.er1 | 
|  | 21061 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21063 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21064 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21065 | || test ! -s conftest.err' | 
|  | 21066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21067 | (eval $ac_try) 2>&5 | 
|  | 21068 | ac_status=$? | 
|  | 21069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21070 | (exit $ac_status); }; } && | 
|  | 21071 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21073 | (eval $ac_try) 2>&5 | 
|  | 21074 | ac_status=$? | 
|  | 21075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21076 | (exit $ac_status); }; }; then | 
|  | 21077 | ac_cv_search_dlopen="-l$ac_lib" | 
|  | 21078 | break | 
|  | 21079 | else | 
|  | 21080 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21081 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21082 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21083 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21084 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21085 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21086 | done | 
|  | 21087 | fi | 
|  | 21088 | LIBS=$ac_func_search_save_LIBS | 
|  | 21089 | fi | 
|  | 21090 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
|  | 21091 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
|  | 21092 | if test "$ac_cv_search_dlopen" != no; then | 
|  | 21093 | test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21094 |  | 
|  | 21095 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 16448fc | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 21096 | #define HAVE_DLOPEN 1 | 
|  | 21097 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21098 |  | 
|  | 21099 | else | 
| Brian Gaeke | 16448fc | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 21100 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
|  | 21101 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21102 | fi | 
|  | 21103 |  | 
|  | 21104 |  | 
|  | 21105 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
|  | 21106 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
|  | 21107 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 21108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21109 | else | 
|  | 21110 | ac_func_search_save_LIBS=$LIBS | 
|  | 21111 | ac_cv_search_mallinfo=no | 
|  | 21112 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21113 | /* confdefs.h.  */ | 
|  | 21114 | _ACEOF | 
|  | 21115 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21116 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21117 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21118 |  | 
|  | 21119 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 21120 | #ifdef __cplusplus | 
|  | 21121 | extern "C" | 
|  | 21122 | #endif | 
|  | 21123 | /* We use char because int might match the return type of a gcc2 | 
|  | 21124 | builtin and then its argument prototype would still apply.  */ | 
|  | 21125 | char mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21126 | int | 
|  | 21127 | main () | 
|  | 21128 | { | 
|  | 21129 | mallinfo (); | 
|  | 21130 | ; | 
|  | 21131 | return 0; | 
|  | 21132 | } | 
|  | 21133 | _ACEOF | 
|  | 21134 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21136 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21137 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21138 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21139 | rm -f conftest.er1 | 
|  | 21140 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21142 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21143 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21144 | || test ! -s conftest.err' | 
|  | 21145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21146 | (eval $ac_try) 2>&5 | 
|  | 21147 | ac_status=$? | 
|  | 21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21149 | (exit $ac_status); }; } && | 
|  | 21150 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21152 | (eval $ac_try) 2>&5 | 
|  | 21153 | ac_status=$? | 
|  | 21154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21155 | (exit $ac_status); }; }; then | 
|  | 21156 | ac_cv_search_mallinfo="none required" | 
|  | 21157 | else | 
|  | 21158 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21159 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21160 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21161 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21162 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21163 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21164 | if test "$ac_cv_search_mallinfo" = no; then | 
|  | 21165 | for ac_lib in malloc; do | 
|  | 21166 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 21167 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21168 | /* confdefs.h.  */ | 
|  | 21169 | _ACEOF | 
|  | 21170 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21171 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21172 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21173 |  | 
|  | 21174 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 21175 | #ifdef __cplusplus | 
|  | 21176 | extern "C" | 
|  | 21177 | #endif | 
|  | 21178 | /* We use char because int might match the return type of a gcc2 | 
|  | 21179 | builtin and then its argument prototype would still apply.  */ | 
|  | 21180 | char mallinfo (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21181 | int | 
|  | 21182 | main () | 
|  | 21183 | { | 
|  | 21184 | mallinfo (); | 
|  | 21185 | ; | 
|  | 21186 | return 0; | 
|  | 21187 | } | 
|  | 21188 | _ACEOF | 
|  | 21189 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21191 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21192 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21193 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21194 | rm -f conftest.er1 | 
|  | 21195 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21197 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21198 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21199 | || test ! -s conftest.err' | 
|  | 21200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21201 | (eval $ac_try) 2>&5 | 
|  | 21202 | ac_status=$? | 
|  | 21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21204 | (exit $ac_status); }; } && | 
|  | 21205 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21207 | (eval $ac_try) 2>&5 | 
|  | 21208 | ac_status=$? | 
|  | 21209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21210 | (exit $ac_status); }; }; then | 
|  | 21211 | ac_cv_search_mallinfo="-l$ac_lib" | 
|  | 21212 | break | 
|  | 21213 | else | 
|  | 21214 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21215 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21216 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21217 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21218 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21219 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21220 | done | 
|  | 21221 | fi | 
|  | 21222 | LIBS=$ac_func_search_save_LIBS | 
|  | 21223 | fi | 
|  | 21224 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
|  | 21225 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
|  | 21226 | if test "$ac_cv_search_mallinfo" != no; then | 
|  | 21227 | test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21228 |  | 
|  | 21229 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21230 | #define HAVE_MALLINFO 1 | 
|  | 21231 | _ACEOF | 
|  | 21232 |  | 
|  | 21233 | fi | 
|  | 21234 |  | 
|  | 21235 |  | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21236 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
|  | 21237 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
|  | 21238 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 21239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21240 | else | 
|  | 21241 | ac_func_search_save_LIBS=$LIBS | 
|  | 21242 | ac_cv_search_pthread_mutex_lock=no | 
|  | 21243 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21244 | /* confdefs.h.  */ | 
|  | 21245 | _ACEOF | 
|  | 21246 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21247 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21248 | /* end confdefs.h.  */ | 
|  | 21249 |  | 
|  | 21250 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 21251 | #ifdef __cplusplus | 
|  | 21252 | extern "C" | 
|  | 21253 | #endif | 
|  | 21254 | /* We use char because int might match the return type of a gcc2 | 
|  | 21255 | builtin and then its argument prototype would still apply.  */ | 
|  | 21256 | char pthread_mutex_lock (); | 
|  | 21257 | int | 
|  | 21258 | main () | 
|  | 21259 | { | 
|  | 21260 | pthread_mutex_lock (); | 
|  | 21261 | ; | 
|  | 21262 | return 0; | 
|  | 21263 | } | 
|  | 21264 | _ACEOF | 
|  | 21265 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21267 | (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21268 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21269 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21270 | rm -f conftest.er1 | 
|  | 21271 | cat conftest.err >&5 | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21273 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21274 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21275 | || test ! -s conftest.err' | 
|  | 21276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21277 | (eval $ac_try) 2>&5 | 
|  | 21278 | ac_status=$? | 
|  | 21279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21280 | (exit $ac_status); }; } && | 
|  | 21281 | { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21283 | (eval $ac_try) 2>&5 | 
|  | 21284 | ac_status=$? | 
|  | 21285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21286 | (exit $ac_status); }; }; then | 
|  | 21287 | ac_cv_search_pthread_mutex_lock="none required" | 
|  | 21288 | else | 
|  | 21289 | echo "$as_me: failed program was:" >&5 | 
|  | 21290 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21291 |  | 
|  | 21292 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21293 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21294 | conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21295 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
|  | 21296 | for ac_lib in pthread; do | 
|  | 21297 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 21298 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21299 | /* confdefs.h.  */ | 
|  | 21300 | _ACEOF | 
|  | 21301 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21302 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21303 | /* end confdefs.h.  */ | 
|  | 21304 |  | 
|  | 21305 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 21306 | #ifdef __cplusplus | 
|  | 21307 | extern "C" | 
|  | 21308 | #endif | 
|  | 21309 | /* We use char because int might match the return type of a gcc2 | 
|  | 21310 | builtin and then its argument prototype would still apply.  */ | 
|  | 21311 | char pthread_mutex_lock (); | 
|  | 21312 | int | 
|  | 21313 | main () | 
|  | 21314 | { | 
|  | 21315 | pthread_mutex_lock (); | 
|  | 21316 | ; | 
|  | 21317 | return 0; | 
|  | 21318 | } | 
|  | 21319 | _ACEOF | 
|  | 21320 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21322 | (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21323 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21324 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21325 | rm -f conftest.er1 | 
|  | 21326 | cat conftest.err >&5 | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21328 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21329 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21330 | || test ! -s conftest.err' | 
|  | 21331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21332 | (eval $ac_try) 2>&5 | 
|  | 21333 | ac_status=$? | 
|  | 21334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21335 | (exit $ac_status); }; } && | 
|  | 21336 | { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21338 | (eval $ac_try) 2>&5 | 
|  | 21339 | ac_status=$? | 
|  | 21340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21341 | (exit $ac_status); }; }; then | 
|  | 21342 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
|  | 21343 | break | 
|  | 21344 | else | 
|  | 21345 | echo "$as_me: failed program was:" >&5 | 
|  | 21346 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21347 |  | 
|  | 21348 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21349 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21350 | conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21351 | done | 
|  | 21352 | fi | 
|  | 21353 | LIBS=$ac_func_search_save_LIBS | 
|  | 21354 | fi | 
|  | 21355 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
|  | 21356 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
|  | 21357 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
|  | 21358 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21359 |  | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 21360 | cat >>confdefs.h <<\_ACEOF | 
|  | 21361 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
|  | 21362 | _ACEOF | 
|  | 21363 |  | 
|  | 21364 | fi | 
| Brian Gaeke | 7ee7b40 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 21365 |  | 
| Brian Gaeke | d3de6c0 | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 21366 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21367 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21368 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 21369 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
|  | 21370 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 21371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21372 | else | 
|  | 21373 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21374 | /* confdefs.h.  */ | 
|  | 21375 | _ACEOF | 
|  | 21376 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21377 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21378 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21379 | #include <stdlib.h> | 
|  | 21380 | #include <stdarg.h> | 
|  | 21381 | #include <string.h> | 
|  | 21382 | #include <float.h> | 
|  | 21383 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21384 | int | 
|  | 21385 | main () | 
|  | 21386 | { | 
|  | 21387 |  | 
|  | 21388 | ; | 
|  | 21389 | return 0; | 
|  | 21390 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21391 | _ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21392 | rm -f conftest.$ac_objext | 
|  | 21393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21394 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21395 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21396 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21397 | rm -f conftest.er1 | 
|  | 21398 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21400 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21401 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21402 | || test ! -s conftest.err' | 
|  | 21403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21404 | (eval $ac_try) 2>&5 | 
|  | 21405 | ac_status=$? | 
|  | 21406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21407 | (exit $ac_status); }; } && | 
|  | 21408 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21410 | (eval $ac_try) 2>&5 | 
|  | 21411 | ac_status=$? | 
|  | 21412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21413 | (exit $ac_status); }; }; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21414 | ac_cv_header_stdc=yes | 
|  | 21415 | else | 
|  | 21416 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21417 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21418 |  | 
|  | 21419 | ac_cv_header_stdc=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21420 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21422 |  | 
|  | 21423 | if test $ac_cv_header_stdc = yes; then | 
|  | 21424 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 21425 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21426 | /* confdefs.h.  */ | 
|  | 21427 | _ACEOF | 
|  | 21428 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21429 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21430 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21431 | #include <string.h> | 
|  | 21432 |  | 
|  | 21433 | _ACEOF | 
|  | 21434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21435 | $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21436 | : | 
|  | 21437 | else | 
|  | 21438 | ac_cv_header_stdc=no | 
|  | 21439 | fi | 
|  | 21440 | rm -f conftest* | 
|  | 21441 |  | 
|  | 21442 | fi | 
|  | 21443 |  | 
|  | 21444 | if test $ac_cv_header_stdc = yes; then | 
|  | 21445 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 21446 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21447 | /* confdefs.h.  */ | 
|  | 21448 | _ACEOF | 
|  | 21449 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21450 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21451 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21452 | #include <stdlib.h> | 
|  | 21453 |  | 
|  | 21454 | _ACEOF | 
|  | 21455 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21456 | $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21457 | : | 
|  | 21458 | else | 
|  | 21459 | ac_cv_header_stdc=no | 
|  | 21460 | fi | 
|  | 21461 | rm -f conftest* | 
|  | 21462 |  | 
|  | 21463 | fi | 
|  | 21464 |  | 
|  | 21465 | if test $ac_cv_header_stdc = yes; then | 
|  | 21466 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 21467 | if test "$cross_compiling" = yes; then | 
|  | 21468 | : | 
|  | 21469 | else | 
|  | 21470 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21471 | /* confdefs.h.  */ | 
|  | 21472 | _ACEOF | 
|  | 21473 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21474 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21475 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21476 | #include <ctype.h> | 
|  | 21477 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 21478 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 21479 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 21480 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21481 | # define ISLOWER(c) \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21482 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 21483 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 21484 | || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21485 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 21486 | #endif | 
|  | 21487 |  | 
|  | 21488 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 21489 | int | 
|  | 21490 | main () | 
|  | 21491 | { | 
|  | 21492 | int i; | 
|  | 21493 | for (i = 0; i < 256; i++) | 
|  | 21494 | if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21495 | || toupper (i) != TOUPPER (i)) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21496 | exit(2); | 
|  | 21497 | exit (0); | 
|  | 21498 | } | 
|  | 21499 | _ACEOF | 
|  | 21500 | rm -f conftest$ac_exeext | 
|  | 21501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 21502 | (eval $ac_link) 2>&5 | 
|  | 21503 | ac_status=$? | 
|  | 21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 21506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21507 | (eval $ac_try) 2>&5 | 
|  | 21508 | ac_status=$? | 
|  | 21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21510 | (exit $ac_status); }; }; then | 
|  | 21511 | : | 
|  | 21512 | else | 
|  | 21513 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 21514 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21515 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21516 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21517 | ( exit $ac_status ) | 
|  | 21518 | ac_cv_header_stdc=no | 
|  | 21519 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21520 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21521 | fi | 
|  | 21522 | fi | 
|  | 21523 | fi | 
|  | 21524 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 21525 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
|  | 21526 | if test $ac_cv_header_stdc = yes; then | 
|  | 21527 |  | 
|  | 21528 | cat >>confdefs.h <<\_ACEOF | 
|  | 21529 | #define STDC_HEADERS 1 | 
|  | 21530 | _ACEOF | 
|  | 21531 |  | 
|  | 21532 | fi | 
|  | 21533 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21534 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21535 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
|  | 21536 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
|  | 21537 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
|  | 21538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21539 | else | 
|  | 21540 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21541 | /* confdefs.h.  */ | 
|  | 21542 | _ACEOF | 
|  | 21543 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21544 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21545 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21546 | #include <sys/types.h> | 
|  | 21547 | #include <sys/wait.h> | 
|  | 21548 | #ifndef WEXITSTATUS | 
|  | 21549 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
|  | 21550 | #endif | 
|  | 21551 | #ifndef WIFEXITED | 
|  | 21552 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
|  | 21553 | #endif | 
|  | 21554 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21555 | int | 
|  | 21556 | main () | 
|  | 21557 | { | 
|  | 21558 | int s; | 
|  | 21559 | wait (&s); | 
|  | 21560 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
|  | 21561 | ; | 
|  | 21562 | return 0; | 
|  | 21563 | } | 
|  | 21564 | _ACEOF | 
|  | 21565 | rm -f conftest.$ac_objext | 
|  | 21566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21567 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21568 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21569 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21570 | rm -f conftest.er1 | 
|  | 21571 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21573 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21574 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21575 | || test ! -s conftest.err' | 
|  | 21576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21577 | (eval $ac_try) 2>&5 | 
|  | 21578 | ac_status=$? | 
|  | 21579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21580 | (exit $ac_status); }; } && | 
|  | 21581 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21583 | (eval $ac_try) 2>&5 | 
|  | 21584 | ac_status=$? | 
|  | 21585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21586 | (exit $ac_status); }; }; then | 
|  | 21587 | ac_cv_header_sys_wait_h=yes | 
|  | 21588 | else | 
|  | 21589 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21590 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21591 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21592 | ac_cv_header_sys_wait_h=no | 
|  | 21593 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21595 | fi | 
|  | 21596 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
|  | 21597 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
|  | 21598 | if test $ac_cv_header_sys_wait_h = yes; then | 
|  | 21599 |  | 
|  | 21600 | cat >>confdefs.h <<\_ACEOF | 
|  | 21601 | #define HAVE_SYS_WAIT_H 1 | 
|  | 21602 | _ACEOF | 
|  | 21603 |  | 
|  | 21604 | fi | 
|  | 21605 |  | 
|  | 21606 |  | 
|  | 21607 |  | 
|  | 21608 |  | 
|  | 21609 |  | 
|  | 21610 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21611 | for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21612 | do | 
|  | 21613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 21614 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 21615 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 21616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 21617 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 21618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21619 | fi | 
|  | 21620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 21621 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 21622 | else | 
|  | 21623 | # Is the header compilable? | 
|  | 21624 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 21625 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 21626 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21627 | /* confdefs.h.  */ | 
|  | 21628 | _ACEOF | 
|  | 21629 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21630 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21631 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21632 | $ac_includes_default | 
|  | 21633 | #include <$ac_header> | 
|  | 21634 | _ACEOF | 
|  | 21635 | rm -f conftest.$ac_objext | 
|  | 21636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21637 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21638 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21639 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21640 | rm -f conftest.er1 | 
|  | 21641 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21643 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21644 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21645 | || test ! -s conftest.err' | 
|  | 21646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21647 | (eval $ac_try) 2>&5 | 
|  | 21648 | ac_status=$? | 
|  | 21649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21650 | (exit $ac_status); }; } && | 
|  | 21651 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21653 | (eval $ac_try) 2>&5 | 
|  | 21654 | ac_status=$? | 
|  | 21655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21656 | (exit $ac_status); }; }; then | 
|  | 21657 | ac_header_compiler=yes | 
|  | 21658 | else | 
|  | 21659 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21660 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21661 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21662 | ac_header_compiler=no | 
|  | 21663 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21665 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 21666 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 21667 |  | 
|  | 21668 | # Is the header present? | 
|  | 21669 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 21670 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 21671 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21672 | /* confdefs.h.  */ | 
|  | 21673 | _ACEOF | 
|  | 21674 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21675 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21676 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21677 | #include <$ac_header> | 
|  | 21678 | _ACEOF | 
|  | 21679 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 21680 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 21681 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21682 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21683 | rm -f conftest.er1 | 
|  | 21684 | cat conftest.err >&5 | 
|  | 21685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21686 | (exit $ac_status); } >/dev/null; then | 
|  | 21687 | if test -s conftest.err; then | 
|  | 21688 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21689 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21690 | else | 
|  | 21691 | ac_cpp_err= | 
|  | 21692 | fi | 
|  | 21693 | else | 
|  | 21694 | ac_cpp_err=yes | 
|  | 21695 | fi | 
|  | 21696 | if test -z "$ac_cpp_err"; then | 
|  | 21697 | ac_header_preproc=yes | 
|  | 21698 | else | 
|  | 21699 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21700 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21701 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21702 | ac_header_preproc=no | 
|  | 21703 | fi | 
|  | 21704 | rm -f conftest.err conftest.$ac_ext | 
|  | 21705 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 21706 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 21707 |  | 
|  | 21708 | # So?  What about this header? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21709 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 21710 | yes:no: ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21711 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 21712 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21713 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 21714 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 21715 | ac_header_preproc=yes | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21716 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21717 | no:yes:* ) | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21718 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 21719 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21720 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 21721 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 21722 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 21723 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 21724 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 21725 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21726 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 21727 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21728 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 21729 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 21730 | ( | 
|  | 21731 | cat <<\_ASBOX | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21732 | ## ----------------------------------- ## | 
|  | 21733 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 21734 | ## ----------------------------------- ## | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21735 | _ASBOX | 
|  | 21736 | ) | | 
|  | 21737 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 21738 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21739 | esac | 
|  | 21740 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 21741 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 21742 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 21743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21744 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21745 | eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21746 | fi | 
|  | 21747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 21748 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 21749 |  | 
|  | 21750 | fi | 
|  | 21751 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 21752 | cat >>confdefs.h <<_ACEOF | 
|  | 21753 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 21754 | _ACEOF | 
|  | 21755 |  | 
|  | 21756 | fi | 
|  | 21757 |  | 
|  | 21758 | done | 
|  | 21759 |  | 
|  | 21760 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21761 |  | 
|  | 21762 |  | 
|  | 21763 |  | 
|  | 21764 |  | 
|  | 21765 |  | 
|  | 21766 |  | 
|  | 21767 | for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h | 
|  | 21768 | do | 
|  | 21769 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 21770 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 21771 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 21772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 21773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21775 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 21777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21778 | else | 
|  | 21779 | # Is the header compilable? | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21780 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 21781 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21782 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21783 | /* confdefs.h.  */ | 
|  | 21784 | _ACEOF | 
|  | 21785 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21786 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21787 | /* end confdefs.h.  */ | 
|  | 21788 | $ac_includes_default | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21789 | #include <$ac_header> | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21790 | _ACEOF | 
|  | 21791 | rm -f conftest.$ac_objext | 
|  | 21792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21793 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21794 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21795 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21796 | rm -f conftest.er1 | 
|  | 21797 | cat conftest.err >&5 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21799 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21800 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21801 | || test ! -s conftest.err' | 
|  | 21802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21803 | (eval $ac_try) 2>&5 | 
|  | 21804 | ac_status=$? | 
|  | 21805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21806 | (exit $ac_status); }; } && | 
|  | 21807 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21809 | (eval $ac_try) 2>&5 | 
|  | 21810 | ac_status=$? | 
|  | 21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21812 | (exit $ac_status); }; }; then | 
|  | 21813 | ac_header_compiler=yes | 
|  | 21814 | else | 
|  | 21815 | echo "$as_me: failed program was:" >&5 | 
|  | 21816 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21817 |  | 
|  | 21818 | ac_header_compiler=no | 
|  | 21819 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21821 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 21822 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 21823 |  | 
|  | 21824 | # Is the header present? | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21825 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 21826 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21827 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 21828 | /* confdefs.h.  */ | 
|  | 21829 | _ACEOF | 
|  | 21830 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21831 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21832 | /* end confdefs.h.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21833 | #include <$ac_header> | 
|  | 21834 | _ACEOF | 
|  | 21835 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 21836 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 21837 | ac_status=$? | 
|  | 21838 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21839 | rm -f conftest.er1 | 
|  | 21840 | cat conftest.err >&5 | 
|  | 21841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21842 | (exit $ac_status); } >/dev/null; then | 
|  | 21843 | if test -s conftest.err; then | 
|  | 21844 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 21845 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 21846 | else | 
|  | 21847 | ac_cpp_err= | 
|  | 21848 | fi | 
|  | 21849 | else | 
|  | 21850 | ac_cpp_err=yes | 
|  | 21851 | fi | 
|  | 21852 | if test -z "$ac_cpp_err"; then | 
|  | 21853 | ac_header_preproc=yes | 
|  | 21854 | else | 
|  | 21855 | echo "$as_me: failed program was:" >&5 | 
|  | 21856 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21857 |  | 
|  | 21858 | ac_header_preproc=no | 
|  | 21859 | fi | 
|  | 21860 | rm -f conftest.err conftest.$ac_ext | 
|  | 21861 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 21862 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 21863 |  | 
|  | 21864 | # So?  What about this header? | 
|  | 21865 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 21866 | yes:no: ) | 
|  | 21867 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 21868 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 21869 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 21870 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 21871 | ac_header_preproc=yes | 
|  | 21872 | ;; | 
|  | 21873 | no:yes:* ) | 
|  | 21874 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 21875 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 21876 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 21877 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 21878 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 21879 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 21880 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 21881 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 21882 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 21883 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 21884 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 21885 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 21886 | ( | 
|  | 21887 | cat <<\_ASBOX | 
|  | 21888 | ## ----------------------------------- ## | 
|  | 21889 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 21890 | ## ----------------------------------- ## | 
|  | 21891 | _ASBOX | 
|  | 21892 | ) | | 
|  | 21893 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 21894 | ;; | 
|  | 21895 | esac | 
|  | 21896 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 21897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 21898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 21899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21900 | else | 
|  | 21901 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 21902 | fi | 
|  | 21903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 21904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 21905 |  | 
|  | 21906 | fi | 
|  | 21907 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 21908 | cat >>confdefs.h <<_ACEOF | 
|  | 21909 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 21910 | _ACEOF | 
|  | 21911 |  | 
|  | 21912 | fi | 
|  | 21913 |  | 
|  | 21914 | done | 
|  | 21915 |  | 
|  | 21916 |  | 
|  | 21917 |  | 
|  | 21918 |  | 
|  | 21919 |  | 
|  | 21920 | for ac_header in malloc.h unistd.h windows.h zlib.h | 
|  | 21921 | do | 
|  | 21922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 21923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 21924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 21925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 21926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 21927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21928 | fi | 
|  | 21929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 21930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 21931 | else | 
|  | 21932 | # Is the header compilable? | 
|  | 21933 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 21934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 21935 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21936 | /* confdefs.h.  */ | 
|  | 21937 | _ACEOF | 
|  | 21938 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21939 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21940 | /* end confdefs.h.  */ | 
|  | 21941 | $ac_includes_default | 
|  | 21942 | #include <$ac_header> | 
|  | 21943 | _ACEOF | 
|  | 21944 | rm -f conftest.$ac_objext | 
|  | 21945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 21946 | (eval $ac_compile) 2>conftest.er1 | 
|  | 21947 | ac_status=$? | 
|  | 21948 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21949 | rm -f conftest.er1 | 
|  | 21950 | cat conftest.err >&5 | 
|  | 21951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21952 | (exit $ac_status); } && | 
|  | 21953 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21954 | || test ! -s conftest.err' | 
|  | 21955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21956 | (eval $ac_try) 2>&5 | 
|  | 21957 | ac_status=$? | 
|  | 21958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21959 | (exit $ac_status); }; } && | 
|  | 21960 | { ac_try='test -s conftest.$ac_objext' | 
|  | 21961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21962 | (eval $ac_try) 2>&5 | 
|  | 21963 | ac_status=$? | 
|  | 21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21965 | (exit $ac_status); }; }; then | 
|  | 21966 | ac_header_compiler=yes | 
|  | 21967 | else | 
|  | 21968 | echo "$as_me: failed program was:" >&5 | 
|  | 21969 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21970 |  | 
|  | 21971 | ac_header_compiler=no | 
|  | 21972 | fi | 
|  | 21973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 21975 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 21976 |  | 
|  | 21977 | # Is the header present? | 
|  | 21978 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 21979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 21980 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 21981 | /* confdefs.h.  */ | 
|  | 21982 | _ACEOF | 
|  | 21983 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21984 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21985 | /* end confdefs.h.  */ | 
|  | 21986 | #include <$ac_header> | 
|  | 21987 | _ACEOF | 
|  | 21988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 21989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 21990 | ac_status=$? | 
|  | 21991 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21992 | rm -f conftest.er1 | 
|  | 21993 | cat conftest.err >&5 | 
|  | 21994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21995 | (exit $ac_status); } >/dev/null; then | 
|  | 21996 | if test -s conftest.err; then | 
|  | 21997 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 21998 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 21999 | else | 
|  | 22000 | ac_cpp_err= | 
|  | 22001 | fi | 
|  | 22002 | else | 
|  | 22003 | ac_cpp_err=yes | 
|  | 22004 | fi | 
|  | 22005 | if test -z "$ac_cpp_err"; then | 
|  | 22006 | ac_header_preproc=yes | 
|  | 22007 | else | 
|  | 22008 | echo "$as_me: failed program was:" >&5 | 
|  | 22009 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22010 |  | 
|  | 22011 | ac_header_preproc=no | 
|  | 22012 | fi | 
|  | 22013 | rm -f conftest.err conftest.$ac_ext | 
|  | 22014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 22015 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 22016 |  | 
|  | 22017 | # So?  What about this header? | 
|  | 22018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 22019 | yes:no: ) | 
|  | 22020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 22021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 22022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 22023 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 22024 | ac_header_preproc=yes | 
|  | 22025 | ;; | 
|  | 22026 | no:yes:* ) | 
|  | 22027 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 22028 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 22029 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 22030 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 22031 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 22032 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 22033 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 22034 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 22035 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 22036 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 22037 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 22038 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 22039 | ( | 
|  | 22040 | cat <<\_ASBOX | 
|  | 22041 | ## ----------------------------------- ## | 
|  | 22042 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 22043 | ## ----------------------------------- ## | 
|  | 22044 | _ASBOX | 
|  | 22045 | ) | | 
|  | 22046 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 22047 | ;; | 
|  | 22048 | esac | 
|  | 22049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 22050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 22051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 22052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22053 | else | 
|  | 22054 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 22055 | fi | 
|  | 22056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 22057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 22058 |  | 
|  | 22059 | fi | 
|  | 22060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 22061 | cat >>confdefs.h <<_ACEOF | 
|  | 22062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 22063 | _ACEOF | 
|  | 22064 |  | 
|  | 22065 | fi | 
|  | 22066 |  | 
|  | 22067 | done | 
|  | 22068 |  | 
|  | 22069 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 22070 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
|  | 22071 | if test "${ac_cv_header_time+set}" = set; then | 
|  | 22072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22073 | else | 
|  | 22074 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 22075 | /* confdefs.h.  */ | 
|  | 22076 | _ACEOF | 
|  | 22077 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22078 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22079 | /* end confdefs.h.  */ | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22080 | #include <sys/types.h> | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22081 | #include <sys/time.h> | 
|  | 22082 | #include <time.h> | 
|  | 22083 |  | 
|  | 22084 | int | 
|  | 22085 | main () | 
|  | 22086 | { | 
|  | 22087 | if ((struct tm *) 0) | 
|  | 22088 | return 0; | 
|  | 22089 | ; | 
|  | 22090 | return 0; | 
|  | 22091 | } | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22092 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22093 | rm -f conftest.$ac_objext | 
|  | 22094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 22095 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22096 | ac_status=$? | 
|  | 22097 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22098 | rm -f conftest.er1 | 
|  | 22099 | cat conftest.err >&5 | 
|  | 22100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22101 | (exit $ac_status); } && | 
|  | 22102 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22103 | || test ! -s conftest.err' | 
|  | 22104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22105 | (eval $ac_try) 2>&5 | 
|  | 22106 | ac_status=$? | 
|  | 22107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22108 | (exit $ac_status); }; } && | 
|  | 22109 | { ac_try='test -s conftest.$ac_objext' | 
|  | 22110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22111 | (eval $ac_try) 2>&5 | 
|  | 22112 | ac_status=$? | 
|  | 22113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22114 | (exit $ac_status); }; }; then | 
|  | 22115 | ac_cv_header_time=yes | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22116 | else | 
|  | 22117 | echo "$as_me: failed program was:" >&5 | 
|  | 22118 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22119 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22120 | ac_cv_header_time=no | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22121 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22123 | fi | 
|  | 22124 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
|  | 22125 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
|  | 22126 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22127 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22128 | cat >>confdefs.h <<\_ACEOF | 
|  | 22129 | #define TIME_WITH_SYS_TIME 1 | 
|  | 22130 | _ACEOF | 
|  | 22131 |  | 
|  | 22132 | fi | 
|  | 22133 |  | 
|  | 22134 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
|  | 22135 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
|  | 22136 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22138 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22139 | ac_ext=c | 
|  | 22140 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 22141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 22142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 22143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 22144 |  | 
|  | 22145 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 22146 | /* confdefs.h.  */ | 
|  | 22147 | _ACEOF | 
|  | 22148 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22149 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22150 | /* end confdefs.h.  */ | 
|  | 22151 | #include <sys/mman.h> | 
|  | 22152 | #include <unistd.h> | 
|  | 22153 | #include <fcntl.h> | 
|  | 22154 | int | 
|  | 22155 | main () | 
|  | 22156 | { | 
|  | 22157 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
|  | 22158 | ; | 
|  | 22159 | return 0; | 
|  | 22160 | } | 
|  | 22161 | _ACEOF | 
|  | 22162 | rm -f conftest.$ac_objext | 
|  | 22163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 22164 | (eval $ac_compile) 2>conftest.er1 | 
|  | 22165 | ac_status=$? | 
|  | 22166 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22167 | rm -f conftest.er1 | 
|  | 22168 | cat conftest.err >&5 | 
|  | 22169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22170 | (exit $ac_status); } && | 
|  | 22171 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22172 | || test ! -s conftest.err' | 
|  | 22173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22174 | (eval $ac_try) 2>&5 | 
|  | 22175 | ac_status=$? | 
|  | 22176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22177 | (exit $ac_status); }; } && | 
|  | 22178 | { ac_try='test -s conftest.$ac_objext' | 
|  | 22179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22180 | (eval $ac_try) 2>&5 | 
|  | 22181 | ac_status=$? | 
|  | 22182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22183 | (exit $ac_status); }; }; then | 
|  | 22184 | ac_cv_header_mmap_anon=yes | 
|  | 22185 | else | 
|  | 22186 | echo "$as_me: failed program was:" >&5 | 
|  | 22187 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22188 |  | 
|  | 22189 | ac_cv_header_mmap_anon=no | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22190 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22192 | ac_ext=c | 
|  | 22193 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 22194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 22195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 22196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 22197 |  | 
|  | 22198 |  | 
|  | 22199 | fi | 
|  | 22200 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
|  | 22201 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
|  | 22202 | if test "$ac_cv_header_mmap_anon" = yes; then | 
|  | 22203 |  | 
|  | 22204 | cat >>confdefs.h <<\_ACEOF | 
|  | 22205 | #define HAVE_MMAP_ANONYMOUS | 
|  | 22206 | _ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22207 |  | 
|  | 22208 | fi | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22209 |  | 
|  | 22210 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22211 |  | 
|  | 22212 |  | 
|  | 22213 | for ac_header in inttypes.h stdint.h | 
|  | 22214 | do | 
|  | 22215 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 22216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 22217 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 22218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 22219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22221 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 22223 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22224 | else | 
|  | 22225 | # Is the header compilable? | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22226 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 22227 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22228 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22229 | /* confdefs.h.  */ | 
|  | 22230 | _ACEOF | 
|  | 22231 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22232 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22233 | /* end confdefs.h.  */ | 
|  | 22234 | $ac_includes_default | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22235 | #include <$ac_header> | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22236 | _ACEOF | 
|  | 22237 | rm -f conftest.$ac_objext | 
|  | 22238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22239 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22240 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22241 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22242 | rm -f conftest.er1 | 
|  | 22243 | cat conftest.err >&5 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22245 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22246 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22247 | || test ! -s conftest.err' | 
|  | 22248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22249 | (eval $ac_try) 2>&5 | 
|  | 22250 | ac_status=$? | 
|  | 22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22252 | (exit $ac_status); }; } && | 
|  | 22253 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22255 | (eval $ac_try) 2>&5 | 
|  | 22256 | ac_status=$? | 
|  | 22257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22258 | (exit $ac_status); }; }; then | 
|  | 22259 | ac_header_compiler=yes | 
|  | 22260 | else | 
|  | 22261 | echo "$as_me: failed program was:" >&5 | 
|  | 22262 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22263 |  | 
|  | 22264 | ac_header_compiler=no | 
|  | 22265 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22267 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 22268 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 22269 |  | 
|  | 22270 | # Is the header present? | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22271 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 22272 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22273 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22274 | /* confdefs.h.  */ | 
|  | 22275 | _ACEOF | 
|  | 22276 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22277 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22278 | /* end confdefs.h.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22279 | #include <$ac_header> | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22280 | _ACEOF | 
|  | 22281 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 22282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 22283 | ac_status=$? | 
|  | 22284 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22285 | rm -f conftest.er1 | 
|  | 22286 | cat conftest.err >&5 | 
|  | 22287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22288 | (exit $ac_status); } >/dev/null; then | 
|  | 22289 | if test -s conftest.err; then | 
|  | 22290 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22291 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22292 | else | 
|  | 22293 | ac_cpp_err= | 
|  | 22294 | fi | 
|  | 22295 | else | 
|  | 22296 | ac_cpp_err=yes | 
|  | 22297 | fi | 
|  | 22298 | if test -z "$ac_cpp_err"; then | 
|  | 22299 | ac_header_preproc=yes | 
|  | 22300 | else | 
|  | 22301 | echo "$as_me: failed program was:" >&5 | 
|  | 22302 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22303 |  | 
|  | 22304 | ac_header_preproc=no | 
|  | 22305 | fi | 
|  | 22306 | rm -f conftest.err conftest.$ac_ext | 
|  | 22307 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 22308 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 22309 |  | 
|  | 22310 | # So?  What about this header? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22311 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 22312 | yes:no: ) | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22313 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 22314 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 22315 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 22316 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22317 | ac_header_preproc=yes | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22318 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22319 | no:yes:* ) | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22320 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 22321 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 22322 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 22323 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 22324 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 22325 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 22326 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 22327 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 22328 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 22329 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 22330 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 22331 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22332 | ( | 
|  | 22333 | cat <<\_ASBOX | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22334 | ## ----------------------------------- ## | 
|  | 22335 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 22336 | ## ----------------------------------- ## | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22337 | _ASBOX | 
|  | 22338 | ) | | 
|  | 22339 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 22340 | ;; | 
|  | 22341 | esac | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 22343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 22344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22346 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22347 | eval "$as_ac_Header=\$ac_header_preproc" | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22348 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 22350 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22351 |  | 
|  | 22352 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22353 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 22354 | cat >>confdefs.h <<_ACEOF | 
|  | 22355 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22356 | _ACEOF | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22357 |  | 
|  | 22358 | fi | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22359 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22360 | done | 
|  | 22361 |  | 
| John Criswell | b92c7c2 | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 22362 |  | 
| Brian Gaeke | 4eea32f | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 22363 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22364 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
|  | 22365 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
|  | 22366 | if test "${ac_cv_type_pid_t+set}" = set; then | 
|  | 22367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22368 | else | 
|  | 22369 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22370 | /* confdefs.h.  */ | 
|  | 22371 | _ACEOF | 
|  | 22372 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22373 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22374 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22375 | $ac_includes_default | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22376 | int | 
|  | 22377 | main () | 
|  | 22378 | { | 
|  | 22379 | if ((pid_t *) 0) | 
|  | 22380 | return 0; | 
|  | 22381 | if (sizeof (pid_t)) | 
|  | 22382 | return 0; | 
|  | 22383 | ; | 
|  | 22384 | return 0; | 
|  | 22385 | } | 
|  | 22386 | _ACEOF | 
|  | 22387 | rm -f conftest.$ac_objext | 
|  | 22388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22389 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22390 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22391 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22392 | rm -f conftest.er1 | 
|  | 22393 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22395 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22396 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22397 | || test ! -s conftest.err' | 
|  | 22398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22399 | (eval $ac_try) 2>&5 | 
|  | 22400 | ac_status=$? | 
|  | 22401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22402 | (exit $ac_status); }; } && | 
|  | 22403 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22405 | (eval $ac_try) 2>&5 | 
|  | 22406 | ac_status=$? | 
|  | 22407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22408 | (exit $ac_status); }; }; then | 
|  | 22409 | ac_cv_type_pid_t=yes | 
|  | 22410 | else | 
|  | 22411 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22412 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22413 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22414 | ac_cv_type_pid_t=no | 
|  | 22415 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22417 | fi | 
|  | 22418 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
|  | 22419 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
|  | 22420 | if test $ac_cv_type_pid_t = yes; then | 
|  | 22421 | : | 
|  | 22422 | else | 
|  | 22423 |  | 
|  | 22424 | cat >>confdefs.h <<_ACEOF | 
|  | 22425 | #define pid_t int | 
|  | 22426 | _ACEOF | 
|  | 22427 |  | 
|  | 22428 | fi | 
|  | 22429 |  | 
|  | 22430 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
|  | 22431 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
|  | 22432 | if test "${ac_cv_type_size_t+set}" = set; then | 
|  | 22433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22434 | else | 
|  | 22435 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22436 | /* confdefs.h.  */ | 
|  | 22437 | _ACEOF | 
|  | 22438 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22439 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22440 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22441 | $ac_includes_default | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22442 | int | 
|  | 22443 | main () | 
|  | 22444 | { | 
|  | 22445 | if ((size_t *) 0) | 
|  | 22446 | return 0; | 
|  | 22447 | if (sizeof (size_t)) | 
|  | 22448 | return 0; | 
|  | 22449 | ; | 
|  | 22450 | return 0; | 
|  | 22451 | } | 
|  | 22452 | _ACEOF | 
|  | 22453 | rm -f conftest.$ac_objext | 
|  | 22454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22455 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22456 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22457 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22458 | rm -f conftest.er1 | 
|  | 22459 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22461 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22462 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22463 | || test ! -s conftest.err' | 
|  | 22464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22465 | (eval $ac_try) 2>&5 | 
|  | 22466 | ac_status=$? | 
|  | 22467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22468 | (exit $ac_status); }; } && | 
|  | 22469 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22471 | (eval $ac_try) 2>&5 | 
|  | 22472 | ac_status=$? | 
|  | 22473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22474 | (exit $ac_status); }; }; then | 
|  | 22475 | ac_cv_type_size_t=yes | 
|  | 22476 | else | 
|  | 22477 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22478 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22479 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22480 | ac_cv_type_size_t=no | 
|  | 22481 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22483 | fi | 
|  | 22484 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
|  | 22485 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
|  | 22486 | if test $ac_cv_type_size_t = yes; then | 
|  | 22487 | : | 
|  | 22488 | else | 
|  | 22489 |  | 
|  | 22490 | cat >>confdefs.h <<_ACEOF | 
|  | 22491 | #define size_t unsigned | 
|  | 22492 | _ACEOF | 
|  | 22493 |  | 
|  | 22494 | fi | 
|  | 22495 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22496 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
|  | 22497 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
|  | 22498 | if test "${ac_cv_type_signal+set}" = set; then | 
|  | 22499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22500 | else | 
|  | 22501 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 22502 | /* confdefs.h.  */ | 
|  | 22503 | _ACEOF | 
|  | 22504 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22505 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22506 | /* end confdefs.h.  */ | 
|  | 22507 | #include <sys/types.h> | 
|  | 22508 | #include <signal.h> | 
|  | 22509 | #ifdef signal | 
|  | 22510 | # undef signal | 
|  | 22511 | #endif | 
|  | 22512 | #ifdef __cplusplus | 
|  | 22513 | extern "C" void (*signal (int, void (*)(int)))(int); | 
|  | 22514 | #else | 
|  | 22515 | void (*signal ()) (); | 
|  | 22516 | #endif | 
|  | 22517 |  | 
|  | 22518 | int | 
|  | 22519 | main () | 
|  | 22520 | { | 
|  | 22521 | int i; | 
|  | 22522 | ; | 
|  | 22523 | return 0; | 
|  | 22524 | } | 
|  | 22525 | _ACEOF | 
|  | 22526 | rm -f conftest.$ac_objext | 
|  | 22527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 22528 | (eval $ac_compile) 2>conftest.er1 | 
|  | 22529 | ac_status=$? | 
|  | 22530 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22531 | rm -f conftest.er1 | 
|  | 22532 | cat conftest.err >&5 | 
|  | 22533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22534 | (exit $ac_status); } && | 
|  | 22535 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22536 | || test ! -s conftest.err' | 
|  | 22537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22538 | (eval $ac_try) 2>&5 | 
|  | 22539 | ac_status=$? | 
|  | 22540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22541 | (exit $ac_status); }; } && | 
|  | 22542 | { ac_try='test -s conftest.$ac_objext' | 
|  | 22543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22544 | (eval $ac_try) 2>&5 | 
|  | 22545 | ac_status=$? | 
|  | 22546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22547 | (exit $ac_status); }; }; then | 
|  | 22548 | ac_cv_type_signal=void | 
|  | 22549 | else | 
|  | 22550 | echo "$as_me: failed program was:" >&5 | 
|  | 22551 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22552 |  | 
|  | 22553 | ac_cv_type_signal=int | 
|  | 22554 | fi | 
|  | 22555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22556 | fi | 
|  | 22557 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
|  | 22558 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
|  | 22559 |  | 
|  | 22560 | cat >>confdefs.h <<_ACEOF | 
|  | 22561 | #define RETSIGTYPE $ac_cv_type_signal | 
|  | 22562 | _ACEOF | 
|  | 22563 |  | 
|  | 22564 |  | 
|  | 22565 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 22566 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
|  | 22567 | if test "${ac_cv_struct_tm+set}" = set; then | 
|  | 22568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22569 | else | 
|  | 22570 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 22571 | /* confdefs.h.  */ | 
|  | 22572 | _ACEOF | 
|  | 22573 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22574 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22575 | /* end confdefs.h.  */ | 
|  | 22576 | #include <sys/types.h> | 
|  | 22577 | #include <time.h> | 
|  | 22578 |  | 
|  | 22579 | int | 
|  | 22580 | main () | 
|  | 22581 | { | 
|  | 22582 | struct tm *tp; tp->tm_sec; | 
|  | 22583 | ; | 
|  | 22584 | return 0; | 
|  | 22585 | } | 
|  | 22586 | _ACEOF | 
|  | 22587 | rm -f conftest.$ac_objext | 
|  | 22588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 22589 | (eval $ac_compile) 2>conftest.er1 | 
|  | 22590 | ac_status=$? | 
|  | 22591 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22592 | rm -f conftest.er1 | 
|  | 22593 | cat conftest.err >&5 | 
|  | 22594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22595 | (exit $ac_status); } && | 
|  | 22596 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22597 | || test ! -s conftest.err' | 
|  | 22598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22599 | (eval $ac_try) 2>&5 | 
|  | 22600 | ac_status=$? | 
|  | 22601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22602 | (exit $ac_status); }; } && | 
|  | 22603 | { ac_try='test -s conftest.$ac_objext' | 
|  | 22604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22605 | (eval $ac_try) 2>&5 | 
|  | 22606 | ac_status=$? | 
|  | 22607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22608 | (exit $ac_status); }; }; then | 
|  | 22609 | ac_cv_struct_tm=time.h | 
|  | 22610 | else | 
|  | 22611 | echo "$as_me: failed program was:" >&5 | 
|  | 22612 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22613 |  | 
|  | 22614 | ac_cv_struct_tm=sys/time.h | 
|  | 22615 | fi | 
|  | 22616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22617 | fi | 
|  | 22618 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
|  | 22619 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
|  | 22620 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 22621 |  | 
|  | 22622 | cat >>confdefs.h <<\_ACEOF | 
|  | 22623 | #define TM_IN_SYS_TIME 1 | 
|  | 22624 | _ACEOF | 
|  | 22625 |  | 
|  | 22626 | fi | 
|  | 22627 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22628 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
|  | 22629 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
|  | 22630 | if test "${ac_cv_type_int64_t+set}" = set; then | 
|  | 22631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22632 | else | 
|  | 22633 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22634 | /* confdefs.h.  */ | 
|  | 22635 | _ACEOF | 
|  | 22636 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22637 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22638 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22639 | $ac_includes_default | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22640 | int | 
|  | 22641 | main () | 
|  | 22642 | { | 
|  | 22643 | if ((int64_t *) 0) | 
|  | 22644 | return 0; | 
|  | 22645 | if (sizeof (int64_t)) | 
|  | 22646 | return 0; | 
|  | 22647 | ; | 
|  | 22648 | return 0; | 
|  | 22649 | } | 
|  | 22650 | _ACEOF | 
|  | 22651 | rm -f conftest.$ac_objext | 
|  | 22652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22653 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22654 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22655 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22656 | rm -f conftest.er1 | 
|  | 22657 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22659 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22660 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22661 | || test ! -s conftest.err' | 
|  | 22662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22663 | (eval $ac_try) 2>&5 | 
|  | 22664 | ac_status=$? | 
|  | 22665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22666 | (exit $ac_status); }; } && | 
|  | 22667 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22669 | (eval $ac_try) 2>&5 | 
|  | 22670 | ac_status=$? | 
|  | 22671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22672 | (exit $ac_status); }; }; then | 
|  | 22673 | ac_cv_type_int64_t=yes | 
|  | 22674 | else | 
|  | 22675 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22676 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22677 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22678 | ac_cv_type_int64_t=no | 
|  | 22679 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22681 | fi | 
|  | 22682 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
|  | 22683 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
|  | 22684 | if test $ac_cv_type_int64_t = yes; then | 
|  | 22685 |  | 
|  | 22686 | cat >>confdefs.h <<_ACEOF | 
|  | 22687 | #define HAVE_INT64_T 1 | 
|  | 22688 | _ACEOF | 
|  | 22689 |  | 
|  | 22690 |  | 
|  | 22691 | else | 
|  | 22692 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
|  | 22693 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
|  | 22694 | { (exit 1); exit 1; }; } | 
|  | 22695 | fi | 
|  | 22696 |  | 
|  | 22697 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
|  | 22698 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
|  | 22699 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
|  | 22700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22701 | else | 
|  | 22702 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22703 | /* confdefs.h.  */ | 
|  | 22704 | _ACEOF | 
|  | 22705 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22706 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22707 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22708 | $ac_includes_default | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22709 | int | 
|  | 22710 | main () | 
|  | 22711 | { | 
|  | 22712 | if ((uint64_t *) 0) | 
|  | 22713 | return 0; | 
|  | 22714 | if (sizeof (uint64_t)) | 
|  | 22715 | return 0; | 
|  | 22716 | ; | 
|  | 22717 | return 0; | 
|  | 22718 | } | 
|  | 22719 | _ACEOF | 
|  | 22720 | rm -f conftest.$ac_objext | 
|  | 22721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22722 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22723 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22724 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22725 | rm -f conftest.er1 | 
|  | 22726 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22728 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22729 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22730 | || test ! -s conftest.err' | 
|  | 22731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22732 | (eval $ac_try) 2>&5 | 
|  | 22733 | ac_status=$? | 
|  | 22734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22735 | (exit $ac_status); }; } && | 
|  | 22736 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22738 | (eval $ac_try) 2>&5 | 
|  | 22739 | ac_status=$? | 
|  | 22740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22741 | (exit $ac_status); }; }; then | 
|  | 22742 | ac_cv_type_uint64_t=yes | 
|  | 22743 | else | 
|  | 22744 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22745 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22746 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22747 | ac_cv_type_uint64_t=no | 
|  | 22748 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22750 | fi | 
|  | 22751 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
|  | 22752 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
|  | 22753 | if test $ac_cv_type_uint64_t = yes; then | 
|  | 22754 |  | 
|  | 22755 | cat >>confdefs.h <<_ACEOF | 
|  | 22756 | #define HAVE_UINT64_T 1 | 
|  | 22757 | _ACEOF | 
|  | 22758 |  | 
|  | 22759 |  | 
|  | 22760 | else | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 22761 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22762 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | 
|  | 22763 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
|  | 22764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22765 | else | 
|  | 22766 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22767 | /* confdefs.h.  */ | 
|  | 22768 | _ACEOF | 
|  | 22769 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22770 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22771 | /* end confdefs.h.  */ | 
|  | 22772 | $ac_includes_default | 
|  | 22773 | int | 
|  | 22774 | main () | 
|  | 22775 | { | 
|  | 22776 | if ((u_int64_t *) 0) | 
|  | 22777 | return 0; | 
|  | 22778 | if (sizeof (u_int64_t)) | 
|  | 22779 | return 0; | 
|  | 22780 | ; | 
|  | 22781 | return 0; | 
|  | 22782 | } | 
|  | 22783 | _ACEOF | 
|  | 22784 | rm -f conftest.$ac_objext | 
|  | 22785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22786 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22787 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22788 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22789 | rm -f conftest.er1 | 
|  | 22790 | cat conftest.err >&5 | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22792 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22793 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22794 | || test ! -s conftest.err' | 
|  | 22795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22796 | (eval $ac_try) 2>&5 | 
|  | 22797 | ac_status=$? | 
|  | 22798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22799 | (exit $ac_status); }; } && | 
|  | 22800 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22802 | (eval $ac_try) 2>&5 | 
|  | 22803 | ac_status=$? | 
|  | 22804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22805 | (exit $ac_status); }; }; then | 
|  | 22806 | ac_cv_type_u_int64_t=yes | 
|  | 22807 | else | 
|  | 22808 | echo "$as_me: failed program was:" >&5 | 
|  | 22809 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22810 |  | 
|  | 22811 | ac_cv_type_u_int64_t=no | 
|  | 22812 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22814 | fi | 
|  | 22815 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
|  | 22816 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | 
|  | 22817 | if test $ac_cv_type_u_int64_t = yes; then | 
|  | 22818 |  | 
|  | 22819 | cat >>confdefs.h <<_ACEOF | 
|  | 22820 | #define HAVE_U_INT64_T 1 | 
|  | 22821 | _ACEOF | 
|  | 22822 |  | 
|  | 22823 |  | 
| Misha Brukman | cb46e66 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 22824 | else | 
|  | 22825 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
|  | 22826 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
|  | 22827 | { (exit 1); exit 1; }; } | 
|  | 22828 | fi | 
|  | 22829 |  | 
| John Criswell | d672a3d | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 22830 | fi | 
|  | 22831 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22832 |  | 
|  | 22833 |  | 
|  | 22834 |  | 
|  | 22835 |  | 
|  | 22836 |  | 
|  | 22837 |  | 
|  | 22838 |  | 
|  | 22839 |  | 
|  | 22840 | for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp | 
|  | 22841 | do | 
|  | 22842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 22843 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 22844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 22845 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22847 | else | 
|  | 22848 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22849 | /* confdefs.h.  */ | 
|  | 22850 | _ACEOF | 
|  | 22851 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22852 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22853 | /* end confdefs.h.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 22855 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 22856 | #define $ac_func innocuous_$ac_func | 
|  | 22857 |  | 
|  | 22858 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 22859 | which can conflict with char $ac_func (); below. | 
|  | 22860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 22861 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 22862 |  | 
|  | 22863 | #ifdef __STDC__ | 
|  | 22864 | # include <limits.h> | 
|  | 22865 | #else | 
|  | 22866 | # include <assert.h> | 
|  | 22867 | #endif | 
|  | 22868 |  | 
|  | 22869 | #undef $ac_func | 
|  | 22870 |  | 
|  | 22871 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 22872 | #ifdef __cplusplus | 
|  | 22873 | extern "C" | 
|  | 22874 | { | 
|  | 22875 | #endif | 
|  | 22876 | /* We use char because int might match the return type of a gcc2 | 
|  | 22877 | builtin and then its argument prototype would still apply.  */ | 
|  | 22878 | char $ac_func (); | 
|  | 22879 | /* The GNU C library defines this for functions which it implements | 
|  | 22880 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 22881 | something starting with __ and the normal name is an alias.  */ | 
|  | 22882 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 22883 | choke me | 
|  | 22884 | #else | 
|  | 22885 | char (*f) () = $ac_func; | 
|  | 22886 | #endif | 
|  | 22887 | #ifdef __cplusplus | 
|  | 22888 | } | 
|  | 22889 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22890 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22891 | int | 
|  | 22892 | main () | 
|  | 22893 | { | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22894 | return f != $ac_func; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22895 | ; | 
|  | 22896 | return 0; | 
|  | 22897 | } | 
|  | 22898 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22899 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 22900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 22901 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22902 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22903 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22904 | rm -f conftest.er1 | 
|  | 22905 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22907 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22908 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22909 | || test ! -s conftest.err' | 
|  | 22910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22911 | (eval $ac_try) 2>&5 | 
|  | 22912 | ac_status=$? | 
|  | 22913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22914 | (exit $ac_status); }; } && | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22915 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22917 | (eval $ac_try) 2>&5 | 
|  | 22918 | ac_status=$? | 
|  | 22919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22920 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22921 | eval "$as_ac_var=yes" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22922 | else | 
|  | 22923 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22924 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22925 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22926 | eval "$as_ac_var=no" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22927 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22928 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 22929 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22930 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 22932 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 22933 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 22934 | cat >>confdefs.h <<_ACEOF | 
|  | 22935 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22936 | _ACEOF | 
|  | 22937 |  | 
|  | 22938 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22939 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22940 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22941 |  | 
|  | 22942 |  | 
|  | 22943 |  | 
|  | 22944 | for ac_func in strdup strtoq strtoll | 
|  | 22945 | do | 
|  | 22946 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 22947 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 22948 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 22949 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22951 | else | 
|  | 22952 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22953 | /* confdefs.h.  */ | 
|  | 22954 | _ACEOF | 
|  | 22955 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22956 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22957 | /* end confdefs.h.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22958 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 22959 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 22960 | #define $ac_func innocuous_$ac_func | 
|  | 22961 |  | 
|  | 22962 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 22963 | which can conflict with char $ac_func (); below. | 
|  | 22964 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 22965 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 22966 |  | 
|  | 22967 | #ifdef __STDC__ | 
|  | 22968 | # include <limits.h> | 
|  | 22969 | #else | 
|  | 22970 | # include <assert.h> | 
|  | 22971 | #endif | 
|  | 22972 |  | 
|  | 22973 | #undef $ac_func | 
|  | 22974 |  | 
|  | 22975 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 22976 | #ifdef __cplusplus | 
|  | 22977 | extern "C" | 
|  | 22978 | { | 
|  | 22979 | #endif | 
|  | 22980 | /* We use char because int might match the return type of a gcc2 | 
|  | 22981 | builtin and then its argument prototype would still apply.  */ | 
|  | 22982 | char $ac_func (); | 
|  | 22983 | /* The GNU C library defines this for functions which it implements | 
|  | 22984 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 22985 | something starting with __ and the normal name is an alias.  */ | 
|  | 22986 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 22987 | choke me | 
|  | 22988 | #else | 
|  | 22989 | char (*f) () = $ac_func; | 
|  | 22990 | #endif | 
|  | 22991 | #ifdef __cplusplus | 
|  | 22992 | } | 
|  | 22993 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22994 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22995 | int | 
|  | 22996 | main () | 
|  | 22997 | { | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 22998 | return f != $ac_func; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22999 | ; | 
|  | 23000 | return 0; | 
|  | 23001 | } | 
|  | 23002 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23003 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23005 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23006 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23007 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23008 | rm -f conftest.er1 | 
|  | 23009 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23011 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23012 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23013 | || test ! -s conftest.err' | 
|  | 23014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23015 | (eval $ac_try) 2>&5 | 
|  | 23016 | ac_status=$? | 
|  | 23017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23018 | (exit $ac_status); }; } && | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23019 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23021 | (eval $ac_try) 2>&5 | 
|  | 23022 | ac_status=$? | 
|  | 23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23024 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23025 | eval "$as_ac_var=yes" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23026 | else | 
|  | 23027 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23028 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23029 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23030 | eval "$as_ac_var=no" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23031 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23032 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23033 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23034 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 23036 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 23037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 23038 | cat >>confdefs.h <<_ACEOF | 
|  | 23039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23040 | _ACEOF | 
|  | 23041 |  | 
|  | 23042 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23043 | done | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23044 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23045 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
|  | 23046 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6 | 
|  | 23047 | if test "${ac_cv_printf_a+set}" = set; then | 
|  | 23048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23049 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23050 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23051 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23055 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23056 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23057 | ac_c_printf_a=no | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23058 | else | 
|  | 23059 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23060 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23061 | /* confdefs.h.  */ | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23062 | _ACEOF | 
|  | 23063 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23064 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23065 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23066 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23067 | #include <stdio.h> | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23068 | #include <stdlib.h> | 
|  | 23069 |  | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23070 | int | 
|  | 23071 | main () | 
|  | 23072 | { | 
|  | 23073 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23074 | volatile double A, B; | 
|  | 23075 | char Buffer[100]; | 
|  | 23076 | A = 1; | 
|  | 23077 | A /= 10.0; | 
|  | 23078 | sprintf(Buffer, "%a", A); | 
|  | 23079 | B = atof(Buffer); | 
|  | 23080 | if (A != B) | 
|  | 23081 | return (1); | 
|  | 23082 | if (A != 0x1.999999999999ap-4) | 
|  | 23083 | return (1); | 
|  | 23084 | return (0); | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23085 | ; | 
|  | 23086 | return 0; | 
|  | 23087 | } | 
|  | 23088 | _ACEOF | 
|  | 23089 | rm -f conftest$ac_exeext | 
|  | 23090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23091 | (eval $ac_link) 2>&5 | 
|  | 23092 | ac_status=$? | 
|  | 23093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23094 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 23095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23096 | (eval $ac_try) 2>&5 | 
|  | 23097 | ac_status=$? | 
|  | 23098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23099 | (exit $ac_status); }; }; then | 
|  | 23100 | ac_c_printf_a=yes | 
|  | 23101 | else | 
|  | 23102 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 23103 | echo "$as_me: failed program was:" >&5 | 
|  | 23104 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23105 |  | 
|  | 23106 | ( exit $ac_status ) | 
|  | 23107 | ac_c_printf_a=no | 
|  | 23108 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23109 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23110 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23111 | ac_ext=c | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23112 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23116 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23117 | fi | 
|  | 23118 | echo "$as_me:$LINENO: result: $ac_cv_printf_a" >&5 | 
|  | 23119 | echo "${ECHO_T}$ac_cv_printf_a" >&6 | 
|  | 23120 | if test "$ac_cv_printf_a" = "yes"; then | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23121 |  | 
|  | 23122 | cat >>confdefs.h <<\_ACEOF | 
|  | 23123 | #define HAVE_PRINTF_A 1 | 
|  | 23124 | _ACEOF | 
|  | 23125 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23126 | fi | 
| John Criswell | 4285955 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 23127 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23128 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|  | 23129 | # for constant arguments.  Useless! | 
|  | 23130 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
|  | 23131 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
|  | 23132 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23134 | else | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23135 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23136 | /* confdefs.h.  */ | 
|  | 23137 | _ACEOF | 
|  | 23138 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23139 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23140 | /* end confdefs.h.  */ | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23141 | #include <alloca.h> | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23142 | int | 
|  | 23143 | main () | 
|  | 23144 | { | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23145 | char *p = (char *) alloca (2 * sizeof (int)); | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23146 | ; | 
|  | 23147 | return 0; | 
|  | 23148 | } | 
|  | 23149 | _ACEOF | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23150 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23152 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23153 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23154 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23155 | rm -f conftest.er1 | 
|  | 23156 | cat conftest.err >&5 | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23158 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23159 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23160 | || test ! -s conftest.err' | 
|  | 23161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23162 | (eval $ac_try) 2>&5 | 
|  | 23163 | ac_status=$? | 
|  | 23164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23165 | (exit $ac_status); }; } && | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23166 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23168 | (eval $ac_try) 2>&5 | 
|  | 23169 | ac_status=$? | 
|  | 23170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23171 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23172 | ac_cv_working_alloca_h=yes | 
|  | 23173 | else | 
|  | 23174 | echo "$as_me: failed program was:" >&5 | 
|  | 23175 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23176 |  | 
|  | 23177 | ac_cv_working_alloca_h=no | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23178 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23179 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23180 | conftest$ac_exeext conftest.$ac_ext | 
|  | 23181 | fi | 
|  | 23182 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
|  | 23183 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
|  | 23184 | if test $ac_cv_working_alloca_h = yes; then | 
|  | 23185 |  | 
|  | 23186 | cat >>confdefs.h <<\_ACEOF | 
|  | 23187 | #define HAVE_ALLOCA_H 1 | 
|  | 23188 | _ACEOF | 
|  | 23189 |  | 
|  | 23190 | fi | 
|  | 23191 |  | 
|  | 23192 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
|  | 23193 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
|  | 23194 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
|  | 23195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23196 | else | 
|  | 23197 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 23198 | /* confdefs.h.  */ | 
|  | 23199 | _ACEOF | 
|  | 23200 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23201 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23202 | /* end confdefs.h.  */ | 
|  | 23203 | #ifdef __GNUC__ | 
|  | 23204 | # define alloca __builtin_alloca | 
|  | 23205 | #else | 
|  | 23206 | # ifdef _MSC_VER | 
|  | 23207 | #  include <malloc.h> | 
|  | 23208 | #  define alloca _alloca | 
|  | 23209 | # else | 
|  | 23210 | #  if HAVE_ALLOCA_H | 
|  | 23211 | #   include <alloca.h> | 
|  | 23212 | #  else | 
|  | 23213 | #   ifdef _AIX | 
|  | 23214 | #pragma alloca | 
|  | 23215 | #   else | 
|  | 23216 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|  | 23217 | char *alloca (); | 
|  | 23218 | #    endif | 
|  | 23219 | #   endif | 
|  | 23220 | #  endif | 
|  | 23221 | # endif | 
|  | 23222 | #endif | 
|  | 23223 |  | 
|  | 23224 | int | 
|  | 23225 | main () | 
|  | 23226 | { | 
|  | 23227 | char *p = (char *) alloca (1); | 
|  | 23228 | ; | 
|  | 23229 | return 0; | 
|  | 23230 | } | 
|  | 23231 | _ACEOF | 
|  | 23232 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23234 | (eval $ac_link) 2>conftest.er1 | 
|  | 23235 | ac_status=$? | 
|  | 23236 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23237 | rm -f conftest.er1 | 
|  | 23238 | cat conftest.err >&5 | 
|  | 23239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23240 | (exit $ac_status); } && | 
|  | 23241 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23242 | || test ! -s conftest.err' | 
|  | 23243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23244 | (eval $ac_try) 2>&5 | 
|  | 23245 | ac_status=$? | 
|  | 23246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23247 | (exit $ac_status); }; } && | 
|  | 23248 | { ac_try='test -s conftest$ac_exeext' | 
|  | 23249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23250 | (eval $ac_try) 2>&5 | 
|  | 23251 | ac_status=$? | 
|  | 23252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23253 | (exit $ac_status); }; }; then | 
|  | 23254 | ac_cv_func_alloca_works=yes | 
|  | 23255 | else | 
|  | 23256 | echo "$as_me: failed program was:" >&5 | 
|  | 23257 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23258 |  | 
|  | 23259 | ac_cv_func_alloca_works=no | 
|  | 23260 | fi | 
|  | 23261 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23262 | conftest$ac_exeext conftest.$ac_ext | 
|  | 23263 | fi | 
|  | 23264 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
|  | 23265 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
|  | 23266 |  | 
|  | 23267 | if test $ac_cv_func_alloca_works = yes; then | 
|  | 23268 |  | 
|  | 23269 | cat >>confdefs.h <<\_ACEOF | 
|  | 23270 | #define HAVE_ALLOCA 1 | 
|  | 23271 | _ACEOF | 
|  | 23272 |  | 
|  | 23273 | else | 
|  | 23274 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|  | 23275 | # that cause trouble.  Some versions do not even contain alloca or | 
|  | 23276 | # contain a buggy version.  If you still want to use their alloca, | 
|  | 23277 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|  | 23278 |  | 
|  | 23279 | ALLOCA=alloca.$ac_objext | 
|  | 23280 |  | 
|  | 23281 | cat >>confdefs.h <<\_ACEOF | 
|  | 23282 | #define C_ALLOCA 1 | 
|  | 23283 | _ACEOF | 
|  | 23284 |  | 
|  | 23285 |  | 
|  | 23286 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
|  | 23287 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
|  | 23288 | if test "${ac_cv_os_cray+set}" = set; then | 
|  | 23289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23290 | else | 
|  | 23291 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 23292 | /* confdefs.h.  */ | 
|  | 23293 | _ACEOF | 
|  | 23294 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23295 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23296 | /* end confdefs.h.  */ | 
|  | 23297 | #if defined(CRAY) && ! defined(CRAY2) | 
|  | 23298 | webecray | 
|  | 23299 | #else | 
|  | 23300 | wenotbecray | 
|  | 23301 | #endif | 
|  | 23302 |  | 
|  | 23303 | _ACEOF | 
|  | 23304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 23305 | $EGREP "webecray" >/dev/null 2>&1; then | 
|  | 23306 | ac_cv_os_cray=yes | 
|  | 23307 | else | 
|  | 23308 | ac_cv_os_cray=no | 
|  | 23309 | fi | 
|  | 23310 | rm -f conftest* | 
|  | 23311 |  | 
|  | 23312 | fi | 
|  | 23313 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
|  | 23314 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
|  | 23315 | if test $ac_cv_os_cray = yes; then | 
|  | 23316 | for ac_func in _getb67 GETB67 getb67; do | 
|  | 23317 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 23318 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 23319 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 23320 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 23321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23322 | else | 
|  | 23323 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 23324 | /* confdefs.h.  */ | 
|  | 23325 | _ACEOF | 
|  | 23326 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23327 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23328 | /* end confdefs.h.  */ | 
|  | 23329 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 23330 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 23331 | #define $ac_func innocuous_$ac_func | 
|  | 23332 |  | 
|  | 23333 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 23334 | which can conflict with char $ac_func (); below. | 
|  | 23335 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 23336 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 23337 |  | 
|  | 23338 | #ifdef __STDC__ | 
|  | 23339 | # include <limits.h> | 
|  | 23340 | #else | 
|  | 23341 | # include <assert.h> | 
|  | 23342 | #endif | 
|  | 23343 |  | 
|  | 23344 | #undef $ac_func | 
|  | 23345 |  | 
|  | 23346 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 23347 | #ifdef __cplusplus | 
|  | 23348 | extern "C" | 
|  | 23349 | { | 
|  | 23350 | #endif | 
|  | 23351 | /* We use char because int might match the return type of a gcc2 | 
|  | 23352 | builtin and then its argument prototype would still apply.  */ | 
|  | 23353 | char $ac_func (); | 
|  | 23354 | /* The GNU C library defines this for functions which it implements | 
|  | 23355 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 23356 | something starting with __ and the normal name is an alias.  */ | 
|  | 23357 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 23358 | choke me | 
|  | 23359 | #else | 
|  | 23360 | char (*f) () = $ac_func; | 
|  | 23361 | #endif | 
|  | 23362 | #ifdef __cplusplus | 
|  | 23363 | } | 
|  | 23364 | #endif | 
|  | 23365 |  | 
|  | 23366 | int | 
|  | 23367 | main () | 
|  | 23368 | { | 
|  | 23369 | return f != $ac_func; | 
|  | 23370 | ; | 
|  | 23371 | return 0; | 
|  | 23372 | } | 
|  | 23373 | _ACEOF | 
|  | 23374 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23376 | (eval $ac_link) 2>conftest.er1 | 
|  | 23377 | ac_status=$? | 
|  | 23378 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23379 | rm -f conftest.er1 | 
|  | 23380 | cat conftest.err >&5 | 
|  | 23381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23382 | (exit $ac_status); } && | 
|  | 23383 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23384 | || test ! -s conftest.err' | 
|  | 23385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23386 | (eval $ac_try) 2>&5 | 
|  | 23387 | ac_status=$? | 
|  | 23388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23389 | (exit $ac_status); }; } && | 
|  | 23390 | { ac_try='test -s conftest$ac_exeext' | 
|  | 23391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23392 | (eval $ac_try) 2>&5 | 
|  | 23393 | ac_status=$? | 
|  | 23394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23395 | (exit $ac_status); }; }; then | 
|  | 23396 | eval "$as_ac_var=yes" | 
|  | 23397 | else | 
|  | 23398 | echo "$as_me: failed program was:" >&5 | 
|  | 23399 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23400 |  | 
|  | 23401 | eval "$as_ac_var=no" | 
|  | 23402 | fi | 
|  | 23403 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23404 | conftest$ac_exeext conftest.$ac_ext | 
|  | 23405 | fi | 
|  | 23406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 23407 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 23408 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 23409 |  | 
|  | 23410 | cat >>confdefs.h <<_ACEOF | 
|  | 23411 | #define CRAY_STACKSEG_END $ac_func | 
|  | 23412 | _ACEOF | 
|  | 23413 |  | 
|  | 23414 | break | 
|  | 23415 | fi | 
|  | 23416 |  | 
|  | 23417 | done | 
|  | 23418 | fi | 
|  | 23419 |  | 
|  | 23420 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
|  | 23421 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
|  | 23422 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
|  | 23423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23424 | else | 
|  | 23425 | if test "$cross_compiling" = yes; then | 
|  | 23426 | ac_cv_c_stack_direction=0 | 
|  | 23427 | else | 
|  | 23428 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 23429 | /* confdefs.h.  */ | 
|  | 23430 | _ACEOF | 
|  | 23431 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23432 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23433 | /* end confdefs.h.  */ | 
|  | 23434 | int | 
|  | 23435 | find_stack_direction () | 
|  | 23436 | { | 
|  | 23437 | static char *addr = 0; | 
|  | 23438 | auto char dummy; | 
|  | 23439 | if (addr == 0) | 
|  | 23440 | { | 
|  | 23441 | addr = &dummy; | 
|  | 23442 | return find_stack_direction (); | 
|  | 23443 | } | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23444 | else | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23445 | return (&dummy > addr) ? 1 : -1; | 
|  | 23446 | } | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23447 |  | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23448 | int | 
|  | 23449 | main () | 
|  | 23450 | { | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23451 | exit (find_stack_direction () < 0); | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23452 | } | 
|  | 23453 | _ACEOF | 
|  | 23454 | rm -f conftest$ac_exeext | 
|  | 23455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23456 | (eval $ac_link) 2>&5 | 
|  | 23457 | ac_status=$? | 
|  | 23458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23459 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 23460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23461 | (eval $ac_try) 2>&5 | 
|  | 23462 | ac_status=$? | 
|  | 23463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23464 | (exit $ac_status); }; }; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23465 | ac_cv_c_stack_direction=1 | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23466 | else | 
|  | 23467 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 23468 | echo "$as_me: failed program was:" >&5 | 
|  | 23469 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23470 |  | 
|  | 23471 | ( exit $ac_status ) | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23472 | ac_cv_c_stack_direction=-1 | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23473 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23474 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23475 | fi | 
|  | 23476 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23477 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
|  | 23478 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
|  | 23479 |  | 
|  | 23480 | cat >>confdefs.h <<_ACEOF | 
|  | 23481 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|  | 23482 | _ACEOF | 
|  | 23483 |  | 
|  | 23484 |  | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23485 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 23486 |  | 
|  | 23487 |  | 
|  | 23488 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
|  | 23489 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 | 
|  | 23490 | if test "${ac_cv_func_rand48+set}" = set; then | 
|  | 23491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23492 | else | 
|  | 23493 | ac_ext=cc | 
|  | 23494 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23498 |  | 
|  | 23499 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 23500 | /* confdefs.h.  */ | 
|  | 23501 | _ACEOF | 
|  | 23502 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23503 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23504 | /* end confdefs.h.  */ | 
|  | 23505 | #include <stdlib.h> | 
|  | 23506 | int | 
|  | 23507 | main () | 
|  | 23508 | { | 
|  | 23509 | srand48(0);lrand48();drand48(); | 
|  | 23510 | ; | 
|  | 23511 | return 0; | 
|  | 23512 | } | 
|  | 23513 | _ACEOF | 
|  | 23514 | rm -f conftest.$ac_objext | 
|  | 23515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 23516 | (eval $ac_compile) 2>conftest.er1 | 
|  | 23517 | ac_status=$? | 
|  | 23518 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23519 | rm -f conftest.er1 | 
|  | 23520 | cat conftest.err >&5 | 
|  | 23521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23522 | (exit $ac_status); } && | 
|  | 23523 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 23524 | || test ! -s conftest.err' | 
|  | 23525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23526 | (eval $ac_try) 2>&5 | 
|  | 23527 | ac_status=$? | 
|  | 23528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23529 | (exit $ac_status); }; } && | 
|  | 23530 | { ac_try='test -s conftest.$ac_objext' | 
|  | 23531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23532 | (eval $ac_try) 2>&5 | 
|  | 23533 | ac_status=$? | 
|  | 23534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23535 | (exit $ac_status); }; }; then | 
|  | 23536 | ac_cv_func_rand48=yes | 
|  | 23537 | else | 
|  | 23538 | echo "$as_me: failed program was:" >&5 | 
|  | 23539 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23540 |  | 
|  | 23541 | ac_cv_func_rand48=no | 
|  | 23542 | fi | 
|  | 23543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23544 | ac_ext=c | 
|  | 23545 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23549 |  | 
|  | 23550 | fi | 
|  | 23551 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
|  | 23552 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 | 
|  | 23553 |  | 
|  | 23554 | if test "$ac_cv_func_rand48" = "yes" ; then | 
|  | 23555 |  | 
|  | 23556 | cat >>confdefs.h <<\_ACEOF | 
|  | 23557 | #define HAVE_RAND48 1 | 
|  | 23558 | _ACEOF | 
|  | 23559 |  | 
|  | 23560 | fi | 
| John Criswell | 3b4195f3 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 23561 |  | 
|  | 23562 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23563 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
|  | 23564 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
|  | 23565 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
|  | 23566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23567 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23568 | ac_ext=cc | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23569 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23570 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23571 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23572 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23573 |  | 
|  | 23574 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23575 | /* confdefs.h.  */ | 
|  | 23576 | _ACEOF | 
|  | 23577 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23578 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23579 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23580 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23581 | int | 
|  | 23582 | main () | 
|  | 23583 | { | 
|  | 23584 | using namespace Outer::Inner; return i; | 
|  | 23585 | ; | 
|  | 23586 | return 0; | 
|  | 23587 | } | 
|  | 23588 | _ACEOF | 
|  | 23589 | rm -f conftest.$ac_objext | 
|  | 23590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23591 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23592 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23593 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23594 | rm -f conftest.er1 | 
|  | 23595 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23597 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23598 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 23599 | || test ! -s conftest.err' | 
|  | 23600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23601 | (eval $ac_try) 2>&5 | 
|  | 23602 | ac_status=$? | 
|  | 23603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23604 | (exit $ac_status); }; } && | 
|  | 23605 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23607 | (eval $ac_try) 2>&5 | 
|  | 23608 | ac_status=$? | 
|  | 23609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23610 | (exit $ac_status); }; }; then | 
|  | 23611 | ac_cv_cxx_namespaces=yes | 
|  | 23612 | else | 
|  | 23613 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23614 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23615 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23616 | ac_cv_cxx_namespaces=no | 
|  | 23617 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23619 | ac_ext=c | 
|  | 23620 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23624 |  | 
|  | 23625 |  | 
|  | 23626 | fi | 
|  | 23627 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
|  | 23628 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
|  | 23629 | if test "$ac_cv_cxx_namespaces" = yes; then | 
|  | 23630 |  | 
|  | 23631 | cat >>confdefs.h <<\_ACEOF | 
|  | 23632 | #define HAVE_NAMESPACES | 
|  | 23633 | _ACEOF | 
|  | 23634 |  | 
|  | 23635 | fi | 
|  | 23636 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23637 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
|  | 23638 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
|  | 23639 | if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23641 | else | 
|  | 23642 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23643 | ac_ext=cc | 
|  | 23644 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23645 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23646 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23647 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23648 |  | 
|  | 23649 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23650 | /* confdefs.h.  */ | 
|  | 23651 | _ACEOF | 
|  | 23652 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23653 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23654 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23655 | #include <ext/hash_map> | 
|  | 23656 | #ifdef HAVE_NAMESPACES | 
|  | 23657 | using namespace std; | 
|  | 23658 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23659 | int | 
|  | 23660 | main () | 
|  | 23661 | { | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23662 | hash_map<int, int> t; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23663 | ; | 
|  | 23664 | return 0; | 
|  | 23665 | } | 
|  | 23666 | _ACEOF | 
|  | 23667 | rm -f conftest.$ac_objext | 
|  | 23668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23669 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23670 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23671 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23672 | rm -f conftest.er1 | 
|  | 23673 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23675 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23676 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 23677 | || test ! -s conftest.err' | 
|  | 23678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23679 | (eval $ac_try) 2>&5 | 
|  | 23680 | ac_status=$? | 
|  | 23681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23682 | (exit $ac_status); }; } && | 
|  | 23683 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23685 | (eval $ac_try) 2>&5 | 
|  | 23686 | ac_status=$? | 
|  | 23687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23688 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23689 | ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23690 | else | 
|  | 23691 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23692 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23693 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23694 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23695 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23697 | ac_ext=c | 
|  | 23698 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23702 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23703 | fi | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23704 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
|  | 23705 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23706 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes | 
|  | 23707 | then | 
| John Criswell | 08e7226 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23708 |  | 
|  | 23709 | cat >>confdefs.h <<\_ACEOF | 
|  | 23710 | #define HAVE_STD_EXT_HASH_MAP 1 | 
|  | 23711 | _ACEOF | 
|  | 23712 |  | 
|  | 23713 | else | 
|  | 23714 |  | 
|  | 23715 | cat >>confdefs.h <<\_ACEOF | 
|  | 23716 | #define HAVE_STD_EXT_HASH_MAP 0 | 
|  | 23717 | _ACEOF | 
|  | 23718 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23719 | fi | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23720 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23721 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
|  | 23722 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
|  | 23723 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
|  | 23724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23725 | else | 
|  | 23726 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23727 | ac_ext=cc | 
|  | 23728 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23729 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23730 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23731 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23732 |  | 
|  | 23733 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23734 | /* confdefs.h.  */ | 
|  | 23735 | _ACEOF | 
|  | 23736 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23737 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23738 | /* end confdefs.h.  */ | 
|  | 23739 | #include <ext/hash_map> | 
|  | 23740 | #ifdef HAVE_NAMESPACES | 
|  | 23741 | using namespace __gnu_cxx; | 
|  | 23742 | #endif | 
|  | 23743 | int | 
|  | 23744 | main () | 
|  | 23745 | { | 
|  | 23746 | hash_map<int,int> t; | 
|  | 23747 | ; | 
|  | 23748 | return 0; | 
|  | 23749 | } | 
|  | 23750 | _ACEOF | 
|  | 23751 | rm -f conftest.$ac_objext | 
|  | 23752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23753 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23754 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23755 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23756 | rm -f conftest.er1 | 
|  | 23757 | cat conftest.err >&5 | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23759 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23760 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 23761 | || test ! -s conftest.err' | 
|  | 23762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23763 | (eval $ac_try) 2>&5 | 
|  | 23764 | ac_status=$? | 
|  | 23765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23766 | (exit $ac_status); }; } && | 
|  | 23767 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23769 | (eval $ac_try) 2>&5 | 
|  | 23770 | ac_status=$? | 
|  | 23771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23772 | (exit $ac_status); }; }; then | 
|  | 23773 | ac_cv_cxx_have_gnu_ext_hash_map=yes | 
|  | 23774 | else | 
|  | 23775 | echo "$as_me: failed program was:" >&5 | 
|  | 23776 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23777 |  | 
|  | 23778 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23779 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23781 | ac_ext=c | 
|  | 23782 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23786 |  | 
|  | 23787 | fi | 
|  | 23788 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
|  | 23789 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23790 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes | 
|  | 23791 | then | 
| John Criswell | 08e7226 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23792 |  | 
|  | 23793 | cat >>confdefs.h <<\_ACEOF | 
|  | 23794 | #define HAVE_GNU_EXT_HASH_MAP 1 | 
|  | 23795 | _ACEOF | 
|  | 23796 |  | 
|  | 23797 | else | 
|  | 23798 |  | 
|  | 23799 | cat >>confdefs.h <<\_ACEOF | 
|  | 23800 | #define HAVE_GNU_EXT_HASH_MAP 0 | 
|  | 23801 | _ACEOF | 
|  | 23802 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23803 | fi | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23804 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23805 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
|  | 23806 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
|  | 23807 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
|  | 23808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23809 | else | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23810 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23811 | ac_ext=cc | 
|  | 23812 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23813 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23814 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23815 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23816 |  | 
|  | 23817 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23818 | /* confdefs.h.  */ | 
|  | 23819 | _ACEOF | 
|  | 23820 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23821 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23822 | /* end confdefs.h.  */ | 
|  | 23823 | #include <hash_map> | 
|  | 23824 | int | 
|  | 23825 | main () | 
|  | 23826 | { | 
|  | 23827 | hash_map<int,int> t; | 
|  | 23828 | ; | 
|  | 23829 | return 0; | 
|  | 23830 | } | 
|  | 23831 | _ACEOF | 
|  | 23832 | rm -f conftest.$ac_objext | 
|  | 23833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23834 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23835 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23836 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23837 | rm -f conftest.er1 | 
|  | 23838 | cat conftest.err >&5 | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23840 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23841 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 23842 | || test ! -s conftest.err' | 
|  | 23843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23844 | (eval $ac_try) 2>&5 | 
|  | 23845 | ac_status=$? | 
|  | 23846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23847 | (exit $ac_status); }; } && | 
|  | 23848 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23850 | (eval $ac_try) 2>&5 | 
|  | 23851 | ac_status=$? | 
|  | 23852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23853 | (exit $ac_status); }; }; then | 
|  | 23854 | ac_cv_cxx_have_global_hash_map=yes | 
|  | 23855 | else | 
|  | 23856 | echo "$as_me: failed program was:" >&5 | 
|  | 23857 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23858 |  | 
|  | 23859 | ac_cv_cxx_have_global_hash_map=no | 
|  | 23860 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23862 | ac_ext=c | 
|  | 23863 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23867 |  | 
|  | 23868 | fi | 
|  | 23869 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
|  | 23870 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23871 | if test "$ac_cv_cxx_have_global_hash_map" = yes | 
|  | 23872 | then | 
| John Criswell | 08e7226 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23873 |  | 
|  | 23874 | cat >>confdefs.h <<\_ACEOF | 
|  | 23875 | #define HAVE_GLOBAL_HASH_MAP 1 | 
|  | 23876 | _ACEOF | 
|  | 23877 |  | 
|  | 23878 | else | 
|  | 23879 |  | 
|  | 23880 | cat >>confdefs.h <<\_ACEOF | 
|  | 23881 | #define HAVE_GLOBAL_HASH_MAP 0 | 
|  | 23882 | _ACEOF | 
|  | 23883 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23884 | fi | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23885 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23886 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
|  | 23887 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
|  | 23888 | if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23890 | else | 
|  | 23891 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23892 | ac_ext=cc | 
|  | 23893 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23894 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23895 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23896 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23897 |  | 
|  | 23898 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23899 | /* confdefs.h.  */ | 
|  | 23900 | _ACEOF | 
|  | 23901 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23902 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23903 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23904 | #include <ext/hash_set> | 
|  | 23905 | #ifdef HAVE_NAMESPACES | 
|  | 23906 | using namespace std; | 
|  | 23907 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23908 | int | 
|  | 23909 | main () | 
|  | 23910 | { | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23911 | hash_set<int> t; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23912 | ; | 
|  | 23913 | return 0; | 
|  | 23914 | } | 
|  | 23915 | _ACEOF | 
|  | 23916 | rm -f conftest.$ac_objext | 
|  | 23917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23918 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23919 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23920 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23921 | rm -f conftest.er1 | 
|  | 23922 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23924 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23925 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 23926 | || test ! -s conftest.err' | 
|  | 23927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23928 | (eval $ac_try) 2>&5 | 
|  | 23929 | ac_status=$? | 
|  | 23930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23931 | (exit $ac_status); }; } && | 
|  | 23932 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23934 | (eval $ac_try) 2>&5 | 
|  | 23935 | ac_status=$? | 
|  | 23936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23937 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23938 | ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23939 | else | 
|  | 23940 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23941 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23942 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23943 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23944 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23946 | ac_ext=c | 
|  | 23947 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 23948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 23951 |  | 
|  | 23952 | fi | 
|  | 23953 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
|  | 23954 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23955 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes | 
|  | 23956 | then | 
| John Criswell | 08e7226 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 23957 |  | 
|  | 23958 | cat >>confdefs.h <<\_ACEOF | 
|  | 23959 | #define HAVE_STD_EXT_HASH_SET 1 | 
|  | 23960 | _ACEOF | 
|  | 23961 |  | 
|  | 23962 | else | 
|  | 23963 |  | 
|  | 23964 | cat >>confdefs.h <<\_ACEOF | 
|  | 23965 | #define HAVE_STD_EXT_HASH_SET 0 | 
|  | 23966 | _ACEOF | 
|  | 23967 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23968 | fi | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 23969 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23970 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
|  | 23971 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
|  | 23972 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
|  | 23973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23974 | else | 
|  | 23975 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23976 | ac_ext=cc | 
|  | 23977 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23978 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23979 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23980 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23981 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23982 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23983 | /* confdefs.h.  */ | 
|  | 23984 | _ACEOF | 
|  | 23985 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23986 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23987 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23988 | #include <ext/hash_set> | 
|  | 23989 | #ifdef HAVE_NAMESPACES | 
|  | 23990 | using namespace __gnu_cxx; | 
|  | 23991 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23992 | int | 
|  | 23993 | main () | 
|  | 23994 | { | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 23995 | hash_set<int> t; | 
|  | 23996 | ; | 
|  | 23997 | return 0; | 
|  | 23998 | } | 
|  | 23999 | _ACEOF | 
|  | 24000 | rm -f conftest.$ac_objext | 
|  | 24001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24002 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24003 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24004 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24005 | rm -f conftest.er1 | 
|  | 24006 | cat conftest.err >&5 | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24008 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24009 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24010 | || test ! -s conftest.err' | 
|  | 24011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24012 | (eval $ac_try) 2>&5 | 
|  | 24013 | ac_status=$? | 
|  | 24014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24015 | (exit $ac_status); }; } && | 
|  | 24016 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24018 | (eval $ac_try) 2>&5 | 
|  | 24019 | ac_status=$? | 
|  | 24020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24021 | (exit $ac_status); }; }; then | 
|  | 24022 | ac_cv_cxx_have_gnu_ext_hash_set=yes | 
|  | 24023 | else | 
|  | 24024 | echo "$as_me: failed program was:" >&5 | 
|  | 24025 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24026 |  | 
|  | 24027 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
|  | 24028 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24030 | ac_ext=c | 
|  | 24031 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24035 |  | 
|  | 24036 | fi | 
|  | 24037 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
|  | 24038 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 24039 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes | 
|  | 24040 | then | 
| John Criswell | 08e7226 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 24041 |  | 
|  | 24042 | cat >>confdefs.h <<\_ACEOF | 
|  | 24043 | #define HAVE_GNU_EXT_HASH_SET 1 | 
|  | 24044 | _ACEOF | 
|  | 24045 |  | 
|  | 24046 | else | 
|  | 24047 |  | 
|  | 24048 | cat >>confdefs.h <<\_ACEOF | 
|  | 24049 | #define HAVE_GNU_EXT_HASH_SET 0 | 
|  | 24050 | _ACEOF | 
|  | 24051 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24052 | fi | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 24053 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24054 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
|  | 24055 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
|  | 24056 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
|  | 24057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24058 | else | 
|  | 24059 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24060 | ac_ext=cc | 
|  | 24061 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24065 |  | 
|  | 24066 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24067 | /* confdefs.h.  */ | 
|  | 24068 | _ACEOF | 
|  | 24069 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24070 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24071 | /* end confdefs.h.  */ | 
|  | 24072 | #include <hash_set> | 
|  | 24073 | int | 
|  | 24074 | main () | 
|  | 24075 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24076 | hash_set<int> t; return 0; | 
|  | 24077 | ; | 
|  | 24078 | return 0; | 
|  | 24079 | } | 
|  | 24080 | _ACEOF | 
|  | 24081 | rm -f conftest.$ac_objext | 
|  | 24082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24083 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24084 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24085 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24086 | rm -f conftest.er1 | 
|  | 24087 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24089 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24090 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24091 | || test ! -s conftest.err' | 
|  | 24092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24093 | (eval $ac_try) 2>&5 | 
|  | 24094 | ac_status=$? | 
|  | 24095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24096 | (exit $ac_status); }; } && | 
|  | 24097 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24099 | (eval $ac_try) 2>&5 | 
|  | 24100 | ac_status=$? | 
|  | 24101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24102 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24103 | ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24104 | else | 
|  | 24105 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24106 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24107 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24108 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24109 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24111 | ac_ext=c | 
|  | 24112 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24116 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24117 | fi | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24118 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
|  | 24119 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 24120 | if test "$ac_cv_cxx_have_global_hash_set" = yes | 
|  | 24121 | then | 
| John Criswell | 08e7226 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 24122 |  | 
|  | 24123 | cat >>confdefs.h <<\_ACEOF | 
|  | 24124 | #define HAVE_GLOBAL_HASH_SET 1 | 
|  | 24125 | _ACEOF | 
|  | 24126 |  | 
|  | 24127 | else | 
|  | 24128 |  | 
|  | 24129 | cat >>confdefs.h <<\_ACEOF | 
|  | 24130 | #define HAVE_GLOBAL_HASH_SET 0 | 
|  | 24131 | _ACEOF | 
|  | 24132 |  | 
| Brian Gaeke | 59c3217 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 24133 | fi | 
| Brian Gaeke | 8588355 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 24134 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24135 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
|  | 24136 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
|  | 24137 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
|  | 24138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24139 | else | 
|  | 24140 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24141 | ac_ext=cc | 
|  | 24142 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24143 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24144 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24145 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24146 |  | 
|  | 24147 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24148 | /* confdefs.h.  */ | 
|  | 24149 | _ACEOF | 
|  | 24150 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24151 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24152 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24153 | #include <iterator> | 
|  | 24154 | #ifdef HAVE_NAMESPACES | 
|  | 24155 | using namespace std; | 
|  | 24156 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24157 | int | 
|  | 24158 | main () | 
|  | 24159 | { | 
|  | 24160 | iterator<int,int,int> t; return 0; | 
|  | 24161 | ; | 
|  | 24162 | return 0; | 
|  | 24163 | } | 
|  | 24164 | _ACEOF | 
|  | 24165 | rm -f conftest.$ac_objext | 
|  | 24166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24167 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24168 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24169 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24170 | rm -f conftest.er1 | 
|  | 24171 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24173 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24174 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24175 | || test ! -s conftest.err' | 
|  | 24176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24177 | (eval $ac_try) 2>&5 | 
|  | 24178 | ac_status=$? | 
|  | 24179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24180 | (exit $ac_status); }; } && | 
|  | 24181 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24183 | (eval $ac_try) 2>&5 | 
|  | 24184 | ac_status=$? | 
|  | 24185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24186 | (exit $ac_status); }; }; then | 
|  | 24187 | ac_cv_cxx_have_std_iterator=yes | 
|  | 24188 | else | 
|  | 24189 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24190 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24191 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24192 | ac_cv_cxx_have_std_iterator=no | 
|  | 24193 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24195 | ac_ext=c | 
|  | 24196 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24200 |  | 
|  | 24201 |  | 
|  | 24202 | fi | 
|  | 24203 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
|  | 24204 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
| Brian Gaeke | 10e9315 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 24205 | if test "$ac_cv_cxx_have_std_iterator" = yes | 
|  | 24206 | then | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 24207 |  | 
|  | 24208 | cat >>confdefs.h <<\_ACEOF | 
|  | 24209 | #define HAVE_STD_ITERATOR 1 | 
|  | 24210 | _ACEOF | 
|  | 24211 |  | 
|  | 24212 | else | 
|  | 24213 |  | 
|  | 24214 | cat >>confdefs.h <<\_ACEOF | 
|  | 24215 | #define HAVE_STD_ITERATOR 0 | 
|  | 24216 | _ACEOF | 
|  | 24217 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24218 | fi | 
|  | 24219 |  | 
|  | 24220 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
|  | 24221 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
|  | 24222 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
|  | 24223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24224 | else | 
|  | 24225 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24226 | ac_ext=cc | 
|  | 24227 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24231 |  | 
|  | 24232 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24233 | /* confdefs.h.  */ | 
|  | 24234 | _ACEOF | 
|  | 24235 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24236 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24237 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24238 | #include <iterator> | 
|  | 24239 | #ifdef HAVE_NAMESPACES | 
|  | 24240 | using namespace std; | 
|  | 24241 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24242 | int | 
|  | 24243 | main () | 
|  | 24244 | { | 
| John Criswell | 4f37692 | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 24245 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24246 | ; | 
|  | 24247 | return 0; | 
|  | 24248 | } | 
|  | 24249 | _ACEOF | 
|  | 24250 | rm -f conftest.$ac_objext | 
|  | 24251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24252 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24253 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24254 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24255 | rm -f conftest.er1 | 
|  | 24256 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24258 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24259 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24260 | || test ! -s conftest.err' | 
|  | 24261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24262 | (eval $ac_try) 2>&5 | 
|  | 24263 | ac_status=$? | 
|  | 24264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24265 | (exit $ac_status); }; } && | 
|  | 24266 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24268 | (eval $ac_try) 2>&5 | 
|  | 24269 | ac_status=$? | 
|  | 24270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24271 | (exit $ac_status); }; }; then | 
|  | 24272 | ac_cv_cxx_have_bi_iterator=yes | 
|  | 24273 | else | 
|  | 24274 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24275 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24276 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24277 | ac_cv_cxx_have_bi_iterator=no | 
|  | 24278 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24280 | ac_ext=c | 
|  | 24281 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24285 |  | 
|  | 24286 |  | 
|  | 24287 | fi | 
|  | 24288 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
|  | 24289 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
| Brian Gaeke | 10e9315 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 24290 | if test "$ac_cv_cxx_have_bi_iterator" = yes | 
|  | 24291 | then | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 24292 |  | 
|  | 24293 | cat >>confdefs.h <<\_ACEOF | 
|  | 24294 | #define HAVE_BI_ITERATOR 1 | 
|  | 24295 | _ACEOF | 
|  | 24296 |  | 
|  | 24297 | else | 
|  | 24298 |  | 
|  | 24299 | cat >>confdefs.h <<\_ACEOF | 
|  | 24300 | #define HAVE_BI_ITERATOR 0 | 
|  | 24301 | _ACEOF | 
|  | 24302 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24303 | fi | 
|  | 24304 |  | 
|  | 24305 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
|  | 24306 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
|  | 24307 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
|  | 24308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24309 | else | 
|  | 24310 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24311 | ac_ext=cc | 
|  | 24312 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24313 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24314 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24315 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24316 |  | 
|  | 24317 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24318 | /* confdefs.h.  */ | 
|  | 24319 | _ACEOF | 
|  | 24320 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24321 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24322 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24323 | #include <iterator> | 
|  | 24324 | #ifdef HAVE_NAMESPACES | 
|  | 24325 | using namespace std; | 
|  | 24326 | #endif | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24327 | int | 
|  | 24328 | main () | 
|  | 24329 | { | 
| John Criswell | 4f37692 | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 24330 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24331 | ; | 
|  | 24332 | return 0; | 
|  | 24333 | } | 
|  | 24334 | _ACEOF | 
|  | 24335 | rm -f conftest.$ac_objext | 
|  | 24336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24337 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24338 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24339 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24340 | rm -f conftest.er1 | 
|  | 24341 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24343 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24344 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24345 | || test ! -s conftest.err' | 
|  | 24346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24347 | (eval $ac_try) 2>&5 | 
|  | 24348 | ac_status=$? | 
|  | 24349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24350 | (exit $ac_status); }; } && | 
|  | 24351 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24353 | (eval $ac_try) 2>&5 | 
|  | 24354 | ac_status=$? | 
|  | 24355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24356 | (exit $ac_status); }; }; then | 
|  | 24357 | ac_cv_cxx_have_fwd_iterator=yes | 
|  | 24358 | else | 
|  | 24359 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24360 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24361 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24362 | ac_cv_cxx_have_fwd_iterator=no | 
|  | 24363 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24365 | ac_ext=c | 
|  | 24366 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24370 |  | 
|  | 24371 |  | 
|  | 24372 | fi | 
|  | 24373 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
|  | 24374 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
| Brian Gaeke | 10e9315 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 24375 | if test "$ac_cv_cxx_have_fwd_iterator" = yes | 
|  | 24376 | then | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 24377 |  | 
|  | 24378 | cat >>confdefs.h <<\_ACEOF | 
|  | 24379 | #define HAVE_FWD_ITERATOR 1 | 
|  | 24380 | _ACEOF | 
|  | 24381 |  | 
|  | 24382 | else | 
|  | 24383 |  | 
|  | 24384 | cat >>confdefs.h <<\_ACEOF | 
|  | 24385 | #define HAVE_FWD_ITERATOR 0 | 
|  | 24386 | _ACEOF | 
|  | 24387 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24388 | fi | 
|  | 24389 |  | 
|  | 24390 |  | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24391 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
|  | 24392 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 | 
|  | 24393 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
|  | 24394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24395 | else | 
|  | 24396 | ac_ext=cc | 
|  | 24397 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24398 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24399 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24400 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24401 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24402 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24403 | /* confdefs.h.  */ | 
|  | 24404 | _ACEOF | 
|  | 24405 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24406 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24407 | /* end confdefs.h.  */ | 
|  | 24408 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24409 | int | 
|  | 24410 | main () | 
|  | 24411 | { | 
|  | 24412 | float f; isnan(f); | 
|  | 24413 | ; | 
|  | 24414 | return 0; | 
|  | 24415 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24416 | _ACEOF | 
|  | 24417 | rm -f conftest.$ac_objext | 
|  | 24418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24419 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24420 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24421 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24422 | rm -f conftest.er1 | 
|  | 24423 | cat conftest.err >&5 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24425 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24426 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24427 | || test ! -s conftest.err' | 
|  | 24428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24429 | (eval $ac_try) 2>&5 | 
|  | 24430 | ac_status=$? | 
|  | 24431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24432 | (exit $ac_status); }; } && | 
|  | 24433 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24435 | (eval $ac_try) 2>&5 | 
|  | 24436 | ac_status=$? | 
|  | 24437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24438 | (exit $ac_status); }; }; then | 
|  | 24439 | ac_cv_func_isnan_in_math_h=yes | 
|  | 24440 | else | 
|  | 24441 | echo "$as_me: failed program was:" >&5 | 
|  | 24442 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24443 |  | 
|  | 24444 | ac_cv_func_isnan_in_math_h=no | 
|  | 24445 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24447 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24448 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24452 |  | 
|  | 24453 | fi | 
|  | 24454 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
|  | 24455 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24456 |  | 
|  | 24457 |  | 
|  | 24458 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24459 |  | 
|  | 24460 | cat >>confdefs.h <<\_ACEOF | 
|  | 24461 | #define HAVE_ISNAN_IN_MATH_H 1 | 
|  | 24462 | _ACEOF | 
|  | 24463 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24464 | fi | 
|  | 24465 |  | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24466 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
|  | 24467 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 | 
|  | 24468 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
|  | 24469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24470 | else | 
|  | 24471 | ac_ext=cc | 
|  | 24472 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24473 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24474 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24475 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24476 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24477 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24478 | /* confdefs.h.  */ | 
|  | 24479 | _ACEOF | 
|  | 24480 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24481 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24482 | /* end confdefs.h.  */ | 
|  | 24483 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24484 | int | 
|  | 24485 | main () | 
|  | 24486 | { | 
|  | 24487 | float f; isnan(f); | 
|  | 24488 | ; | 
|  | 24489 | return 0; | 
|  | 24490 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24491 | _ACEOF | 
|  | 24492 | rm -f conftest.$ac_objext | 
|  | 24493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24494 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24495 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24496 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24497 | rm -f conftest.er1 | 
|  | 24498 | cat conftest.err >&5 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24500 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24501 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24502 | || test ! -s conftest.err' | 
|  | 24503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24504 | (eval $ac_try) 2>&5 | 
|  | 24505 | ac_status=$? | 
|  | 24506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24507 | (exit $ac_status); }; } && | 
|  | 24508 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24510 | (eval $ac_try) 2>&5 | 
|  | 24511 | ac_status=$? | 
|  | 24512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24513 | (exit $ac_status); }; }; then | 
|  | 24514 | ac_cv_func_isnan_in_cmath=yes | 
|  | 24515 | else | 
|  | 24516 | echo "$as_me: failed program was:" >&5 | 
|  | 24517 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24518 |  | 
|  | 24519 | ac_cv_func_isnan_in_cmath=no | 
|  | 24520 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24522 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24523 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24527 |  | 
|  | 24528 | fi | 
|  | 24529 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
|  | 24530 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24531 |  | 
|  | 24532 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24533 |  | 
|  | 24534 | cat >>confdefs.h <<\_ACEOF | 
|  | 24535 | #define HAVE_ISNAN_IN_CMATH 1 | 
|  | 24536 | _ACEOF | 
|  | 24537 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24538 | fi | 
|  | 24539 |  | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24540 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
|  | 24541 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 | 
|  | 24542 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
|  | 24543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24544 | else | 
|  | 24545 | ac_ext=cc | 
|  | 24546 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24550 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24551 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24552 | /* confdefs.h.  */ | 
|  | 24553 | _ACEOF | 
|  | 24554 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24555 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24556 | /* end confdefs.h.  */ | 
|  | 24557 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24558 | int | 
|  | 24559 | main () | 
|  | 24560 | { | 
|  | 24561 | float f; std::isnan(f); | 
|  | 24562 | ; | 
|  | 24563 | return 0; | 
|  | 24564 | } | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24565 | _ACEOF | 
|  | 24566 | rm -f conftest.$ac_objext | 
|  | 24567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24568 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24569 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24570 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24571 | rm -f conftest.er1 | 
|  | 24572 | cat conftest.err >&5 | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24574 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24575 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24576 | || test ! -s conftest.err' | 
|  | 24577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24578 | (eval $ac_try) 2>&5 | 
|  | 24579 | ac_status=$? | 
|  | 24580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24581 | (exit $ac_status); }; } && | 
|  | 24582 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24584 | (eval $ac_try) 2>&5 | 
|  | 24585 | ac_status=$? | 
|  | 24586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24587 | (exit $ac_status); }; }; then | 
|  | 24588 | ac_cv_func_std_isnan_in_cmath=yes | 
|  | 24589 | else | 
|  | 24590 | echo "$as_me: failed program was:" >&5 | 
|  | 24591 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24592 |  | 
|  | 24593 | ac_cv_func_std_isnan_in_cmath=no | 
|  | 24594 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24596 | ac_ext=c | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24597 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24601 |  | 
|  | 24602 | fi | 
|  | 24603 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
|  | 24604 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24605 |  | 
|  | 24606 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24607 |  | 
|  | 24608 | cat >>confdefs.h <<\_ACEOF | 
|  | 24609 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
|  | 24610 | _ACEOF | 
|  | 24611 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24612 | fi | 
| Brian Gaeke | c77683c | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 24613 |  | 
|  | 24614 |  | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24615 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
|  | 24616 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 | 
|  | 24617 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
|  | 24618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24619 | else | 
|  | 24620 | ac_ext=cc | 
|  | 24621 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24622 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24623 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24624 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24625 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24626 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24627 | /* confdefs.h.  */ | 
|  | 24628 | _ACEOF | 
|  | 24629 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24630 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24631 | /* end confdefs.h.  */ | 
|  | 24632 | #include <math.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24633 | int | 
|  | 24634 | main () | 
|  | 24635 | { | 
|  | 24636 | float f; isinf(f); | 
|  | 24637 | ; | 
|  | 24638 | return 0; | 
|  | 24639 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24640 | _ACEOF | 
|  | 24641 | rm -f conftest.$ac_objext | 
|  | 24642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24643 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24644 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24645 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24646 | rm -f conftest.er1 | 
|  | 24647 | cat conftest.err >&5 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24649 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24650 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24651 | || test ! -s conftest.err' | 
|  | 24652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24653 | (eval $ac_try) 2>&5 | 
|  | 24654 | ac_status=$? | 
|  | 24655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24656 | (exit $ac_status); }; } && | 
|  | 24657 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24659 | (eval $ac_try) 2>&5 | 
|  | 24660 | ac_status=$? | 
|  | 24661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24662 | (exit $ac_status); }; }; then | 
|  | 24663 | ac_cv_func_isinf_in_math_h=yes | 
|  | 24664 | else | 
|  | 24665 | echo "$as_me: failed program was:" >&5 | 
|  | 24666 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24667 |  | 
|  | 24668 | ac_cv_func_isinf_in_math_h=no | 
|  | 24669 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24671 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24672 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24676 |  | 
|  | 24677 | fi | 
|  | 24678 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
|  | 24679 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24680 |  | 
|  | 24681 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24682 |  | 
|  | 24683 | cat >>confdefs.h <<\_ACEOF | 
|  | 24684 | #define HAVE_ISINF_IN_MATH_H 1 | 
|  | 24685 | _ACEOF | 
|  | 24686 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24687 | fi | 
|  | 24688 |  | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24689 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
|  | 24690 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 | 
|  | 24691 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
|  | 24692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24693 | else | 
|  | 24694 | ac_ext=cc | 
|  | 24695 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24696 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24697 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24698 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24699 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24700 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24701 | /* confdefs.h.  */ | 
|  | 24702 | _ACEOF | 
|  | 24703 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24704 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24705 | /* end confdefs.h.  */ | 
|  | 24706 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24707 | int | 
|  | 24708 | main () | 
|  | 24709 | { | 
|  | 24710 | float f; isinf(f); | 
|  | 24711 | ; | 
|  | 24712 | return 0; | 
|  | 24713 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24714 | _ACEOF | 
|  | 24715 | rm -f conftest.$ac_objext | 
|  | 24716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24717 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24718 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24719 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24720 | rm -f conftest.er1 | 
|  | 24721 | cat conftest.err >&5 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24723 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24724 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24725 | || test ! -s conftest.err' | 
|  | 24726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24727 | (eval $ac_try) 2>&5 | 
|  | 24728 | ac_status=$? | 
|  | 24729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24730 | (exit $ac_status); }; } && | 
|  | 24731 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24733 | (eval $ac_try) 2>&5 | 
|  | 24734 | ac_status=$? | 
|  | 24735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24736 | (exit $ac_status); }; }; then | 
|  | 24737 | ac_cv_func_isinf_in_cmath=yes | 
|  | 24738 | else | 
|  | 24739 | echo "$as_me: failed program was:" >&5 | 
|  | 24740 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24741 |  | 
|  | 24742 | ac_cv_func_isinf_in_cmath=no | 
|  | 24743 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24745 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24746 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24750 |  | 
|  | 24751 | fi | 
|  | 24752 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
|  | 24753 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24754 |  | 
|  | 24755 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24756 |  | 
|  | 24757 | cat >>confdefs.h <<\_ACEOF | 
|  | 24758 | #define HAVE_ISINF_IN_CMATH 1 | 
|  | 24759 | _ACEOF | 
|  | 24760 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24761 | fi | 
|  | 24762 |  | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24763 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
|  | 24764 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 | 
|  | 24765 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
|  | 24766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24767 | else | 
|  | 24768 | ac_ext=cc | 
|  | 24769 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24773 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24774 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24775 | /* confdefs.h.  */ | 
|  | 24776 | _ACEOF | 
|  | 24777 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24778 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24779 | /* end confdefs.h.  */ | 
|  | 24780 | #include <cmath> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24781 | int | 
|  | 24782 | main () | 
|  | 24783 | { | 
|  | 24784 | float f; std::isinf(f)} | 
|  | 24785 | ; | 
|  | 24786 | return 0; | 
|  | 24787 | } | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24788 | _ACEOF | 
|  | 24789 | rm -f conftest.$ac_objext | 
|  | 24790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24791 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24792 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24793 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24794 | rm -f conftest.er1 | 
|  | 24795 | cat conftest.err >&5 | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24797 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24798 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24799 | || test ! -s conftest.err' | 
|  | 24800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24801 | (eval $ac_try) 2>&5 | 
|  | 24802 | ac_status=$? | 
|  | 24803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24804 | (exit $ac_status); }; } && | 
|  | 24805 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24807 | (eval $ac_try) 2>&5 | 
|  | 24808 | ac_status=$? | 
|  | 24809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24810 | (exit $ac_status); }; }; then | 
|  | 24811 | ac_cv_func_std_isinf_in_cmath=yes | 
|  | 24812 | else | 
|  | 24813 | echo "$as_me: failed program was:" >&5 | 
|  | 24814 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24815 |  | 
|  | 24816 | ac_cv_func_std_isinf_in_cmath=no | 
|  | 24817 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24819 | ac_ext=c | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24820 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24824 |  | 
|  | 24825 | fi | 
|  | 24826 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
|  | 24827 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24828 |  | 
|  | 24829 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 2698a6c | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 24830 |  | 
|  | 24831 | cat >>confdefs.h <<\_ACEOF | 
|  | 24832 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
|  | 24833 | _ACEOF | 
|  | 24834 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24835 | fi | 
|  | 24836 |  | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24837 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
|  | 24838 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 | 
|  | 24839 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
|  | 24840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24841 | else | 
|  | 24842 | ac_ext=cc | 
|  | 24843 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24844 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24845 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24846 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24847 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24848 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24849 | /* confdefs.h.  */ | 
|  | 24850 | _ACEOF | 
|  | 24851 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24852 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24853 | /* end confdefs.h.  */ | 
|  | 24854 | #include <ieeefp.h> | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24855 | int | 
|  | 24856 | main () | 
|  | 24857 | { | 
|  | 24858 | float f; finite(f); | 
|  | 24859 | ; | 
|  | 24860 | return 0; | 
|  | 24861 | } | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24862 | _ACEOF | 
|  | 24863 | rm -f conftest.$ac_objext | 
|  | 24864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24865 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24866 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24867 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24868 | rm -f conftest.er1 | 
|  | 24869 | cat conftest.err >&5 | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24871 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24872 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 24873 | || test ! -s conftest.err' | 
|  | 24874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24875 | (eval $ac_try) 2>&5 | 
|  | 24876 | ac_status=$? | 
|  | 24877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24878 | (exit $ac_status); }; } && | 
|  | 24879 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24881 | (eval $ac_try) 2>&5 | 
|  | 24882 | ac_status=$? | 
|  | 24883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24884 | (exit $ac_status); }; }; then | 
|  | 24885 | ac_cv_func_finite_in_ieeefp_h=yes | 
|  | 24886 | else | 
|  | 24887 | echo "$as_me: failed program was:" >&5 | 
|  | 24888 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24889 |  | 
|  | 24890 | ac_cv_func_finite_in_ieeefp_h=no | 
|  | 24891 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24893 | ac_ext=c | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24894 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24895 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24896 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24898 |  | 
|  | 24899 | fi | 
|  | 24900 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
|  | 24901 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24902 |  | 
| Brian Gaeke | ae050e0 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 24903 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24904 |  | 
|  | 24905 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | ae050e0 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 24906 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
| Brian Gaeke | a870445 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 24907 | _ACEOF | 
|  | 24908 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24909 | fi | 
|  | 24910 |  | 
|  | 24911 |  | 
|  | 24912 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24913 |  | 
|  | 24914 |  | 
|  | 24915 | for ac_header in stdlib.h unistd.h | 
|  | 24916 | do | 
|  | 24917 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 24918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 24919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 24920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 24921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 24922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24923 | fi | 
|  | 24924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 24925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 24926 | else | 
|  | 24927 | # Is the header compilable? | 
|  | 24928 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 24929 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 24930 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24931 | /* confdefs.h.  */ | 
|  | 24932 | _ACEOF | 
|  | 24933 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24934 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24935 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24936 | $ac_includes_default | 
|  | 24937 | #include <$ac_header> | 
|  | 24938 | _ACEOF | 
|  | 24939 | rm -f conftest.$ac_objext | 
|  | 24940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24941 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24942 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24943 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24944 | rm -f conftest.er1 | 
|  | 24945 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24947 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24948 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 24949 | || test ! -s conftest.err' | 
|  | 24950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24951 | (eval $ac_try) 2>&5 | 
|  | 24952 | ac_status=$? | 
|  | 24953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24954 | (exit $ac_status); }; } && | 
|  | 24955 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24957 | (eval $ac_try) 2>&5 | 
|  | 24958 | ac_status=$? | 
|  | 24959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24960 | (exit $ac_status); }; }; then | 
|  | 24961 | ac_header_compiler=yes | 
|  | 24962 | else | 
|  | 24963 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24964 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24965 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24966 | ac_header_compiler=no | 
|  | 24967 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24969 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 24970 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 24971 |  | 
|  | 24972 | # Is the header present? | 
|  | 24973 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 24974 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 24975 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24976 | /* confdefs.h.  */ | 
|  | 24977 | _ACEOF | 
|  | 24978 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24979 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24980 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24981 | #include <$ac_header> | 
|  | 24982 | _ACEOF | 
|  | 24983 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 24984 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 24985 | ac_status=$? | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24986 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24987 | rm -f conftest.er1 | 
|  | 24988 | cat conftest.err >&5 | 
|  | 24989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24990 | (exit $ac_status); } >/dev/null; then | 
|  | 24991 | if test -s conftest.err; then | 
|  | 24992 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24993 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24994 | else | 
|  | 24995 | ac_cpp_err= | 
|  | 24996 | fi | 
|  | 24997 | else | 
|  | 24998 | ac_cpp_err=yes | 
|  | 24999 | fi | 
|  | 25000 | if test -z "$ac_cpp_err"; then | 
|  | 25001 | ac_header_preproc=yes | 
|  | 25002 | else | 
|  | 25003 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25004 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25005 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25006 | ac_header_preproc=no | 
|  | 25007 | fi | 
|  | 25008 | rm -f conftest.err conftest.$ac_ext | 
|  | 25009 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 25010 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 25011 |  | 
|  | 25012 | # So?  What about this header? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25013 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 25014 | yes:no: ) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25015 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 25016 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 25018 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 25019 | ac_header_preproc=yes | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 25020 | ;; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25021 | no:yes:* ) | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 25022 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 25023 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25024 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 25025 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 25026 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 25027 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 25028 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 25029 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 25030 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 25031 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25032 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 25033 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | ee83ff1 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 25034 | ( | 
|  | 25035 | cat <<\_ASBOX | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25036 | ## ----------------------------------- ## | 
|  | 25037 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 25038 | ## ----------------------------------- ## | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25039 | _ASBOX | 
|  | 25040 | ) | | 
|  | 25041 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 25042 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25043 | esac | 
|  | 25044 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 25045 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 25046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 25047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25048 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25049 | eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25050 | fi | 
|  | 25051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 25052 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 25053 |  | 
|  | 25054 | fi | 
|  | 25055 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 25056 | cat >>confdefs.h <<_ACEOF | 
|  | 25057 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 25058 | _ACEOF | 
|  | 25059 |  | 
|  | 25060 | fi | 
|  | 25061 |  | 
|  | 25062 | done | 
|  | 25063 |  | 
|  | 25064 |  | 
|  | 25065 | for ac_func in getpagesize | 
|  | 25066 | do | 
|  | 25067 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 25068 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 25069 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 25070 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 25071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25072 | else | 
|  | 25073 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25074 | /* confdefs.h.  */ | 
|  | 25075 | _ACEOF | 
|  | 25076 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25077 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25078 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25079 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 25080 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 25081 | #define $ac_func innocuous_$ac_func | 
|  | 25082 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25083 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25084 | which can conflict with char $ac_func (); below. | 
|  | 25085 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 25086 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25087 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25088 | #ifdef __STDC__ | 
|  | 25089 | # include <limits.h> | 
|  | 25090 | #else | 
|  | 25091 | # include <assert.h> | 
|  | 25092 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25093 |  | 
|  | 25094 | #undef $ac_func | 
|  | 25095 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25096 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25097 | #ifdef __cplusplus | 
|  | 25098 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25099 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25100 | #endif | 
|  | 25101 | /* We use char because int might match the return type of a gcc2 | 
|  | 25102 | builtin and then its argument prototype would still apply.  */ | 
|  | 25103 | char $ac_func (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25104 | /* The GNU C library defines this for functions which it implements | 
|  | 25105 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 25106 | something starting with __ and the normal name is an alias.  */ | 
|  | 25107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 25108 | choke me | 
|  | 25109 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25110 | char (*f) () = $ac_func; | 
|  | 25111 | #endif | 
|  | 25112 | #ifdef __cplusplus | 
|  | 25113 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25114 | #endif | 
|  | 25115 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25116 | int | 
|  | 25117 | main () | 
|  | 25118 | { | 
|  | 25119 | return f != $ac_func; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25120 | ; | 
|  | 25121 | return 0; | 
|  | 25122 | } | 
|  | 25123 | _ACEOF | 
|  | 25124 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25126 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25127 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25128 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25129 | rm -f conftest.er1 | 
|  | 25130 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25132 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25133 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25134 | || test ! -s conftest.err' | 
|  | 25135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25136 | (eval $ac_try) 2>&5 | 
|  | 25137 | ac_status=$? | 
|  | 25138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25139 | (exit $ac_status); }; } && | 
|  | 25140 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25142 | (eval $ac_try) 2>&5 | 
|  | 25143 | ac_status=$? | 
|  | 25144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25145 | (exit $ac_status); }; }; then | 
|  | 25146 | eval "$as_ac_var=yes" | 
|  | 25147 | else | 
|  | 25148 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25149 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25150 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25151 | eval "$as_ac_var=no" | 
|  | 25152 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25153 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25154 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25155 | fi | 
|  | 25156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 25157 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 25158 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 25159 | cat >>confdefs.h <<_ACEOF | 
|  | 25160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 25161 | _ACEOF | 
|  | 25162 |  | 
|  | 25163 | fi | 
|  | 25164 | done | 
|  | 25165 |  | 
|  | 25166 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
|  | 25167 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
|  | 25168 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
|  | 25169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25170 | else | 
|  | 25171 | if test "$cross_compiling" = yes; then | 
|  | 25172 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 25173 | else | 
|  | 25174 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25175 | /* confdefs.h.  */ | 
|  | 25176 | _ACEOF | 
|  | 25177 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25178 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25179 | /* end confdefs.h.  */ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25180 | $ac_includes_default | 
|  | 25181 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 25182 | #undef malloc | 
|  | 25183 |  | 
|  | 25184 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 25185 | Here is a matrix of mmap possibilities: | 
|  | 25186 | mmap private not fixed | 
|  | 25187 | mmap private fixed at somewhere currently unmapped | 
|  | 25188 | mmap private fixed at somewhere already mapped | 
|  | 25189 | mmap shared not fixed | 
|  | 25190 | mmap shared fixed at somewhere currently unmapped | 
|  | 25191 | mmap shared fixed at somewhere already mapped | 
|  | 25192 | For private mappings, we should verify that changes cannot be read() | 
|  | 25193 | back from the file, nor mmap's back from the file at a different | 
|  | 25194 | address.  (There have been systems where private was not correctly | 
|  | 25195 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 25196 | VM page cache was not coherent with the file system buffer cache | 
|  | 25197 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 25198 | For shared mappings, we should conversely verify that changes get | 
|  | 25199 | propagated back to all the places they're supposed to be. | 
|  | 25200 |  | 
|  | 25201 | Grep wants private fixed already mapped. | 
|  | 25202 | The main things grep needs to know about mmap are: | 
|  | 25203 | * does it exist and is it safe to write into the mmap'd area | 
|  | 25204 | * how to use it (BSD variants)  */ | 
|  | 25205 |  | 
|  | 25206 | #include <fcntl.h> | 
|  | 25207 | #include <sys/mman.h> | 
|  | 25208 |  | 
|  | 25209 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
|  | 25210 | char *malloc (); | 
|  | 25211 | #endif | 
|  | 25212 |  | 
|  | 25213 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|  | 25214 | #if !HAVE_GETPAGESIZE | 
|  | 25215 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 25216 | # if !HAVE_SYS_PARAM_H | 
|  | 25217 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 25218 | # endif | 
|  | 25219 |  | 
|  | 25220 | # ifdef _SC_PAGESIZE | 
|  | 25221 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 25222 | # else /* no _SC_PAGESIZE */ | 
|  | 25223 | #  if HAVE_SYS_PARAM_H | 
|  | 25224 | #   include <sys/param.h> | 
|  | 25225 | #   ifdef EXEC_PAGESIZE | 
|  | 25226 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 25227 | #   else /* no EXEC_PAGESIZE */ | 
|  | 25228 | #    ifdef NBPG | 
|  | 25229 | #     define getpagesize() NBPG * CLSIZE | 
|  | 25230 | #     ifndef CLSIZE | 
|  | 25231 | #      define CLSIZE 1 | 
|  | 25232 | #     endif /* no CLSIZE */ | 
|  | 25233 | #    else /* no NBPG */ | 
|  | 25234 | #     ifdef NBPC | 
|  | 25235 | #      define getpagesize() NBPC | 
|  | 25236 | #     else /* no NBPC */ | 
|  | 25237 | #      ifdef PAGESIZE | 
|  | 25238 | #       define getpagesize() PAGESIZE | 
|  | 25239 | #      endif /* PAGESIZE */ | 
|  | 25240 | #     endif /* no NBPC */ | 
|  | 25241 | #    endif /* no NBPG */ | 
|  | 25242 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 25243 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 25244 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 25245 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 25246 | # endif /* no _SC_PAGESIZE */ | 
|  | 25247 |  | 
|  | 25248 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 25249 |  | 
|  | 25250 | int | 
|  | 25251 | main () | 
|  | 25252 | { | 
|  | 25253 | char *data, *data2, *data3; | 
|  | 25254 | int i, pagesize; | 
|  | 25255 | int fd; | 
|  | 25256 |  | 
|  | 25257 | pagesize = getpagesize (); | 
|  | 25258 |  | 
|  | 25259 | /* First, make a file with some known garbage in it. */ | 
|  | 25260 | data = (char *) malloc (pagesize); | 
|  | 25261 | if (!data) | 
|  | 25262 | exit (1); | 
|  | 25263 | for (i = 0; i < pagesize; ++i) | 
|  | 25264 | *(data + i) = rand (); | 
|  | 25265 | umask (0); | 
|  | 25266 | fd = creat ("conftest.mmap", 0600); | 
|  | 25267 | if (fd < 0) | 
|  | 25268 | exit (1); | 
|  | 25269 | if (write (fd, data, pagesize) != pagesize) | 
|  | 25270 | exit (1); | 
|  | 25271 | close (fd); | 
|  | 25272 |  | 
|  | 25273 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 25274 | something else allocated at it.  If we can, also make sure that | 
|  | 25275 | we see the same garbage.  */ | 
|  | 25276 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 25277 | if (fd < 0) | 
|  | 25278 | exit (1); | 
|  | 25279 | data2 = (char *) malloc (2 * pagesize); | 
|  | 25280 | if (!data2) | 
|  | 25281 | exit (1); | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25282 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25283 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25284 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25285 | exit (1); | 
|  | 25286 | for (i = 0; i < pagesize; ++i) | 
|  | 25287 | if (*(data + i) != *(data2 + i)) | 
|  | 25288 | exit (1); | 
|  | 25289 |  | 
|  | 25290 | /* Finally, make sure that changes to the mapped area do not | 
|  | 25291 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 25292 | some variants of i386 svr4.0.)  */ | 
|  | 25293 | for (i = 0; i < pagesize; ++i) | 
|  | 25294 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 25295 | data3 = (char *) malloc (pagesize); | 
|  | 25296 | if (!data3) | 
|  | 25297 | exit (1); | 
|  | 25298 | if (read (fd, data3, pagesize) != pagesize) | 
|  | 25299 | exit (1); | 
|  | 25300 | for (i = 0; i < pagesize; ++i) | 
|  | 25301 | if (*(data + i) != *(data3 + i)) | 
|  | 25302 | exit (1); | 
|  | 25303 | close (fd); | 
|  | 25304 | exit (0); | 
|  | 25305 | } | 
|  | 25306 | _ACEOF | 
|  | 25307 | rm -f conftest$ac_exeext | 
|  | 25308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 25309 | (eval $ac_link) 2>&5 | 
|  | 25310 | ac_status=$? | 
|  | 25311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25312 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 25313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25314 | (eval $ac_try) 2>&5 | 
|  | 25315 | ac_status=$? | 
|  | 25316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25317 | (exit $ac_status); }; }; then | 
|  | 25318 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 25319 | else | 
|  | 25320 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 25321 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25322 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25323 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25324 | ( exit $ac_status ) | 
|  | 25325 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 25326 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25327 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25328 | fi | 
|  | 25329 | fi | 
|  | 25330 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
|  | 25331 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
|  | 25332 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 25333 |  | 
|  | 25334 | cat >>confdefs.h <<\_ACEOF | 
|  | 25335 | #define HAVE_MMAP 1 | 
|  | 25336 | _ACEOF | 
|  | 25337 |  | 
|  | 25338 | fi | 
|  | 25339 | rm -f conftest.mmap | 
|  | 25340 |  | 
|  | 25341 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
|  | 25342 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
|  | 25343 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
|  | 25344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25345 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25346 | ac_ext=c | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25347 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25351 |  | 
|  | 25352 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 25353 | ac_cv_func_mmap_file=no | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25354 | else | 
|  | 25355 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25356 |  | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25357 | /* confdefs.h.  */ | 
|  | 25358 | _ACEOF | 
|  | 25359 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25360 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25361 | /* end confdefs.h.  */ | 
|  | 25362 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25363 | #include <sys/types.h> | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 25364 | #include <sys/mman.h> | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25365 | #include <fcntl.h> | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25366 |  | 
|  | 25367 | int | 
|  | 25368 | main () | 
|  | 25369 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25370 |  | 
|  | 25371 | int fd; | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25372 | fd = creat ("foo",0777); | 
|  | 25373 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
|  | 25374 | unlink ("foo"); | 
| Reid Spencer | 5a6815d | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 25375 | return (fd != (int) MAP_FAILED); | 
| Reid Spencer | ac16ea9 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 25376 | ; | 
|  | 25377 | return 0; | 
|  | 25378 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25379 | _ACEOF | 
|  | 25380 | rm -f conftest$ac_exeext | 
|  | 25381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 25382 | (eval $ac_link) 2>&5 | 
|  | 25383 | ac_status=$? | 
|  | 25384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25385 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 25386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25387 | (eval $ac_try) 2>&5 | 
|  | 25388 | ac_status=$? | 
|  | 25389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25390 | (exit $ac_status); }; }; then | 
|  | 25391 | ac_cv_func_mmap_file=yes | 
|  | 25392 | else | 
|  | 25393 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 25394 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25395 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25396 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25397 | ( exit $ac_status ) | 
|  | 25398 | ac_cv_func_mmap_file=no | 
|  | 25399 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25400 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25401 | fi | 
|  | 25402 | ac_ext=c | 
|  | 25403 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25407 |  | 
|  | 25408 |  | 
|  | 25409 | fi | 
|  | 25410 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
|  | 25411 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
|  | 25412 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | e3a9bd8 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 25413 |  | 
|  | 25414 | cat >>confdefs.h <<\_ACEOF | 
|  | 25415 | #define HAVE_MMAP_FILE | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25416 | _ACEOF | 
|  | 25417 |  | 
|  | 25418 | MMAP_FILE=yes | 
|  | 25419 |  | 
|  | 25420 | fi | 
|  | 25421 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25422 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
|  | 25423 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
|  | 25424 | if test "${ac_cv_func_mprotect+set}" = set; then | 
|  | 25425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25426 | else | 
|  | 25427 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25428 | /* confdefs.h.  */ | 
|  | 25429 | _ACEOF | 
|  | 25430 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25431 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25432 | /* end confdefs.h.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25433 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. | 
|  | 25434 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 25435 | #define mprotect innocuous_mprotect | 
|  | 25436 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25437 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25438 | which can conflict with char mprotect (); below. | 
|  | 25439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 25440 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25441 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25442 | #ifdef __STDC__ | 
|  | 25443 | # include <limits.h> | 
|  | 25444 | #else | 
|  | 25445 | # include <assert.h> | 
|  | 25446 | #endif | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25447 |  | 
|  | 25448 | #undef mprotect | 
|  | 25449 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25450 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25451 | #ifdef __cplusplus | 
|  | 25452 | extern "C" | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25453 | { | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25454 | #endif | 
|  | 25455 | /* We use char because int might match the return type of a gcc2 | 
|  | 25456 | builtin and then its argument prototype would still apply.  */ | 
|  | 25457 | char mprotect (); | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25458 | /* The GNU C library defines this for functions which it implements | 
|  | 25459 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 25460 | something starting with __ and the normal name is an alias.  */ | 
|  | 25461 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
|  | 25462 | choke me | 
|  | 25463 | #else | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25464 | char (*f) () = mprotect; | 
|  | 25465 | #endif | 
|  | 25466 | #ifdef __cplusplus | 
|  | 25467 | } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25468 | #endif | 
|  | 25469 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25470 | int | 
|  | 25471 | main () | 
|  | 25472 | { | 
|  | 25473 | return f != mprotect; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25474 | ; | 
|  | 25475 | return 0; | 
|  | 25476 | } | 
|  | 25477 | _ACEOF | 
|  | 25478 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25480 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25481 | ac_status=$? | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25482 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25483 | rm -f conftest.er1 | 
|  | 25484 | cat conftest.err >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25486 | (exit $ac_status); } && | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25487 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25488 | || test ! -s conftest.err' | 
|  | 25489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25490 | (eval $ac_try) 2>&5 | 
|  | 25491 | ac_status=$? | 
|  | 25492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25493 | (exit $ac_status); }; } && | 
|  | 25494 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25496 | (eval $ac_try) 2>&5 | 
|  | 25497 | ac_status=$? | 
|  | 25498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25499 | (exit $ac_status); }; }; then | 
|  | 25500 | ac_cv_func_mprotect=yes | 
|  | 25501 | else | 
|  | 25502 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25503 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25504 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25505 | ac_cv_func_mprotect=no | 
|  | 25506 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25507 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25508 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25509 | fi | 
|  | 25510 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
|  | 25511 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
|  | 25512 | if test $ac_cv_func_mprotect = yes; then | 
|  | 25513 | : | 
|  | 25514 | else | 
|  | 25515 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
|  | 25516 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
|  | 25517 | { (exit 1); exit 1; }; } | 
|  | 25518 | fi | 
|  | 25519 |  | 
|  | 25520 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25521 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
| John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25522 | then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25523 | { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 | 
|  | 25524 | echo "$as_me: WARNING: mmap() required but not found" >&2;} | 
| John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25525 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25526 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25527 | then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25528 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
|  | 25529 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| John Criswell | b65ddad | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 25530 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25531 |  | 
|  | 25532 |  | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25533 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 | 
|  | 25534 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25535 | if test "${llvm_cv_llvmgcc+set}" = set; then | 
|  | 25536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25537 | else | 
|  | 25538 | llvm_cv_llvmgcc='llvmgcc_not_found' | 
|  | 25539 | if test -d "$LLVMGCCDIR" ; then | 
|  | 25540 | if test -x "$LLVMGCCDIR/bin/gcc" ; then | 
|  | 25541 | llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc" | 
|  | 25542 | fi | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25543 | fi | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25544 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25545 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5 | 
|  | 25546 | echo "${ECHO_T}$llvm_cv_llvmgcc" >&6 | 
|  | 25547 |  | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25548 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
|  | 25549 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25550 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then | 
|  | 25551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25552 | else | 
|  | 25553 | llvm_cv_llvmgcc_sanity="no" | 
|  | 25554 | if test -x "$llvm_cv_llvmgcc" ; then | 
|  | 25555 | cp /dev/null conftest.c | 
|  | 25556 | "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
|  | 25557 | if test $? -eq 0 ; then | 
|  | 25558 | llvm_cv_llvmgcc_sanity="yes" | 
|  | 25559 | fi | 
|  | 25560 | rm conftest.c | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25561 | fi | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25562 | fi | 
|  | 25563 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 | 
|  | 25564 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 | 
|  | 25565 |  | 
|  | 25566 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then | 
|  | 25567 | LLVMGCC="$llvm_cv_llvmgcc" | 
|  | 25568 |  | 
|  | 25569 | llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1` | 
|  | 25570 | LLVMCC1=$llvmcc1path | 
|  | 25571 |  | 
|  | 25572 | llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus` | 
|  | 25573 | LLVMCC1PLUS=$llvmcc1pluspath | 
|  | 25574 |  | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25575 | fi | 
|  | 25576 |  | 
| Brian Gaeke | a240452 | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 25577 | echo "$as_me:$LINENO: checking for shared library suffix" >&5 | 
|  | 25578 | echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 | 
| Reid Spencer | ef538ef | 2004-09-20 03:06:28 +0000 | [diff] [blame] | 25579 | eval "SHLIBEXT=$shrext_cmds" | 
| Brian Gaeke | a240452 | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 25580 | echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 | 
|  | 25581 | echo "${ECHO_T}$SHLIBEXT" >&6 | 
|  | 25582 | SHLIBEXT=$SHLIBEXT | 
|  | 25583 |  | 
|  | 25584 |  | 
|  | 25585 | cat >>confdefs.h <<_ACEOF | 
|  | 25586 | #define SHLIBEXT "$SHLIBEXT" | 
|  | 25587 | _ACEOF | 
|  | 25588 |  | 
|  | 25589 |  | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25590 | # Translate the various configuration directories and other basic | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25591 | # information into substitutions that will end up in Makefile.config.in | 
|  | 25592 | # that these configured values can be used by the makefiles | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25593 | eval LLVM_PREFIX="${prefix}"; | 
|  | 25594 | eval LLVM_BINDIR="${prefix}/bin"; | 
|  | 25595 | eval LLVM_LIBDIR="${prefix}/lib"; | 
|  | 25596 | eval LLVM_DATADIR="${prefix}/data"; | 
|  | 25597 | eval LLVM_DOCSDIR="${prefix}/docs"; | 
|  | 25598 | eval LLVM_ETCDIR="${prefix}/etc"; | 
|  | 25599 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
|  | 25600 | eval LLVM_INFODIR="${prefix}/info"; | 
|  | 25601 | eval LLVM_MANDIR="${prefix}/man"; | 
|  | 25602 | LLVM_CONFIGTIME=`date` | 
|  | 25603 |  | 
|  | 25604 |  | 
|  | 25605 |  | 
|  | 25606 |  | 
|  | 25607 |  | 
|  | 25608 |  | 
|  | 25609 |  | 
|  | 25610 |  | 
|  | 25611 |  | 
|  | 25612 |  | 
|  | 25613 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25614 | # Place the various directores into the config.h file as #defines so that we | 
|  | 25615 | # can know about the installation paths within LLVM. | 
|  | 25616 |  | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25617 | cat >>confdefs.h <<_ACEOF | 
|  | 25618 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
|  | 25619 | _ACEOF | 
|  | 25620 |  | 
|  | 25621 |  | 
|  | 25622 | cat >>confdefs.h <<_ACEOF | 
|  | 25623 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
|  | 25624 | _ACEOF | 
|  | 25625 |  | 
|  | 25626 |  | 
|  | 25627 | cat >>confdefs.h <<_ACEOF | 
|  | 25628 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
|  | 25629 | _ACEOF | 
|  | 25630 |  | 
|  | 25631 |  | 
|  | 25632 | cat >>confdefs.h <<_ACEOF | 
|  | 25633 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
|  | 25634 | _ACEOF | 
|  | 25635 |  | 
|  | 25636 |  | 
|  | 25637 | cat >>confdefs.h <<_ACEOF | 
|  | 25638 | #define LLVM_DATADIR "$LLVM_DOCSDIR" | 
|  | 25639 | _ACEOF | 
|  | 25640 |  | 
|  | 25641 |  | 
|  | 25642 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | 288adf1 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 25643 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25644 | _ACEOF | 
|  | 25645 |  | 
|  | 25646 |  | 
|  | 25647 | cat >>confdefs.h <<_ACEOF | 
|  | 25648 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
|  | 25649 | _ACEOF | 
|  | 25650 |  | 
|  | 25651 |  | 
|  | 25652 | cat >>confdefs.h <<_ACEOF | 
|  | 25653 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
|  | 25654 | _ACEOF | 
|  | 25655 |  | 
|  | 25656 |  | 
|  | 25657 | cat >>confdefs.h <<_ACEOF | 
|  | 25658 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
|  | 25659 | _ACEOF | 
|  | 25660 |  | 
|  | 25661 |  | 
|  | 25662 | cat >>confdefs.h <<_ACEOF | 
|  | 25663 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
|  | 25664 | _ACEOF | 
|  | 25665 |  | 
|  | 25666 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25667 |  | 
|  | 25668 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" | 
|  | 25669 |  | 
|  | 25670 |  | 
|  | 25671 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
|  | 25672 |  | 
|  | 25673 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" | 
|  | 25674 |  | 
|  | 25675 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" | 
|  | 25676 |  | 
|  | 25677 | ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" | 
|  | 25678 |  | 
|  | 25679 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" | 
|  | 25680 |  | 
|  | 25681 |  | 
|  | 25682 | ac_config_files="$ac_config_files Makefile.config" | 
|  | 25683 |  | 
|  | 25684 |  | 
|  | 25685 | ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c" | 
|  | 25686 |  | 
|  | 25687 |  | 
|  | 25688 | ac_config_commands="$ac_config_commands Makefile" | 
|  | 25689 |  | 
|  | 25690 |  | 
|  | 25691 | ac_config_commands="$ac_config_commands Makefile.common" | 
|  | 25692 |  | 
|  | 25693 |  | 
|  | 25694 | ac_config_commands="$ac_config_commands examples/Makefile" | 
|  | 25695 |  | 
|  | 25696 |  | 
|  | 25697 | ac_config_commands="$ac_config_commands lib/Makefile" | 
|  | 25698 |  | 
|  | 25699 |  | 
|  | 25700 | ac_config_commands="$ac_config_commands runtime/Makefile" | 
|  | 25701 |  | 
|  | 25702 |  | 
|  | 25703 | ac_config_commands="$ac_config_commands test/Makefile" | 
|  | 25704 |  | 
|  | 25705 |  | 
|  | 25706 | ac_config_commands="$ac_config_commands test/Makefile.tests" | 
|  | 25707 |  | 
|  | 25708 |  | 
|  | 25709 | ac_config_commands="$ac_config_commands test/QMTest/llvm.py" | 
|  | 25710 |  | 
|  | 25711 |  | 
|  | 25712 | ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" | 
|  | 25713 |  | 
|  | 25714 |  | 
|  | 25715 | ac_config_commands="$ac_config_commands tools/Makefile" | 
|  | 25716 |  | 
|  | 25717 |  | 
|  | 25718 | ac_config_commands="$ac_config_commands tools/Makefile.JIT" | 
|  | 25719 |  | 
|  | 25720 |  | 
|  | 25721 | ac_config_commands="$ac_config_commands utils/Makefile" | 
|  | 25722 |  | 
|  | 25723 |  | 
|  | 25724 | ac_config_commands="$ac_config_commands projects/Makefile" | 
|  | 25725 |  | 
|  | 25726 |  | 
|  | 25727 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25728 | cat >confcache <<\_ACEOF | 
|  | 25729 | # This file is a shell script that caches the results of configure | 
|  | 25730 | # tests run on this system so they can be shared between configure | 
|  | 25731 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 25732 | # It is not useful on other systems.  If it contains results you don't | 
|  | 25733 | # want to keep, you may remove or edit it. | 
|  | 25734 | # | 
|  | 25735 | # config.status only pays attention to the cache file if you give it | 
|  | 25736 | # the --recheck option to rerun configure. | 
|  | 25737 | # | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25738 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25739 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 25740 | # following values. | 
|  | 25741 |  | 
|  | 25742 | _ACEOF | 
|  | 25743 |  | 
|  | 25744 | # The following way of writing the cache mishandles newlines in values, | 
|  | 25745 | # but we know of no workaround that is simple, portable, and efficient. | 
|  | 25746 | # So, don't put newlines in cache variables' values. | 
|  | 25747 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 25748 | # and sets the high bit in the cache file unless we assign to the vars. | 
|  | 25749 | { | 
|  | 25750 | (set) 2>&1 | | 
|  | 25751 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|  | 25752 | *ac_space=\ *) | 
|  | 25753 | # `set' does not quote correctly, so add quotes (double-quote | 
|  | 25754 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
|  | 25755 | sed -n \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25756 | "s/'/'\\\\''/g; | 
|  | 25757 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25758 | ;; | 
|  | 25759 | *) | 
|  | 25760 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|  | 25761 | sed -n \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25762 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25763 | ;; | 
|  | 25764 | esac; | 
|  | 25765 | } | | 
|  | 25766 | sed ' | 
|  | 25767 | t clear | 
|  | 25768 | : clear | 
|  | 25769 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 25770 | t end | 
|  | 25771 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 25772 | : end' >>confcache | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25773 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25774 | if test -w $cache_file; then | 
|  | 25775 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
|  | 25776 | cat confcache >$cache_file | 
|  | 25777 | else | 
|  | 25778 | echo "not updating unwritable cache $cache_file" | 
|  | 25779 | fi | 
|  | 25780 | fi | 
|  | 25781 | rm -f confcache | 
|  | 25782 |  | 
|  | 25783 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 25784 | # Let make expand exec_prefix. | 
|  | 25785 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 25786 |  | 
|  | 25787 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 25788 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
|  | 25789 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 25790 | # (actually we leave an empty line to preserve line numbers). | 
|  | 25791 | if test "x$srcdir" = x.; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25792 | ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25793 | s/:*\$(srcdir):*/:/; | 
|  | 25794 | s/:*\${srcdir}:*/:/; | 
|  | 25795 | s/:*@srcdir@:*/:/; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25796 | s/^\([^=]*=[	 ]*\):*/\1/; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25797 | s/:*$//; | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25798 | s/^[^=]*=[	 ]*$//; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25799 | }' | 
|  | 25800 | fi | 
|  | 25801 |  | 
|  | 25802 | DEFS=-DHAVE_CONFIG_H | 
|  | 25803 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25804 | ac_libobjs= | 
|  | 25805 | ac_ltlibobjs= | 
|  | 25806 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 25807 | # 1. Remove the extension, and $U if already installed. | 
|  | 25808 | ac_i=`echo "$ac_i" | | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25809 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25810 | # 2. Add them. | 
|  | 25811 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
|  | 25812 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
|  | 25813 | done | 
|  | 25814 | LIBOBJS=$ac_libobjs | 
|  | 25815 |  | 
|  | 25816 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 25817 |  | 
|  | 25818 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25819 |  | 
|  | 25820 | : ${CONFIG_STATUS=./config.status} | 
|  | 25821 | ac_clean_files_save=$ac_clean_files | 
|  | 25822 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
|  | 25823 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
|  | 25824 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 25825 | cat >$CONFIG_STATUS <<_ACEOF | 
|  | 25826 | #! $SHELL | 
|  | 25827 | # Generated by $as_me. | 
|  | 25828 | # Run this file to recreate the current configuration. | 
|  | 25829 | # Compiler output produced by configure, useful for debugging | 
|  | 25830 | # configure, is in config.log if it exists. | 
|  | 25831 |  | 
|  | 25832 | debug=false | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25833 | ac_cs_recheck=false | 
|  | 25834 | ac_cs_silent=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25835 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 25836 | _ACEOF | 
|  | 25837 |  | 
|  | 25838 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25839 | ## --------------------- ## | 
|  | 25840 | ## M4sh Initialization.  ## | 
|  | 25841 | ## --------------------- ## | 
|  | 25842 |  | 
|  | 25843 | # Be Bourne compatible | 
|  | 25844 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
|  | 25845 | emulate sh | 
|  | 25846 | NULLCMD=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25847 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
|  | 25848 | # is contrary to our usage.  Disable this feature. | 
|  | 25849 | alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25850 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
|  | 25851 | set -o posix | 
|  | 25852 | fi | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25853 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25854 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25855 | # Support unset when possible. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25856 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25857 | as_unset=unset | 
|  | 25858 | else | 
|  | 25859 | as_unset=false | 
|  | 25860 | fi | 
|  | 25861 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25862 |  | 
|  | 25863 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 25864 | $as_unset ENV MAIL MAILPATH | 
|  | 25865 | PS1='$ ' | 
|  | 25866 | PS2='> ' | 
|  | 25867 | PS4='+ ' | 
|  | 25868 |  | 
|  | 25869 | # NLS nuisances. | 
|  | 25870 | for as_var in \ | 
|  | 25871 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 25872 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 25873 | LC_TELEPHONE LC_TIME | 
|  | 25874 | do | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25875 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25876 | eval $as_var=C; export $as_var | 
|  | 25877 | else | 
|  | 25878 | $as_unset $as_var | 
|  | 25879 | fi | 
|  | 25880 | done | 
|  | 25881 |  | 
|  | 25882 | # Required to use basename. | 
|  | 25883 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 25884 | as_expr=expr | 
|  | 25885 | else | 
|  | 25886 | as_expr=false | 
|  | 25887 | fi | 
|  | 25888 |  | 
|  | 25889 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
|  | 25890 | as_basename=basename | 
|  | 25891 | else | 
|  | 25892 | as_basename=false | 
|  | 25893 | fi | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25894 |  | 
|  | 25895 |  | 
|  | 25896 | # Name of the executable. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25897 | as_me=`$as_basename "$0" || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25898 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 25899 | X"$0" : 'X\(//\)$' \| \ | 
|  | 25900 | X"$0" : 'X\(/\)$' \| \ | 
|  | 25901 | .     : '\(.\)' 2>/dev/null || | 
|  | 25902 | echo X/"$0" | | 
|  | 25903 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
|  | 25904 | /^X\/\(\/\/\)$/{ s//\1/; q; } | 
|  | 25905 | /^X\/\(\/\).*/{ s//\1/; q; } | 
|  | 25906 | s/.*/./; q'` | 
|  | 25907 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25908 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25909 | # PATH needs CR, and LINENO needs CR and PATH. | 
|  | 25910 | # Avoid depending upon Character Ranges. | 
|  | 25911 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 25912 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 25913 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 25914 | as_cr_digits='0123456789' | 
|  | 25915 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
|  | 25916 |  | 
|  | 25917 | # The user is always right. | 
|  | 25918 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25919 | echo "#! /bin/sh" >conf$$.sh | 
|  | 25920 | echo  "exit 0"   >>conf$$.sh | 
|  | 25921 | chmod +x conf$$.sh | 
|  | 25922 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25923 | PATH_SEPARATOR=';' | 
|  | 25924 | else | 
|  | 25925 | PATH_SEPARATOR=: | 
|  | 25926 | fi | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25927 | rm -f conf$$.sh | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25928 | fi | 
|  | 25929 |  | 
|  | 25930 |  | 
|  | 25931 | as_lineno_1=$LINENO | 
|  | 25932 | as_lineno_2=$LINENO | 
|  | 25933 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 25934 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 25935 | test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
|  | 25936 | # Find who we are.  Look in the path if we contain no path at all | 
|  | 25937 | # relative or not. | 
|  | 25938 | case $0 in | 
|  | 25939 | *[\\/]* ) as_myself=$0 ;; | 
|  | 25940 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 25941 | for as_dir in $PATH | 
|  | 25942 | do | 
|  | 25943 | IFS=$as_save_IFS | 
|  | 25944 | test -z "$as_dir" && as_dir=. | 
|  | 25945 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 25946 | done | 
|  | 25947 |  | 
|  | 25948 | ;; | 
|  | 25949 | esac | 
|  | 25950 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 25951 | # in which case we are not to be found in the path. | 
|  | 25952 | if test "x$as_myself" = x; then | 
|  | 25953 | as_myself=$0 | 
|  | 25954 | fi | 
|  | 25955 | if test ! -f "$as_myself"; then | 
|  | 25956 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
|  | 25957 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
|  | 25958 | { (exit 1); exit 1; }; } | 
|  | 25959 | fi | 
|  | 25960 | case $CONFIG_SHELL in | 
|  | 25961 | '') | 
|  | 25962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 25963 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 25964 | do | 
|  | 25965 | IFS=$as_save_IFS | 
|  | 25966 | test -z "$as_dir" && as_dir=. | 
|  | 25967 | for as_base in sh bash ksh sh5; do | 
|  | 25968 | case $as_dir in | 
|  | 25969 | /*) | 
|  | 25970 | if ("$as_dir/$as_base" -c ' | 
|  | 25971 | as_lineno_1=$LINENO | 
|  | 25972 | as_lineno_2=$LINENO | 
|  | 25973 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 25974 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 25975 | test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25976 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
|  | 25977 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25978 | CONFIG_SHELL=$as_dir/$as_base | 
|  | 25979 | export CONFIG_SHELL | 
|  | 25980 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
|  | 25981 | fi;; | 
|  | 25982 | esac | 
|  | 25983 | done | 
|  | 25984 | done | 
|  | 25985 | ;; | 
|  | 25986 | esac | 
|  | 25987 |  | 
|  | 25988 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 25989 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 25990 | # line-number line before each line; the second 'sed' does the real | 
|  | 25991 | # work.  The second script uses 'N' to pair each line-number line | 
|  | 25992 | # with the numbered line, and appends trailing '-' during | 
|  | 25993 | # substitution so that $LINENO is not a special case at line end. | 
|  | 25994 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 25995 | # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
|  | 25996 | sed '=' <$as_myself | | 
|  | 25997 | sed ' | 
|  | 25998 | N | 
|  | 25999 | s,$,-, | 
|  | 26000 | : loop | 
|  | 26001 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
|  | 26002 | t loop | 
|  | 26003 | s,-$,, | 
|  | 26004 | s,^['$as_cr_digits']*\n,, | 
|  | 26005 | ' >$as_me.lineno && | 
|  | 26006 | chmod +x $as_me.lineno || | 
|  | 26007 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
|  | 26008 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
|  | 26009 | { (exit 1); exit 1; }; } | 
|  | 26010 |  | 
|  | 26011 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 26012 | # (the dirname of $[0] is not the place where we might find the | 
|  | 26013 | # original and so on.  Autoconf is especially sensible to this). | 
|  | 26014 | . ./$as_me.lineno | 
|  | 26015 | # Exit status is that of the last command. | 
|  | 26016 | exit | 
|  | 26017 | } | 
|  | 26018 |  | 
|  | 26019 |  | 
|  | 26020 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
|  | 26021 | *c*,-n*) ECHO_N= ECHO_C=' | 
|  | 26022 | ' ECHO_T='	' ;; | 
|  | 26023 | *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
|  | 26024 | *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
|  | 26025 | esac | 
|  | 26026 |  | 
|  | 26027 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 26028 | as_expr=expr | 
|  | 26029 | else | 
|  | 26030 | as_expr=false | 
|  | 26031 | fi | 
|  | 26032 |  | 
|  | 26033 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 26034 | echo >conf$$.file | 
|  | 26035 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 26036 | # We could just check for DJGPP; but this test a) works b) is more generic | 
|  | 26037 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
|  | 26038 | if test -f conf$$.exe; then | 
|  | 26039 | # Don't use ln at all; we don't have any links | 
|  | 26040 | as_ln_s='cp -p' | 
|  | 26041 | else | 
|  | 26042 | as_ln_s='ln -s' | 
|  | 26043 | fi | 
|  | 26044 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 26045 | as_ln_s=ln | 
|  | 26046 | else | 
|  | 26047 | as_ln_s='cp -p' | 
|  | 26048 | fi | 
|  | 26049 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 26050 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26051 | if mkdir -p . 2>/dev/null; then | 
|  | 26052 | as_mkdir_p=: | 
|  | 26053 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26054 | test -d ./-p && rmdir ./-p | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26055 | as_mkdir_p=false | 
|  | 26056 | fi | 
|  | 26057 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26058 | as_executable_p="test -f" | 
|  | 26059 |  | 
|  | 26060 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26061 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26062 |  | 
|  | 26063 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26064 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26065 |  | 
|  | 26066 |  | 
|  | 26067 | # IFS | 
|  | 26068 | # We need space, tab and new line, in precisely that order. | 
|  | 26069 | as_nl=' | 
|  | 26070 | ' | 
|  | 26071 | IFS=" 	$as_nl" | 
|  | 26072 |  | 
|  | 26073 | # CDPATH. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26074 | $as_unset CDPATH | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26075 |  | 
|  | 26076 | exec 6>&1 | 
|  | 26077 |  | 
|  | 26078 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
|  | 26079 | # report actual input values of CONFIG_FILES etc. instead of their | 
|  | 26080 | # values after options handling.  Logging --version etc. is OK. | 
|  | 26081 | exec 5>>config.log | 
|  | 26082 | { | 
|  | 26083 | echo | 
|  | 26084 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 26085 | ## Running $as_me. ## | 
|  | 26086 | _ASBOX | 
|  | 26087 | } >&5 | 
|  | 26088 | cat >&5 <<_CSEOF | 
|  | 26089 |  | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 26090 | This file was extended by llvm $as_me 1.4, which was | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26091 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26092 |  | 
|  | 26093 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 26094 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 26095 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 26096 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 26097 | $ $0 $@ | 
|  | 26098 |  | 
|  | 26099 | _CSEOF | 
|  | 26100 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
|  | 26101 | echo >&5 | 
|  | 26102 | _ACEOF | 
|  | 26103 |  | 
|  | 26104 | # Files that config.status was made for. | 
|  | 26105 | if test -n "$ac_config_files"; then | 
|  | 26106 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
|  | 26107 | fi | 
|  | 26108 |  | 
|  | 26109 | if test -n "$ac_config_headers"; then | 
|  | 26110 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
|  | 26111 | fi | 
|  | 26112 |  | 
|  | 26113 | if test -n "$ac_config_links"; then | 
|  | 26114 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
|  | 26115 | fi | 
|  | 26116 |  | 
|  | 26117 | if test -n "$ac_config_commands"; then | 
|  | 26118 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
|  | 26119 | fi | 
|  | 26120 |  | 
|  | 26121 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26122 |  | 
|  | 26123 | ac_cs_usage="\ | 
|  | 26124 | \`$as_me' instantiates files from templates according to the | 
|  | 26125 | current configuration. | 
|  | 26126 |  | 
|  | 26127 | Usage: $0 [OPTIONS] [FILE]... | 
|  | 26128 |  | 
|  | 26129 | -h, --help       print this help, then exit | 
|  | 26130 | -V, --version    print version number, then exit | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26131 | -q, --quiet      do not print progress messages | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26132 | -d, --debug      don't remove temporary files | 
|  | 26133 | --recheck    update $as_me by reconfiguring in the same conditions | 
|  | 26134 | --file=FILE[:TEMPLATE] | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26135 | instantiate the configuration file FILE | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26136 | --header=FILE[:TEMPLATE] | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26137 | instantiate the configuration header FILE | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26138 |  | 
|  | 26139 | Configuration files: | 
|  | 26140 | $config_files | 
|  | 26141 |  | 
|  | 26142 | Configuration headers: | 
|  | 26143 | $config_headers | 
|  | 26144 |  | 
| Reid Spencer | efc94f5 | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26145 | Configuration links: | 
|  | 26146 | $config_links | 
|  | 26147 |  | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26148 | Configuration commands: | 
|  | 26149 | $config_commands | 
|  | 26150 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26151 | Report bugs to <bug-autoconf@gnu.org>." | 
|  | 26152 | _ACEOF | 
|  | 26153 |  | 
|  | 26154 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 26155 | ac_cs_version="\\ | 
| Reid Spencer | f967653 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 26156 | llvm config.status 1.4 | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26157 | configured by $0, generated by GNU Autoconf 2.59, | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26158 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
|  | 26159 |  | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26160 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26161 | This config.status script is free software; the Free Software Foundation | 
|  | 26162 | gives unlimited permission to copy, distribute and modify it." | 
|  | 26163 | srcdir=$srcdir | 
|  | 26164 | INSTALL="$INSTALL" | 
|  | 26165 | _ACEOF | 
|  | 26166 |  | 
|  | 26167 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26168 | # If no file are specified by the user, then we need to provide default | 
|  | 26169 | # value.  By we need to know if files were specified by the user. | 
|  | 26170 | ac_need_defaults=: | 
|  | 26171 | while test $# != 0 | 
|  | 26172 | do | 
|  | 26173 | case $1 in | 
|  | 26174 | --*=*) | 
|  | 26175 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
|  | 26176 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26177 | ac_shift=: | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26178 | ;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26179 | -*) | 
|  | 26180 | ac_option=$1 | 
|  | 26181 | ac_optarg=$2 | 
|  | 26182 | ac_shift=shift | 
|  | 26183 | ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26184 | *) # This is not an option, so the user has probably given explicit | 
|  | 26185 | # arguments. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26186 | ac_option=$1 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26187 | ac_need_defaults=false;; | 
|  | 26188 | esac | 
|  | 26189 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26190 | case $ac_option in | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26191 | # Handling of the options. | 
|  | 26192 | _ACEOF | 
| John Criswell | 9f60a13 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 26193 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26194 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 26195 | ac_cs_recheck=: ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26196 | --version | --vers* | -V ) | 
|  | 26197 | echo "$ac_cs_version"; exit 0 ;; | 
|  | 26198 | --he | --h) | 
|  | 26199 | # Conflict between --help and --header | 
|  | 26200 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
|  | 26201 | Try \`$0 --help' for more information." >&5 | 
|  | 26202 | echo "$as_me: error: ambiguous option: $1 | 
|  | 26203 | Try \`$0 --help' for more information." >&2;} | 
|  | 26204 | { (exit 1); exit 1; }; };; | 
|  | 26205 | --help | --hel | -h ) | 
|  | 26206 | echo "$ac_cs_usage"; exit 0 ;; | 
|  | 26207 | --debug | --d* | -d ) | 
|  | 26208 | debug=: ;; | 
|  | 26209 | --file | --fil | --fi | --f ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26210 | $ac_shift | 
|  | 26211 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26212 | ac_need_defaults=false;; | 
|  | 26213 | --header | --heade | --head | --hea ) | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26214 | $ac_shift | 
|  | 26215 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26216 | ac_need_defaults=false;; | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26217 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 26218 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 26219 | ac_cs_silent=: ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26220 |  | 
|  | 26221 | # This is an error. | 
|  | 26222 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
|  | 26223 | Try \`$0 --help' for more information." >&5 | 
|  | 26224 | echo "$as_me: error: unrecognized option: $1 | 
|  | 26225 | Try \`$0 --help' for more information." >&2;} | 
|  | 26226 | { (exit 1); exit 1; }; } ;; | 
|  | 26227 |  | 
|  | 26228 | *) ac_config_targets="$ac_config_targets $1" ;; | 
|  | 26229 |  | 
|  | 26230 | esac | 
|  | 26231 | shift | 
|  | 26232 | done | 
|  | 26233 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26234 | ac_configure_extra_args= | 
|  | 26235 |  | 
|  | 26236 | if $ac_cs_silent; then | 
|  | 26237 | exec 6>/dev/null | 
|  | 26238 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 26239 | fi | 
|  | 26240 |  | 
|  | 26241 | _ACEOF | 
|  | 26242 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 26243 | if \$ac_cs_recheck; then | 
|  | 26244 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
|  | 26245 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 26246 | fi | 
|  | 26247 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26248 | _ACEOF | 
|  | 26249 |  | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26250 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 26251 | # | 
|  | 26252 | # INIT-COMMANDS section. | 
|  | 26253 | # | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26254 |  | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26255 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` | 
|  | 26256 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Reid Spencer | b1a014f | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 26257 | ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26258 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26259 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26260 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` | 
|  | 26261 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| John Criswell | e078b43 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 26262 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` | 
|  | 26263 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26264 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Misha Brukman | c04ade7 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 26265 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT` | 
| Brian Gaeke | 16448fc | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 26266 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26267 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26268 |  | 
|  | 26269 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26270 |  | 
|  | 26271 |  | 
|  | 26272 |  | 
|  | 26273 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26274 | for ac_config_target in $ac_config_targets | 
|  | 26275 | do | 
|  | 26276 | case "$ac_config_target" in | 
|  | 26277 | # Handling of arguments. | 
|  | 26278 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | a61edd8 | 2004-11-23 23:48:45 +0000 | [diff] [blame] | 26279 | "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;; | 
|  | 26280 | "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;; | 
|  | 26281 | "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;; | 
|  | 26282 | "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;; | 
| Reid Spencer | 3d50017 | 2004-11-25 06:03:14 +0000 | [diff] [blame^] | 26283 | "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26284 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
|  | 26285 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| Reid Spencer | b1a014f | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 26286 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26287 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26288 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26289 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
|  | 26290 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | e078b43 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 26291 | "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; | 
|  | 26292 | "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26293 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Misha Brukman | c04ade7 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 26294 | "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;; | 
| Brian Gaeke | 16448fc | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 26295 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26296 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Reid Spencer | 7c16caa | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 26297 | "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; | 
| John Criswell | 3ed86d7 | 2004-09-24 13:28:51 +0000 | [diff] [blame] | 26298 | "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; | 
| John Criswell | 08e7226 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 26299 | "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; | 
|  | 26300 | "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; | 
| John Criswell | 71c8d5e | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 26301 | "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; | 
|  | 26302 | "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26303 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
|  | 26304 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
|  | 26305 | { (exit 1); exit 1; }; };; | 
|  | 26306 | esac | 
|  | 26307 | done | 
|  | 26308 |  | 
|  | 26309 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 26310 | # then the envvar interface is used.  Set only those that are not. | 
|  | 26311 | # We use the long form for the default assignment because of an extremely | 
|  | 26312 | # bizarre bug on SunOS 4.1.3. | 
|  | 26313 | if $ac_need_defaults; then | 
|  | 26314 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 26315 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| Reid Spencer | efc94f5 | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26316 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26317 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26318 | fi | 
|  | 26319 |  | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26320 | # Have a temporary directory for convenience.  Make it in the build tree | 
|  | 26321 | # simply because there is no reason to put it here, and in addition, | 
|  | 26322 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26323 | # Create a temporary directory, and hook for its removal unless debugging. | 
|  | 26324 | $debug || | 
|  | 26325 | { | 
|  | 26326 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
|  | 26327 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
|  | 26328 | } | 
|  | 26329 |  | 
|  | 26330 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26331 |  | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26332 | { | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26333 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26334 | test -n "$tmp" && test -d "$tmp" | 
|  | 26335 | }  || | 
|  | 26336 | { | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26337 | tmp=./confstat$$-$RANDOM | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26338 | (umask 077 && mkdir $tmp) | 
|  | 26339 | } || | 
|  | 26340 | { | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26341 | echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26342 | { (exit 1); exit 1; } | 
|  | 26343 | } | 
|  | 26344 |  | 
|  | 26345 | _ACEOF | 
|  | 26346 |  | 
|  | 26347 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 26348 |  | 
|  | 26349 | # | 
|  | 26350 | # CONFIG_FILES section. | 
|  | 26351 | # | 
|  | 26352 |  | 
|  | 26353 | # No need to generate the scripts if there are no CONFIG_FILES. | 
|  | 26354 | # This happens for instance when ./config.status config.h | 
|  | 26355 | if test -n "\$CONFIG_FILES"; then | 
|  | 26356 | # Protect against being on the right side of a sed subst in config.status. | 
|  | 26357 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
|  | 26358 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
|  | 26359 | s,@SHELL@,$SHELL,;t t | 
|  | 26360 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
|  | 26361 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
|  | 26362 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
|  | 26363 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
|  | 26364 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
|  | 26365 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
|  | 26366 | s,@exec_prefix@,$exec_prefix,;t t | 
|  | 26367 | s,@prefix@,$prefix,;t t | 
|  | 26368 | s,@program_transform_name@,$program_transform_name,;t t | 
|  | 26369 | s,@bindir@,$bindir,;t t | 
|  | 26370 | s,@sbindir@,$sbindir,;t t | 
|  | 26371 | s,@libexecdir@,$libexecdir,;t t | 
|  | 26372 | s,@datadir@,$datadir,;t t | 
|  | 26373 | s,@sysconfdir@,$sysconfdir,;t t | 
|  | 26374 | s,@sharedstatedir@,$sharedstatedir,;t t | 
|  | 26375 | s,@localstatedir@,$localstatedir,;t t | 
|  | 26376 | s,@libdir@,$libdir,;t t | 
|  | 26377 | s,@includedir@,$includedir,;t t | 
|  | 26378 | s,@oldincludedir@,$oldincludedir,;t t | 
|  | 26379 | s,@infodir@,$infodir,;t t | 
|  | 26380 | s,@mandir@,$mandir,;t t | 
|  | 26381 | s,@build_alias@,$build_alias,;t t | 
|  | 26382 | s,@host_alias@,$host_alias,;t t | 
|  | 26383 | s,@target_alias@,$target_alias,;t t | 
|  | 26384 | s,@DEFS@,$DEFS,;t t | 
|  | 26385 | s,@ECHO_C@,$ECHO_C,;t t | 
|  | 26386 | s,@ECHO_N@,$ECHO_N,;t t | 
|  | 26387 | s,@ECHO_T@,$ECHO_T,;t t | 
|  | 26388 | s,@LIBS@,$LIBS,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26389 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 26390 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26391 | s,@build@,$build,;t t | 
|  | 26392 | s,@build_cpu@,$build_cpu,;t t | 
|  | 26393 | s,@build_vendor@,$build_vendor,;t t | 
|  | 26394 | s,@build_os@,$build_os,;t t | 
|  | 26395 | s,@host@,$host,;t t | 
|  | 26396 | s,@host_cpu@,$host_cpu,;t t | 
|  | 26397 | s,@host_vendor@,$host_vendor,;t t | 
|  | 26398 | s,@host_os@,$host_os,;t t | 
|  | 26399 | s,@target@,$target,;t t | 
|  | 26400 | s,@target_cpu@,$target_cpu,;t t | 
|  | 26401 | s,@target_vendor@,$target_vendor,;t t | 
|  | 26402 | s,@target_os@,$target_os,;t t | 
|  | 26403 | s,@OS@,$OS,;t t | 
| John Criswell | 29eafac | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 26404 | s,@ARCH@,$ARCH,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26405 | s,@ENDIAN@,$ENDIAN,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26406 | s,@CC@,$CC,;t t | 
|  | 26407 | s,@CFLAGS@,$CFLAGS,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26408 | s,@LDFLAGS@,$LDFLAGS,;t t | 
|  | 26409 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26410 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26411 | s,@EXEEXT@,$EXEEXT,;t t | 
|  | 26412 | s,@OBJEXT@,$OBJEXT,;t t | 
|  | 26413 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
|  | 26414 | s,@JIT@,$JIT,;t t | 
|  | 26415 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26416 | s,@CPP@,$CPP,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26417 | s,@CXX@,$CXX,;t t | 
|  | 26418 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
|  | 26419 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26420 | s,@LEX@,$LEX,;t t | 
|  | 26421 | s,@LEXLIB@,$LEXLIB,;t t | 
|  | 26422 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
| Reid Spencer | 1a2f043 | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 26423 | s,@FLEX@,$FLEX,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26424 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 07e4621 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 26425 | s,@BISON@,$BISON,;t t | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26426 | s,@EGREP@,$EGREP,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26427 | s,@LN_S@,$LN_S,;t t | 
|  | 26428 | s,@ECHO@,$ECHO,;t t | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26429 | s,@AR@,$AR,;t t | 
|  | 26430 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26431 | s,@RANLIB@,$RANLIB,;t t | 
|  | 26432 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
|  | 26433 | s,@STRIP@,$STRIP,;t t | 
|  | 26434 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
| John Criswell | ae648fa | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26435 | s,@CXXCPP@,$CXXCPP,;t t | 
|  | 26436 | s,@F77@,$F77,;t t | 
|  | 26437 | s,@FFLAGS@,$FFLAGS,;t t | 
|  | 26438 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26439 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26440 | s,@ifGNUmake@,$ifGNUmake,;t t | 
|  | 26441 | s,@FIND@,$FIND,;t t | 
|  | 26442 | s,@GREP@,$GREP,;t t | 
|  | 26443 | s,@MKDIR@,$MKDIR,;t t | 
|  | 26444 | s,@MV@,$MV,;t t | 
|  | 26445 | s,@RM@,$RM,;t t | 
|  | 26446 | s,@SED@,$SED,;t t | 
| Reid Spencer | 8d0d005 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 26447 | s,@TAR@,$TAR,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26448 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
|  | 26449 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
|  | 26450 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26451 | s,@DOT@,$DOT,;t t | 
|  | 26452 | s,@ETAGS@,$ETAGS,;t t | 
| John Criswell | 6a47a97 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 26453 | s,@PYTHON@,$PYTHON,;t t | 
|  | 26454 | s,@QMTEST@,$QMTEST,;t t | 
| Reid Spencer | 6bf36bd | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 26455 | s,@RUNTEST@,$RUNTEST,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26456 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t | 
| Reid Spencer | 4e181e7 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 26457 | s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t | 
|  | 26458 | s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26459 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26460 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26461 | s,@LLVMGCC@,$LLVMGCC,;t t | 
| Brian Gaeke | 6073c44 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 26462 | s,@LLVMCC1@,$LLVMCC1,;t t | 
|  | 26463 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t | 
| Brian Gaeke | a240452 | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 26464 | s,@SHLIBEXT@,$SHLIBEXT,;t t | 
| Reid Spencer | 4d5c2a9 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 26465 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t | 
|  | 26466 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t | 
|  | 26467 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t | 
|  | 26468 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t | 
|  | 26469 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t | 
|  | 26470 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t | 
|  | 26471 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t | 
|  | 26472 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t | 
|  | 26473 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t | 
|  | 26474 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t | 
| Brian Gaeke | 2abe7ae | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 26475 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26476 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26477 | CEOF | 
|  | 26478 |  | 
|  | 26479 | _ACEOF | 
|  | 26480 |  | 
|  | 26481 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26482 | # Split the substitutions into bite-sized pieces for seds with | 
|  | 26483 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|  | 26484 | ac_max_sed_lines=48 | 
|  | 26485 | ac_sed_frag=1 # Number of current file. | 
|  | 26486 | ac_beg=1 # First line for current file. | 
|  | 26487 | ac_end=$ac_max_sed_lines # Line after last line for current file. | 
|  | 26488 | ac_more_lines=: | 
|  | 26489 | ac_sed_cmds= | 
|  | 26490 | while $ac_more_lines; do | 
|  | 26491 | if test $ac_beg -gt 1; then | 
|  | 26492 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
|  | 26493 | else | 
|  | 26494 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
|  | 26495 | fi | 
|  | 26496 | if test ! -s $tmp/subs.frag; then | 
|  | 26497 | ac_more_lines=false | 
|  | 26498 | else | 
|  | 26499 | # The purpose of the label and of the branching condition is to | 
|  | 26500 | # speed up the sed processing (if there are no `@' at all, there | 
|  | 26501 | # is no need to browse any of the substitutions). | 
|  | 26502 | # These are the two extra sed commands mentioned above. | 
|  | 26503 | (echo ':t | 
|  | 26504 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
|  | 26505 | if test -z "$ac_sed_cmds"; then | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26506 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26507 | else | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26508 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26509 | fi | 
|  | 26510 | ac_sed_frag=`expr $ac_sed_frag + 1` | 
|  | 26511 | ac_beg=$ac_end | 
|  | 26512 | ac_end=`expr $ac_end + $ac_max_sed_lines` | 
|  | 26513 | fi | 
|  | 26514 | done | 
|  | 26515 | if test -z "$ac_sed_cmds"; then | 
|  | 26516 | ac_sed_cmds=cat | 
|  | 26517 | fi | 
|  | 26518 | fi # test -n "$CONFIG_FILES" | 
|  | 26519 |  | 
|  | 26520 | _ACEOF | 
|  | 26521 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26522 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
|  | 26523 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|  | 26524 | case $ac_file in | 
|  | 26525 | - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26526 | cat >$tmp/stdin | 
|  | 26527 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 26528 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26529 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26530 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26531 | * )   ac_file_in=$ac_file.in ;; | 
|  | 26532 | esac | 
|  | 26533 |  | 
|  | 26534 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
|  | 26535 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
|  | 26536 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26537 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 26538 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 26539 | X"$ac_file" : 'X\(/\)' \| \ | 
|  | 26540 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26541 | echo X"$ac_file" | | 
|  | 26542 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 26543 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 26544 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 26545 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 26546 | s/.*/./; q'` | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26547 | { if $as_mkdir_p; then | 
|  | 26548 | mkdir -p "$ac_dir" | 
|  | 26549 | else | 
|  | 26550 | as_dir="$ac_dir" | 
|  | 26551 | as_dirs= | 
|  | 26552 | while test ! -d "$as_dir"; do | 
|  | 26553 | as_dirs="$as_dir $as_dirs" | 
|  | 26554 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 26555 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26556 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 26557 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 26558 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 26559 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26560 | echo X"$as_dir" | | 
|  | 26561 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 26562 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 26563 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 26564 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 26565 | s/.*/./; q'` | 
|  | 26566 | done | 
|  | 26567 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 26568 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 26569 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 26570 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26571 |  | 
|  | 26572 | ac_builddir=. | 
|  | 26573 |  | 
|  | 26574 | if test "$ac_dir" != .; then | 
|  | 26575 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 26576 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 26577 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 26578 | else | 
|  | 26579 | ac_dir_suffix= ac_top_builddir= | 
|  | 26580 | fi | 
|  | 26581 |  | 
|  | 26582 | case $srcdir in | 
|  | 26583 | .)  # No --srcdir option.  We are building in place. | 
|  | 26584 | ac_srcdir=. | 
|  | 26585 | if test -z "$ac_top_builddir"; then | 
|  | 26586 | ac_top_srcdir=. | 
|  | 26587 | else | 
|  | 26588 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 26589 | fi ;; | 
|  | 26590 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 26591 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 26592 | ac_top_srcdir=$srcdir ;; | 
|  | 26593 | *) # Relative path. | 
|  | 26594 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 26595 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 26596 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26597 |  | 
|  | 26598 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 26599 | # the directories may not exist. | 
|  | 26600 | case `pwd` in | 
|  | 26601 | .) ac_abs_builddir="$ac_dir";; | 
|  | 26602 | *) | 
|  | 26603 | case "$ac_dir" in | 
|  | 26604 | .) ac_abs_builddir=`pwd`;; | 
|  | 26605 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 26606 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 26607 | esac;; | 
|  | 26608 | esac | 
|  | 26609 | case $ac_abs_builddir in | 
|  | 26610 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 26611 | *) | 
|  | 26612 | case ${ac_top_builddir}. in | 
|  | 26613 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 26614 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 26615 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 26616 | esac;; | 
|  | 26617 | esac | 
|  | 26618 | case $ac_abs_builddir in | 
|  | 26619 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 26620 | *) | 
|  | 26621 | case $ac_srcdir in | 
|  | 26622 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 26623 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 26624 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 26625 | esac;; | 
|  | 26626 | esac | 
|  | 26627 | case $ac_abs_builddir in | 
|  | 26628 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 26629 | *) | 
|  | 26630 | case $ac_top_srcdir in | 
|  | 26631 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 26632 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 26633 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 26634 | esac;; | 
|  | 26635 | esac | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26636 |  | 
|  | 26637 |  | 
|  | 26638 | case $INSTALL in | 
|  | 26639 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
|  | 26640 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
|  | 26641 | esac | 
|  | 26642 |  | 
|  | 26643 | if test x"$ac_file" != x-; then | 
|  | 26644 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 26645 | echo "$as_me: creating $ac_file" >&6;} | 
|  | 26646 | rm -f "$ac_file" | 
|  | 26647 | fi | 
|  | 26648 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 26649 | # use $as_me), people would be surprised to read: | 
|  | 26650 | #    /* config.h.  Generated by config.status.  */ | 
|  | 26651 | if test x"$ac_file" = x-; then | 
|  | 26652 | configure_input= | 
|  | 26653 | else | 
|  | 26654 | configure_input="$ac_file.  " | 
|  | 26655 | fi | 
|  | 26656 | configure_input=$configure_input"Generated from `echo $ac_file_in | | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26657 | sed 's,.*/,,'` by configure." | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26658 |  | 
|  | 26659 | # First look for the input files in the build tree, otherwise in the | 
|  | 26660 | # src tree. | 
|  | 26661 | ac_file_inputs=`IFS=: | 
|  | 26662 | for f in $ac_file_in; do | 
|  | 26663 | case $f in | 
|  | 26664 | -) echo $tmp/stdin ;; | 
|  | 26665 | [\\/$]*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26666 | # Absolute (can't be DOS-style, as IFS=:) | 
|  | 26667 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26668 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 26669 | { (exit 1); exit 1; }; } | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26670 | echo "$f";; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26671 | *) # Relative | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26672 | if test -f "$f"; then | 
|  | 26673 | # Build tree | 
|  | 26674 | echo "$f" | 
|  | 26675 | elif test -f "$srcdir/$f"; then | 
|  | 26676 | # Source tree | 
|  | 26677 | echo "$srcdir/$f" | 
|  | 26678 | else | 
|  | 26679 | # /dev/null tree | 
|  | 26680 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26681 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 26682 | { (exit 1); exit 1; }; } | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26683 | fi;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26684 | esac | 
|  | 26685 | done` || { (exit 1); exit 1; } | 
|  | 26686 | _ACEOF | 
|  | 26687 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 26688 | sed "$ac_vpsub | 
|  | 26689 | $extrasub | 
|  | 26690 | _ACEOF | 
|  | 26691 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26692 | :t | 
|  | 26693 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
|  | 26694 | s,@configure_input@,$configure_input,;t t | 
|  | 26695 | s,@srcdir@,$ac_srcdir,;t t | 
|  | 26696 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
|  | 26697 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
|  | 26698 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
|  | 26699 | s,@builddir@,$ac_builddir,;t t | 
|  | 26700 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
|  | 26701 | s,@top_builddir@,$ac_top_builddir,;t t | 
|  | 26702 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
|  | 26703 | s,@INSTALL@,$ac_INSTALL,;t t | 
|  | 26704 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
|  | 26705 | rm -f $tmp/stdin | 
|  | 26706 | if test x"$ac_file" != x-; then | 
|  | 26707 | mv $tmp/out $ac_file | 
|  | 26708 | else | 
|  | 26709 | cat $tmp/out | 
|  | 26710 | rm -f $tmp/out | 
|  | 26711 | fi | 
|  | 26712 |  | 
|  | 26713 | done | 
|  | 26714 | _ACEOF | 
|  | 26715 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26716 |  | 
|  | 26717 | # | 
|  | 26718 | # CONFIG_HEADER section. | 
|  | 26719 | # | 
|  | 26720 |  | 
|  | 26721 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
|  | 26722 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
|  | 26723 | # | 
|  | 26724 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26725 | ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)' | 
|  | 26726 | ac_dB='[	 ].*$,\1#\2' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26727 | ac_dC=' ' | 
|  | 26728 | ac_dD=',;t' | 
|  | 26729 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26730 | ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)' | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26731 | ac_uB='$,\1#\2define\3' | 
|  | 26732 | ac_uC=' ' | 
|  | 26733 | ac_uD=',;t' | 
|  | 26734 |  | 
|  | 26735 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
|  | 26736 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|  | 26737 | case $ac_file in | 
|  | 26738 | - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26739 | cat >$tmp/stdin | 
|  | 26740 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 26741 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26742 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26743 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26744 | * )   ac_file_in=$ac_file.in ;; | 
|  | 26745 | esac | 
|  | 26746 |  | 
|  | 26747 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 26748 | echo "$as_me: creating $ac_file" >&6;} | 
|  | 26749 |  | 
|  | 26750 | # First look for the input files in the build tree, otherwise in the | 
|  | 26751 | # src tree. | 
|  | 26752 | ac_file_inputs=`IFS=: | 
|  | 26753 | for f in $ac_file_in; do | 
|  | 26754 | case $f in | 
|  | 26755 | -) echo $tmp/stdin ;; | 
|  | 26756 | [\\/$]*) | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26757 | # Absolute (can't be DOS-style, as IFS=:) | 
|  | 26758 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26759 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 26760 | { (exit 1); exit 1; }; } | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26761 | # Do quote $f, to prevent DOS paths from being IFS'd. | 
|  | 26762 | echo "$f";; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26763 | *) # Relative | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26764 | if test -f "$f"; then | 
|  | 26765 | # Build tree | 
|  | 26766 | echo "$f" | 
|  | 26767 | elif test -f "$srcdir/$f"; then | 
|  | 26768 | # Source tree | 
|  | 26769 | echo "$srcdir/$f" | 
|  | 26770 | else | 
|  | 26771 | # /dev/null tree | 
|  | 26772 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26773 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 26774 | { (exit 1); exit 1; }; } | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26775 | fi;; | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26776 | esac | 
|  | 26777 | done` || { (exit 1); exit 1; } | 
|  | 26778 | # Remove the trailing spaces. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26779 | sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26780 |  | 
|  | 26781 | _ACEOF | 
|  | 26782 |  | 
|  | 26783 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
|  | 26784 | # `conftest.undefs', that substitutes the proper values into | 
|  | 26785 | # config.h.in to produce config.h.  The first handles `#define' | 
|  | 26786 | # templates, and the second `#undef' templates. | 
|  | 26787 | # And first: Protect against being on the right side of a sed subst in | 
|  | 26788 | # config.status.  Protect against being in an unquoted here document | 
|  | 26789 | # in config.status. | 
|  | 26790 | rm -f conftest.defines conftest.undefs | 
|  | 26791 | # Using a here document instead of a string reduces the quoting nightmare. | 
|  | 26792 | # Putting comments in sed scripts is not portable. | 
|  | 26793 | # | 
|  | 26794 | # `end' is used to avoid that the second main sed command (meant for | 
|  | 26795 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
|  | 26796 | # See the Autoconf documentation for `clear'. | 
|  | 26797 | cat >confdef2sed.sed <<\_ACEOF | 
|  | 26798 | s/[\\&,]/\\&/g | 
|  | 26799 | s,[\\$`],\\&,g | 
|  | 26800 | t clear | 
|  | 26801 | : clear | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26802 | s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26803 | t end | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26804 | s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26805 | : end | 
|  | 26806 | _ACEOF | 
|  | 26807 | # If some macros were called several times there might be several times | 
|  | 26808 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
|  | 26809 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
|  | 26810 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
|  | 26811 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
|  | 26812 | rm -f confdef2sed.sed | 
|  | 26813 |  | 
|  | 26814 | # This sed command replaces #undef with comments.  This is necessary, for | 
|  | 26815 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 26816 | # on some systems where configure will not decide to define it. | 
|  | 26817 | cat >>conftest.undefs <<\_ACEOF | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26818 | s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26819 | _ACEOF | 
|  | 26820 |  | 
|  | 26821 | # Break up conftest.defines because some shells have a limit on the size | 
|  | 26822 | # of here documents, and old seds have small limits too (100 cmds). | 
|  | 26823 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26824 | echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26825 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
|  | 26826 | echo '  :' >>$CONFIG_STATUS | 
|  | 26827 | rm -f conftest.tail | 
|  | 26828 | while grep . conftest.defines >/dev/null | 
|  | 26829 | do | 
|  | 26830 | # Write a limited-size here document to $tmp/defines.sed. | 
|  | 26831 | echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
|  | 26832 | # Speed up: don't consider the non `#define' lines. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26833 | echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26834 | # Work around the forget-to-reset-the-flag bug. | 
|  | 26835 | echo 't clr' >>$CONFIG_STATUS | 
|  | 26836 | echo ': clr' >>$CONFIG_STATUS | 
|  | 26837 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
|  | 26838 | echo 'CEOF | 
|  | 26839 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
|  | 26840 | rm -f $tmp/in | 
|  | 26841 | mv $tmp/out $tmp/in | 
|  | 26842 | ' >>$CONFIG_STATUS | 
|  | 26843 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
|  | 26844 | rm -f conftest.defines | 
|  | 26845 | mv conftest.tail conftest.defines | 
|  | 26846 | done | 
|  | 26847 | rm -f conftest.defines | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26848 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26849 | echo >>$CONFIG_STATUS | 
|  | 26850 |  | 
|  | 26851 | # Break up conftest.undefs because some shells have a limit on the size | 
|  | 26852 | # of here documents, and old seds have small limits too (100 cmds). | 
|  | 26853 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
|  | 26854 | rm -f conftest.tail | 
|  | 26855 | while grep . conftest.undefs >/dev/null | 
|  | 26856 | do | 
|  | 26857 | # Write a limited-size here document to $tmp/undefs.sed. | 
|  | 26858 | echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
|  | 26859 | # Speed up: don't consider the non `#undef' | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26860 | echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26861 | # Work around the forget-to-reset-the-flag bug. | 
|  | 26862 | echo 't clr' >>$CONFIG_STATUS | 
|  | 26863 | echo ': clr' >>$CONFIG_STATUS | 
|  | 26864 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
|  | 26865 | echo 'CEOF | 
|  | 26866 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
|  | 26867 | rm -f $tmp/in | 
|  | 26868 | mv $tmp/out $tmp/in | 
|  | 26869 | ' >>$CONFIG_STATUS | 
|  | 26870 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
|  | 26871 | rm -f conftest.undefs | 
|  | 26872 | mv conftest.tail conftest.undefs | 
|  | 26873 | done | 
|  | 26874 | rm -f conftest.undefs | 
|  | 26875 |  | 
|  | 26876 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26877 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 26878 | # use $as_me), people would be surprised to read: | 
|  | 26879 | #    /* config.h.  Generated by config.status.  */ | 
|  | 26880 | if test x"$ac_file" = x-; then | 
|  | 26881 | echo "/* Generated by configure.  */" >$tmp/config.h | 
|  | 26882 | else | 
|  | 26883 | echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
|  | 26884 | fi | 
|  | 26885 | cat $tmp/in >>$tmp/config.h | 
|  | 26886 | rm -f $tmp/in | 
|  | 26887 | if test x"$ac_file" != x-; then | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26888 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26889 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
|  | 26890 | echo "$as_me: $ac_file is unchanged" >&6;} | 
|  | 26891 | else | 
|  | 26892 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
|  | 26893 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26894 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 26895 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 26896 | X"$ac_file" : 'X\(/\)' \| \ | 
|  | 26897 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26898 | echo X"$ac_file" | | 
|  | 26899 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 26900 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 26901 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 26902 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 26903 | s/.*/./; q'` | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26904 | { if $as_mkdir_p; then | 
|  | 26905 | mkdir -p "$ac_dir" | 
|  | 26906 | else | 
|  | 26907 | as_dir="$ac_dir" | 
|  | 26908 | as_dirs= | 
|  | 26909 | while test ! -d "$as_dir"; do | 
|  | 26910 | as_dirs="$as_dir $as_dirs" | 
|  | 26911 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 26912 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26913 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 26914 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 26915 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 26916 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26917 | echo X"$as_dir" | | 
|  | 26918 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 26919 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 26920 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 26921 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 26922 | s/.*/./; q'` | 
|  | 26923 | done | 
|  | 26924 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 26925 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 26926 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 26927 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26928 |  | 
|  | 26929 | rm -f $ac_file | 
|  | 26930 | mv $tmp/config.h $ac_file | 
|  | 26931 | fi | 
|  | 26932 | else | 
|  | 26933 | cat $tmp/config.h | 
|  | 26934 | rm -f $tmp/config.h | 
|  | 26935 | fi | 
|  | 26936 | done | 
|  | 26937 | _ACEOF | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 26938 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 26939 |  | 
|  | 26940 | # | 
| Reid Spencer | efc94f5 | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26941 | # CONFIG_LINKS section. | 
|  | 26942 | # | 
|  | 26943 |  | 
|  | 26944 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | 
|  | 26945 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
|  | 26946 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 26947 |  | 
|  | 26948 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 | 
|  | 26949 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | 
|  | 26950 |  | 
|  | 26951 | if test ! -r $srcdir/$ac_source; then | 
|  | 26952 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 | 
|  | 26953 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | 
|  | 26954 | { (exit 1); exit 1; }; } | 
|  | 26955 | fi | 
|  | 26956 | rm -f $ac_dest | 
|  | 26957 |  | 
|  | 26958 | # Make relative symlinks. | 
|  | 26959 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | 
|  | 26960 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26961 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
|  | 26962 | X"$ac_dest" : 'X\(//\)$' \| \ | 
|  | 26963 | X"$ac_dest" : 'X\(/\)' \| \ | 
|  | 26964 | .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | efc94f5 | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26965 | echo X"$ac_dest" | | 
|  | 26966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 26967 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 26968 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 26969 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 26970 | s/.*/./; q'` | 
|  | 26971 | { if $as_mkdir_p; then | 
|  | 26972 | mkdir -p "$ac_dest_dir" | 
|  | 26973 | else | 
|  | 26974 | as_dir="$ac_dest_dir" | 
|  | 26975 | as_dirs= | 
|  | 26976 | while test ! -d "$as_dir"; do | 
|  | 26977 | as_dirs="$as_dir $as_dirs" | 
|  | 26978 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 26979 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26980 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 26981 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 26982 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 26983 | .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | efc94f5 | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 26984 | echo X"$as_dir" | | 
|  | 26985 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 26986 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 26987 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 26988 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 26989 | s/.*/./; q'` | 
|  | 26990 | done | 
|  | 26991 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 26992 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | 
|  | 26993 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | 
|  | 26994 | { (exit 1); exit 1; }; }; } | 
|  | 26995 |  | 
|  | 26996 | ac_builddir=. | 
|  | 26997 |  | 
|  | 26998 | if test "$ac_dest_dir" != .; then | 
|  | 26999 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | 
|  | 27000 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 27001 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 27002 | else | 
|  | 27003 | ac_dir_suffix= ac_top_builddir= | 
|  | 27004 | fi | 
|  | 27005 |  | 
|  | 27006 | case $srcdir in | 
|  | 27007 | .)  # No --srcdir option.  We are building in place. | 
|  | 27008 | ac_srcdir=. | 
|  | 27009 | if test -z "$ac_top_builddir"; then | 
|  | 27010 | ac_top_srcdir=. | 
|  | 27011 | else | 
|  | 27012 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 27013 | fi ;; | 
|  | 27014 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 27015 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 27016 | ac_top_srcdir=$srcdir ;; | 
|  | 27017 | *) # Relative path. | 
|  | 27018 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 27019 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 27020 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27021 |  | 
|  | 27022 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 27023 | # the directories may not exist. | 
|  | 27024 | case `pwd` in | 
|  | 27025 | .) ac_abs_builddir="$ac_dest_dir";; | 
|  | 27026 | *) | 
|  | 27027 | case "$ac_dest_dir" in | 
|  | 27028 | .) ac_abs_builddir=`pwd`;; | 
|  | 27029 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | 
|  | 27030 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | 
|  | 27031 | esac;; | 
|  | 27032 | esac | 
|  | 27033 | case $ac_abs_builddir in | 
|  | 27034 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 27035 | *) | 
|  | 27036 | case ${ac_top_builddir}. in | 
|  | 27037 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 27038 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 27039 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 27040 | esac;; | 
|  | 27041 | esac | 
|  | 27042 | case $ac_abs_builddir in | 
|  | 27043 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 27044 | *) | 
|  | 27045 | case $ac_srcdir in | 
|  | 27046 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 27047 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 27048 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 27049 | esac;; | 
|  | 27050 | esac | 
|  | 27051 | case $ac_abs_builddir in | 
|  | 27052 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 27053 | *) | 
|  | 27054 | case $ac_top_srcdir in | 
|  | 27055 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 27056 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 27057 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 27058 | esac;; | 
|  | 27059 | esac | 
| Reid Spencer | efc94f5 | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 27060 |  | 
|  | 27061 |  | 
|  | 27062 | case $srcdir in | 
|  | 27063 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | 
|  | 27064 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | 
|  | 27065 | esac | 
|  | 27066 |  | 
|  | 27067 | # Try a symlink, then a hard link, then a copy. | 
|  | 27068 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | 
|  | 27069 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | 
|  | 27070 | cp -p $srcdir/$ac_source $ac_dest || | 
|  | 27071 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | 
|  | 27072 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | 
|  | 27073 | { (exit 1); exit 1; }; } | 
|  | 27074 | done | 
|  | 27075 | _ACEOF | 
|  | 27076 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 27077 |  | 
|  | 27078 | # | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27079 | # CONFIG_COMMANDS section. | 
|  | 27080 | # | 
|  | 27081 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
|  | 27082 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
|  | 27083 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 27084 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
|  | 27085 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27086 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
|  | 27087 | X"$ac_dest" : 'X\(//\)$' \| \ | 
|  | 27088 | X"$ac_dest" : 'X\(/\)' \| \ | 
|  | 27089 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27090 | echo X"$ac_dest" | | 
|  | 27091 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 27092 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 27093 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 27094 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 27095 | s/.*/./; q'` | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27096 | { if $as_mkdir_p; then | 
|  | 27097 | mkdir -p "$ac_dir" | 
|  | 27098 | else | 
|  | 27099 | as_dir="$ac_dir" | 
|  | 27100 | as_dirs= | 
|  | 27101 | while test ! -d "$as_dir"; do | 
|  | 27102 | as_dirs="$as_dir $as_dirs" | 
|  | 27103 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 27104 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 27105 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 27106 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 27107 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 27108 | .     : '\(.\)' 2>/dev/null || | 
|  | 27109 | echo X"$as_dir" | | 
|  | 27110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 27111 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 27112 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 27113 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 27114 | s/.*/./; q'` | 
|  | 27115 | done | 
|  | 27116 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 27117 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 27118 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 27119 | { (exit 1); exit 1; }; }; } | 
|  | 27120 |  | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27121 | ac_builddir=. | 
|  | 27122 |  | 
|  | 27123 | if test "$ac_dir" != .; then | 
|  | 27124 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 27125 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 27126 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 27127 | else | 
|  | 27128 | ac_dir_suffix= ac_top_builddir= | 
|  | 27129 | fi | 
|  | 27130 |  | 
|  | 27131 | case $srcdir in | 
|  | 27132 | .)  # No --srcdir option.  We are building in place. | 
|  | 27133 | ac_srcdir=. | 
|  | 27134 | if test -z "$ac_top_builddir"; then | 
|  | 27135 | ac_top_srcdir=. | 
|  | 27136 | else | 
|  | 27137 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 27138 | fi ;; | 
|  | 27139 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 27140 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 27141 | ac_top_srcdir=$srcdir ;; | 
|  | 27142 | *) # Relative path. | 
|  | 27143 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 27144 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 27145 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27146 |  | 
|  | 27147 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 27148 | # the directories may not exist. | 
|  | 27149 | case `pwd` in | 
|  | 27150 | .) ac_abs_builddir="$ac_dir";; | 
|  | 27151 | *) | 
|  | 27152 | case "$ac_dir" in | 
|  | 27153 | .) ac_abs_builddir=`pwd`;; | 
|  | 27154 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 27155 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 27156 | esac;; | 
|  | 27157 | esac | 
|  | 27158 | case $ac_abs_builddir in | 
|  | 27159 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 27160 | *) | 
|  | 27161 | case ${ac_top_builddir}. in | 
|  | 27162 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 27163 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 27164 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 27165 | esac;; | 
|  | 27166 | esac | 
|  | 27167 | case $ac_abs_builddir in | 
|  | 27168 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 27169 | *) | 
|  | 27170 | case $ac_srcdir in | 
|  | 27171 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 27172 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 27173 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 27174 | esac;; | 
|  | 27175 | esac | 
|  | 27176 | case $ac_abs_builddir in | 
|  | 27177 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 27178 | *) | 
|  | 27179 | case $ac_top_srcdir in | 
|  | 27180 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 27181 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 27182 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 27183 | esac;; | 
|  | 27184 | esac | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27185 |  | 
|  | 27186 |  | 
|  | 27187 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
|  | 27188 | echo "$as_me: executing $ac_dest commands" >&6;} | 
|  | 27189 | case $ac_dest in | 
|  | 27190 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
|  | 27191 | Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; | 
| Reid Spencer | b1a014f | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 27192 | examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27193 | lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27194 | runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27195 | test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
|  | 27196 | test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| John Criswell | e078b43 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 27197 | test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; | 
|  | 27198 | test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27199 | tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Misha Brukman | c04ade7 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 27200 | tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;; | 
| Brian Gaeke | 16448fc | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27201 | utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27202 | projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| John Criswell | 3bac9bc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 27203 | esac | 
|  | 27204 | done | 
|  | 27205 | _ACEOF | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27206 |  | 
|  | 27207 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 27208 |  | 
|  | 27209 | { (exit 0); exit 0; } | 
|  | 27210 | _ACEOF | 
|  | 27211 | chmod +x $CONFIG_STATUS | 
|  | 27212 | ac_clean_files=$ac_clean_files_save | 
|  | 27213 |  | 
|  | 27214 |  | 
|  | 27215 | # configure is writing to config.log, and then calls config.status. | 
|  | 27216 | # config.status does its own redirection, appending to config.log. | 
|  | 27217 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 27218 | # by configure, so config.status won't be able to write to it; its | 
|  | 27219 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 27220 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 27221 | # appended to by config.status.  When coming back to configure, we | 
|  | 27222 | # need to make the FD available again. | 
|  | 27223 | if test "$no_create" != yes; then | 
|  | 27224 | ac_cs_success=: | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27225 | ac_config_status_args= | 
|  | 27226 | test "$silent" = yes && | 
|  | 27227 | ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27228 | exec 5>/dev/null | 
| John Criswell | 3eaf0b4 | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27229 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 3ef61af | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27230 | exec 5>>config.log | 
|  | 27231 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 27232 | # would make configure fail if this is the last instruction. | 
|  | 27233 | $ac_cs_success || { (exit 1); exit 1; } | 
|  | 27234 | fi | 
|  | 27235 |  | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27236 | # | 
|  | 27237 | # CONFIG_SUBDIRS section. | 
|  | 27238 | # | 
|  | 27239 | if test "$no_recursion" != yes; then | 
|  | 27240 |  | 
|  | 27241 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
|  | 27242 | ac_sub_configure_args= | 
|  | 27243 | ac_prev= | 
|  | 27244 | for ac_arg in $ac_configure_args; do | 
|  | 27245 | if test -n "$ac_prev"; then | 
|  | 27246 | ac_prev= | 
|  | 27247 | continue | 
|  | 27248 | fi | 
|  | 27249 | case $ac_arg in | 
|  | 27250 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 27251 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 27252 | ac_prev=cache_file ;; | 
|  | 27253 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 27254 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
|  | 27255 | | --c=*) | 
|  | 27256 | ;; | 
|  | 27257 | --config-cache | -C) | 
|  | 27258 | ;; | 
|  | 27259 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 27260 | ac_prev=srcdir ;; | 
|  | 27261 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 27262 | ;; | 
|  | 27263 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 27264 | ac_prev=prefix ;; | 
|  | 27265 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 27266 | ;; | 
|  | 27267 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
|  | 27268 | esac | 
|  | 27269 | done | 
|  | 27270 |  | 
|  | 27271 | # Always prepend --prefix to ensure using the same prefix | 
|  | 27272 | # in subdir configurations. | 
|  | 27273 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
|  | 27274 |  | 
|  | 27275 | ac_popdir=`pwd` | 
|  | 27276 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
|  | 27277 |  | 
|  | 27278 | # Do not complain, so a configure script can configure whichever | 
|  | 27279 | # parts of a large source tree are present. | 
|  | 27280 | test -d $srcdir/$ac_dir || continue | 
|  | 27281 |  | 
|  | 27282 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
|  | 27283 | echo "$as_me: configuring in $ac_dir" >&6;} | 
|  | 27284 | { if $as_mkdir_p; then | 
|  | 27285 | mkdir -p "$ac_dir" | 
|  | 27286 | else | 
|  | 27287 | as_dir="$ac_dir" | 
|  | 27288 | as_dirs= | 
|  | 27289 | while test ! -d "$as_dir"; do | 
|  | 27290 | as_dirs="$as_dir $as_dirs" | 
|  | 27291 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 27292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 27294 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 27295 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 27296 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27297 | echo X"$as_dir" | | 
|  | 27298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 27299 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 27300 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 27301 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 27302 | s/.*/./; q'` | 
|  | 27303 | done | 
|  | 27304 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 27305 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 27306 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 27307 | { (exit 1); exit 1; }; }; } | 
|  | 27308 |  | 
|  | 27309 | ac_builddir=. | 
|  | 27310 |  | 
|  | 27311 | if test "$ac_dir" != .; then | 
|  | 27312 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 27313 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 27314 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 27315 | else | 
|  | 27316 | ac_dir_suffix= ac_top_builddir= | 
|  | 27317 | fi | 
|  | 27318 |  | 
|  | 27319 | case $srcdir in | 
|  | 27320 | .)  # No --srcdir option.  We are building in place. | 
|  | 27321 | ac_srcdir=. | 
|  | 27322 | if test -z "$ac_top_builddir"; then | 
|  | 27323 | ac_top_srcdir=. | 
|  | 27324 | else | 
|  | 27325 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 27326 | fi ;; | 
|  | 27327 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 27328 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 27329 | ac_top_srcdir=$srcdir ;; | 
|  | 27330 | *) # Relative path. | 
|  | 27331 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 27332 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 27333 | esac | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27334 |  | 
|  | 27335 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 27336 | # the directories may not exist. | 
|  | 27337 | case `pwd` in | 
|  | 27338 | .) ac_abs_builddir="$ac_dir";; | 
|  | 27339 | *) | 
|  | 27340 | case "$ac_dir" in | 
|  | 27341 | .) ac_abs_builddir=`pwd`;; | 
|  | 27342 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 27343 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 27344 | esac;; | 
|  | 27345 | esac | 
|  | 27346 | case $ac_abs_builddir in | 
|  | 27347 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 27348 | *) | 
|  | 27349 | case ${ac_top_builddir}. in | 
|  | 27350 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 27351 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 27352 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 27353 | esac;; | 
|  | 27354 | esac | 
|  | 27355 | case $ac_abs_builddir in | 
|  | 27356 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 27357 | *) | 
|  | 27358 | case $ac_srcdir in | 
|  | 27359 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 27360 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 27361 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 27362 | esac;; | 
|  | 27363 | esac | 
|  | 27364 | case $ac_abs_builddir in | 
|  | 27365 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 27366 | *) | 
|  | 27367 | case $ac_top_srcdir in | 
|  | 27368 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 27369 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 27370 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 27371 | esac;; | 
|  | 27372 | esac | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27373 |  | 
|  | 27374 |  | 
|  | 27375 | cd $ac_dir | 
|  | 27376 |  | 
|  | 27377 | # Check for guested configure; otherwise get Cygnus style configure. | 
|  | 27378 | if test -f $ac_srcdir/configure.gnu; then | 
|  | 27379 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
|  | 27380 | elif test -f $ac_srcdir/configure; then | 
|  | 27381 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
|  | 27382 | elif test -f $ac_srcdir/configure.in; then | 
|  | 27383 | ac_sub_configure=$ac_configure | 
|  | 27384 | else | 
|  | 27385 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
|  | 27386 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
|  | 27387 | ac_sub_configure= | 
|  | 27388 | fi | 
|  | 27389 |  | 
|  | 27390 | # The recursion is here. | 
|  | 27391 | if test -n "$ac_sub_configure"; then | 
|  | 27392 | # Make the cache file name correct relative to the subdirectory. | 
|  | 27393 | case $cache_file in | 
|  | 27394 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
|  | 27395 | *) # Relative path. | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27396 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27397 | esac | 
|  | 27398 |  | 
|  | 27399 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
|  | 27400 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
|  | 27401 | # The eval makes quoting arguments work. | 
|  | 27402 | eval $ac_sub_configure $ac_sub_configure_args \ | 
| Reid Spencer | f184a86 | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27403 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
|  | 27404 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
| John Criswell | 2b3771e | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 27405 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
|  | 27406 | { (exit 1); exit 1; }; } | 
|  | 27407 | fi | 
|  | 27408 |  | 
|  | 27409 | cd $ac_popdir | 
|  | 27410 | done | 
|  | 27411 | fi | 
|  | 27412 |  | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27413 |  | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27414 | if test $bzip2_found -ne 1 ; then | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27415 | if test $zlib_found -ne 1 ; then | 
|  | 27416 | { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5 | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27417 | echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27418 | { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5 | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27419 | echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27420 | { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5 | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27421 | echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27422 | fi | 
| Reid Spencer | defd969 | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 27423 | fi | 
|  | 27424 |  | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27425 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then | 
|  | 27426 | { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27427 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27428 | { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27429 | echo "$as_me: WARNING: ***** appear to be working." >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27430 | { echo "$as_me:$LINENO: WARNING: ***** " >&5 | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27431 | echo "$as_me: WARNING: ***** " >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27432 | { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27433 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27434 | { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27435 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} | 
| Reid Spencer | 0241e38 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27436 | { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 | 
| Brian Gaeke | 27b10bc | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 27437 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} | 
|  | 27438 | fi |